LED Basics

Nearly every consumer device makes use of the Light Emitting Diode (LED). This highly versitle device offers an easy way to add an indicator to any project, while drawing a relatively small amount of current. Once their operation is understood, adding them to any project is a simple task. This is an simplified explanation of how a LED works and how to select a current limiting resistor. The information here is enough to use LEDs in a project, but is not intended to be a through explanation.

201009191726.jpg

A Diode is an electronic component that only conducts electricity in one direction. The Forward Voltage rating of a Diode will determine the minimum voltage difference between the Anode and Cathode in order to allow electrons to flow. For example, if you apply +1V to the Anode and 0V (GND) to the Cathode, and the Forward Voltage of the Diode is rated at 0.7V then current will flow. However, if you apply 0V (GND) to the Anode and +1V to the Cathode, current will not flow!

A Light Emitting Diode (LED) is a variant of the basic Diode with the same characteristics. The key difference is that when the LED conducts electricity it also generates Light. When looking at the specifications for a LED, there are two key ratings to note: the “Forward Voltage” and the “Forward Current.”

Forward and Reverse Voltage

The Forward Voltage defines the amount of voltage required in order to conduct electricity. Any voltages below this amount will cause the LED to remain “Open” and non-conductive. This also means any components in-series with the LED will not have current flowing through them either! Once the voltage dropped across the LED reaches the Forward Voltage, it will begin to conduct electricity. Not only that, but the LED will only drop its Forward Voltage at any given time.

For example, consider a LED with a Forward Voltage rated at 3.0V. Now what happens if you attach the Anode to the Positive (+) Terminal of a AA (LR-6) Battery and the Cathode to the Negative (-) Terminal? Will the LED do anything? No! The AA (LR-6) Battery only has a nominal voltage of 1.5V. Until you add a second battery, the LED will not light up.

201009121650.jpg

So if you use two nominal AA (LR-6) batteries in series and connect them to this diode, it will light up and all is good, right? Well, No. What is really happening inside of the LED is that the Diode turns into a short-circuit once a Forward Voltage is applied. This means the LED will draw ALL the current it can from the Battery This isn’t good because you are basically short-circuiting the battery! Not only will this damage the battery, but will overheat or destroy the LED!

Forward Current (If)

As mentioned before, when the Forward Voltage is applied to a LED, it turns into a short-circuit and allows current to flow. As a short, the LED will draw all the current the supply allows AND will damage itself. So you must limit the amount of Forward Current flowing through the LED. There is where the name “current limiting resistor” comes in. By placing a resistor in series with the LED, the current that flows through it is effectively limited.

Diodes, and LEDs, drop a constant voltage regardless of the current that runs through them. So the Resistor and LED work together. The Resistor hold the amount of current constant and the LED holds the voltage dropped across each constant. The next question to address is, what value resistor is needed?

Yellow LED Example

To calculate the required current limiting resistor, two properties of the LED must be known: Its Forward Current (If) and Forward Voltage (Vf). Menitoned in the last section is that a LED will hold the voltage dropped across it constant. Regardless of the voltage applied, it will only drop the Forward Voltage (Vf) across itself. Using the datasheet for a Yellow LED (available at Sparkfun), we see these two values:

And…

Notice that the Forward Voltage is defined with a certain amount of current as its Test Condition. Within a specified curve, the LED will drop its Forward Voltage. A property of Diodes (and therefore LEDs) is that they are not linear. Different amounts of current will cause different voltage drops. For the purpose of safely lighting an LED, this is not necessary to be understood at this point.

Simple_Resistor_Circuit.jpg

The goal is to set the Forward Current for the LED at 20mA which means the LED will drop 1.8-2.2V. In this case, make the assumption THIS LED is going to drop 2V. (Please note that many LEDs will have a forward Current around 20mA. However, their voltage drop will typically vary depending on color.)

Using Ohm’s law the value of the R_LIMIT can be calculated. The R_LIMIT and LED are in series. This means their voltages add and the amount of current going through them is the same. This means the LED is dropping 2V across it and that 3V will be dropped across R_LIMIT. Since these two components are in series, 20mA of current will flow through both.

