The Short Answer: How Light Emitting Diodes (LEDs) Work in a Circuit

At the silicon level, light emitting diodes generate photons through electroluminescence when forward-biased electrons recombine with holes across a PN junction. But on the workbench, understanding how light emitting diodes (LEDs) work means treating them as one-way current valves with a fixed voltage drop. Unlike resistors, LEDs do not self-limit current. If you apply a voltage source higher than their forward voltage ($V_f$) without a current-limiting mechanism, they will draw infinite current until the semiconductor junction melts.

Before wiring one up, you must correctly identify the pinout. The schematic symbol is a standard diode triangle pointing toward a vertical bar, with two small arrows indicating light emission.

  • Anode (Positive): The longer physical leg on a through-hole package. In the schematic symbol, this is the flat back side of the triangle. Current flows into the anode.
  • Cathode (Negative): The shorter physical leg. On the plastic dome, the cathode side is marked by a flat edge on the otherwise circular base. In the symbol, this is the vertical bar. Current flows out of the cathode.
Bench Tip: If you have a salvaged LED with clipped legs, look at the internal metal structure through the plastic dome. The smaller metal post is the anode; the larger, cup-like reflector that holds the semiconductor die is the cathode.

Operation Regions and Safe Default Part Numbers

Selecting the right LED requires matching the forward voltage to your power supply and respecting the maximum continuous forward current ($I_f$). The table below outlines the typical operation regions for standard indicator LEDs. Note that $V_f$ is a range, not an exact number, due to manufacturing tolerances and temperature coefficients.

LED Color Semiconductor Material Typical $V_f$ Range Max Continuous $I_f$ Recommended Test Current
Infrared (IR) GaAs / AlGaAs 1.2V - 1.5V 50 mA 20 mA
Red AlGaAs / GaAsP 1.8V - 2.2V 30 mA 15 - 20 mA
Yellow / Amber AlInGaP 2.0V - 2.2V 30 mA 15 - 20 mA
Green (Standard) GaP 2.0V - 2.4V 30 mA 15 - 20 mA
Blue / Pure Green InGaN 3.0V - 3.4V 30 mA 20 mA
White / UV InGaN + Phosphor 3.0V - 3.6V 30 mA 20 mA

Safe Default Part Numbers for Your Bin

When stocking your lab, avoid no-name assortments that lack datasheets. These three part numbers are industry-standard, readily available from distributors like Mouser or DigiKey, and have well-documented thermal and optical characteristics:

  1. Standard 5mm Red: Lite-On LTL-307EE ($V_f$ = 2.0V typ, $I_f$ = 20mA, 20mcd). Excellent for basic status indicators.
  2. High-Brightness Blue: Cree C503B-BAN ($V_f$ = 3.2V typ, $I_f$ = 30mA, 8000mcd). Ideal for outdoor or high-ambient-light panels.
  3. SMD 0805 Green: Lite-On LTST-C170GKT ($V_f$ = 2.2V typ, $I_f$ = 20mA). The default choice for custom PCB status lights.

Complete Application Circuit: Driving an LED from a 5V Logic Pin

To understand how light emitting diodes work in a real application, let us build a basic indicator circuit driven by a 5V microcontroller GPIO pin (like an Arduino Uno). We will use a standard red LED and target a safe, bright current of 15mA to prolong the life of both the LED and the microcontroller's internal silicon.

The Biasing Math

We use Ohm's Law to calculate the current-limiting resistor. The formula is:

R = (V_source - V_f) / I_target

Plugging in our values:

R = (5.0V - 2.0V) / 0.015A = 200 Ohms

Since 200Ω is not a standard E12 series resistor value, we round up to the next available value: 220Ω. Rounding up slightly reduces the current to ~13.6mA, which is perfectly safe and still visually bright.

Wiring Steps

  1. Insert the Resistor: Place one leg of a 220Ω (Red-Red-Brown-Gold) resistor into the breadboard row connected to your microcontroller's digital output pin (e.g., Pin 13). Place the other leg into an empty, unconnected row.
  2. Insert the LED Anode: Place the longer leg (anode) of the red LED into the same row as the free end of the resistor.
  3. Connect the Cathode to Ground: Place the shorter leg (cathode) of the LED into the breadboard's ground (GND) rail.
  4. Verify Power: Ensure the microcontroller's GND pin is connected to the same ground rail.
  5. Test: Set the GPIO pin HIGH in your firmware. The LED should illuminate immediately.
