13.4  The series resistor

A battery, a USB charger or an ESP32 pin holds its voltage and has no current limit, so an LED connected straight to one ends like Ben’s first LED. A resistor in series gives the LED a current limit of its own, in any circuit, and its value takes one line to calculate. Ben Eater’s second video builds the same circuit.

The voltage budget

Suppose the supply gives 5 V and the LED should run at about 1.9 V and 20 mA. The two cannot simply be connected: 5 V across the LED would drive an enormous current. Ben draws the solution as a budget. Going once around the loop, from the + of the supply through the parts and back to its −, the voltages across the parts add up to the voltage of the supply. This is Kirchhoff’s voltage law, and it holds in every closed loop. If the LED takes 1.9 V of the 5 V, the remaining 3.1 V must be taken by something else, and that something is a resistor:

\[ 5~\text{V} = \underbrace{3.1~\text{V}}_{\text{resistor}} + \underbrace{1.9~\text{V}}_{\text{LED}}. \]

Figure 13.4.1 shows the budget in the Falstad simulator, with one slider for the supply voltage and one for the resistance. Whatever we set, the voltmeters across the resistor and the LED add up to the supply voltage.

Figure 13.4.1: The LED with a 220 Ω series resistor at 5 V. The voltmeter above the resistor and the one beside the LED add up to the supply voltage. Drag the sliders for the supply voltage and the resistance.

A resistor obeys Ohm’s law: the voltage across it is its resistance \(R\) times the current \(I\) through it,

\[ U = RI. \tag{13.4.1}\]

In a single loop the same current flows through every part, so the resistor carries the 20 mA of the LED. Solved for \(R\), 13.4.1 gives the resistor that takes 3.1 V at 20 mA:

\[ R = \frac{U}{I} = \frac{5 - 1.9}{0.020}~\Omega = 155~\Omega. \]

That is the whole design. In general, for a supply voltage \(U_s\), an LED forward voltage \(U_f\) and a wanted current \(I\),

\[ R = \frac{U_s - U_f}{I}. \tag{13.4.2}\]

Resistors are sold in a fixed set of standard values, so 155 Ω does not exist. The kit has 150 Ω and 220 Ω. We take the larger one, which gives a little less current than planned and keeps the LED on the safe side, exactly as Ben does. With 220 Ω the current becomes

\[ I = \frac{5 - 1.9}{220}~\text{A} = 0.014~\text{A} = 14~\text{mA}. \]

Write this prediction in the log before building anything.

Step 1: Find and measure the resistor

A through-hole resistor carries its value as coloured bands. The first two bands are digits, the third is the number of zeros to add, and a gold fourth band means ±5 % tolerance. Red-red-brown is 2, 2 and one zero, 220 Ω. In a schematic the resistor is a small box, or a zigzag in American drawings.

Figure 13.4.2: Three resistors from the kit and how to read their bands, and the schematic symbol. Hold the resistor with the gold band on the right and read from the left.

Colours are easy to misread under lab lighting, so we measure every resistor before it goes into a circuit. Set the meter to the 2000 position of Ω, red lead in VmAµA, and touch the probes to the two legs while holding the resistor by one leg only (fingers on both legs add the resistance of the body in parallel). A 220 Ω resistor with 5 % tolerance reads between 209 Ω and 231 Ω. Write the measured value in the log; we use it below.

The resistor datasheet gives two more numbers that matter.1 The power rating of the common small through-hole resistor is 0.25 W, the heat it can get rid of without damage.

Step 2: Build

Set the supply to 0 V with a current limit of 30 mA, twice the predicted current. The resistor takes the place of the red jumper: one leg in the top + rail, the other in the column of the long leg of the LED. The short leg goes to the − rail through the black jumper, as before.

Figure 13.4.3: The LED with a 220 Ω resistor in series. The resistor runs from the + rail into the column of the anode, the cathode goes to the − rail. At 5.00 V the supply delivers about 14 mA, shown as 0.01 on its display, and stays in C.V. mode.

Trace the path of the current with a finger before switching on: from the + rail, through the resistor, into the LED at the long leg, out at the short leg, and down to the − rail. Every step of the path must go through a part; two legs in the same column only connect.

The supply leads end in banana plugs, which do not fit the breadboard. A short piece of solid jumper wire wound tightly round each plug carries the supply to the board, as in Figure 13.4.4.

Figure 13.4.4: The LED and its resistor on the breadboard, lit. A jumper wire wound round each banana plug of the supply leads brings + and − to the board.