Ohm’s Law says that Resistance = Voltage / Current. This means R_LIMIT = 3.0V / 20mA = 150Ω.

Again, depending on the exact LED being used, the value of this resistor will change. Generally it will be in the range 150-470Ω. When in doubt, select a slightly large resistance value.

Conclusion

Diodes are simple, yet versatile components. LEDs extend these properties to include lights. LEDs have plenty of cool Matrix-based projects as well as more practical uses like status indicators. The information shown here shows how to find the Forward Voltage and Forward Current of an LED from its datasheet. Then Ohm’s Law is shown to calculate the correct limiting resistor.

Related Video

This AddOhms video on LEDs and Current Limiting Resistors might be of interest.  You can see what happens when you don’t limit the current!

 

11 Responses to "LED Basics"

  1. james jones says:

    nice. Non engineer trying to learn electronics. I have a PhD in Chemistry and an MD, but no formal electronics training. Playing with arduino..

    Reply
  2. V. Sagiyev says:

    Great explanation. Exactly what I was looking for. Thank you and please keep sharing the info.

    Reply
  3. Dan k says:

    I have been reading numerous forums as to the proper series-wiring of led’s, as I’m trying to construct hidden, yet bright illumination in a display area under a glass end-table. Just when I think I have the facts, I read that a resistor should be employed.

    If, for example, I wire three led’s in series that have a 3.0 forward-voltage rating to a 9V battery, isn’t it going to work properly per: ( 3 x 3.0 ) = 9 ?

    Now, to make it a bit trickier, what should I do if their rating is in a range of 3.2 – 3.6 and I still want to power it off a conventional 9V DC source? Does that mean I can run only two of those plus the prescribed resistor? If so, would you suggest hooking up two 9V batteries in series in order to run more lighting? I am not sure how many I’ll actually be needed for my project, as I may use either 3mm ones with 16,000 mcd luminosity rating or 5mm with a 35,000 mcd rating. Too bright ?

    Thanks

    Reply
    • James says:

      First, I would absolutely not recommend using those small rectangular 9V batteries. They are only rated for 25mA and even then for only a few hours at most.

      Second, you’re right, you won’t want to run 3 LEDs with a forward voltage around 3V in series. The internal resistance of the battery will cause some current limit, but then you’re literally burning up the battery to make that happen.

      The forward voltages are rated as typical and the LED will conduct with less than the forward voltage applied, but it will be a non-linear difference. So you might need to test if less than the idea forward voltage will be bright enough. Make sure you test across any temperature range you expect the circuit to function.

      Reply
      • Dan says:

        Thank you.

        In lieu of trying a 9V source, what other compact D/C power source would you recommend ? I am trying to avoid using a corded A/C transformer.

        I am not sure how many of the 3 or 5mm LED’s will be needed, but I guess that the power source will determine my limits.

        Reply
        • James says:

          You just need more than the LEDs themselves will drop. Not all LEDs have the exact same forward voltage, there is variance even within a batch. So if you calculate you need around 9.9v I’d suggest 12v.

          You can use batteries, you just won’t be able to use the small rectangular style. Unless you want a run time of a few minutes.

          Reply
  4. Dan says:

    Thank you James. No, the run time will not be for large durations. Still, you are saying that a couple pairs of “C” batteries in series with a resistor are better than a 9V, correct? Would D batteries be better still ?

    I am thinking of running 3 or 4 parallel runs of 3 LED’s wired in series.

    Did that make sense? Again, it is not for round the clock lighting, only to illuminate under glass objects for short times. Thank you

    Reply
    • James says:

      Of course Cs and Ds are going to run longer. In the old days, 9V batteries were 6 AAAA-sized (smaller than AAA) batteries in series. So imagine how long those would last!

      Even 6 AA batteries in series can provide a pretty significant run time. However, before you go calculating run time, you need to determine how many LEDs you are going to be using and how much current will end up being drawn.

      Reply
    • James says:

      BTW, I just re-read my own comment. When I started “Of course…” I meant that in a matter-of-fact style, not a combative-duh style. Realized it could be read two different ways.

      Reply
  5. Dan says:

    Thank you for your observation, but I had not perceived any negative connotation. Thanks again for the advice.

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

©2014 Baldengineer Productions, Inc.