Page 2 of 2

Re: Controlling a led, pull up resistor value

Posted: Mon Nov 09, 2015 12:48 pm
by danicampora
While it may work, as a general rule NEVER drive a LED directly from a microcontroller port.
I was never suggesting that a series resistor was not needed. Normally I use something between 100 Ohm and 1K.

Re: Controlling a led, pull up resistor value

Posted: Mon Nov 09, 2015 3:22 pm
by blmorris
@bmarkus @danicampora:
bmarkus wrote:While it may work, as a general rule NEVER drive a LED directly from a microcontroller port.
My first thought on reading this was "wait a minute, why not? I've put something like 10K boards of various designs into production doing exactly that!"

Then I read the part about using a series resistor. Yes, always use a series resistor :lol:

-Bryan

Re: Controlling a led, pull up resistor value

Posted: Sat Jul 23, 2016 2:39 pm
by AJWIFI
If using a Blue LED I have measured Vf at 2.7Volts (quite a bit higher than the Red/Orange/Yellow) and I believe white are similar to blue.

For Blue LED
(3.3-2.7)/0.005 = 120ohms min R required to draw max GPIO current

That said using a 330ohm with Blue LED which in this case would draw 1.8mA to me is bright enough