Calculating resistor values for LEDs

Let's take a moment to talk about driving LEDs. There's plenty of information out there on how LEDs operate, and to be honest, we don't need to think about the majority of it. That's not to say that it's not a fascinating subject, but there's really only two properties we care about here—the forward voltage and the forward current. The forward voltage, also called the forward voltage drop or just voltage drop, of an LED is the voltage that is dropped across it, and the forward current is the maximum current that the LED can handle without being damaged. Both these values vary between different LEDs, but general purpose 3 mm and 5 mm LEDs like the one pictured previously will typically have a forward voltage of around 2 V and a forward current of around 20 mA.

The simplest way to limit the current through the LED to the desired forward current is by using a resistor in series with it. Let's take a look at the following diagram:

Calculating resistor values for LEDs

Let's assume the voltage source in this diagram (V) is 3.3 V. If the LED has a forward voltage (Vf) of 2 V, then that means the voltage across the resistor, labeled Vr, is 3.3V - 2V = 1.3V. Ohm's law tells us that the voltage across a resistor in volts is equivalent to the product of the current through it in amps and its resistance in ohms, that is, V = IR. If we want a forward current through the LED (I) of 20 mA, we can use Ohm's law to calculate the proper resistor value, R = 1.3 V / 0.02 A = 65 Ω. Resistors only come in certain values, so we want to round that up to the nearest standard value of 68 Ω.

Note

Resistor values are measured in ohms, named after Georg Simon Ohm, a German physicist who discovered the relationship between voltage and current, which is the basis of what we now call Ohm's law. Ohms are notated by the capital Greek omega (Ω).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.213.212