LED (light-emitting diode)

Diode / Optoelectronic

A diode that emits light when forward current flows. Polarised - only works one way. Needs a current-limiting resistor.

Schematic symbol

LED

How led (light-emitting diode) appears in a circuit diagram.

Types & variants

Standard indicator (3mm/5mm)SMDHigh-powerRGBInfrared (IR)UVAddressable (WS2812/NeoPixel)

Key specs

Forward voltage (Vf)

V

Voltage drop when lit (~1.8-2.2V red, ~3-3.4V blue/white).

Forward current (If)

mA

Operating current, typically 10-20mA for indicators.

Wavelength / colour

nm

Determines the colour of light.

Viewing angle

degrees

How wide the light spreads.

Markings

Longer leg = anode (+), flat side / shorter leg = cathode (-).

Standard values

Resistor for 5V supply, red LED, 10mA: R = (5 - 2) / 0.01 = 300Ω (use 330Ω).

How to choose

Pick colour/brightness, then size the resistor with the LED-resistor calculator: R = (Vsupply - Vf) / If.

Pinout & package

Anode +long leg (+)Cathode −flat / short (−)

5 mm through-hole

Check first: Longer leg is the anode (+). The flat on the rim and the shorter leg mark the cathode (−).

2 leads (anode +, cathode -). Polarised.

Example circuits

  • LED + series resistor on a GPIO pin
  • Status indicator
  • IR remote emitter

Common failures

Burns out if run without a resistor (overcurrent); dims with age; wrong polarity = no light.

How to test

Multimeter diode mode across leads (red probe to anode) - should glow faintly. Reverse = nothing.

Substitutes

Any LED of same colour/package; recheck the series resistor for the new Vf.

Where to buy