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

Blinking leds
«
  • 14.jpg
  • 1.jpg
Listening to music on my pc (proudly using WINAMP), I was wondering how would be to have some leds blinking with the sound that came out from the P2 connector, so I decided to make a simple circuit to do that. It worked pretty fine, so I decided to write a HowTo telling step-by-step how to do it. Hope you enjoy it!

If you want to see more of my DIY projects, please, visit my website:
Daniel Spillere Andrade Website

Material and Equipment:

1. 4 LEDs (any collor)
2. P2 plug
3. 2 position switch
4. TIP31 component
5. Box to put all the stuff (if you want)
6. Soldering iron and accessories
7. Cable

Video of the final project:

 
Remove these adsRemove these ads by Signing Up
 

Step 1Step 1

Step 1
This project will work this way, you connect 4 leds in the +12V from your computer, they are soldered to a 2 position switch that will connect to a component called TIP31, this component gets the intensity transmitted by the P2 connector, and with that, makes the leds blink with the music.



You can follow this scheme:
« Previous StepDownload PDFView All StepsNext Step »
189 comments
1-40 of 189next »
Apr 18, 2011. 2:52 AMvishal17 says:
hi everyone
which transistor can i use other than tip 31?
please answer me fast :)
May 27, 2012. 8:35 PMdjbogdy43 says:
BD135,BD137 and BD139! :D
Apr 30, 2012. 11:43 AMaudio_mod says:
Sorry, can't help anyone below; i am a noob.

I made this and it works - so thanks for an entertaining weekend, but today i am noticing feedback through the speakers when the led are at their max. Any ideas? A bad ground somewhere?
I am using a headphone splitter and i am powering 12 leds from a 12v supply. I put the extra led's in parallel; i figured the power pack was fine, didn't think about the tip31. Am going to blow myself up or worse my speakers? Thanks if ya can help. Alternatively what would i need to put in the circuit to prevent feedback up the P2 connector. :)
Apr 5, 2012. 8:06 PMsin3kveer says:
Hello, I want add 11 White leds in circuit for blink.... tell which transistor i have to use. i am 32 DC power suppy. please answer fast....
Oct 12, 2011. 5:22 PMwhayle says:
Hey guys if you want free LEDs go here and sign up free: http://www.points2shop.com/?ref=uin1270958834
All you have to do is sign up, earn points by playing games and doing offers, and get your free rewards. It is actually super easy. You also get $2.50 just for signing up. You can also get free transistors and circuit boards.
Mar 2, 2010. 9:09 PMEpimetheus says:
 Hey guys having a little bit of trouble here. I had this wired up temporarily last week and it worked great! I went to solder it all together today with more LEDs and it didn't work. It would switch on but when I flipped it to the other side nothing happened. I checked the wiring about four times and found nothing wrong, but I went to measure the P2 connection and it wasn't putting out any voltage. Yes it was plugged in, the volume was up, the multimeter was functioning properly and set to DC -- minimal to no voltage on the wires, sound on/off doesn't affect voltage. So I go to cut up another 3.5mm cable, same thing. But when I put the bare wires on the jack of headphones, the sound kicks in? This is not making any sense to me! I'm so lost on this one guys..
Aug 25, 2011. 3:00 PMabsalam says:
Try changing the TIP31...i blew mine once and had the similar problem as yours.
Jul 19, 2011. 9:08 AMTheMrWolf1994 says:
Can I wire together both wires from right and left speaker in one wire to the transistor? Will it be then stronger current through the tip31 and later through the LED's, cause i need a liitle bit stronger current cause my LED's are not blinkinkg so bright..thanx in advice
Aug 18, 2009. 4:56 AMdeko69 says:
Hi! I did this mod and it's great. but I want to improve it a little more. I would like to hook up a cold cathode instead of these four leds for more light but the cathode isn't responding to music(won't light up). the cathode requires 12V and the input is 12V (same as leds) but I'm afraid that the current which is flowing trough tip31 isn't enough to light up the cathode Am I right? or what am I doing worong? Is there a way to add other component to make it work? I connected it to the circuit before inverter. should it be after inverter? but I'm afraitd if it won't damage the cathode when I do it that way. please take a look at the picture. any help appreciated
Jul 3, 2011. 5:20 PMRhamkota says:
Most likely the cold cathode can't respond fast enough to the current change, it most likely requires a quarter of a second to warm up, same with with the inverter
Apr 29, 2011. 11:47 AMaroman3 says:
man i have done that before ..... just like you show here , it is working ok ... ;)
Nov 6, 2009. 10:11 AMpyro-jim says:
what is the inverter for? If the cathode take 12v and you are using 12v then why do you need an inverter? Do you mean that the inverter allows the cathode to use 12v? Otherwise I doubt it should be there.
Feb 26, 2010. 5:10 PMArbitror says:
*Sigh*

