TactivergeLite

Lite / Textbooks / Electrical and Embedded Systems / Chapter 2

2. Ohm's law and real components

Version 1 · Technically checked (automated checks only) · 4 source lessons · Full interactive version

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.

Figure 2.1. Slope = 1 / R (described in words)

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

Built from 4 School lessons. Each part is the lesson's own explanation.

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

Open the Lite 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

Open the Lite 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

Open the Lite 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

Open the Lite 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, in words

Figure 2.2 from Ohm's law: V = I × R

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

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.

The interactive versions are in the full chapter.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. There are 6 V across a 1.5 kΩ resistor. What current flows, in milliamps?
    Answer it in “Ohm's law: V = I × R”
  2. On a current-against-voltage graph, resistor X's line is steeper than resistor Y's. Which has the larger resistance?
    Answer it in “Ohm's law: V = I × R”
  3. A filament lamp's V–I graph curves so that equal voltage steps give smaller and smaller current steps. Why?
    Answer it in “Ohm's law: V = I × R”
  4. A 470 Ω ± 5% resistor: what is the lowest resistance it could have, in ohms?
    Answer it in “Real resistors, and sensors that resist”
  5. An NTC thermistor in a battery pack reads 10 kΩ at 25 °C. If the pack heats up, the reading will…
    Answer it in “Real resistors, and sensors that resist”
  6. A red LED (Vf = 2.0 V) runs from 5 V and should carry 15 mA. What series resistor is needed, in ohms?
    Answer it in “Keep the LED alive: current-limiting resistors”
  7. Why must an LED never be connected straight across a 5 V supply?
    Answer it in “Keep the LED alive: current-limiting resistors”
  8. Your answer is exactly 1000 times bigger than the simulator's. The most likely cause is…
    Answer it in “Module check: when calculation meets simulation”

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)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Ohm's law
For a resistor, the voltage across it equals the current through it multiplied by its resistance. Field Guide
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. Field Guide
Resistor colour code
Through-hole resistors show their value as coloured bands: digit bands, then a multiplier band, then a tolerance band. Field Guide
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. Field Guide
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. 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

Write it up on paper or in your own notes. Lite never stores what you write.

References

← 1. Charge, current and voltage3. Series, parallel and dividers →