Sound Activated Lightbar

by SebastianB2 in Circuits > LEDs

1089 Views, 20 Favorites, 0 Comments

Sound Activated Lightbar

Lightbar with attiny85

This is a quick video how the lightbar works.

I got the idea her from Instructables and similar sites.

And I can use some off the things I got laying around in my compartments.

The Parts

P1070317.JPG
P1070322.JPG
P1070319.JPG

I used some RGB-led’s and some plastic " diamonds ", where i drilled a 5 mm hole and glued the led's.

A sound sensor module, all will work, I tried with a small microphone but that didn’t worked for me.

The power supply is a USB Lithium Battery Charger Module and I mounted a cable so is always connected.

And at the last I used a Attiny85 on a ATtiny85 ISP! Arduino Compatible Breakout Board from

http://www.rullywow.com/product/attiny85-isp-ardui...

This is maybe a little bit overkill but this I got.

Now It Is Time to Solder It Together.

P1070321.JPG
P1070320.JPG
P1070316.JPG

The led's are common anode, I soldered them together and also the three colours.

I use one 200 ohm resistor for common anode, maybe not right. But it work.

The charger module and the Attiny85 ISP are soldered to a piece of strip-board,

her I also soldered the connection for the led's and the sound module to the pins.

The Progamm of the Lightbar

P1070323.JPG

I found a skeleton from the internet and changed it so it work with the components.

It is properly not the best programming work, I learning, but it gives the led's live.

I used the smoothing part from arduino.cc and made for each colours a value.

This make the colour change by different sound frequency, kind of.

You can tweak the sensitivity " #define sensitivity 250 "

And you can change the value some be multiple with the sensitivity

if((abs(value - average)) > 3*sensitivity)