Sunday, December 10th, 2023
Latest updates

LED series resistor calculator

In electronics, an LED circuit or LED driver is an electrical circuit used to power a light-emitting diode (LED). The circuit must provide sufficient current to light the LED at the required brightness, but must limit the current to prevent damaging the LED. The voltage drop across an LED is approximately constant over a wide range of operating current; therefore, a small increase in applied voltage greatly increases the current. Very simple circuits use only one resistor to limit the current. More complex circuits are required when driving high-power LEDs for illumination to achieve correct current regulation.

Basic LED circuit

The simplest circuit to drive a LED consists of a voltage source and two components connected in series: a current limiting resistor, sometimes called the ballast resistor, and a LED. Optionally, a switch may be introduced to open and close the circuit. Although simple, this circuit is not the most energy efficient circuit to drive a LED, since energy is lost in the resistor. More complicated circuits improve the energy efficiency.
A LED has a voltage drop specified at the intended operating current. Ohm’s law and Kirchhoff’s circuit laws are used to calculate the appropriate resistor value to obtain the desired current. The value is computed by subtracting the LED voltage drop from the supply voltage and dividing by the desired operating current. If the supply voltage is equal to the LED’s voltage drop, no resistor is needed.

This basic circuit is used in a wide range of applications, including many consumer appliances such as mobile phone chargers.

Power source considerations

The voltage versus current characteristics of an LED are similar to any diode. Current is approximately an exponential function of voltage according to the Shockley diode equation, and a small voltage change may result in a large change in current. If the voltage is below or equal to the threshold, no current flows and the result is an unlit LED. If the voltage is too high the current exceeds the maximum rating, overheating and potentially destroying the LED.

It is therefore important that the power source provides an appropriate current. LEDs should only be connected to constant-current sources. Series resistors are a simple way to passively stabilize the LED current, but energy is wasted in the resistor. For higher supply voltage or higher current an active constant current regulator needs to be used.

Miniature indicator LEDs are normally driven from low voltage DC via a current-limiting resistor. Currents of 2 mA, 10 mA and 20 mA are common. Sub-mA indicators may be made by driving ultrabright LEDs at very low current. Efficiency tends to reduce at low currents, but indicators running on 100 μA are still practical.

Series resistor calculation

The formula to calculate the correct resistance to use is:

  • Vs is the power supply voltage, e.g. a 12-volt battery.
  • Vf is the LED forward voltage (also referred to as the “voltage drop”) across the LED.
  • If is the desired current of the LED.
Both Vf and the maximum recommended value for If are obtained from the LED manufacturer’s specifications. Many circuits operate LEDs at less than the recommended maximum current, to save power, to permit the use of a standard resistor value, or to reduce brightness.

Typically, the forward voltage of an LED is between 1.8 and 3.3 volts. It varies by the color of the LED. A red LED typically drops 1.8 volts, but voltage drop normally rises as the light frequency increases, so a blue LED may drop from 3 to 3.3 volts.

This table shows some typical Vf values vs LED colors:

Color Red Green Blue Yellow Infrared White Amber Orange
Voltage drop(V) 2 2.1 3.6 2.1 1.7 3.6 2.1 2.2

About Terje

Check Also

single layer inductor

Single layer air core inductor design calculator

Winding the wire in a single layer produces an inductor with minimal parasitic capacitance, and …

Flat spiral coil inductor example

Flat spiral air core inductor design calculator

This is an popular coil geometri used in todays wireless charger circuits. The formula used …

Planar spiral coil inductor design

The first approximation is based on a modification of an expression developed by Wheeler; the …