Posts with «arduino» label

Don’t Walk Past This 3D Printed Pedestrian Crossing Light

There’s just something so pleasing about scaled-down electronic replicas, and this adorable 3D printed pedestrian crossing light by [sjm4306] is no exception.

Although a little smaller than its real-world counterpart, the bright yellow housing and illuminated indicators on this pedestrian lamp are instantly recognizable due to their ubiquitous use throughout the United States. The handful of printed parts are held together using friction alone, which makes assembly a literal snap. The ‘safety grill’ with its many angles ended up being one of the most tedious parts of the build process, but the effort was definitely justified, as it just wouldn’t look right without it.

A suitably minuscule ATtiny85 drives a pair of LED strips that effectively mimic the familiar symbols for ‘Walk’ and ‘Don’t Walk’. [sjm4306] has designed the board and case in such a way to accommodate a variety of options. For example, there’s just enough room to squeeze in a thin battery, should you want to power this contraption on-the-go. If you don’t have an ATtiny85 on hand, the board also supports an ATmega328p or even an ESP8266.

All the build details are available over on Hackaday.io. While it’s billed as a ‘night light’, we think this could be an awesome platform for an office toy, similar to this office status light project. Or if you’ve somehow already got your hands on a full-size pedestrian lamp, why not hook it up to the Internet?

The Medieval History Of Your Favourite Dev Board

It’s become something of a trope in our community, that the simplest way to bestow a level of automation or smarts to a project is to reach for an Arduino. The genesis of the popular ecosystem of boards and associated bootloader and IDE combination is well known, coming from the work of a team at the Interaction Design Institute Ivrea, in Northern Italy. The name “Arduino” comes from their favourite watering hole, the Bar di Re Arduino, in turn named for Arduin of Ivrea, an early-mediaeval king.

As far as we can see the bar no longer exists and has been replaced by a café, which appears on the left in this Google Street View link. The bar named for Arduin of Ivrea is always mentioned as a side note in the Arduino microcontroller story, but for the curious electronics enthusiast it spawns the question: who was Arduin, and why was there a bar named after him in the first place?

The short answer is that Arduin was the Margrave of Ivrea, an Italian nobleman who became king of Italy in 1002 and abdicated in 1014. The longer answer requires a bit of background knowledge of European politics around the end of the first millennium, so if you’re ready we’ll take Hackaday into a rare tour of medieval history.

Defying An Empire

The Holy Roman Empire at the turn of the second millennium. Sémhur derivative work: OwenBlacker, CC BY-SA 3.0

Western Europe’s dominant power at the turn of the first millennium was the Holy Roman Empire, a German-ruled agglomeration of states which though not a direct successor to the Roman Empire had received the recognition of the Papacy as such following the accession of a female ruler as empress of the former Eastern Roman empire in Byzantium. Its young Emperor Otto III died unexpectedly in 1002 without an heir, and in the power vacuum that followed the Italian nobility sought to re-establish their control and break away from German influence. Thus they elected one of their own to become King of Italy, selecting Arduin for the throne.

The tumultuous politics of 10th and 11th century Italy seem to revolve around the struggles between the forces controlled by the bishops, largely aligned with or appointed by the Holy Roman Emperor, and those of the nobility who seem to have been alternately on the side of — or fighting against — the Emperor. Arduin had been excommunicated twice, once in Rome before Otto himself and his Papal appointment Sylvester II, after burning the cathedral of Vercelli and killing its bishop.

The Empire Strikes Back

There seem to be no contemporary depictions of Arduin, this stylised one is from a later century. Marilynmerlo, CC BY-SA 3.0.

When the newly crowned Emperor Henry II immediately sent a force to depose Arduin, it was repulsed, leading to Henry himself leading a larger army and defeating him in 1004. This and Henry’s subsequent coronation as King of Italy in the city of Pavia might have been the end of the story, but as the newly crowned king and his retinue were driven from the city by rioting it is evident that he did so without the support of his populace. Thus while Arduin had lost control of part of his claimed kingdom he continued to hold power from his base in Ivrea and spent the next decade still asserting himself as King of Italy despite Henry also holding the crown. He was eventually defeated and forced to abdicate in 1013, and died the following year.

If there’s something to take away from this tale of European politics a millennium past, it’s the surprise at how little he leaves us. For other medieval figures there might be a statue or perhaps a fresco in a church, but for Arduin beyond the stylised portrait evidently drawn centuries later we have no depiction of him. If the town of which he was once ruler had not memorialised him in a street name that in turn prompted the owner of a bar to use his name, it’s possible nobody but a few historians would ever have known about him. Perhaps here is a lesson in measuring the legacies of our politicians here in the 21st century.

So we have the love of some Italian post-grads for their favourite watering hole to thank for our familiarity with the name of an obscure medieval king, and now we know a little more about him and his life. Perhaps we should all turn to our local pub for inspiration when naming our projects, though in my case I’m not sure that The Sow And Pigs would be as edifying an appellation.

