Free 186 More Best Homemade Tools eBook:  
Get tool plans

User Tag List

Results 1 to 6 of 6

Thread: LEDs - understanding and use

  1. #1
    Supporting Member BuffaloJohn's Avatar
    Join Date
    Aug 2019
    Location
    Oregon, USA
    Posts
    858
    Thanks
    309
    Thanked 443 Times in 263 Posts

    BuffaloJohn's Tools

    LEDs - understanding and use

    I came across a recent post about LEDs and it was full of incorrect information so I thought it would be better to post the correct info.

    Folks like using LEDs for their projects - they are pretty cheap, come in many sizes and colors, have different luminosity levels, and so on.

    What are the important things to know about an LED? It is useful to know the actual part number of the LED so we can get a datasheet, but sometimes we have a salvaged LED or a mixed bunch of parts with unknown origin. But first – it is important to understand is how an LED works and also how it fails.

    How does an LED work? Simply, an LED will emit photons (light of some frequency – may be Infra Red, Visible, or Ultra Violet) when the forward voltage Vf is within the operating range and the forward current If is within the operating range.

    What do we do if we dno't have a datasheet? Well, experience suggests that basic and inexpensive LEDs often have similar datasheet values and if we were to look at a few of them, we could find out most of what we need to know. Also, use a operating point that is in the middle of the common ranges and try not to push the device too hard, or you might let the smoke out.

    Here is a chart taken from a Knightbright WP7113PGT datasheet which is a Green LED, a good representative of a common Green LED. The first chart shows Forward Current (If) versus Forward Voltage (Vf). From this chart we see that up to about 1.7 volts, there is no current – so no light. Then the current increases pretty quickly. Notice that the largest If on the curve is 20mA. The datasheet elsewhere says the maximum If is 25mA.
    LEDs - understanding and use-if_v_vf.jpg

    Another chart is Luminous Intensity versus Forward Current. This chart shows the Intensity (normalized to the 10mA If) versus the forward current. Again, the If goes to a maximum of 20mA. This chart holds a very useful hint – the manufacturer thinks it should be used at 10mA If since that is what they specified the Intensity in the graph.
    LEDs - understanding and use-luminous_v_if.jpg

    These charts also indicate that the most important parameter in using the LED is the current – If.

    Not voltage, but current.

    But my power source is a voltage, how do I control the LED? If you were to put the supply voltage across the LED, the current would increase rapidly and you would let the smoke out. If you have a spare LED, you can touch it straight to the supply and you might see a brief flash and then the LED would be burnt up.

    The simplest way to control the current through the LED is with a Current Limiting Resistor. A Current Limiting Resistor isn’t a special part, it is just a resistor, but it performs a special function to keep the current within range so the smoke doesn’t come out. How does that work? Let’s start with the simple LED circuit below.
    Name:  LED_Circuit_a.jpg
