Skip to content
Tactiverge

School/△ Builder/Week 12

Keep the LED alive: current-limiting resistors

Connect a red LED straight to a 5 V supply and it may flash brightly once and never again. One resistor prevents it. Which one?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Status LEDs are on almost every board you will ever design, and the current-limiting resistor is often the first calculation a new electronics engineer gets checked on. It combines everything so far: the loop rule, Ohm's law and real resistor values.

  • ◇ Calculate a series resistor for an LED with R = (Vs − Vf) ÷ I.
  • ◇ Choose a standard resistor value and recalculate the actual current.
  • ◇ Explain why an LED cannot be treated as an ordinary resistor.

Safety: Everything here is a low-voltage simulation. Never experiment with mains electricity or high-current batteries; real circuits are built only under supervision with a small, current-limited low-voltage supply.

2.Discover

Choose the LED circuit with a red LED. Set 5 V and find the smallest resistor that keeps the LED at or below 20 mA. Then switch to a blue LED. Why does the same resistor now give less current? Finally lower the supply below the LED's forward voltage and explain what you see.

Explorer 06 — Circuit fundamentals

Where the current goes, and why

A battery pushes current around a loop; resistors decide how much flows and where the voltage is used up. Change the circuit and the values, and check Ohm's law and Kirchhoff's laws for yourself.

SERIES CHAIN · I = 1.00 mAR1 1 kΩ1.00 V · 1.00 mAR22 kΩ2.00 V1.00 mAR3 3 kΩ3.00 V · 1.00 mA+6.0 VDC
  • Current (thicker = more)
  • Resistor
  • Source (long plate +)
Circuit

Source

6.0 V

Low-voltage DC only, up to 12 V

Resistors (E24 values)

1 kΩ
2 kΩ
3 kΩ
Total resistance
6 kΩ
R1 + R2 + R3
Source current
1.00 mA
I = V / R
Source power
6.0 mW
P = V × I
Sum of element powers
6.0 mW
Equals source power
Each element
ElementValueVoltageCurrentPower
R11 kΩ1.00 V1.00 mA1.0 mW
R22 kΩ2.00 V1.00 mA2.0 mW
R33 kΩ3.00 V1.00 mA3.0 mW
Source—6.00 V1.00 mA6.0 mW. Sum of element powers 6.0 mW.

State

Series chain, 6.0 V source. Total resistance 6 kΩ. Source current 1.00 mA, power 6.0 mW. R1: 1.00 V, 1.00 mA; R2: 2.00 V, 1.00 mA; R3: 3.00 V, 1.00 mA. The three voltages add to 6.00 V, the source voltage (Kirchhoff's voltage law).

Series chain, 6.0 V source. Total resistance 6 kΩ. Source current 1.00 mA, power 6.0 mW. R1: 1.00 V, 1.00 mA; R2: 2.00 V, 1.00 mA; R3: 3.00 V, 1.00 mA. The three voltages add to 6.00 V, the source voltage (Kirchhoff's voltage law).

Guided experiments

Set up the circuit, predict what will happen, then make the change and compare.

  1. 01Double R2 in a series chainSeries

    R1 = R2 = R3 = 1 kΩ. If you double R2, does the current halve?

    + What happens and why

    Source current: 2.00 mA → 1.50 mA

    Total resistance goes from 3 kΩ to 4 kΩ, so the current falls from 2.0 mA to 1.5 mA: smaller, but not half, because R1 and R3 did not change. R2 now takes a bigger share of the 6 V.

  2. 02Double the source voltageSeries

    In a series chain, what happens to the current if you double the voltage from 3 V to 6 V?

    + What happens and why

    Source current: 500 µA → 1.00 mA

    Resistance has not changed, so by Ohm's law (I = V / R) the current doubles. Power goes up four times, because P = V × I and both doubled.

  3. 03Lower one parallel branchParallel

    Two 1 kΩ resistors in parallel. If R2 drops to 100 Ω, what happens to the current through R1?

    + What happens and why

    Current through R1: 6.00 mA → 6.00 mA

    Each branch is connected straight across the ideal source, so R1 still has 6 V across it and its current stays at 6 mA. The total current rises, because R2 now takes 60 mA.

  4. 04Parallel is less than the smallestParallel

    With R1 = 1 kΩ and R2 = 2 kΩ in parallel, is the total resistance above or below 1 kΩ?

    + What happens and why

    Total resistance: 666.7 Ω → 500 Ω

    Below. 1 kΩ ∥ 2 kΩ = 667 Ω: a second path always lets more current through. Making R2 equal to R1 halves the total to 500 Ω, so the source current rises.

  5. 05Load a voltage dividerDivider

    A 10 kΩ / 10 kΩ divider gives half the supply. What happens to Vout if you connect a 10 kΩ load across R2?

    + What happens and why

    Vout: 3.00 V → 2.00 V

    The load sits in parallel with R2, so the bottom half becomes 5 kΩ and Vout drops from 3 V to 2 V. A divider only gives its ideal ratio when the load draws much less current than the divider itself.

  6. 06Protect the LEDLED

    A red LED on 9 V with a 100 Ω resistor. Is the current safe for a typical 20 mA LED?

    + What happens and why

    LED current: 70.0 mA → 14.9 mA

    With the 2.0 V approximation, 100 Ω gives (9 − 2) / 100 = 70 mA, far too much. 470 Ω gives about 15 mA. The resistor sets the current because the LED's voltage stays roughly fixed.

  7. 07Below the forward voltageLED

    A blue LED (about 3.0 V) with a 220 Ω resistor on 5 V. What happens if the supply drops to 2.5 V?

    + What happens and why

    LED current: 9.09 mA → 0 mA

    2.5 V is below the 3.0 V forward voltage, so in this model no current flows and the LED is off. A real LED fades out gradually rather than switching off at an exact voltage.

How to read this

The source pushes conventional current out of its positive terminal (the long plate), round the loop and back into the negative one. Arrows show its direction; thicker wires carry more current, and every reading is written next to its part.

Ohm's law: the voltage across a resistor is its current times its resistance (V = I × R). Kirchhoff's current law: current that splits at a junction adds back up to the same total. Kirchhoff's voltage law: the voltages round any loop add up to the source voltage. Power (P = V × I) is the rate energy is turned into heat or light; the table shows that it all adds up to what the source supplies.

Assumptions & limitations
  • An idealised teaching model, not a design tool. Use it to understand the laws; check real circuits against datasheets and with a meter, and ask a teacher before building anything.
  • Ideal source: it holds its voltage whatever current is drawn. Real batteries have internal resistance, so their voltage sags under load and they can get hot if shorted.
  • Ideal wires with zero resistance, and exact resistor values. Real resistors have a tolerance (often ±1 % or ±5 %) and change slightly as they warm up.
  • LED forward voltages (red ≈2.0 V, blue ≈3.0 V) are fixed approximations. A real LED's voltage varies between parts and rises with current, and it starts to glow gradually rather than at an exact voltage.
  • Power-rating warnings use typical values (0.25 W for a small resistor, 20 mA for a small LED). Real parts vary: always check the part's own rating.
  • The moving dots and their speed only show which way conventional current flows and roughly how much. Electrons actually drift the other way, very slowly.
  • Low voltage only: the model refuses more than 12 V. Mains electricity is dangerous and is never something to experiment with.
Can't use the interactive? Read a description instead

In the circuits lab's LED circuit, the readout shows the LED current and warns above 20 mA. On 5 V with a red LED (2.0 V), 150 ohms gives 20 mA; 220 ohms gives about 13.6 mA. Switching to a blue LED (3.0 V) with the same resistor lowers the current because the resistor's share of the voltage falls. Below the forward voltage, no current flows and the LED is off.

3.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

A red LED (Vf = 2.0 V) runs from 5 V and should carry 15 mA. What series resistor is needed, in ohms?

Ω

4.Apply it

Design the power light for a 9 V robot: choose a red or blue LED, a current between 5 and 15 mA, the standard resistor, and check its power is under 0.25 W. Build it in the circuits lab and record the simulated current next to your calculation.

5.Understand

LEDs are not resistors

An LED is a diode: below its forward voltage almost no current flows, and above it the current rises extremely steeply (you saw this on the V–I plotter). On its own it cannot limit its own current, so a tiny overshoot in voltage can mean a huge, destructive current.

The resistor takes the rest

Put a resistor in series. The LED settles at about its forward voltage and the resistor takes the remainder, Vs − Vf. Because the resistor is ohmic, that voltage fixes the current: I = (Vs − Vf) ÷ R.

Pick a real value, then recheck

Calculate R, choose the next standard value up (so the current is a little less, not more), then recalculate the current and the resistor's power. Typical small indicator LEDs are rated around 20 mA; 5–15 mA is usually bright enough.

Explain it another way

The LED is like a door that is jammed shut until you push past a threshold, then flies wide open. The resistor is a doorstop that stops it slamming.

Derivation: Where R = (Vs − Vf) ÷ I comes from
  1. Loop rule around supply, resistor and LED: Vs = V_R + Vf, where Vf is the LED's forward voltage (about 2.0 V for red, 3.0 V for blue in this model).

  2. So the resistor's voltage is V_R = Vs − Vf.

  3. It is a series loop, so the same current I flows through the resistor and the LED. Ohm's law for the resistor: V_R = I × R.

  4. Combine: I × R = Vs − Vf, so R = (Vs − Vf) ÷ I.

  5. Example: Vs = 5 V, red LED, I = 15 mA: R = (5 − 2) ÷ 0.015 = 200 Ω. The nearest standard value above is 220 Ω, giving I = 3 ÷ 220 ≈ 13.6 mA: safe and still bright.

Worked example 1

A blue LED (Vf = 3.0 V) on a 5 V supply should take 10 mA. Which resistor?

R = (5 − 3) ÷ 0.010 = 200 Ω. Choose 220 Ω (next standard value up): I = 2 ÷ 220 ≈ 9.1 mA.

Worked example 2

Why is the 'next value up' safer than the 'nearest value'?

A larger resistor gives slightly less current, which keeps the LED below its rating even with resistor tolerance. A smaller one could push it over.

Common mix-ups

  • The resistor must go on the + side of the LED.
    ✓ In a series loop the current is the same everywhere, so the resistor works on either side.
  • A bigger resistor makes the LED brighter.
    ✓ A bigger resistor means less current, so the LED is dimmer.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A red LED drops 2.0 V when lit. It runs from a 12 V supply and should carry 5 mA. What series resistor is needed, in ohms?

Ω

Practice 3

You fit a 220 Ω resistor in series with a red LED (Vf = 2.0 V) on 5 V. What current actually flows, in milliamps?

mA

Practice 4

Why must an LED never be connected straight across a 5 V supply?

Practice 5

The same 150 Ω resistor and 5 V supply are used with a red LED (2.0 V) and then a blue LED (3.0 V). Which carries more current?

7.Predict

A red LED (2.0 V when lit) runs from 5 V through a resistor. How much voltage does the resistor take?

Guess first. Being wrong here is how the surprise works.

8.Reflect

Concepts: Voltage, current and Ohm's law · Series and parallel circuits