Header image: SimonWaldherr, CC BY-SA 4.0.

Hack a Day 01 Dec 18:01

Ham Radio Gets Brain Transplant

Old radios didn’t have much in the way of smarts. But as digital synthesis became more common, radios often had as much digital electronics in them as RF circuits. The problem is that digital electronics get better and better every year, so what looked like high-tech one year is quaint the next. [IMSAI Guy] had an Icom IC-245 and decided to replace the digital electronics inside with — among other things — an Arduino.

He spends a good bit of the first part of the video that you can see below explaining what the design needs to do. An Arduino Nano fits and he uses a few additional parts to get shift registers, a 0-1V digital to analog converter, and an interface to an OLED display.

Unless you have this exact radio, you probably won’t be able to directly apply this project. Still, it is great to look over someone’s shoulder while they design something like this, especially when they explain their reasoning as they go.

The PCB, of course, has to be exactly the same size as the board it replaces, including mounting holes and interface connectors. It looks like he got it right the first time which isn’t always easy. Does it work? We don’t know by the end of the first video. You’ll have to watch the next one (also below) where he actually populates the PCB and tests everything out.

Hack a Day 27 Nov 18:01

Impressive Off-Grid Hydroelectric Plant Showcases The Hacker Spirit

We all know the story arc that so many projects take: Build. Fail. Improve. Fail. Repair. Improve. Fail. Rebuild. Success… Tweak! [Kris Harbour] is no stranger to the process, as his impressive YouTube channel testifies.

An IOT charge controller makes power management easier.

Among all of [Kris’] off-grid DIY adventures, his 500 W micro hydroelectric turbine has us really pumped up. The impressive feat of engineering features Arduino/IOT based controls, 3D printed components, and large number of custom-machined components, with large amounts of metal fabrication as well.

[Kris] Started the build with a Pelton wheel sourced from everyone’s favorite online auction site paired with an inexpensive MPPT charge controller designed for use with solar panels. Eventually the turbine was replaced with a custom built unit designed to produce more power. An Arduino based turbine valve controller and an IOT enabled charge controller give [Kris] everything he needs to manage the hydroelectric system without having to traipse down to the power house. Self-cleaning 3D printed screens keep intake maintenance to a minimum. Be sure to check out a demonstration of the control system in the video below the break.

As you watch the Hydro electric system playlist, you see the hacker spirit run strong throughout the initial build, the failures, the engineering, the successes, and then finally, the tweaking for more power. Because why stop at working when it can be made better, right? We highly recommend checking it out- but set aside some time. The whole series is oddly addictive, and This Hackaday Writer may have spent inordinate amounts of time watching it instead of writing dailies!

Of course, you don’t need to go full-tilt to get hydroelectric power up and running. Even at a low wattage, its always-on qualities mean that even a re-purposed washing machine can be efficient enough to be quite useful.

Thanks to [Mo] for alerting us to the great series via the Tip Line!

Bluetooth Record Player Puts a New Spin On Vinyl

You know, we were just discussing weird and/or obsolete audio formats in the writers’ dungeon the other day. (By the way, have you ever bought anything on DAT or MiniDisc?) While vinyl is hardly weird or (nowadays) obsolete, the fact that this Bluetooth record player by [JGJMatt] is so modern makes it all the more fantastic.

Not since the Audio-Technica Sound Burger, or Crosley’s semi-recent imitation, have we seen such a portable unit. But that’s not even the most notable part — this thing runs inversely to normal record players. Translation: the record stands still while the the player spins, and it sends the audio over Bluetooth to headphones or a speaker.

Inside this portable player is an Arduino Nano driving a 5 VDC motor with a worm gear box. There really isn’t too much more to this build — mostly power, a needle cartridge, and a Bluetooth audio transmitter. There’s a TTP223 touch module on the lid that allows [JGJMatt] to turn it off with the wave of a hand.

[JGJMatt] says this is a prototype/work-in-progress, and welcomes input from the community. Right now the drive system is good and the Bluetooth is stable and able, but the tone arm has some room for improvement — in tests, it only played a small section of the record and skidded and skittered across the innermost and outermost parts. Now, [JGJMatt] is trying two-part arm approach where the first bit extends and locks into position, and then a second arm extending from there and moves around freely.

Commercial record players can do more than just play records. If you’ve got an old one that isn’t even good enough for a thrift store copy of a Starship record, you could turn it into a pottery wheel or a guitar tremolo.

Arduino Announces The Uno Mini Limited Edition

What an incredible journey the Arduino concept has been. Remember when we proclaimed that The Arduino is Here To Stay after they sold 10 thousand units? Well, now they’ve sold over 10 million, and they want to celebrate. They are announcing the Arduino Uno Mini Limited Edition. A pint sized nod to the ubiquitous Arduino […]

The post Arduino Announces The Uno Mini Limited Edition appeared first on Make: DIY Projects and Ideas for Makers.

