LED circuit
In electronics, an LED circuit or LED driver is an electrical circuit used to power a light-emitting diode. 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 are used for low-power indicator LEDs. More complex, current source circuits are required when driving high-power LEDs for illumination to achieve correct current regulation.
Basic circuit
The simplest circuit to drive an LED is through a series resistor. It is commonly used for indicators and digital displays in many consumer appliances. However, this circuit is not energy-efficient, because energy is dissipated in the resistor as heat.An 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, by subtracting the LED voltage drop from the supply voltage and dividing by the desired operating current. With a sufficiently high supply voltage, multiple LEDs in series can be powered with one resistor.
If the supply voltage is close or equal to the LED forward voltage, then no reasonable value for the resistor can be calculated, so some other method of current limiting is used.
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.As an LED heats up, its voltage drop decreases. This can encourage the current to increase.
It is therefore important that the power source provides an appropriate current. LEDs should only be connected to constant-current sources.
MOSFET drivers
An active constant current regulator is commonly used for high power LEDs, stabilizing light output over a wide range of input voltages which might increase the useful life of batteries. Active constant current is typically regulated using a depletion-mode MOSFET, which is the simplest current limiter. Low drop-out constant current regulators also allow the total LED voltage to be a higher fraction of the power supply voltage.Switched-mode power supplies are used in LED flashlights and household LED lamps. Power MOSFETs are typically used for switching LED drivers, which is an efficient solution to drive high-brightness LEDs. Power integrated circuit chips such as the Supertex HV9910B are widely used to drive the MOSFETs directly, without the need for additional circuitry. These MOSFET-based Supertex IC chips are the most common LED drivers for solid-state lighting with LED lamps. In 2008, they were used for controlling the solid-state lighting in the Beijing National Aquatics Center during the 2008 Summer Olympics.
Series resistor
Series resistors are a simple way to stabilize the LED current, but energy is wasted in the resistor.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.
In coin cell powered keyring-type LED lights, the resistance of the cell itself is usually the only current limiting device. The cell should not therefore be replaced with a lower resistance type.
LEDs with built-in series resistors are available. These may save printed circuit board space, and are especially useful when building prototypes or populating a PCB in a way other than its designers intended. However, the resistor value is set at the time of manufacture, removing one of the key methods of setting the LED's intensity.
The value for the series resistance may be obtained from Ohm's law, considering that the supply voltage is offset by the voltage drop across the diode, which varies little over the range of useful currents:
where:
LED arrays
Strings of multiple LEDs are normally connected in series. In one configuration, the source voltage must be greater than or equal to the sum of the individual LED voltages; typically the LED voltages add up to around two-thirds of the supply voltage. A single current-limiting resistor may be used for each string.Parallel operation is also possible but can be more problematic. Parallel LEDs must have closely matched forward voltages in order to have similar branch currents and, therefore, similar light output. Variations in the manufacturing process can make it difficult to obtain satisfactory operation when connecting some types of LEDs in parallel.
LED display
LEDs are often arranged in ways such that each LED can be individually turned on and off.Direct drive is the simplest-to-understand approach—it uses many independent single-LED circuits.
For example, a person could design a digital clock such that when the clock displays "12:34" on a seven-segment display,
the clock would turn on the appropriate segments directly and leave them on until something else needs to be displayed.
However, multiplexed display techniques are more often used than direct drive, because they have lower net hardware costs.
For example, most people who design digital clocks design them such that when the clock displays "12:34" on a seven-segment display, at any one instant the clock turns on the appropriate segments of one of the digits—all the other digits are dark. The clock scans through the digits rapidly enough that it gives the illusion that it is "constantly" displaying "12:34" for an entire minute. However, each "on" segment is actually being rapidly pulsed on and off many times a second.
An extension of this technique is Charlieplexing where the ability of some microcontrollers to tri-state their output pins means larger numbers of LEDs can be driven, without using latches. For N pins, it is possible to drive n2-n LEDs.
The use of integrated circuit technology to drive LEDs dates back to the late 1960s. In 1969, Hewlett-Packard introduced the HP Model 5082-7000 Numeric Indicator, an early LED display and the first LED device to use integrated circuit technology. Its development was led by Howard C. Borden, Gerald P. Pighini, and Egyptian engineer Mohamed M. Atalla, at HP Associates and HP Labs, who had engaged in research and development on practical LEDs between 1962 and 1968. It was the first intelligent LED display, making it a revolution in digital display technology, replacing the Nixie tube and becoming the basis for later LED displays.
Polarity
Unlike incandescent light bulbs, which illuminate regardless of the electrical polarity, LEDs will only light with correct electrical polarity. When the voltage across the p-n junction is in the correct direction, a significant current flows and the device is said to be forward-biased. If the voltage is of the wrong polarity, the device is said to be reverse biased, very little current flows, and no light is emitted. LEDs can be operated on an alternating current voltage, but they will only light with positive voltage, causing the LED to turn on and off at the frequency of the AC supply.Most LEDs have low reverse breakdown voltage ratings, so they will also be damaged by an applied reverse voltage above this threshold. The cause of damage is overcurrent resulting from the diode breakdown, not the voltage itself. LEDs driven directly from an AC supply of more than the reverse breakdown voltage may be protected by placing a diode in inverse parallel.
The manufacturer will normally advise how to determine the polarity of the LED in the product datasheet. However, there is no standardization of polarity markings for surface mount devices.
Pulsed operation
Many systems pulse LEDs on and off, by applying power periodically or intermittently. So long as the flicker rate is greater than the human flicker fusion threshold, and the LED is stationary relative to the eye, the LED will appear to be continuously lit. Varying the on/off ratio of the pulses is known as pulse-width modulation. In some cases PWM-based drivers are more efficient than constant current or constant voltage drivers.Most LED data sheets specify a maximum DC current that is safe for continuous operation. Often they specify some higher maximum pulsed current that is safe for brief pulses, as long as the LED controller keeps the pulse short enough and then turns off the power to the LED long enough for the LED to cool off.
LED as light sensor
In addition to emission, an LED can be used as a photodiode in light detection. This capability may be used in a variety of applications including ambient light detection and bidirectional communications.As a photodiode, an LED is sensitive to wavelengths equal to or shorter than the predominant wavelength it emits. For example, a green LED is sensitive to blue light and to some green light, but not to yellow or red light.
This implementation of LEDs may be added to designs with only minor modifications in circuitry. An LED can be multiplexed in such a circuit, such that it can be used for both light emission and sensing at different times.