In this Instructable I will be showing you how to create a light reactive LED system. In this clip, I used a single color LED strip, but you you can use a single LED, multiple LEDs wired together, single color or RGB LED strip, it just depends on what you are trying to build. The set up is fairly simple, the component list is fairly basic so if you are a tinkerer you should already have the majority of the materials laying around. If not, I will post links to the components I used so you can order parts and get to work! 

In the following link you will see the entire setup. Obviously you may arrange it anyway you would like, I just kept everything close and compact for the sake of an easy video. 


Step 1: Components

For this project you will need the following:

1) LED  ~$20 (with shipping) 
- For this project I used a solid blue LED strip which I purchased on amazon. These 5 meter SMD 5050 strips can run around $70 in retail stores so I though I would be taking a chance purchasing something priced under $20, but I was not disappointed in the least. I'm sure there are better quality lights out there, but if you plan on cutting these up and have no real game plan you wont feel any guilt putting these through the ringer.

2) Mini breadboard  $5

3) Arduino Uno  $30

4) Solid core wire  $2.50
- For anything involving breadboarding, do yourself a favor and stay away from any stranded wire. It will just end up getting frayed and hard to manage. Solid core is the way to go. I also like to choose at least two different colors for my wire to keep grounds and powers visibly separate. It makes troubleshooting and wiring easier in the long run when dealing with a lot of components.

5) USB A to B cable  $4
- This will be used to upload your Arduino LED code to the Arduino Uno board

6) Wire cutter/stripper $5
7) Parallax Sound Impact Sensor $10

8) Wall Adapter Power Supply - 9VDC 650mA $6