MAKE » Arduino 24 Nov 14:27

Arduino + Ham Radio = Texting

Over on the Spectrum web site, [Dale] — a relatively new ham radio operator — talks about his system for sending text messaging over VHF radios called HamMessenger. Of course, hams send messages all the time using a variety of protocols, but [Dale] wanted a self-contained and portable unit with a keyboard, screen, and a GPS receiver. So he built one. You can find his work on GitHub.

At the heart of the project is MicroAPRS, an Arduino firmware for packet radio. Instead of using a bigger computer, he decided to dedicate another Arduino to do everything but the modem function.

You can probably figure out the rest. A $10 GPS, a battery pack, a charge controller, and a few user interface parts like an OLED screen and a keyboard. In addition, there’s an SD card to store messages.

Of course, we couldn’t help but notice that our cell phone has a keyboard, screen, GPS, and storage. We might have been tempted to work out a way to connect the radio to it by Bluetooth. But we have to admit the little HamMessenger setup is cool-looking and probably lasts longer on a charge than our phone, too.

Run UNIX On Microcontrollers With PDP-11 Emulator

C and C++ are powerful tools, but not everyone has the patience (or enough semicolons) to use them all the time. For a lot of us, the preference is for something a little higher level than C. While Python is arguably more straightforward, sometimes the best choice is to work within a full-fledged operating system, even if it’s on a microcontroller. For that [Chloe Lunn] decided to port Unix to several popular microcontrollers.

This is an implementation of the PDP-11 minicomputer running a Unix-based operating system as  an emulator. The PDP-11 was a popular minicomputer platform from the ’70s until the early 90s, which influenced a lot of computer and operating system designs in its time. [Chloe]’s emulator runs on the SAMD51, SAMD21, Teensy 4.1, and any Arduino Mega and is also easily portable to any other microcontrollers. Right now it is able to boot and run Unix but is currently missing support for some interfaces and other hardware.

[Chloe] reports that performance on some of the less-capable microcontrollers is not great, but that it does run perfectly on the Teensy and the SAMD51. This isn’t the first time that someone has felt the need to port Unix to something small; we featured a build before which uses the same PDP-11 implementation on a 32-bit STM32 microcontroller.

Binaural Hearing Modeled with an Arduino

You don’t have two ears by accident. [Stoppi] has a great post about this, along with a video you can see below. (The text is in German, but that’s what translation is for.) The point to having two ears is that you receive audio information from slightly different angles and distances in each ear and your amazing brain can deduce a lot of spatial information from that data.

For the Arduino demonstration, cheap microphone boards take the place of your ears. A servo motor points to the direction of sound. This would be a good gimmick for a Halloween prop or a noise-sensitive security camera.

Math-wise, if you know the speed of sound, the distance between the sensors, and a few other pieces of data, you wind up with a fairly simple trigonometry problem. In non-math terms, it is easy to get a feel for why this works. If the sound hits both microphones at once, it must be coming from straight ahead. If it hits the left microphone first, it must be closer to that microphone and vice versa. If the sound were right in line with both microphones but closer to the left, the time delay would be exactly due to the speed of sound over the distance between the sensors. If the time is less than that, the sound must be somewhere in between.

The microphone modules have both analog outputs and digital outputs. The digital output triggers if the sound level exceeds a limit set by a potentiometer. By using these modules, the circuit is trivial. Just an Arudino, the two modules, and the servo motor.

Now imagine that you wanted all this spatial detail to come through your headphones. Recording binaural audio is a thing. You can 3D print a virtual head if you are interested. We’ve seen projects for this several times.

Machine Learning Shushes Stressed Dogs

If there’s one demographic that has benefited from people being stuck at home during Covid lockdowns, it would be dogs. Having their humans around 24/7 meant more belly rubs, more table scraps, and more attention. Of course, for many dogs, especially those who found their homes during quarantine, this has led to attachment issues as their human counterparts have begin to return to work and school.

[Clairette] has had a particularly difficult time adapting to her friends leaving every day, but thankfully her human [Nathaniel Felleke] was able to come up with a clever solution. He trained a TinyML neural net to detect when she barked and used and Arduino to play a sound byte to sooth her. The sound bytes in question are recordings of [Nathaniel]’s mom either praising or scolding [Clairette], and as you can see from the video below, they seem to work quite well. To train the network, [Nathaniel] worked with several datasets to avoid overfitting, including one he created himself using actual recordings of barks and ambient sounds within his own house. He used Eon Tuner, a tool by Edge Impulse, to help find the best model to use and perform the training. He uploaded the trained network to an Arduino Nano 33 BLE Sense running Mbed OS, and a second Arduino handled playing sound bytes via an Adafruit Music Maker Featherwing.

While machine learning may sound like a bit of an extreme solution to curb your dog’s barking, it’s certainly innovative, and even appears to have been successful. Paired with this web-connected treat dispenser, you could keep a dog entertained for hours.