When you switch on a lamp, a charger or an Arduino, an electric current flows through the wires. How strong the current is depends on the voltage of the source and on the resistance of the device – and the link between them is Ohm's law. On this page you build a circuit with one or two resistors and watch what happens to the current and the voltages.
Choose the connection (one resistor, series or parallel), set the source voltage and the resistances and turn the switch on or off. The yellow dots show the direction of the current (from + to − through the circuit), and the stronger the current, the faster they move. A resistor that uses more power glows more brightly. The ammeter A measures the total current.
By convention the current in a circuit flows from the + terminal of the source, through the devices, to the − terminal (conventional current); the electrons actually move the other way.
I = U / R (U = I · R, R = U / I)
The current is proportional to the voltage and inversely proportional to the resistance: twice the voltage – twice the current; twice the resistance – half the current. In the simulation: choose “one resistor”, R1 = 12 Ω and U = 6 V – the ammeter shows 0.5 A.
An electric circuit is made of a source (battery, accumulator), devices (lamp, resistor, motor), conductors and a switch. Current flows only through a closed circuit – when the switch is opened, the current stops.
The resistors are connected one after another, so the current has only one path:
If one device burns out, the whole circuit is broken (old Christmas lights).
The resistors are connected between the same points (junctions), so the current splits:
This is how the appliances in a house are connected: each one gets 230 V and works independently of the others.
Resistors R1 = 30 Ω and R2 = 60 Ω are connected to a 9 V source.
| series | parallel | |
|---|---|---|
| Re | 30 + 60 = 90 Ω | 1 / (1/30 + 1/60) = 20 Ω |
| I | 9 / 90 = 0.1 A | 9 / 20 = 0.45 A |
| R1 | U1 = 3 V, I1 = 0.1 A | U1 = 9 V, I1 = 0.3 A |
| R2 | U2 = 6 V, I2 = 0.1 A | U2 = 9 V, I2 = 0.15 A |
These are the starting settings of the simulation – switch the connection and check the table.
The electrical power of a device is P = U · I, and its unit is the watt (W). The electrical energy used is E = P · t; electricity bills are paid in kilowatt-hours (kWh). Every conductor carrying a current gets warm – that is why too large a current (e.g. a short circuit) can start a fire, and fuses break the circuit when the current becomes too large. The 230 V mains voltage is life-threatening – experiments are done only with batteries and low voltages.
When you connect an LED to an Arduino, you always add a resistor to limit the current – its resistance is calculated with Ohm's law. An Arduino can also measure voltage, so you can use Ohm's law to find an unknown resistance: measuring an unknown resistor with Arduino.
Solve the problem, then check the solution (and in the simulation).
I = U / R = 6 / 12 = 0.5 A.
R = U / I = 4 / 0.2 = 20 Ω.
Re = 30 Ω, I = 12 / 30 = 0.4 A; U1 = 0.4 · 10 = 4 V, U2 = 0.4 · 20 = 8 V (the sum is 12 V).
I1 = 6 / 6 = 1 A, I2 = 6 / 3 = 2 A, I = 3 A; Re = U / I = 6 / 3 = 2 Ω (check: 1/6 + 1/3 = 1/2).
The resistor must take 5 − 2 = 3 V at a current of 0.02 A: R = 3 / 0.02 = 150 Ω (in practice the next larger standard value is used, e.g. 220 Ω).
1. What is the unit of electrical resistance?
2. How is an ammeter connected?
3. What is the same for all resistors in a series connection?
4. Two 10 Ω resistors are connected in parallel. The equivalent resistance is:
5. The voltage across a resistor is doubled. The current through it:
Related: conservation of energy – in a resistor electrical energy turns into heat.
🛠 Build this kind of simulation yourself: Measuring an unknown resistor with Arduino and Ohm's law
Electric circuits – for teachers – lesson plan
Level: Age 13–14 (electric current); secondary school (direct current circuits)
With one resistor students change the voltage, record the current and draw an I(U) graph, concluding that it is a straight line. Then for the same resistors (30 Ω and 60 Ω) they fill in a table for series and parallel connections and check the rules for currents, voltages and equivalent resistance.