Views: 1178
Size:  6.2 KB

    For this example, we will use a battery voltage of 5v. We know from the LED datasheet that we want If=10mA and then from the graph we see that Vf would be 2.1v. Looking at the circuit, if the LED voltage is 2.1v and the Battery is 5v, that leaves 2.9v across the resistor and the current through the LED and resistor are the same, so the current through the resistor would be 10mA. Using Ohms law, V=I*R, if we want to know the resistance, we rearrange the equation to be R=V/I and R will be ohms, V would be Volts, and I would be Amps (so that 10mA will be 0.010A in the equation). Plugging in the values R=2.9/0.01 gives R= 290 ohms.

    What if the power source is 12v? 12-2.1 would be 9.9v across the resistor, same 10mA If. R=9.9/0.01 = 990 ohms.

    How about if we want three LEDs? For the 5v supply, we would need to have a current limiting resistor for each LED as shown here.
    LEDs - understanding and use-three_led.jpg

    That is because 3*Vf is greater than the supply (6.3v > 5v). Each resistor would be 290 ohms. You might look at this a think that you could save 2 resistors by attaching all three LEDs to one resistor. First, you would need to have 3*If or 30mA in the resistor, which the resistor can handle just fine, but the problem comes to be if the LEDs aren’t very close in parameters. What can happen then is that the imbalance in If versus Vf can cause an LED to take more current and that can cause the LED to fail. Best practice is to use the three resistors.

    If we had the 12v supply, we could get rid of the resistor for each LED, because we can put the LEDs in series as in this drawing. One reisitor will current limit all in series.
    LEDs - understanding and use-three_serial_led.jpg

    Here, the resistor gets 12v-(3 * 2.1v) which is 5.7v and If is 10mA, so R=5.7/0.01 which is 570 ohms.

    Now for selecting the resistor. The choices are vast. I did a simple lookup on Mouser for resistor and it returned 714,305 results. Digikey returned 1,438,858 results.

    To simplify, if you are making a simple circuit, you can stick to Through Hole resistors.

    We know the resistance value the equations above give, so the next thing we need is to know the voltage across the resistor and also the power the resistor needs to dissipate. The power equation is P=V*I so for the 12v single resistor example, P=9.9 * 0.01 = 0.099watts or 99mW (it is useful to know mW as many small sized resistors are rated in mW).

    After we know the power range, we need to pick the Tolerance – which is the range the resistor value will be to the specified value. For example, a 5% 100ohm resistor will be 100 +/- 5% or 100 +/- 5 or 95ohms to 105ohms. The range of choices in tolerance is large, 20%, 10%, 5%, 3%, 2%, 1%, and all the way to 0.005% just at Mouser for Through Hole resistors.

    In small quantities, 5% and 1% are about the same price, so the recommendation is to use 1% if you need to buy the part, because the range of values is larger, so you can get to your target R much closer.

    Back to the selection …

    For a 990ohms resistor, we can get 976ohms or we can get 1000ohms – so we pick 1000ohms as it is a little above the target (so it will limit slightly more current).

    For 570ohms, there is 565ohms and 576ohms – pick 576ohms.

    For the 290ohms, there is 287ohms and 291ohms, so we pick 291ohms.

    Now that you understand how all this works, you can also search for

    led current limiting resistor calculator

    in your browser and a bunch of choices pop up and they will do most of the calculations for you.

    Arrgh – why didn’t this post start with that?????

    186 More Best Homemade Tools eBook

  2. The Following 6 Users Say Thank You to BuffaloJohn For This Useful Post:

    Altair (Dec 23, 2021), Biggus1942 (Dec 23, 2021), Christophe Mineau (Dec 21, 2021), cohay1 (Dec 22, 2021), rayh__ (Dec 22, 2021), thinkbackwards (Dec 23, 2021)

  3. #2
    Supporting Member Christophe Mineau's Avatar
    Join Date
    Jul 2014
    Location
    France, Brittany !
    Posts
    913
    Thanks
    832
    Thanked 1,705 Times in 481 Posts

    Christophe Mineau's Tools
    ah yes, I think you're referring to someone using a single led on a 12v battery... yes, I was feeling the same.
    Good information, and for the shop, when you are too far away from the PC there is also a nice little app called electrodoc that calculates all sorts oh useful things like so.
    I am not sure if it supports multi languages but I'm sure there are plenty others.

    2,000+ Tool Plans
    Cheers !
    Christophe
    ________________________________________________________________
    Visit my Website : http://www.labellenote.fr/
    Facebook : La Belle Note
    All my personal works, unless explicitly specified, are released under
    Creative Commons BY-NC-SA license.

  4. #3
    Supporting Member hemmjo's Avatar
    Join Date
    Feb 2017
    Posts
    2,665
    Thanks
    251
    Thanked 1,514 Times in 855 Posts

    hemmjo's Tools
    Very good information. I am glad made reference to the smoke. Most people do not realize that is it the smoke stored inside those tiny devices that keeps things working, when it leaks out, they don't work anymore!!

  5. The Following User Says Thank You to hemmjo For This Useful Post:

    BuffaloJohn (Dec 23, 2021)

  6. #4
    Supporting Member
    Join Date
    Dec 2018
    Posts
    19
    Thanks
    28
    Thanked 10 Times in 9 Posts

    thinkbackwards's Tools
    A most excellent treatise of this topic. And CORRECT.
    Michael Long
    BSEE 1981 SIU
    Thinkbackwards
    Last edited by thinkbackwards; Dec 23, 2021 at 09:22 AM. Reason: Misspelling

  7. The Following User Says Thank You to thinkbackwards For This Useful Post:

    BuffaloJohn (Dec 23, 2021)

  8. #5
    Supporting Member BuffaloJohn's Avatar
    Join Date
    Aug 2019
    Location
    Oregon, USA
    Posts
    858
    Thanks
    309
    Thanked 443 Times in 263 Posts

    BuffaloJohn's Tools
    Folks also don't realise how hard it is to get the smoke in there and so easy to let it out. And some devices, it is really expensive to put the smoke in... <g> Thanks!

  9. #6
    Supporting Member
    Join Date
    Mar 2018
    Posts
    95
    Thanks
    20
    Thanked 12 Times in 11 Posts
    Buffalo John,

    Thanks for the very thorough treatment of LED setup & use.


    Something that I found on https://www.circuitbread.com/ee-faq/...different-leds details how the forward voltage differs according to the LED color.

    I thought some might find it useful.



    2,000+ Tool Plans

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •