Light an LED without burning it out

Work out which resistor an LED needs, and say why it only lights one way round.

  • Electronics basics · Lesson 3
  • About 8 minutes
  • Beginner
  • No hardware needed
  • Free

The idea

An LED is a light that lets electricity through one way only, and it needs a resistor to keep it alive.

Long leg positive (+) Short leg negative (−) Lights up
Long leg to positive. In backward, an LED isn't harmed. It just stays dark.

Break it safely

Resistor 150 Ω + − 5 V LED

Just right: about 20 mA, and the LED glows. Backward: nothing flows. Dark, but not damaged. No resistor: far too much current. Pop. The LED is dead.

The arrow on the LED shows the one direction it lets current through.

Choose the resistor

Every LED lists two numbers. For a typical red one: it uses about 2 V, and it is happy with 20 mA (0.02 A) at most.

5 V supply LED: 2 V Resistor: 3 V
The resistor takes whatever voltage the LED doesn't use.
  1. Supply minus LED: 5 − 2 = 3 V for the resistor.
  2. Ohm’s law: 3 ÷ 0.02 = 150 Ω.

No exact match in your kit? Go up a size, never down. 220 Ω is a little dimmer and lasts for years.

Try it

  1. Same LED, 9 V supply. Which resistor?
  2. Same LED, 3.3 V pin, and you want only 10 mA. Which resistor?

Then put 64 LEDs to work in LED Studio.

Check yourself

Answers
  1. 9 − 2 = 7 V. 7 ÷ 0.02 = 350 Ω. Next size up: 390 Ω.
  2. 3.3 − 2 = 1.3 V. 1.3 ÷ 0.01 = 130 Ω. Next size up: 150 Ω.
Right resistor, but the LED stays dark. What do you check first?

Whether it is in backward. Then check every wire is pushed in.

That is Electronics basics. To build this with real parts, come to a class.

Back to self-paced lessons