3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Blinking LEDs to Music

Blinking LEDs to Music
«
  • Instructables_Flasher 015.jpg
  • schematic 1.JPG
This is a fairly simple project for anyone with some electronic skills.
Plug this circuit into an audio source and the LEDs will blink to the rhythm of the music. All it is really is using the voltage from the audio input to activate a transistor and turn on the LEDs.
This is circuit is very customizable. The setup of the lights is really up to you. The main thing to consider when choosing layout for the LEDs is your audio source and the power supply you will be using.
For this particular one I choose to make it run off a 9v battery and use an IPod for input.

 
Remove these adsRemove these ads by Signing Up
 

Step 1What You Need

What You Need
«
  • TIP31.jpg
  • 421px-LED_label.jpg
Depending on the configuration of you setup you may need to modify the number of parts below.
Parts:
Superbright LEDs, the number and color is up to you (I used 4 blue ones).
2 x TIP 31 NPN Transistor, the heart of the project.
Audio cord (a headphone cord will do or just an 1/8 inch jack)
case (I used a spare thick cardboard box)
9v battery clip (or the power supply you are using)

Tools:
Soldering iron
Wire cutters/Strippers

« Previous StepDownload PDFView All StepsNext Step »
193 comments
1-40 of 193next »
May 10, 2012. 10:54 PMbunso says:
can it use any players? like chine mp4 or mp3?
Apr 19, 2012. 1:29 PMARJOON says:
can i add a pot at the gate of each transistor to adjust sensitivity?
Apr 19, 2012. 1:28 PMARJOON says:
better use LED strips and a 12V power supply
Apr 11, 2012. 8:41 AMalastairflindall says:
Hey, I want to buy what you've made, I'm awful at making these things, no patience and I'm afraid that it wouldn't pass the PAT test at my university, and it needs to be finished for 3 weeks time. Is there any chance you know where I can get this or in fact buy yours?
Apr 5, 2012. 8:35 PMsin3kveer says:
My plan
11 LED
32V DC power supply
so need of registor..
I had placed LEDs on a plastic stripe accurately.
Did i use Transistor. TIP31 for this circuit
Mar 1, 2012. 9:06 PMpete54321 says:
Hey guys. Great tutorial. I just bought a 5 meter strip off eBay with 300 LEDs in it. Would it be possible to hook that many up to this? If so what sort of stuff would I need? I plan to plug it into my receivers audio output, which is already hooked up with circuit breakers and resistors so I don't think that they'll be nessesseary.
Any help is appreciated!
Thanks everyone :)
Feb 26, 2011. 8:26 PMmegadethfan3000 says:
I need to know, would such a circuit be functional (See picture below) Considering this is supposed to be 6 LEDs for left and 6 LEDs for right, would it actually work?

Thanks in advance for any helpful advice :)
Jan 25, 2012. 4:58 AMcowarrior says:
hey what is that object which is joined with tip31 transistor?
Jan 25, 2012. 3:13 PMmegadethfan3000 says:
the 9volt battery?
Jan 29, 2012. 8:56 AMcowarrior says:
you must have used resistors for this experiment. The diagram above is not an ideal one..but it was a good try..
Feb 28, 2011. 6:48 AMmegadethfan3000 says:
It does, tried it, works great...
Aug 15, 2011. 2:14 AMAnoopsingh50 says:
Hey i made this just like the guide said but my LEDs are flashing but they are very dim.

Please help, thanks.
Jan 8, 2012. 10:43 AMsamalert says:
my leds are also flashing so dim its jst ridiculous to see those of mine also my left and right set of leds blink the same is there a way i did wrong
Jan 25, 2012. 5:01 AMcowarrior says:
i think its because of the low voltage battery/power supply/adapter/transformer...
Sep 27, 2011. 1:43 PMScratch17 says:
Is there a way to alter this circuit to force a current through the LEDs to keep them at a dim light level, then they grow brighter as sound is introduced, instead of going from off to bright?
Dec 6, 2011. 3:10 AMbobdan says:
One way to do it is put a bypass resistor across the collector and emitter. I ran a circuit simulation with a 2N2222A npn, two diodes in parallel(unlike his in series), and the two resistors. The R(emitter) was around 80 ohms and R(collector to ground) was about 500 ohms. It allows normal current flow while there is a signal on the base, and cuts the current way down when there would be no sound. There are better ways of doing but it would take redesigning.
Aug 31, 2011. 4:02 AMdrobbins2 says:
Would be neat to use this with a mic and Musical Equipment
Aug 11, 2011. 8:30 PMredlizard5 says:
what about the ground cord from the headphone cord
Aug 8, 2011. 8:45 PMredlizard5 says:
can you use two diffeerent transistors
Jul 25, 2011. 1:40 PMtcarlson2 says:
The 7805 devices are +5V voltage regulators and cannot be used as a transistor. The tab is ground, one pin is an input (voltage greater than +5v) and the other will be a steady +5V output. Replace the 7805s with the proper transistors and it should work.
Jul 25, 2011. 1:36 PMtcarlson2 says:
Hot glue is okay unless you leave the box in a hot environment, like a car (car dash in particular). Then the glue will melt and parts will move. For hot environments, once everything is tested and working as desired, use epoxy to secure the LEDs, switch, etc. in the box.
Jul 25, 2011. 1:33 PMtcarlson2 says:
You have left/right reversed. A TSR connector usually has tip as the left channel, the middle as the right channel, and the bottom as ground. That is standard for the audio world.
Jul 24, 2011. 12:10 AMhsarode1 says:
Can we use any NPN Transistor.
Jul 14, 2011. 12:07 PMcjiménez4 says:
Ey thankyou, very good explanation.
Jul 2, 2011. 7:25 AMMichielB says:
Hi, great instructable, wow! ;) I'm planning to make something simular.

