Re: Driving a led without a series resistor (PWM technique)



On Tue, 29 Apr 2008 23:52:38 -0700 (PDT), zigbee@xxxxxxxxx wrote:

I'm designing a board where the microcontroller is supposed to drive
10 red leds and 4 optocouplers.

I would like to drive the leds and the opto's without a series
resistor using the PWM technique. I made some experiments and all
seems to work fine in the lab.

There are two related issues here:
1) Total GPIO output current
2) current limiting and heat dissipation

Most CPUs have a maximum current per pin, and a maximum
total current per port and chip. Driving 14 LEDs total
is likely to exceed this.

Regardless of whether you are using PWM or not, driving
the LEDs without a resistor will cause the GPIO pin to
current limit, the voltage will then not be Vcc or Vss
and there will be increased heat dissipation in the CPU.
The limiting current is not well defined.

Resistors and simple transistors are cheap, and will
improve reliability.

Stephen

--
Stephen Pelc, stephenXXX@xxxxxxxxxxxx
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads
.



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)