Re: Resistor on LED necessary?




"realexander" <realexander@xxxxxxxxxxxxx> wrote in message
news:1165372664.088851.134890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

Of course, everywhere I see a circuit with an LED, there's a current
limiting resistor. But I'm wondering if, in my case, it's necessary.

I have an eight digit multiplexed display, using 14 segment LEDs. A PIC
selects the digit and turns on its common anode through an NPN
transistor (and I also don't have a resistor between the PIC and the
transistor's base). The transistor's collector is at +5 with no current
limiting resistor. The PIC selects the individual segments within a
digit by having its I/O lines tied to the cathodes and setting the
output to 0 to turn on the segment. There's no resistor on the cathodes
or the anodes.

Everything seems to work great; the LEDs light at a reasonable
brightness (though there's some variation in the brightness - I learned
too late why I should've bought common cathode LEDs instead of common
anode). If I put in current limiting resistors of 220 ohms, the LEDs
are dimmer than I'd like (remember that the display is multiplexed, so
each digit is off 7/8 of the time, or more if I use PWM to dim the LEDs
in a dark room).

Is this a "safe" configuration? Can I get away with no resistors since
each LED is off most of the time? What about the PIC - the LEDs might
be off most of the time, but some of the PIC's I/O lines are
potentially sinking current all the time. Am I going to eventually fry
my LEDs, PIC, or both?

Thanks,
Bob Alexander


PICs have some (most?) outputs designed to drive LED loads, and maximum
current is specified as 25 mA. The low output is typically about 0.5 V at
this current, and the high voltage is about 2.5 V, so if the LED segments
drop about 2 volts, you will not exceed the rating of the PIC or the LED.

You can drive the LED segments with up to about 100 mA in a multiplexed
display, so the average current is only 100/8 or 12 mA. Using resistors and
higher current driver transistors for the digit and segments will give you
a brighter and more consistent display. Without resistors the segment
current will vary depending on temperature of the PIC's MOSFET outputs as
well as the tempco of the LED itself, and also how many segments are on for
each digit. What you have is probably OK (safe) for a hobby application but
not for any product you want to produce.

Paul


.



Relevant Pages

  • Re: Cant get enough current for 1W Luexon LED even without resistor
    ... resistor but still only about 100ma current. ... want to be thinking in terms of voltage. ... life from any high power LED, is to pulse drive it. ... The level of these that some high power LEDs can ...
    (sci.electronics.repair)
  • Re: Cant get enough current for 1W Luexon LED even without resistor
    ... Then I tried without the resistor but ... the LED I have to raise the voltage to about 11V and of course I ... LEDs for a long time, and never suffered a problem with a switch-on ... max forward current quoted in specs, is for a short duration pulse. ...
    (sci.electronics.repair)
  • Resistors for LEDs: the real answer
    ... First of all, while non-electronics types refer to the resistor in this use as a "dropping resistor", that's not really technically accurate: whats actually going on is that you're making a voltage divider network with a resistor in series with the LED. ... By putting a resistor in series with the LED, you're dividing the 24 volts between the resistor and the LED, because the whole idea is to make sure that the LED doesn't get too many volts and blow. ... Turning to my handy-dandy Jameco catalog, it appears that most garden-variety LEDs are rated at about 2 volts, some more, some less: close enough to be no never mind. ...
    (rec.models.railroad)
  • Re: Resistors for LEDs: the real answer
    ... while non-electronics types refer to the resistor in this ... whats actually going on is that you're making a voltage divider network ... Obviously, if you just put the poor LED across the 24 volts, ... the great majority of LEDs are rated at 20 mA; ...
    (rec.models.railroad)
  • Re: Right resistor for high power LED for sound reader?
    ... I'm a projectionist in a movie theater. ... >>>The soundtrack runs along one side of the film, ... what kind of resistor would I use to get this LED to work? ... The chips in these LEDs have a nonlinearity, ...
    (sci.electronics.basics)