Total cost will be a bout $80 but keep in mind, all of these components are completely reusable. You can recycle them into a multitude of projects in the future so try not to worry about the cost. Think of it as building up your technical tool box :)
<p>i forgot to mention that my pixle strip has three in stead of two so how do i connect it</p>
<p>Hi, I have a 12V LED strip and it has the two wires (positive/negative) however the LED will not light up when it is all powered up (as the arduino won't output that much power I believe) Can someone tell me what I need to do to fix this? everything else works perfectly. Many thanks.</p>
<p>Off the top of my head:</p><p>- Use external 12V supply for strip.</p><p>- Use relay to control external supply.</p>
<p>Any suggestion on a specific type of relay I can use on this? Thanks.</p>
<p>What voltage of LED strip is appropriate for connecting direct to the board as shown in this tutorial? I guess 12V is too high.........</p>
<p>How can I connect my RGB LED strip (128leds/2m) to that (has 4 wires instead of 2) ????</p>
<p>i love it but i have a programmable pixel strip could i have some help with this</p>
Hi I'm trying to make a similar idea using a neopixel ring, but I would like the LEDs to fade on and off in a much more subtle way responding to the music, with the idea that it would be relaxing to watch! Would this circuit be a good start? Any tips would be appreciated, thanks!
<p>Hello,<br>Great tutorial.<br>I am trying to make it, but my led strip won't go on. Everything is hooked up right, but the led strip doesn't light up.<br>What could be the problem? I hope that anyone can help me out.</p>
<p>have you tried in stalling the pixle strip</p>
<p>is the voltage right? plus double check everything and try to do exactly as it is in the steps if its your first time.</p>
good project man! i made it but with a relay because I have a rgb led strip <br>good project
<p>Hey I am new and wanting to do a rgb setup also, Why did you set up the rgb with a relay?</p>
I try to get 2 type output from my one arduino uno. I upload 2 types sketch, but i can't able....so anyone is help me out....from this
<p>Hi there I'm really new to this, first time using a breadboard let alone an Arduino and I think I understand everything but would like to know if someone can help me please? I have the RGB led strip and understand I need Transistors. Please can someone show me how to wire everything up to the breadboard? Thanks!</p>
<p>Works great! gonna be throwing so many parties now lol</p>
<p>Hello! I am making a cyberman helmet so that when I speak the mouthlight comes on (3-4 neopixels) and when im donw it is off. Is this what that is? Thanks</p>
<p>I made it with arduino pro mini, thanks!!! :3</p>
<p>so my led strip needs a minimum of 8 volts to light up how do i do that with my arduino? still using v in an pin 9. i want to change the code as little as possible. any suggestions?</p>
use transistor to copy the signals from the arduino using a higher voltage source
<p>If I know there should be resistors....</p>
<p>Sorry, I mean Transistors.</p>
<p>like this?</p>
<p>Late response but thanks man this helps a lot!</p>
<p>The LED strip has red and black wires coming out of both ends. I popped the one end into the breadboard like the simple single LED, but what do I do with the other end? </p>
<p>Other end doesn't need anything! It works now!</p>
<p>How to do this on Rasberry Pi2 </p>
<p>I want to use my pcs psu to power this. Would this need to be modified in any way to use a 12v supply? If so how?</p>
<p>I did a very simple test, and included the suggestions from JensC to reverse the lighting effect, and to keep them on a dim setting. to test, I just blew softly - the dogs wouldn't bark on command. This is a lovely Instructable - easy, but teaches some very nice basics.</p>
<p>I made a very basic version of this. I didn't buy an LED strip because I wanted to test it out first. My best recommendation is to not cut corners. The sound sensor is not the same one that is used in the instructions. I found it on Amazon for about 8 dollars (plus it had Prime shipping and I was being impatient). While it technically *works*, the decibel threshold is set much higher than I would like, even with the most sensitive setting. This meant that it would not pick up ambient sound easily and it would only work effectively if I placed the sensor directly next to my speaker.<br><br>Otherwise, great project, especially if you're new to arduino. One thing I did was swap the LED brightness values (the analogWrite(LEDstrip, 255) portion of the code). As the author previously mentioned, 255 means &quot;off&quot; and 0 means &quot;on&quot;. I wanted the lights to pulse when the sensor sent 1, so I had the &quot;if&quot; statement write 0 and the &quot;else&quot; statement write 255. I also lowered the &quot;off&quot; value to 250 so that the bulbs are always a bit dim, even if no music is playing.<br><br>Another thing you can play around with is the delay() value. This essentially will tell the bulb how many milliseconds it should remain off (or on depending on how you set the analogWrite() values). I lowered mine from 10 to 2 and noticed a very slight improvement on how it reacts to the music, however, 10 will probably be ideal in most cases.</p><p>Very cool project and great idea for parties! I will definitely have to pick up the better sensor and the LED light strip. I have a beer pong table that I would love to mount this under :-)</p>
<p>excellent observations, very helpful to aid in launching off from the basics.</p>
<p>I used a RGB strip and needed transistors as well.</p><p>The code is</p><p>//hyperhitesh.hol.es</p><p>#define LEDstrip 6</p><p>#define LED2 5</p><p>void setup()</p><p>{</p><p> pinMode(8,INPUT);</p><p> pinMode(LEDstrip, OUTPUT);</p><p> pinMode(LED2, OUTPUT);</p><p>}</p><p>//this function will make the LED dim once the Parallax Sound Impact Sensor sends a 1 signal, and then return to it&rsquo;s original brightness.</p><p>void loop()</p><p>{</p><p> boolean soundstate = digitalRead(8);</p><p> if (soundstate == 1) {</p><p> digitalWrite(LEDstrip, HIGH);</p><p> digitalWrite(LED2, LOW);</p><p> delay(100);</p><p> }</p><p> else{</p><p> digitalWrite(LEDstrip, LOW);</p><p> digitalWrite(LED2, HIGH);</p><p> delay(100);</p><p> }</p><p>}</p><p>LEDstrip is green</p><p>LED2 is blue. Just used 2 colours.</p>
<p>What should the code look like if I am using a 5V arduino microphone (http://www.amazon.com/Adafruit-Electret-Microphone-Amplifier-Adjustable/dp/B00K9M6S1O?ie=UTF8&amp;psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o03_s00) instead of a parallax sound impact sensor?</p>
<p>Hello sir, I am a student who's attempting to make your project here, in school, and i would like to know what cables did u use to connect the sensor to the arduino, was it female/male right?</p><p>If you have a more explainned video that you could send me i would appreciate it alot! </p><p>Thank you, Jo&atilde;o.</p>
<p>I love this! Do you know how one would connect the LED wireless. Ideally I wuold like to control something like this from my Phillips Hue controller. </p>
i have a sensor that has 4 pins, GND, +VE, AI , DI<br>and has a completely different pot <br>the problem now arises is that im unable to use it after a couple of runs :(<br><br>this was my first arduino project. perhaps arduino is not for me :'(
<p>Can I use any of the cheap ebay sound sensors in the same way?</p>
<p>As long as it has power, ground, and a signal/output pin, it should work. Be wary though... the same thought went through my head and I found one for 8 bucks on amazon (http://www.amazon.com/gp/product/B00AF2GB1U?psc=1&amp;redirect=true&amp;ref_=oh_aui_detailpage_o00_s00) and, while it works, it only is effective for extremely loud noises. I basically had to put the sensor right next to my speaker in order for it to work effectively. I would recommend just getting the sensor that is in the description and not cut corners.</p>
<p>what if i use an audio input jack instead of the sensor? will the circuit work?</p>
<p>did it work?how do you connect the jack to the circuit?simply replace the sensor with it?i need to do this because i cant find the sensor anywhere</p>
Say I wanted to use this set of RGB LED strip <br>http://pages.ebay.com/link/?nav=item.view&amp;alt=web&amp;id=291120524106 <br><br>How would I set everything up?
<p>like this probably :)</p>
<p>and the code:<br>//abbas-akhtar</p><p>#define REDPIN 5 </p><p>#define GREENPIN 6</p><p>#define BLUEPIN 3</p><p>int redNow;</p><p>int blueNow;</p><p>int greenNow;</p><p>int redNew;</p><p>int blueNew;</p><p>int greenNew;</p><p>void setup()</p><p>{</p><p> pinMode(7,INPUT); //SIG of the Parallax Sound Impact Sensor connected to Digital Pin 7</p><p> pinMode(REDPIN, OUTPUT);</p><p> pinMode(GREENPIN, OUTPUT);</p><p> pinMode(BLUEPIN, OUTPUT);</p><p> redNow = random(255);</p><p> blueNow = random(255);</p><p> greenNow = random(255);</p><p> redNew = redNow;</p><p> blueNew = blueNow;</p><p> greenNew = greenNow;</p><p>}</p><p>#define fade(x,y) if (x&gt;y) x--; else if (x&lt;y) x++;</p><p>void loop()</p><p>{</p><p> boolean soundstate = digitalRead(7);</p><p> if (soundstate == 1) {</p><p> analogWrite(BLUEPIN, blueNow);</p><p> analogWrite(REDPIN, redNow);</p><p> analogWrite(GREENPIN, greenNow);</p><p> redNew = random(255);</p><p> blueNew = random(255);</p><p> greenNew = random(255);</p><p> // fade to new colors</p><p> while ((redNow != redNew) ||</p><p> (blueNow != blueNew) ||</p><p> (greenNow != greenNew))</p><p> {</p><p> fade(redNow,redNew)</p><p> fade(blueNow,blueNew)</p><p> fade(greenNow,greenNew)</p><p> analogWrite(BLUEPIN, blueNow);</p><p> analogWrite(REDPIN, redNow);</p><p> analogWrite(GREENPIN, greenNow);</p><p> delay(1);</p><p> }</p><p> }</p><p> else{</p><p> digitalWrite(REDPIN,0);</p><p> digitalWrite(GREENPIN,0);</p><p> digitalWrite(BLUEPIN,0);</p><p> }</p><p>}</p>
<p>This is an awesome project. Could this work with guitar amplifiers? They can be quite loud. Would this over load the mic and cause problems, or is it just a matter of adjusting the arduino in the code?</p>
<p>I'd say it would work with a guitar amp. You would just adjust the dial on the sound sensor to be less sensitive. The arduino code doesn't have anything to do with the sensitivity of the sensor. As for your other question, you use the breadboard to connect different pieces of electronics. It isn't necessary if you want to solder everything together, but it simplifies things and makes it very easy to change things around.</p>
<p>Also, how does the breadboard come into use in this design? I'm not sure I understand why you'd use it</p>
great i'ble for hsing arduino and LED strips
<p>would this component work on this project? http://www.banggood.com/Sound-Sensor-Detection-Module-LM393-Chip-Electret-Microphone-p-929245.html</p>
<p>As long as you're passing a high signal to the same input on the board it should turn on. (You could make it a constant high to keep the lights on, or light LEDs with motion/distance/light)</p>
<p>Would a fairly loud bass system interfere with the sound response?</p>

About This Instructable




More by GraziCNU:Motion Activated LEDs Sound Reactive LED Strip Turning your Raspberry Pi into a personal web server 
Add instructable to: