Skip to content
Tactiverge

Textbooks/Electrical and Embedded Systems/Chapter 2Lite (plain text) version

2Ohm's law and real components

Version 1 · Technically checked (automated checks only) · 4 source lessons · 8 practice items

Text
All chapters and search
  1. 1. Charge, current and voltage
  2. 2. Ohm's law and real components
  3. 3. Series, parallel and dividers
  4. 4. Power, energy and batteries
  5. 5. Inside a microcontroller
  6. 6. Pins, inputs and sensors
  7. 7. PWM, state machines and actuators
  8. 8. Talking between chips
  9. 9. Registers, interrupts and integration

Introduction

For a resistor, double the voltage and the current doubles: the graph of current against voltage is a straight line whose slope is one over the resistance. Real parts add complications. Resistors come in standard values with tolerances, sensors such as thermistors and light-dependent resistors change resistance on purpose, and an LED is not a resistor at all, so it needs one in series to limit its current.

100 Ω: 50 mA220 Ω: 22.7 mAvoltage (V), 0 to 5current (mA)slope = 1 / R
Figure 2.1. Slope = 1 / R. Current against voltage from 0 to 5 V for two resistors. At 5 V, 100 Ω passes 50 mA and 220 Ω passes 22.7 mA; the larger resistance gives the shallower straight line, because the slope is 1 / R.

Explanation

This chapter is built from 4 School lessons. Each part below is the lesson's own explanation; open the lesson for its predict-and-discover activities.

2.1 Ohm's law: V = I × R

Measure the current through a resistor at 1 V, 2 V and 3 V. One number connects all three readings. Can you find it before the graph does?

The law

For a resistor at a steady temperature, V = I × R. Know any two of voltage (V), current (A) and resistance (Ω) and you can find the third. A 220 Ω resistor with 20 mA through it has 0.02 × 220 = 4.4 V across it.

Units are where answers go wrong

Convert first: mA ÷ 1000 → A, kΩ × 1000 → Ω. A current of 5 mA through 2.2 kΩ is 0.005 A × 2200 Ω = 11 V. Then sanity-check: does the answer have the right size and unit?

Reading the graph

Plot current against voltage. For a resistor you get a straight line through the origin: that is what 'ohmic' means. The slope is I ÷ V = 1 ÷ R, so a steeper line means a smaller resistance.

Not everything is ohmic

A filament lamp's line curves over: as it heats, its resistance rises. An LED passes almost nothing below about 1.8–2 V and then the current shoots up. For these, V ÷ I still gives 'the resistance right now', but it changes from point to point.

Derivation: One law, three forms
  1. Start from the experimental finding: for a resistor, current is proportional to voltage, I ∝ V. The constant of proportionality is 1/R, so I = V ÷ R.

  2. Multiply both sides by R: V = I × R.

  3. Divide both sides of V = I × R by I: R = V ÷ I.

  4. Units: volts = amps × ohms. If I is in mA and R in kΩ, the factors of 1000 cancel (10⁻³ × 10³), so mA × kΩ gives volts directly: 5 mA × 2.2 kΩ = 11 V.

Common mix-ups

  • R = V ÷ I means resistance depends on the voltage you apply.
    ✓ For a resistor, R is fixed: change V and I changes in proportion, so V ÷ I stays the same. Only non-ohmic parts change.
  • Ohm's law works for every component.
    ✓ It describes ohmic components. Lamps, LEDs and diodes do not follow a straight line.

Open the full lesson: Ohm's law: V = I × R →

2.2 Real resistors, and sensors that resist

Why can you buy a 4.7 kΩ resistor but not a 4.5 kΩ one? And how can a resistor tell a robot that it is getting dark?

Preferred values

Manufacturers sell resistors in E-series steps. The E24 series has 24 values per decade (1.0, 1.1, 1.2, 1.3, 1.5, … 8.2, 9.1), each about 10% above the last, so 4.7 kΩ exists but 4.5 kΩ does not. The steps are spaced so that, with ±5% tolerance, every resistance is close to some value you can buy.

Tolerance

A resistor marked 4.7 kΩ ± 5% could really be anywhere from 4.7 × 0.95 = 4465 Ω to 4.7 × 1.05 = 4935 Ω. Good designs still work at both ends of every part's range.

Power rating

A resistor turns electrical energy into heat. Small through-hole resistors are commonly rated at 0.25 W; beyond that they overheat. Week 14 shows how to calculate the power; the circuits lab warns you when a resistor would exceed 0.25 W.

Resistors as sensors

A light-dependent resistor (LDR) is a semiconductor whose resistance falls in bright light, from tens of kilohms in the dark to hundreds of ohms in sunshine. An NTC thermistor falls in resistance as it warms. Put either in a circuit and a changing resistance becomes a changing voltage the robot can read.

Common mix-ups

  • A resistor marked 1 kΩ is exactly 1000 Ω.
    ✓ It is within its tolerance of 1000 Ω, for example 950 Ω to 1050 Ω at ±5%.
  • Any resistor can take any current if the value is right.
    ✓ Each resistor has a power rating; above it, it overheats, drifts and can fail.

