Shop OBEX P1 Docs P2 Docs Learn Events
Driving Multiple LEDs from a transistor — Parallax Forums

Driving Multiple LEDs from a transistor

ZootZoot Posts: 2,227
edited 2007-01-15 15:17 in General Discussion
I want to drive 4 or 5 LEDs (@ ~17ma each) from a transistor.

I wired up one LED to a transistor and a micro pin following the attached schematic (which has been reproduced many places in these forums).

So... if I wanted to hook up several LEDs, can I tie the cathode of all of them to the transistor and the anode of each to Vdd through it's own limiting resistor? Or would I need a transistor for each (I would think not, since the 2N3904s I have on hand should be able to handle up to 100ma).

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
314 x 378 - 6K

Comments

  • MikeKMikeK Posts: 118
    edited 2007-01-15 01:40
    Depending on Vdd, the forward voltage drops of the LEDs and the Vce of the transistor, you can put more than one diode in series with each resistor. You'd use a smaller resistor than you would with only one LED. The advantage is that you're using the power that would have been dissipated as heat by the resistor to light an LED instead. You still only need one transistor. Don't put LEDs directly in parallel. It isn't a good idea, no matter what some web sites say.

    Mike
  • Mr. RichardMr. Richard Posts: 51
    edited 2007-01-15 11:15
    Just my inexperience, but why do you want to avoid parallel LEDs?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Magic Smoke Theory of Electronics –
    Inside every electronic part there is magic smoke.
    The magic smoke is what makes everything work.
    If you release the magic smoke, the part stops working!
  • BeanBean Posts: 8,129
    edited 2007-01-15 12:52
    Mr. Richard said...
    Just my inexperience, but why do you want to avoid parallel LEDs?

    Because each LED will have a slightly different forward voltage drop. So what happens is much more current flows through the LED with the lowest voltage drop, and very little flow through the LED with the greatest voltage drop. Of course this results in very uneven LED lighting, and can damage the LEDs (because one LED is carrying a much larger portion of the total current).

    It okay to parallel them if each LED has it's own dropping resistor.


    Bean.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1

    "USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
  • ZootZoot Posts: 2,227
    edited 2007-01-15 15:17
    Thanks all. I wired up my LED banks -- each with it's own limiting resistor. Nice and bright! Dang, transistors are cool.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST
Sign In or Register to comment.