
In
electronics
The field of electronics is a branch of physics and electrical engineering that deals with the emission, behaviour and effects of electrons using electronic devices. Electronics uses active devices to control electron flow by amplification ...
, an LED circuit or LED driver is an
electrical
Electricity is the set of physical phenomena associated with the presence and motion of matter that has a property of electric charge. Electricity is related to magnetism, both being part of the phenomenon of electromagnetism, as described ...
circuit
Circuit may refer to:
Science and technology
Electrical engineering
* Electrical circuit, a complete electrical network with a closed-loop giving a return path for current
** Analog circuit, uses continuous signal levels
** Balanced circu ...
used to power a
light-emitting diode
A light-emitting diode (LED) is a semiconductor device that emits light when current flows through it. Electrons in the semiconductor recombine with electron holes, releasing energy in the form of photons. The color of the light ( ...
(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
Voltage drop is the decrease of electrical potential along the path of a current flowing in an electrical circuit. Voltage drops in the internal resistance of the source, across conductors, across contacts, and across connectors are undesirabl ...
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
A current source is an electronic circuit that delivers or absorbs an electric current which is independent of the voltage across it.
A current source is the dual of a voltage source. The term ''current sink'' is sometimes used for sources fe ...
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
Ohm's law states that the current through a conductor between two points is directly proportional to the voltage across the two points. Introducing the constant of proportionality, the resistance, one arrives at the usual mathematical equatio ...
and
Kirchhoff's circuit laws
Kirchhoff's circuit laws are two equalities that deal with the current and potential difference (commonly known as voltage) in the lumped element model of electrical circuits. They were first described in 1845 by German physicist Gustav Kirchho ...
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
The exponential function is a mathematical function denoted by f(x)=\exp(x) or e^x (where the argument is written as an exponent). Unless otherwise specified, the term generally refers to the positive-valued function of a real variable, ...
of voltage according to the
Shockley diode equation
The ''Shockley diode equation'' or the ''diode law'', named after transistor co-inventor William Shockley of Bell Telephone Laboratories, gives the I–V (current-voltage) characteristic of an idealized diode in either forward or reverse bias (a ...
, 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 will exceed the maximum rating, overheating and potentially destroying the LED.
LED drivers are designed to handle fluctuation load, providing enough current to achieve the required brightness while not allowing damaging levels of current to flow. Drivers may be constant current (CC) or constant voltage (CV). In CC drivers, the voltage changes while the current stays the same. CC drivers are used when the electrical load of the LED circuit is either unknown or fluctuates, for example, a lighting circuit where a variable number of LED lamp fixtures may be installed.
As an LED heats up, its voltage drop decreases (band gap decrease). This can encourage the current to increase.
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
The metal–oxide–semiconductor field-effect transistor (MOSFET, MOS-FET, or MOS FET) is a type of field-effect transistor (FET), most commonly fabricated by the controlled oxidation of silicon. It has an insulated gate, the voltage of which d ...
(metal-oxide-semiconductor field-effect transistor), which is the simplest current limiter.
Low drop-out (LDO) constant current regulators also allow the total LED voltage to be a higher fraction of the power supply voltage.
Switched-mode power supplies
A switched-mode power supply (switching-mode power supply, switch-mode power supply, switched power supply, SMPS, or switcher) is an electronic power supply that incorporates a switching regulator to convert electrical power efficiently.
Like ...
are used in
LED flashlights
A light-emitting diode (LED) is a semiconductor device that emits light when current flows through it. Electrons in the semiconductor recombine with electron holes, releasing energy in the form of photons. The color of the light (cor ...
and household
LED lamps
An LED lamp or LED light bulb is an electric light that produces light using light-emitting diodes (LEDs). LED lamps are significantly more energy-efficient than equivalent incandescent lamps
and can be significantly more efficient than m ...
.
Power MOSFET
A power MOSFET is a specific type of metal–oxide–semiconductor field-effect transistor (MOSFET) designed to handle significant power levels. Compared to the other power semiconductor devices, such as an insulated-gate bipolar transistor (I ...
s are typically used for switching LED drivers, which is an efficient solution to drive high-brightness LEDs.
Power integrated circuit (IC) 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
Solid-state lighting (SSL) is a type of lighting that uses semiconductor light-emitting diodes (LEDs), organic light-emitting diodes (OLED), or polymer light-emitting diodes (PLED) as sources of illumination rather than electrical filaments, p ...
with LED lamps. In 2008, they were used for controlling the solid-state lighting in the
Beijing National Aquatics Center
The National Aquatics Centre (), and colloquially known as the Water Cube () and the Ice Cube (), is an aquatics center at the Olympic Green in Beijing, China.
The facility was originally constructed to host the aquatics competitions at the ...
during the
2008 Summer Olympics.
Series resistor
Series
resistor
A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias activ ...
s 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
A button cell, watch battery, or coin battery is a small single-cell battery shaped as a squat cylinder typically in diameter and high — resembling a button. Stainless steel usually forms the bottom body and positive terminal of the cell; ...
powered keyring-type LED lights, the resistance of the cell itself is usually the only current limiting device.
LEDs with built-in series resistors are available. These may save
printed circuit board
A printed circuit board (PCB; also printed wiring board or PWB) is a medium used in electrical and electronic engineering to connect electronic components to one another in a controlled manner. It takes the form of a laminated sandwich str ...
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
Ohm's law states that the current through a conductor between two points is directly proportional to the voltage across the two points. Introducing the constant of proportionality, the resistance, one arrives at the usual mathematical equatio ...
, considering that the supply voltage is offset by the voltage drop across the diode, which varies little over the range of useful currents:
:
or
where:
:
is resistance in
ohms, typically rounded up to the next higher
resistor value.
:
is the power supply voltage in
volt
The volt (symbol: V) is the unit of electric potential, electric potential difference ( voltage), and electromotive force in the International System of Units (SI). It is named after the Italian physicist Alessandro Volta (1745–1827).
D ...
s, e.g. 9-volt battery.
:
is the LED forward voltage drop across the LED in volts, shown as
on LED datasheets. 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 around 1.7 to 2.0 volts, but since both voltage drop and light frequency increase with
band gap
In solid-state physics, a band gap, also called an energy gap, is an energy range in a solid where no electronic states can exist. In graphs of the electronic band structure of solids, the band gap generally refers to the energy difference ( ...
, a blue LED may drop around 3 to 3.3 volts.
:
is the voltage drop across the switch in volts: (A) for no switch, use 0 volts, (B) for mechanical switch, use 0 volts, (C) for
BJT transistor, use
collector-emitter saturation voltage from the transistor datasheet.
:
is the desired current of the LED in
amps. The maximum current is shown on LED datasheets, for example 20 mA (0.020A) is common for many small LEDs. 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.
Using the algebraic formula (above) and assuming
is 0, the resistance is calculated as follows:
:Example1 with
of 9V,
= 1.8V,
= 5mA:
::
= (9V - 1.8V) / 5mA = (9 - 1.8) / 0.005 = 1440 ohms, then round up to a 1.5K ohm resistor (per
common resistor values).
:Example2 with
of 5V,
= 1.8V,
= 1K ohm:
::
= (5V - 1.8V) / 1K = (5 - 1.8) / 1000 = 0.0032, which is 3.2mA
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 (''V
f'') 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 (or each string of LEDs) can be individually turned on and off.
Direct drive is the simplest-to-understand approach—it uses many independent single-LED (or single-string) circuits.
For example, a person could design a
digital clock such that when the clock displays "12:34" on a
seven-segment display
A seven-segment display is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays.
Seven-segment displays are widely used in digital clocks, electronic meters, basic ...
,
the clock would turn on the appropriate segments directly and leave them on until something else needs to be displayed.
However,
multiplexed display
Multiplexed displays are electronic display devices where the entire display is not driven at one time.
Instead, sub-units of the display (typically, rows or columns for a dot matrix display or individual characters for a character oriented disp ...
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
A seven-segment display is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays.
Seven-segment displays are widely used in digital clocks, electronic meters, basic ...
, 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
Charlieplexing (also known as tristate multiplexing, reduced pin-count LED multiplexing, complementary LED drive and crossplexing) is a technique for driving a multiplexed display in which relatively few general-purpose input/output, I/O pins on ...
where the ability of some
microcontrollers
A microcontroller (MCU for ''microcontroller unit'', often also MC, UC, or μC) is a small computer on a single VLSI integrated circuit (IC) chip. A microcontroller contains one or more CPUs ( processor cores) along with memory and programmab ...
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 n
2-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
A LED display is a flat panel display that uses an array of light-emitting diodes as pixels for a video display. Their brightness allows them to be used outdoors where they are visible in the sun for store signs and billboards. In recent ...
and the first LED device to use integrated circuit technology. Its development was led by Howard C. Borden and Gerald P. Pighini at HP Associates and
HP Labs
HP Labs is the exploratory and advanced research group for HP Inc. HP Labs' headquarters is in Palo Alto, California and the group has research and development facilities in Bristol, UK. The development of programmable desktop calculators, ink ...
, who had engaged in
research and development
Research and development (R&D or R+D), known in Europe as research and technological development (RTD), is the set of innovative activities undertaken by corporations or governments in developing new services or products, and improving existi ...
(R&D) 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
A Nixie tube ( ), or cold cathode display, is an electronic device used for displaying numerals or other information using glow discharge.
The glass tube contains a wire-mesh anode and multiple cathodes, shaped like numerals or other symbol ...
and becoming the basis for later LED displays.
Polarity
Unlike
incandescent light bulb
An incandescent light bulb, incandescent lamp or incandescent light globe is an electric light with a wire filament heated until it glows. The filament is enclosed in a glass bulb with a vacuum or inert gas to protect the filament from oxida ...
s, which illuminate regardless of the electrical
polarity
Polarity may refer to:
Science
* Electrical polarity, direction of electrical current
* Polarity (mutual inductance), the relationship between components such as transformer windings
* Polarity (projective geometry), in mathematics, a duality of o ...
,
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
Alternating current (AC) is an electric current which periodically reverses direction and changes its magnitude continuously with time in contrast to direct current (DC) which flows only in one direction. Alternating current is the form in which ...
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 (or another LED) 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
Surface-mount technology (SMT), originally called planar mounting, is a method in which the electrical components are mounted directly onto the surface of a printed circuit board (PCB). An electrical component mounted in this manner is referred ...
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
The flicker fusion threshold, critical flicker frequency (CFF) or flicker fusion rate, is a concept in the psychophysics of vision. It is defined as the frequency at which an intermittent light stimulus appears to be completely steady to the aver ...
, 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
Pulse-width modulation (PWM), or pulse-duration modulation (PDM), is a method of reducing the average power delivered by an electrical signal, by effectively chopping it up into discrete parts. The average value of voltage (and current) fed ...
(PWM). In some cases PWM-based drivers are more efficient than constant current or constant voltage drivers.
[Application note AND8067/D: "NL27WZ04 Dual Gate Inverter Oscillator Increases the Brightness of LEDs While Reducing Power Consumption"](_blank)
/ref>
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 a light sensor
In addition to emission, an LED can be used as a photodiode in light
Light or visible light is electromagnetic radiation that can be perceived by the human eye. Visible light is usually defined as having wavelengths in the range of 400–700 nanometres (nm), corresponding to frequencies of 750–420 te ...
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 telecommunications and computer networking, multiplexing (sometimes contracted to muxing) is a method by which multiple analog or digital signals are combined into one signal over a shared medium. The aim is to share a scarce resource - a ...
in such a circuit, such that it can be used for both light emission and sensing at different times.
See also
* Joule thief - powering an LED using 1.5V battery and voltage booster circuit
* Planck–Einstein relation
The Planck relationFrench & Taylor (1978), pp. 24, 55.Cohen-Tannoudji, Diu & Laloë (1973/1977), pp. 10–11. (referred to as Planck's energy–frequency relation,Schwinger (2001), p. 203. the Planck relation, Planck equation, and Planck formula, ...
- relation between band gap and photon frequency
* Shockley diode equation
The ''Shockley diode equation'' or the ''diode law'', named after transistor co-inventor William Shockley of Bell Telephone Laboratories, gives the I–V (current-voltage) characteristic of an idealized diode in either forward or reverse bias (a ...
- relation between forward voltage and current
References
{{DEFAULTSORT:Led Circuit
Analog circuits
Light-emitting diodes
American inventions