Learning Goals 5 min
By the end of this lesson you will be able to:
- Name the three quantities in Ohm's Law — voltage, current and resistance — and the unit each one is measured in.
- Rearrange
V = I × Rto calculate any one of the three when you know the other two. - Predict how much current would flow if the Arduino's
5Vpin was connected toGNDthrough a 220 Ω resistor, a 1 kΩ resistor and a 10 kΩ resistor — and explain which value would make an LED glow brightly.
Warm-Up 10 min
Last lesson we wired the Arduino's 5V and GND pins to the breadboard's power rails. Today we learn the maths that decides what we plug between them.
Quick-fire puzzle
Imagine a long garden hose connected to a tap in Petaling Jaya. The tap is open and water is rushing through. Now answer these without peeking:
- You squeeze the hose tightly halfway down. What happens to how fast water comes out the other end?
- You squeeze the hose much harder. What happens now?
- What part of an electrical circuit acts the same way as squeezing the hose?
Reveal the answer
- The water slows down. The squeeze is making the path narrower, so less water can get through per second.
- Even less water comes out. A harder squeeze means a narrower path means less flow.
- A resistor does the same thing to electricity. The tighter the squeeze (the larger the resistor value), the smaller the current that gets through.
That single idea — that a resistor "squeezes" current — is what Ohm's Law lets you calculate exactly.
New Concept 20 min
The big idea — water in a hose
Every electrical circuit has three properties that work like a water hose:
- Voltage (symbol
V, measured in volts) is the water pressure. How hard the electricity is being pushed. - Current (symbol
I, measured in amperes or milliamps) is the water flow. How much electricity actually moves per second. - Resistance (symbol
R, measured in ohms) is the narrowness of the hose. How much the flow is restricted.
Open the tap wider, or squeeze the hose harder, and see which of the three moves. The picture below is the same circuit written as water — every control has an electrical name underneath it.
| In the pipes | In the circuit | Right now |
|---|---|---|
| How high the tank sits | Voltage | 5.0 V |
| How much water is left | Charge in the battery | 100% |
| How tight the squeeze is | Resistance | 220 Ω |
| How fast the water runs | Current | 13.6 mA |
| How fast the wheel spins | How bright the LED is | fast |
Where the picture stops being true
- Water will happily pour out of a cut pipe onto the floor. Electricity will not: it only moves round a complete loop, so a wire that stops in mid-air carries nothing at all.
- The wire is already full of electrons before you connect anything — more like a hose already full of water than an empty one. That is why the LED lights instantly instead of waiting for charge to travel from the battery.
- Squeezing a real pipe makes the water speed up through the narrow bit. A resistor does not work that way — it turns the lost energy into heat, which is exactly how a kettle and a light bulb work.
Read the "where this picture stops being true" list at the bottom of the lab before you go on. Every model breaks somewhere, and knowing where is part of using it safely.
Ohm's Law in three forms
These three quantities are tied together by a famous formula called Ohm's Law:
V = I × R
That single equation can be rearranged three ways depending on which quantity you are trying to find:
- Find voltage:
V = I × R - Find current:
I = V ÷ R— the one you will use most. - Find resistance:
R = V ÷ I
Quantities and units
| Quantity | Symbol | Unit | What it measures |
|---|---|---|---|
| Voltage | V | volt (V); millivolt (mV) = 0.001 V | Electrical pressure pushing electrons along. |
| Current | I | ampere (A); milliamp (mA) = 0.001 A | How much electricity flows per second. |
| Resistance | R | ohm (Ω); kilohm (kΩ) = 1000 Ω | How hard the circuit is squeezing the flow. |
Everyday voltages
| Source | Voltage | Note |
|---|---|---|
| AA battery | 1.5 V | Single-cell, safe. |
| 9V battery (square) | 9 V | Used with the Arduino's barrel jack. |
Arduino's 3V3 pin | 3.3 V | For sensors and modules that need 3.3 V. |
Arduino's 5V pin | 5 V | Our default supply for Level 1. |
| UK / Malaysia wall socket | 230 V AC | Never touch. Stay with the Arduino — adults handle mains. |
Which way does the current actually go?
Current has a direction, and there are two answers to what that direction is. Every schematic in this course — and every one you will ever read — draws current leaving + and arriving at −. That is called conventional current. The electrons themselves are negatively charged, so they physically drift the other way.
Both pictures give the same answers to every calculation in this lesson. Switch between them below and watch what changes and what does not.
Conventional current is what every arrow in this course, every datasheet and every circuit diagram means: it runs from + round to −. Benjamin Franklin picked that direction about a hundred years before anybody knew what was actually moving, and he picked it backwards. It was far too late to change by the time we found out.
So why does the lamp light instantly? Because the wire is already full of electrons — the battery does not have to send any all the way round. It pushes on the ones at this end, and the whole line shuffles forward at once, like water in a hose that was already full. The push travels at nearly the speed of light; the electrons themselves barely crawl.
Use conventional current for everything you draw. The electron picture matters when you meet semiconductors later; it never changes an Ohm's Law sum.
How you'll write down a calculation
For the rest of this lesson, work each Ohm's Law problem out on paper or in your notebook — exactly the way you'd lay out a maths sum. Show every step. That way you can spot where a calculation went wrong, and your teacher can give credit for correct working even if the final number is off.
Example: a 220 Ω resistor on its own between the Arduino's 5 V pin and GND — no LED, nothing else in the path.
- Given:
V = 5 V,R = 220 Ω - Find:
I - Formula:
I = V ÷ R - Working:
I = 5 ÷ 220 = 0.0227 A = 22.7 mA
Notice the words on its own. The whole 5 V is pushed across the resistor because nothing else in the loop takes any of it. The moment you add an LED — which you will in L01-07 — the LED keeps about 2 V for itself and the sum changes. We come back to that in the Worked Example.
Why it matters
Without Ohm's Law you would either burn out components (too much current melts LEDs and chips) or have them be invisible (too little current makes nothing happen). Every electronic component in this course has a current limit. Ohm's Law tells you exactly what resistor to use to stay safely under it.
Worked Example 20 min
Goal: predict how much current flows when the Arduino's 5V pin is connected through different resistors to GND.
Step 1 — write down what you know
- Arduino's
5Vpin produces 5 V. - Resistor value: 220 Ω.
- We want to find the current (
I).
Step 2 — pick the right form of Ohm's Law
We know V and R, we want I. So use:
I = V ÷ R
Step 3 — plug in the numbers
I = 5 ÷ 220 = 0.02272…amperes- Convert to milliamps:
0.02272 × 1000 = 22.7 mA
So a 220 Ω resistor on its own across 5 V lets about 22.7 mA flow.
Step 4 — compare to a bigger resistor
What if we swapped to a 10 kΩ resistor instead?
I = 5 ÷ 10000 = 0.0005amperes = 0.5 mA- That is 45 times less current — far too little to light anything.
Step 5 — now put an LED in the loop
This is the step that trips people up, so do it slowly. An LED is not a resistor: it keeps about 2 V for itself no matter what else is in the circuit. That 2 V is called its forward voltage. Only what is left over gets pushed across the resistor.
- Voltage the resistor actually sees:
5 − 2 = 3 V - Formula:
I = (V_pin − V_F) ÷ R - Working:
I = 3 ÷ 220 = 0.0136 A = 13.6 mA
So the same 220 Ω resistor passes 22.7 mA on its own and 13.6 mA with an LED in series. Both numbers are right; they are answers to different questions. A standard LED is rated for about 20 mA, so 13.6 mA is bright and safe — which is exactly why 220 Ω is the resistor in your kit.
Step 6 — push on it
Drag the two sliders. The number, the speed of the current dots and the brightness of the LED all move together, because they are all the same fact. Take the resistor below about 150 Ω and watch what happens to the LED.
I = (5.0 − 2.0) ÷ 220 = 13.6 mA
Healthy. Comfortably inside the LED's 20 mA rating.
The 2 V subtracted is the LED's own forward voltage — the bit it keeps for itself. Only what is left over is pushed through the resistor, which is why swapping the resistor changes the brightness but swapping the LED colour changes it too.
Step 7 — write it up in your notebook
A neat summary of all three calculations side by side:
V = 5 V(from the Arduino 5V pin)- 220 Ω alone:
I = 5 ÷ 220 = 22.7 mA - 10 kΩ alone:
I = 5 ÷ 10 000 = 0.5 mA - 220 Ω + red LED:
I = (5 − 2) ÷ 220 = 13.6 mA→ bright and safe
What changed since last lesson? The hardware is exactly the same as L01-04. The new skill is sitting at your desk and being able to predict what would happen before you wire anything up.
Try It Yourself 20 min
Work each problem out in your notebook. Show your formula, your numbers and your answer with units.
Goal: A 1 kΩ resistor is connected from 5V to GND. How much current flows?
- Given:
V = 5 V,R = 1 000 Ω - Find:
Iin milliamps - Formula:
I = V ÷ R - Working:
I = ____ ÷ ____ = ____ A = ____ mA
Goal: A small buzzer is rated to handle a maximum of 30 mA at 5 V. What is the smallest resistor you can safely put in series with it?
Hint: use R = V ÷ I and convert 30 mA to amps first (30 mA = 0.030 A).
- Given:
V = 5 V,I_max = 30 mA = 0.030 A - Find:
Rin ohms - Formula:
R = V ÷ I - Working:
R = ____ ÷ ____ = ____ Ω
Goal: You want an LED to glow gently — about 5 mA — from a 5 V supply. An LED "uses up" about 2 V of the supply itself, so the resistor only sees 5 − 2 = 3 V across it. What resistor do you need?
- Given:
V_resistor = 3 V,I_desired = 5 mA = 0.005 A - Find:
Rin ohms - Formula:
R = V ÷ I - Working:
R = ____ ÷ ____ = ____ Ω - Closest standard resistor in the kit: ____ Ω
Mini-Challenge 15 min
Plan the LED circuit
Combine today's Ohm's Law skill with the breadboard layout from ARD-L01-04. You will not build this yet — that happens in two lessons' time — but you should be able to plan it on paper.
Your task:
- On a sheet of paper, draw the Arduino UNO and a breadboard side by side.
- Pick a resistor value from the kit — 220 Ω, 470 Ω, 1 kΩ or 10 kΩ — that will let about 15 mA flow through an LED. Assume the LED drops 2 V, so the resistor sees 3 V.
- Use Ohm's Law to prove your resistor choice gives a current close to 15 mA. Write the calculation next to your drawing.
- Mark on the drawing exactly which breadboard holes the resistor and LED would plug into, and which wires go where.
It works if a partner can read your drawing and your calculation and agree on three things:
- Your resistor maths gives a current between 5 mA and 25 mA (safe and visible).
- The resistor and the LED are in series — they sit one after the other in the path from
5VtoGND, not side by side. - Nothing in your drawing connects
5Vdirectly toGNDwithout going through the resistor and LED.
Recap 5 min
Voltage is the push, current is the flow, resistance is the squeeze. They are tied together by V = I × R, which you can rearrange three ways to find any quantity from the other two. Bigger resistor → smaller current → dimmer LED.
- Voltage (V)
- Electrical pressure, measured in volts. The Arduino's
5Vpin gives 5 V. - Current (I)
- How much electricity flows per second, measured in amperes (A) or milliamps (mA). 1 A = 1000 mA.
- Resistance (R)
- How hard a circuit squeezes the flow, measured in ohms (Ω) or kilohms (kΩ). 1 kΩ = 1000 Ω.
- Ohm's Law
- The formula
V = I × R. The single most useful equation in electronics. - Short circuit
- Connecting
5Vdirectly toGNDwith no resistance in between. Don't.
Homework 5 min
Three calculations. Answer all three in your notebook. For each one show the formula, your numbers and your answer with units.
V = 5 V,R = 470 Ω. FindIin milliamps.V = 9 V(a 9 V battery),I = 20 mA. FindRin ohms.- You want exactly
10 mAto flow from5Vthrough a resistor (no LED, just the resistor) toGND. What value ofRdo you need?
Bring back next class: your notebook page or a phone photo of the page, with all three calculations worked out neatly.