So for this third hack we started with an online-bought robot costume, but being a creative tech people, we couldn't resist making it better by using some brilliant LED strips that react to sound.
The dense LEDs (144 per meter) were used on the helmet. More spaced apart (30 per meter) were used on the arms. All of them drive from one Teensy receiving analog signal from the microphone located in the helmet. The microphone captures both the voice of the wearer and ambient sounds.
Here's what it looks like reacting to the music:
Technical Build:
The idea was to attach two denser LED strips to the face mask guard and the rest to the arms of the costume. They both would react to ambient sound and light up depending on the frequency of sound. The helmet's strip would have the lower frequencies in the middle and the arms would have them start at the wrists.
The face mask guard took 52 LEDs per strip and arms got 25 LEDs per arm. These calculations are reflected in the code below.
For the arms, I divided each LED strip into two sections (since the costume itself had separate foam pieces for forearm and shoulder), and gave them their own battery. That allowed me to have a simple 2 pin connection for joining the arms to the helmet.
One problem when dealing with RGB Strips on wearables is that the solder pads are small and the wires break off too easily. I tried to minimize this by adhering a small wooden backing to the end of each strip. This acts like a cast and, when sealed with heat shrink, immobilizes the connections. I cut the supports on the laser cutter, but you can use anything. Popsicle sticks would work as well.
Here is the basic wiring diagram I used:
Software:
This code uses hardware support for FFT that's built into the Teensy. If you want to use a different processor, you will need to add a FFT library and modify the code accordingly.
I found some code online that was almost perfect for this project. Rather than reinventing the wheel, I reused that code, and modified it for my needs. Original credit has been left in the code.
Well, the last batch of Escap gearmotors went very fast. Let's hope this batch lasts a bit longer! Unlike the last set, this set has a higher reduction ratio of 663:1 instead of 362:1. This means it starts turning 0.46V (!) drawing only 3.3mA (!!) It's a 3V rated motor, but our tests show that […]
Unlike Sparkfun, who actually manage to find fake Atmel ICs, we just get strange batches. The Atmel ATMega328 is the power behind the Arduino/Freeduino/*duino, and we have to set up a programming system to burn the venerable Arduino Bootloader into these chips. We normally use an AVR STK500 in HVSP (high voltage serial programming) mode, […]
Welcome to the new Solarbotics Website! We've been busy whipping Kenny the Web-boy with various types of wet noodles (use Fettuccini - heavier!) to get this new and improved site up to snuff. This year, we've moved the site to 100% ASP (yes, I hear the "boos" from the Linux camp over in Minnesota), which […]
The Atmel Brainboard is a very popular add-on to our Sumovore Sumo robot. But with newer releases of the WinAVR GCC programming suite, there is a difference in the way the source code is handled that will make it not compile and load properly. Bob Cook has been nice enough to tweak our source to […]
Solarbotics has been operating for more than 25 years, bringing electronics know-how and supplies to both the electronics professional and hobbyist. We'll be happy to help you too!
Solarbotics, Ltd. is not responsible for misprints or errors on product prices or information. For more information, please see our Terms and Conditions.
Warning: This product contains chemicals known to the State of California to cause cancer and birth defects or other reproductive harm. Please visit www.P65Warnings.ca.gov for more information. This item was manufactured prior to August 31, 2018.