+ Reply to Thread
Page 1 of 4
1 2 3 4 Last
Results 1 to 15 of 54

Thread: LEDs Sync To Music

  1. #1
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default LEDs Sync To Music

    I want to sync LEDs to music through the audio jack. There was this tutorial I and I could not figure it out. It involved a TIP31, switch, power, LEDs, and a audio jack. I have pics, but i need someone to tell me whats wrong.

    I have 3 LEDs, Yellow, 3v 20 mA
    TIP31
    2 Way Switch
    9v Battery
    Audio Jack Input

    Would this work or is there an easier way. Because I tried and it didn't work.
    Please Help!!


  2. #2
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    Sketch the schematic in MS Paint or something and attach it.
    Uncle $crooge

  3. #3
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default

    Thats what i think it should look like...but i tried that and when I plug it into the jack it doesnt do anything..????



    Name:  thingu.bmp
Views: 1493
Size:  439.7 KB

  4. #4
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    If the jack was from the output of a power amplifier then you are lucky that the amplifier or the TIP31 didn't blow up!
    If the jack was from the output of an MP3 player then the signal voltage is too low to turn on the transistor.

    1) The base of a transistor needs a current limiting resistor in series, and a diode to prevent too much reverse voltage.
    2) LEDs need a current limiting resistor in series.
    3) Why does your switch have 3 wires?
    4) Your LEDs are not in series.
    5) You don't show the polarity of the battery nor of the LEDs.
    Uncle $crooge

  5. #5
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    I see what you have done with the wiring:
    You have the 3 LEDs in parallel and the switch connects either the transistor to them or connects them directly to the battery.
    So the switch connected the 3V LEDs to the 9V battery and since they don't have current limiting resistors then they instantly burned out!
    Uncle $crooge

  6. #6
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default

    Thanks for the information, but is it possible to draw me some schmatics of the new circuit?

    I kinda want it simple, so if possible you can help me out with this, I'd greatly appreciate it.
    This is what it looks like, if u can see it. And my audio jack.

    Name:  cap0038.bmp
Views: 1454
Size:  225.1 KB
    Name:  cap0031.bmp
Views: 1441
Size:  225.1 KB
    Attached Images
    Last edited by FreeTrial; 7th June 2006 at 04:46 AM.

  7. #7
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    I can't see what connects to what in your fuzzy pics.
    1) The battery and LEDs polarities are not shown.
    2) You don't say if the input to the jack is about 10V from a power amp to a speaker, or just 0.1V from a CD or MP3 player, which makes a huge difference in the design.
    3) No current limiting resistors are in your circuit.
    Uncle $crooge

  8. #8
    Blueteeth Good Blueteeth Good Blueteeth Good
    Join Date
    Oct 2003
    Location
    Hertfordshire, UK
    Posts
    691

    Default maybe too simple?

    Hi,

    From the looks of those pics, these guys have made all the points I was going to make....simply connecting up an audio source to the base of a transisitor used to switch LED's may in fact work, but its a very crude way of doing things.
    Audio source may blow your transistor...or not provide enough voltage for it (0.6 usually). And connecting LED's without any form of current limiting resistor will make em heat up, if not blow instantly (depending on your power source). LED's also have a voltage requirement...if you've got 3 1.8V LED in series...you need at least 3*1.8 = 5.4V to get them to light up.

    Also, it leaves no room for improvements..like having a different colour LED for bass, middle and treble.

    It might be a good idea to use a single stage opamp, setup as a comparator (or..a comparator for that matter ) that way you could add a potentiometer to adjust the 'sensitivity' so that your LED's flash nicely in time with the music. I would also add a diode on the input, along with a zener diode to protect your circuit against massive signal peaks (10v+).

    Try google for 'clipping detector'. Its a circuit used to indicate when a signal input is too large, and needs attenuating. It turns on an LED when the input goes over a certain level (user adjustable). I think it does exactly what you are after.

    An alternative, but still, very simple solution would be using logic...like a 74HC04 inverter or two. These inverters are quite handy for simple switching solutions and theres plenty of schematics on the net, using feedback resistors to change the sensitivity, add hysteresis. BOTH of the above solutions would probably need a power transistor for driving the LED's. It might not be necessary for a few LED's, but it'll allow you to connect more in the future, or higher current (brighter) LED's.

    Its all about how simple, or complicated you would like to make it. Obviously simple is better (and cheaper) but I wouldn't go too simple or you'll be facing reliability issues.

    My two pence.

    Blueteeth.
    Inconsistency is the key to flexibility!

  9. #9
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    People say that this circuit works well. It stretches the pulse width to make the LED more visible.
    Use it with the line level or headphone output of a CD or MP3 player. It might blow up with an output of a power amplifier unless an attenuator is added to the input.
    Attached Images
    Uncle $crooge

  10. #10
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default

    I appreciate all the help, it just the number of posts say exactly what I am, an electronics newby. I understand some of what your saying, but Im trying to stick the easiest way. When i saw a tutorial for this, this is what he used. I couldnt get mine to work though.

    http://www.ovelha.org/pasteler0/2005...blinking-leds/
    LEDs Sync To Music-70733363_7bc5873491_o.jpg

    Id like mine to work with MP3 and through my computer speakers.
    Thanks.

  11. #11
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    The author of that terrible circuit doesn't know anything about electronics. Him and a few other people blew-up their TIP31 transistors and LEDs because the circuit doesn't have current-limiting resistors for the transistor and for the LEDs.
    One guy says it works then stops. After a while it works again. I think his sound card heats up then stops because the transistor is like a short when it doesn't have a current-limiting resistor. He is lucky that the sound card stops when it gets too hot.
    Many people complain that the LEDs don't light when the music is not loud because of the transistor's required turn-on voltage.
    Uncle $crooge

  12. #12
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default

    so what your saying is that your circuit is the easiest/most realiable one to do?

  13. #13
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    Try it and you'll like it.
    Later I will show how to add a microphone to it so it is wireless.

    I have a project with 20 LEDs in a bar-graph. It is sensitive enough to indicate a pin dropping on the floor on the other side of a room. It has a microphone and a rechargable battery. It flashes to the beat really well.
    Attached Images
    Uncle $crooge

  14. #14
    FreeTrial Newbie
    Join Date
    May 2006
    Posts
    13

    Default

    Ok ill try your circuit see how it goes..
    Can you make a list of the materials, so i make sure I get this right.
    I want like 3-4 LEDs and we'll say 2.1v LEDs.
    ANd hopefully radioshack has all this..

    And explain those teal lines and x's...
    thanks

  15. #15
    audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent audioguru Excellent
    Join Date
    Mar 2004
    Location
    Canada, of course!
    Posts
    19,854

    Default

    Quote Originally Posted by FreeTrial
    Can you make a list of the materials, so i make sure I get this right.
    It has only a few parts, you can make a list.

    I want like 3-4 LEDs and we'll say 2.1v LEDs.
    Then each LED needs a 180 ohm resistor in series with it, as shown in my circuit by the 220 ohm resistor. Use 1000uF instead of 220uF for 3 or 4 LEDs with resistors. Use a 1N4001 diode instead of the one I have shown.

    And explain those teal lines and x's...
    Stripboard has parallel copper tracks on it and is perforated. The lines are the tracks and the x's are where the track is cut with a drill bit. Stripboard is like a pcb where half the wiring is already done for you.
    Uncle $crooge

+ Reply to Thread
Page 1 of 4
1 2 3 4 Last

Tags for this Thread