GPIO Current Limits: While an ATmega328P (Arduino Uno) can source up to 20mA per pin safely, an ESP32-WROOM-32 has a strict absolute maximum of 40mA per GPIO, with a recommended limit of 20mA. If you need to drive multiple LEDs or high-power illumination, use a logic-level MOSFET (like the IRLZ44N) or a dedicated LED driver IC to isolate the microcontroller from the load.

Failure Modes and Multimeter Testing

Knowing how light emitting diodes work also means knowing exactly how they die. LEDs rarely fail open-circuit from old age; they fail catastrophically from electrical abuse.

Common Failure Modes

  • Thermal Runaway (No Resistor): As the junction heats up, its internal resistance drops. If driven by a fixed voltage source without a resistor, it draws more current, gets hotter, and melts the bond wire inside the package. The LED pops and goes dark.
  • Reverse Voltage Breakdown: Standard LEDs have a very low reverse breakdown voltage, typically around 5V. If you wire it backward across a 12V supply, the junction will avalanche and short out internally.
  • Electrostatic Discharge (ESD): Blue, white, and green InGaN LEDs are highly sensitive to ESD. A shock from your finger can punch a microscopic hole through the die, causing it to fail prematurely or dim significantly.

Testing with a Digital Multimeter (DMM)

You do not need to guess if an LED is dead. Use your multimeter's Diode Test mode (usually indicated by a diode symbol on the dial).

  1. Set the DMM to Diode Test mode.
  2. Touch the Red probe to the LED's Anode (long leg).
  3. Touch the Black probe to the LED's Cathode (short leg).
  4. Interpret the reading: A healthy LED will display its forward voltage drop (e.g., 1.600 for red, 2.800 for blue) and emit a faint glow. If the meter reads 'OL' (Over Limit), the LED is either wired backward or the internal bond wire is blown (open circuit). If it reads '0.000' or beeps continuously, the junction has shorted out.

Frequently Asked Questions

How do light emitting diodes work without a current-limiting resistor?

They do not. If you connect an LED directly to a voltage source that exceeds its $V_f$ (like a 9V battery to a 2V red LED), the battery will force as much current as its internal chemistry allows through the diode. The LED will flash brilliantly for a fraction of a second before the semiconductor die overheats and the internal wire bond melts. The only exception is if you are using a specially manufactured "resistor-equipped" LED (like a 12V bezel indicator) which has a microscopic resistor integrated inside the plastic housing.

How do blue and white light emitting diodes work at higher forward voltages?

The forward voltage of an LED is dictated by the bandgap energy of the semiconductor material used to create the PN junction. Red and yellow LEDs use materials like Aluminum Gallium Arsenide (AlGaAs), which have a smaller bandgap, meaning electrons require less energy (voltage) to cross the junction and release lower-energy red photons. Blue and white LEDs use Indium Gallium Nitride (InGaN). InGaN has a much wider bandgap, requiring a higher electrical potential (typically 3.0V to 3.4V) to push electrons across the junction and release higher-energy blue photons. White LEDs are actually blue LEDs coated with a yellow phosphor layer that mixes with the blue light to create white.

How do light emitting diodes work when driven by PWM for dimming?

Pulse Width Modulation (PWM) dims an LED by rapidly switching the full forward current on and off at a frequency higher than the human eye can track (typically >100Hz). Because the LED is always either fully ON (at its rated current and correct color temperature) or fully OFF, you avoid the color-shifting and non-linear dimming issues that occur if you try to lower the analog voltage. A 10% duty cycle means the LED is fully on for 10% of the time and off for 90%, which your brain's persistence of vision interprets as 10% brightness. For more on microcontroller dimming, refer to the SparkFun LED Tutorial.

Can I wire multiple LEDs in parallel with a single resistor?

While the math suggests you can divide the total current by the number of LEDs, this is a bad practice in real-world circuit design. Due to manufacturing tolerances, no two LEDs have the exact same $V_f$. The LED with the slightly lower $V_f$ will draw a disproportionate amount of the current (a phenomenon called "current hogging"). It will burn hotter, which lowers its $V_f$ even further, accelerating thermal runaway until it fails. Once it fails open, the remaining LEDs suddenly receive all the current and cascade into failure. Always use one resistor per LED, or wire them in series. For deeper semiconductor theory, see the All About Circuits semiconductor chapter.