I added a picture of a schematic, will this work like this?

1) Can I use the BD243B in order of the TIP31?

2) I want 2 series of leds in parallel. One serie for the left audio channel and one for the right. With the pot I want to regulate the reaction of the leds when I turn the volume up or down. Is the correct place for it like in the picture, or has there to be one in the "Audio left" and "Audio right" line?

3) I also want to add a switch, to turn the LED's on without the audio-option. Where do I have to place it then?

Thanks in advance, and sorry for my bad english ;) I'm from Belgium.
Jun 16, 2011. 10:07 AMHola_Amigo says:
Will it work if I use TIP 107 transistors? or only TIP 31? because mine isn't lighting up at all.
Jun 9, 2011. 2:44 PMJONN123 says:
if only use 2 leds what kind of battery shoulg i use
Jun 2, 2011. 8:05 AMJedrokivich says:
Where did you get those transistors? Did you order them online?
Dec 19, 2010. 1:45 PMrawuol says:
so i tried to make the same thing. in my area no one stocks electronic components or at least none that Ive been able to track down. So I made the entire unit as described in the instructable. Soldier is tight. Connections solid. No shorts. All new components. My issue is when I turn the unit on, the lights come one and stay on, even when its not plugged into an audio jack. No blinking, just on. Nice and bright I may add.
So where may I have gone wrong?
I suspect 1 of 2 things...
1.The cable I used is ring/sleeve/tip, but came from a camcorder a\v cable. Thats a stereo 3.5mm to 2 rca jacks(yellow and black).
2. The transistors I used were the only ones on the shelves available. They are 3 pin voltage regulators: 7805 - +5VDC - 1A.
Aside from that I used 4 leds, a 9V, and a hobbie box.

Lemme know if you can help, thanks!
May 13, 2011. 7:28 PMpearhart says:
I know it might be a little late, but i had the same problem. If anything connected to the circuit touches the back of the transistor it can do that.

hope it helps
Jan 22, 2011. 8:31 AMBeduk says:
you require tip 31 transistors.You cannot use any other transistors.
Feb 15, 2011. 10:31 AMRoninVj says:
you can use similar NPN transistors if you connect with the right leads.
Mar 22, 2011. 5:44 PMjayeshshinai says:
HAHA my leds lighting up according to the music in ur video!! :D
Sep 10, 2010. 9:10 AMFatRider says:
Hi. Love your post and I want to do a similar thing.

Exept I don't have a 9V power supply but 12V.
What type of resistor or something like that i need to use?

Sorry my english and I'm new with this ^^
Mar 10, 2011. 7:51 PMaxeman911 says:
here's a link to one music leds in which it uses twelve volts-http://www.instructables.com/id/Music-LED-Light-Box/
Feb 27, 2011. 10:51 AMqwertz0 says:
volt / amper = Ohm
12=0.02 (20 mA/LED) =600 Ohm

600 Ohm MINIMUM!
Feb 28, 2011. 1:15 AMFatRider says:
600 Ohm for a single LED? or for the 4 Blue?

Thaks for the reply
Oct 28, 2010. 5:00 PMalex-sharetskiy says:
what color leds are you using?

how many of them are you using?
Feb 22, 2011. 6:23 AMFatRider says:
Probably 4 blue LED's, like yours, I'm hoping to install that on my computer using the 12v power supply.

Thank you in advance ^^
Feb 22, 2011. 2:23 PMalex-sharetskiy says:


You will have to wire them like this:

(+) (-)
<--(led)--(led)--(330 ohm)-->
<--(led)--(led)--(330 ohm)-->
1-40 of 193next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
20
Followers
1
Author:Tesla1138