Skip to content

LED and resistor fundamentals

How LEDs work and why their direction matters, how resistors control LED brightness, and the math behind the resistor values in your kit.

Step 6 of 13 in Part 4: LEDs and resistors

LED (light-emitting diode)

An LED emits light when current flows through it in the correct direction. LEDs are polar devices, so orientation matters.

LED polarity diagram: the rounded side of the LED case is the positive anode, the flat side is the negative cathode; the longer lead is positive and the shorter lead is negative

Anode (Positive) Cathode (Negative)
The longer leg of the LED should connect to the positive side of the circuit. The shorter leg connects to ground, or the negative side of the circuit.

Note: An LED placed backward will not light up, since current can only flow one way through it.

Resistors

  • Purpose: Resistors limit current flow to protect the LED.
  • LED Brightness: Inversely proportional to resistance: less resistance means a brighter LED.
Higher Resistance (Low Brightness) Lower Resistance (High Brightness)
Breadboard with a single resistor producing a dimmer LED Breadboard with a lower total resistance producing a brighter LED

Let's Do the Math

Here's why the resistors in your kit are the values they are. Let's size a resistor for a red LED powered at 3.0 V from two AA batteries:

  • Supply voltage: 3.0 V
  • Red LED turn-on voltage: about 1.9 V
  • Target current: about 10 mA (0.01 A), which is bright but safe for the LED
\[ R = \frac{V_\text{supply} - V_\text{LED}}{I} = \frac{3.0\,\text{V} - 1.9\,\text{V}}{0.01\,\text{A}} \approx 110\ \Omega \]

That's why a ~100 Ω resistor works well for a single red LED at 3 V. Try the math yourself with a different color LED: how does the answer change?