Step 3: Measure at 5 V

Switch on and raise the voltage to 5.00 V. The LED lights, the C.V. lamp stays on, and the current display shows 0.01. That confirms that the current is in the right range and that nothing is shorted.

NoteCheckpoint: the LED with its resistor

At 5.00 V the supply shows 0.01 A in C.V. mode, the LED is lit and steady. Photograph the breadboard and log the values.

Step 4: Turn the voltage up and down

Now repeat the experiment that destroyed Ben’s first LED. Turn the voltage from 2 V to 7 V in steps of 1 V and log the current display at each step.

Voltage (V) Predicted (mA) Display (A)
2 0.5
3 5.0
4 9.5
5 14.1
6 18.6
7 23.2

The predictions use 13.4.2 with \(U_f = 1.9~\text{V}\) and \(R = 220~\Omega\). The current now grows steadily, about 4.5 mA per volt, and a volt more or less makes little difference. The resistor has made the circuit robust. In the video, from 8:30, Ben does the same and the LED brightness hardly changes at all.

We stop at 7 V because the LED’s absolute maximum is 30 mA and the current would reach it at about 8.5 V. If the voltage is turned further by mistake, the supply’s 30 mA limit still catches it: the C.C. lamp lights and the current stops rising. Keep both safety nets, the resistor and the current limit, until the circuit is known to work.

Drawing with ground

Figure 13.4.5: The LED with its 220 Ω resistor at 5 V, as a complete loop (left) and with a single supply terminal and ground symbols (right). Both carry 14.5 mA and give the LED 1.82 V.

So far every circuit has been drawn as a complete loop, from the + of the supply through the parts and back to its −. Schematics shorten this (Figure 13.4.5). The − terminal is declared the reference, ground, at 0 V, and every point that connects to it gets a ground symbol instead of a wire back to the supply. The supply shrinks to a single terminal labelled with its voltage above ground, +5V. Nothing is removed: all ground symbols are one node, the − of the supply, and the two circuits show the same current and the same LED voltage. From here on the circuits are drawn with ground, the way the breadboard is wired too, with + on the top rail and − on the bottom rail, so the current runs from the top of the picture to the bottom.

Step 5: A larger resistor

Switch off and change one thing: replace the 220 Ω resistor by a 1 kΩ one (brown-black-red, measured first). The prediction at 5 V is

\[ I = \frac{5 - 1.9}{1000}~\text{A} = 3.1~\text{mA}. \]

Switch on at 5.00 V and compare. The LED is a little dimmer but clearly lit, and the current is about a quarter of what it was. Ben ends his video with this observation: an indicator LED does not need its full rated current, and a resistor of about 1 kΩ is a safe choice for any small LED from 5 V up to 12 V. We only calculate the resistor when we want a particular brightness, or when the supply voltage is low and every volt counts, as on the 3.3 V pins of the ESP32.

How hot does the resistor get?

The resistor turns the voltage it takes into heat. The power is voltage times current,

\[ P = UI. \tag{13.4.3}\]

With 220 Ω at 5 V the resistor takes 3.1 V at 14 mA, so \(P = 3.1 \cdot 0.014~\text{W} = 0.044~\text{W}\), a sixth of the 0.25 W rating. On the car an indicator LED runs from the 12 V battery through 1 kΩ: the resistor takes about 10 V at 10 mA, or 0.1 W, still below half the rating. Keep the power below half the rating; near the full rating a small resistor gets too hot to touch.

Exercises

Exercise 1: Your own budget

The supply is 12 V and a red LED should carry 10 mA. Calculate the resistor, choose the next larger standard value from the kit (220 Ω, 470 Ω, 1 kΩ, 2.2 kΩ, 4.7 kΩ, 10 kΩ), and predict the current and the resistor power. Check the result with the sliders of Figure 13.4.1.

Exercise 2: The measured budget

In the 5 V circuit, measure the voltage across the resistor and across the LED with the multimeter (Measuring DC voltage). Do they add up to the supply voltage? Divide the resistor voltage by the measured resistance from Step 1, and compare the current you get with the supply’s display.

Exercise 3: Too small a resistor

A student uses 47 Ω at 5 V. Predict the current. Which safety net catches the mistake on the lab supply, and what would happen on a USB charger?


  1. Yageo, Through Hole Resistors, Carbon Film Resistors CFR, product specification V.2, 2023, Table 1 (rating 1/4 W at 70 °C for CFR-25) and the ordering code (J = ±5 %). Copy at SparkFun.↩︎