Open the full lesson: Real resistors, and sensors that resist →

2.3 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?

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.

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.

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.

Open the full lesson: Keep the LED alive: current-limiting resistors →

2.4 Module check: when calculation meets simulation

Your calculation says 4.50 mA. The simulator says 4.49 mA. A meter on a real board might say 4.3 mA. Who is right?

Three ways to know

A calculation shows you understand the circuit. A simulation checks the arithmetic and handles circuits too tedious to solve by hand. A measurement checks reality, including everything the model left out. Agreement between all three is evidence; disagreement is a clue.

Small differences

Rounding during the calculation, standard resistor values instead of ideal ones, and resistor tolerance (±5%) all cause small differences. If your answer is within a few per cent and you can name the reason, that is a match.

Big differences

Ten times out? Look for a unit mistake (mA vs A, kΩ vs Ω). Current zero? Look for an open circuit or an LED below its forward voltage. Wildly high? Look for a short circuit or a resistor in parallel instead of series.

Meters change circuits too

An ammeter measures current, so the current must pass through it: it goes in series and has very low resistance. A voltmeter measures a difference across a part, so it goes in parallel and has very high resistance. Wire them the wrong way and you change, or even short out, the circuit you are measuring.

Common mix-ups

  • If the simulator disagrees with me, the simulator must be wrong.
    ✓ Check your units and connections first. Simulators follow the equations exactly; they are only wrong when the model or the input is.
  • A measured value that differs from the calculation means the circuit is faulty.
    ✓ Small differences within tolerance are expected. Only differences you cannot explain point to a fault.

Open the full lesson: Module check: when calculation meets simulation →

Worked examples

Ohm's law: V = I × R: example 1

A 9 V battery is connected across a 450 Ω resistor. What current flows?

Solution

I = V ÷ R = 9 ÷ 450 = 0.02 A = 20 mA.

Ohm's law: V = I × R: example 2

A sensor has 3.3 V across it and draws 1.5 mA. What is its resistance?

Solution

R = V ÷ I = 3.3 ÷ 0.0015 = 2200 Ω (2.2 kΩ).

Real resistors, and sensors that resist: example 1

A design needs about 450 Ω. Which E24 value would you choose, and what is its 5% range?

Solution

Nearby E24 values are 430 Ω and 470 Ω. If the current must not exceed a limit, pick the larger, 470 Ω. Range: 470 × 0.95 = 446.5 Ω to 470 × 1.05 = 493.5 Ω.

Keep the LED alive: current-limiting resistors: example 1

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

Solution

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

Keep the LED alive: current-limiting resistors: example 2

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

Solution

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.

Module check: when calculation meets simulation: example 1

A student calculates 0.45 A through a 2 kΩ resistor on 9 V. The simulator shows 4.5 mA. Diagnose.

Solution

9 ÷ 2000 = 0.0045 A = 4.5 mA. The student forgot to convert kΩ to Ω (they divided by 20 instead of 2000, or misread the unit). The simulator is right; the factor of 100 is the clue that it is a unit slip, not a rounding difference.

Interactive figures

Figure 2.2 from Ohm's law: V = I × RChoose the 220 Ω resistor. Record points at 1 V, 2 V, 4 V and 6 V and check that V ÷ I is the same each time. Do the same for the 100 Ω resistor: which line is steeper? Then try the filament lamp and the LED and record three points each. What is different about their V ÷ I?
Can't use the interactive? Read a description instead

The V–I plotter shows current (0 to 60 mA) against voltage (0 to 6 V). The 100, 220 and 470 ohm resistors give straight lines through the origin; the 100 ohm line is steepest. The filament lamp's curve bends over as its resistance rises. The LED passes almost no current below about 1.8 V, then rises steeply. Recorded points are listed in a table with V ÷ I for each.

Interactive figure (online). Description: The V–I plotter shows current (0 to 60 mA) against voltage (0 to 6 V). The 100, 220 and 470 ohm resistors give straight lines through the origin; the 100 ohm line is steepest. The filament lamp's curve bends over as its resistance rises. The LED passes almost no current below about 1.8 V, then rises steeply. Recorded points are listed in a table with V ÷ I for each.

Laboratory

Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.

  • Simulation OS experiment

    Simulation OS: LED current limiting

    Choose the nearest standard resistor for a red LED on 5 V and check the resulting current and resistor power.

    Open Simulation OS: LED current limiting →
  • Studio

    Electronics Studio

    Plot current against voltage for a resistor and for a lamp, and explain why only one is a straight line.

    Open Electronics Studio →

Guided practice

Answers are checked on the server; wrong answers get a hint and another try. Signed in, solved items also count towards the source lesson.

Practice 1

There are 6 V across a 1.5 kΩ resistor. What current flows, in milliamps?

mA

Practice 2

On a current-against-voltage graph, resistor X's line is steeper than resistor Y's. Which has the larger resistance?

Practice 3