Inverters change direct current to alternating current, which is what cold cathode lights need.
Apr 3, 2010. 8:17 PMSmAsH! says:
They also step it up to something like 500v low A, i did the cc mod at home and it works fine...
Mar 27, 2010. 9:21 PMyahya2coool says:
 if tip 31 is not available then which other transistors can b used? plz help 
Apr 29, 2011. 11:46 AMaroman3 says:
i am using bd239c i think it is even better :DD
May 3, 2010. 5:12 PMDRodriguez says:
Here's a great deal on them: 10 for like $3.50 ea.
Ebay
Apr 3, 2010. 8:15 PMSmAsH! says:
Almost any npn transistor will work.
Apr 29, 2011. 11:42 AMaroman3 says:
http://www.youtube.com/watch?v=CxqjW6jItMI
Look my video i have made manyy circuits /w leds and cold cathodes ask me everything in the comments on my channel
Jan 6, 2011. 1:40 AMchandeepa says:
cooooool case mod bro.....
Oct 26, 2010. 7:59 PMBisjon says:
Hi, I was just wondering what "P2" is. I cut the wire from my ipod headphones, but I'm guessing that isn't it because it doesn't work.
Nov 26, 2010. 2:26 PMzack247 says:
P2 is a power connector, the plug from your ipods headphones inputs the music into the leds.

look for it (it doesn't have to say "P2" on it. any regular power connector will work) coming out of your power supply
Dec 6, 2008. 2:28 PMmark catapang says:
how cn i add more leds? do i need another tip31? cn u show me a schematic diagram? please response..tnx
Aug 18, 2009. 5:03 AMdeko69 says:
parallel connection
Apr 7, 2010. 8:53 AManura92 says:
Hey... i tried it and it only works when i set the volume knob of my speaker(altec lansing headphone jack) to the highest.... the led i am using was salvaged from a pc fan...
So do i have to change the transistor or change my led to the right voltage ones? Psl help me :( 
Jun 7, 2010. 11:02 AMST4N13Y says:
could i use TIP33 ???? ....and....what i need to change in this scheme if i want to ude 9volt battery ??? thank you very much
Aug 12, 2010. 10:28 AMAlgag says:
add a resistor to the leds or take off an led because they are wired as suck there is a 3v drop (they are 3v each) across each LED so four is the max it could hold BUT if you used 1.5v leds and a 9v battery you could put on 6 leds in that pattern
Mar 13, 2009. 8:55 PMsharkawien says:
where is the P2 connected??
Aug 18, 2009. 5:02 AMdeko69 says:
to music output from your computer,ipod etc
Jun 15, 2010. 10:36 PMbmxlive says:
i set to max the master volumen & wave level on audio pc control then i plug my p2 to my computer output but the signal in too weak to turn on the led, i plug an earphone and it was working... So i was wondering if the signal of the pc isn´t strong enough to make my circuit works... please help me
Jul 11, 2010. 3:32 AMfunnyman953 says:
instead of a 3.5 mm jack can i put a mini micrphone instead cause i will connect it to my power supply's molex connector and will i need a resister if i do use my power supply's molex connector
Jul 16, 2008. 12:41 PMkishansukumar says:
wud a tip32 work insted of a tip31? does it make a diffrence?
May 22, 2010. 6:03 AMAlgag says:
 tip32 is pnp not npn
Apr 7, 2010. 6:58 PMg0tmk says:
Hi, I have a bit of a problem with mine.  I set mine up as kind of a pass-through, you plug a jack into the box and the box into speakers.  When I plug speakers into it though, it stops strobing.  How do I manage to get enough power through the transistor to strobe while it is still hooked to speakers?   I am using a 2n7000.  Thanks!
May 22, 2010. 5:58 AMAlgag says:
 this is an addition to my comment below...be carful though cause it would need a power souce too
May 22, 2010. 5:54 AMAlgag says:
 you could probably just add an amplifier circuit (two bucks)
Apr 24, 2010. 2:07 PMhape0 says:
if i want to plug it into the electric power of a house, what i have to change??
May 3, 2010. 5:09 PMDRodriguez says:
You would need to use a 'wall wart' rated for twelve volts, cut off the plug on the end, find the polarity with your multimeter, and connect it that way.
Mar 28, 2010. 12:13 AMyahya2coool says:
 can i use d313 other than tip 31
Mar 10, 2010. 6:52 PMlaptaper says:
help me please.. cant get my light to flash.. im using tip31c.. please help me with this..
1-40 of 189next »

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!
4
Followers
3
Author:pasteler0