A filament lamp's V–I graph curves so that equal voltage steps give smaller and smaller current steps. Why?

Practice 4

A 470 Ω ± 5% resistor: what is the lowest resistance it could have, in ohms?

Ω

Practice 5

An NTC thermistor in a battery pack reads 10 kΩ at 25 °C. If the pack heats up, the reading will…

Practice 6

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

Ω

Practice 7

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

Practice 8

Your answer is exactly 1000 times bigger than the simulator's. The most likely cause is…

  1. There are 6 V across a 1.5 kΩ resistor. What current flows, in milliamps? (mA)
  2. On a current-against-voltage graph, resistor X's line is steeper than resistor Y's. Which has the larger resistance?
    • X
    • Y
    • They are equal
  3. A filament lamp's V–I graph curves so that equal voltage steps give smaller and smaller current steps. Why?
    • The lamp is broken
    • Its filament heats up and its resistance rises
    • Ohm's law stops working at high voltage for everything
  4. A 470 Ω ± 5% resistor: what is the lowest resistance it could have, in ohms? (Ω)
  5. An NTC thermistor in a battery pack reads 10 kΩ at 25 °C. If the pack heats up, the reading will…
    • Go above 10 kΩ
    • Go below 10 kΩ
    • Stay at 10 kΩ
  6. A red LED (Vf = 2.0 V) runs from 5 V and should carry 15 mA. What series resistor is needed, in ohms? (Ω)
  7. Why must an LED never be connected straight across a 5 V supply?
    • LEDs only work on AC
    • Without a resistor nothing limits the current, which can rise far above the LED's rating
    • It would be too dim
  8. Your answer is exactly 1000 times bigger than the simulator's. The most likely cause is…
    • Resistor tolerance
    • Rounding
    • A unit slip, such as mA vs A or kΩ vs Ω

Engineering applications

  • Indicator LEDs

    Every power light on every gadget has a resistor beside it. Its value is picked from a standard series, then the current is recalculated to check the LED stays bright enough and well inside its rating.

  • Temperature sensing

    Thermostats, battery packs and 3D printer hot ends use thermistors whose resistance falls as they heat. Measuring that resistance, usually through a divider, gives a cheap and robust thermometer.

Watch

Optional verified videos. Nothing loads from YouTube until you press play.

A calm walkthrough of how voltage, current and resistance relate, with simple worked examples.

12 min 17 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

Covers what resistance is, how resistivity, length and thickness set it, and how resistors combine.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

  • Ohm's law | Physics | Khan Academy (Khan Academy)
  • DC Resistors & Batteries: Crash Course Physics #29 (CrashCourse)

Chapter summary

  • Ohm's law, V = I × R, holds for resistors; their V–I graph is a straight line with slope 1 / R.
  • Resistors come in standard values with a tolerance, so real currents differ from ideal ones.
  • Thermistors and LDRs are resistors that change with temperature or light, which makes them sensors.
  • An LED needs a series resistor: R = (Vsupply − Vforward) / I.

Glossary

Ohm's law
For a resistor, the voltage across it equals the current through it multiplied by its resistance.
LED current-limiting resistor
An LED needs a series resistor to set its current, chosen so that the supply voltage minus the LED's forward voltage, divided by the resistance, gives the desired current.
Resistor colour code
Through-hole resistors show their value as coloured bands: digit bands, then a multiplier band, then a tolerance band.
Diode forward voltage
A diode conducts in one direction once the voltage across it reaches its forward voltage, after which its voltage stays roughly constant whatever the current.
Measuring with a multimeter
A multimeter measures voltage across a component (in parallel), current through a branch (in series, by breaking the circuit), and resistance on an unpowered part.

Definitions from the Field Guide.

Project: An LED panel that will not burn out

Design the resistors for three LEDs of different colours on a 5 V supply, using standard resistor values. For each, compute the current at nominal, minimum and maximum resistor tolerance, and the power in the resistor. Show the design stays within every rating.

Deliverables

  • The resistor choice for each LED
  • A table of currents across the tolerance range
  • A check of every power rating

Keep your work in your Engineering Journal; it stays private unless you choose to share it.

References

  • Paul Horowitz and Winfield Hill (2015). The Art of Electronics, 3rd edition. Cambridge University Press.
  • Paul Scherz and Simon Monk (2016). Practical Electronics for Inventors, 4th edition. McGraw-Hill Education.

Publication record

Version
1
Status
Technically checked (automated checks only)
Technical review
Automated checks only, last run 2026-11-29. No human, educator or mentor review is claimed.src/content/textbooks/textbooks.test.ts: schema, every lesson, diagram, practice item, video, Field Guide entry, lab and reference resolves; figure numbers recomputed; no practice answers in client payloads.
Written by
Compiled and written by the Tactiverge team with AI assistance, from Tactiverge School lessons that were themselves written with AI assistance.
Licence
All rights reserved by the founders unless a licence is approved.
Corrections
None recorded yet.Spotted a mistake? Use “Report a problem” on any chapter, or see the corrections page.