Sub topic 1
Voltage, current, and power: a quick refresher
Every choice later in this tutorial, from picking a battery to sizing a regulator, comes down to three quantities: voltage, current, and power. This chapter restates them in the form you will use for battery work. It also adds a few habits that keep the later calculations honest.
Prerequisites
This chapter assumes you can already do the following:
- Explain voltage, current, and resistance in your own words and apply Ohm's law (V = I × R).
- Build a simple circuit on a breadboard, such as an LED with a resistor.
- Upload and run an Arduino sketch.
You do not need to have worked with batteries or regulators yet.
The three quantities
Voltage is the electrical potential difference between two points. It is always measured relative to a reference, usually ground. When someone says "the pin is at 5 V", they mean 5 V above ground. Voltage is measured across a component, with the meter probes on both sides of it.
Current is the rate at which charge flows through a point. It is measured in series, with the meter placed in the path of the flow. The SI unit is the ampere (A). Hobby electronics mostly uses milliamperes (mA, one thousandth of an ampere) and microamperes (µA, one millionth).
Power is the rate at which energy is transferred. The unit is the watt (W). For any part of a circuit:
- P = V × I
Combined with Ohm's law, this gives two more forms for a resistive part:
- P = I² × R
- P = V² / R
| Quantity | Symbol | Unit | Typical hobby range |
|---|---|---|---|
| Voltage | V | volt (V) | 1.2 V to 12 V |
| Current | I | ampere (A) | 10 µA to 2 A |
| Resistance | R | ohm (Ω) | 10 Ω to 1 MΩ |
| Power | P | watt (W) | 1 mW to 5 W |
| Energy | E | watt-hour (Wh) | 1 Wh to 50 Wh |
A useful mental model: the load decides the current
A common misconception is that a battery or power supply "pushes" a fixed current into a circuit. In practice, the source sets the voltage and the load decides how much current flows.
- A 9 V battery connected to a 900 Ω resistor delivers 10 mA.
- The same battery connected to a 90 Ω resistor delivers 100 mA.
- The battery did not change. The load did.
This is why a 5 V supply rated for 2 A does not damage a board that needs 50 mA. The rating is a maximum the supply can deliver. It is not an amount forced into the board.
The model has a limit. A real source cannot supply unlimited current without its voltage dropping. That effect is internal resistance, covered in a later chapter. For now, treat the source voltage as fixed.
Power in practice: where the watts go
In a battery-powered project, power is accounted for in two places.
- Power consumed by the load. A board running at 5 V and drawing 60 mA uses 5 × 0.060 = 0.3 W.
- Power lost on the way. Any part that drops voltage while carrying current converts the difference into heat. A series resistor, a regulator, and a battery's own internal resistance all do this.
The second point matters most for the regulator chapters. If a part carries current I and has a voltage drop of V across it, it dissipates V × I as heat. Here is a worked example with an LED:
- Supply: 5 V
- LED forward voltage: about 2 V (this is the voltage the LED drops when it conducts)
- Target current: 20 mA
The resistor must drop the remaining 3 V:
- R = 3 V / 0.020 A = 150 Ω
- P = 3 V × 0.020 A = 0.06 W
The resistor turns 0.06 W into heat, so a common 1/4 W (0.25 W) resistor is adequate. The LED itself uses 2 V × 0.020 A = 0.04 W. The resistor wastes more power than the LED uses. A linear regulator wastes power in exactly the same way, at a larger scale.
Energy: power over time
Power is a rate. A battery stores an amount of energy, which is power multiplied by time. Battery packs are labeled in amp-hours or milliamp-hours, but the underlying energy is in watt-hours:
- Energy (Wh) = voltage (V) × capacity (Ah)
A 3.7 V pack rated at 2000 mAh stores about 3.7 × 2.0 = 7.4 Wh. The mAh figure alone does not tell you the energy, because it ignores voltage. A 1.5 V alkaline cell and a 3.7 V lithium cell can both say 2000 mAh while the lithium cell holds roughly two and a half times the energy.
def led_resistor(v_supply, v_led, current_ma):
"""Return the resistor value (ohms) and its heat (watts) for an LED."""
current_a = current_ma / 1000.0
v_drop = v_supply - v_led
resistance = v_drop / current_a
heat_w = v_drop * current_a
return round(resistance, 1), round(heat_w, 3)
def pack_energy_wh(nominal_v, capacity_mah):
"""Stored energy in watt-hours from voltage and capacity."""
return round(nominal_v * capacity_mah / 1000.0, 2)
resistance, heat = led_resistor(5.0, 2.0, 20)
print(resistance, "ohms,", heat, "W") # 150.0 ohms, 0.06 W
print(pack_energy_wh(1.5, 2000), "Wh") # 3.0 Wh (one alkaline cell)
print(pack_energy_wh(3.7, 2000), "Wh") # 7.4 Wh (one lithium cell)Combining cells: series and parallel
Batteries follow the same rules as any other voltage source, which you will need when building packs.
- Series (positive of one cell to negative of the next): voltages add, capacity stays the same. Four 1.5 V AA cells in series give 6 V at the capacity of one cell.
- Parallel (positive to positive, negative to negative): voltage stays the same, capacities add. Two 3.7 V, 2000 mAh cells in parallel give 3.7 V and 4000 mAh.
Either way, the stored energy is the sum of the cells' energy. Series and parallel only change how that energy is delivered.
Units and prefixes: the common error source
Most calculation mistakes in this subject come from mixing units. Before you substitute numbers into any formula, convert to base units (volts, amperes, ohms, watts).
| Written | Meaning | In base units |
|---|---|---|
| 250 mA | 250 milliamperes | 0.250 A |
| 2000 mAh | 2000 milliamp-hours | 2.0 Ah |
| 47 kΩ | 47 kilohms | 47000 Ω |
| 80 µA | 80 microamperes | 0.000080 A |
A second frequent mistake is mixing average and peak values. A board that idles at 20 mA but spikes to 250 mA while a radio transmits has both numbers. Power ratings for components depend on the peak. Battery life depends on the average.
Measuring correctly with a multimeter
You will check your calculations against real hardware, so keep these habits.
- To measure voltage, place the probes across the part, in parallel with it. This is safe for the circuit.
- To measure current, break the circuit and insert the meter in series. The meter becomes part of the circuit.
- Never put a meter set to the current range across a battery or supply. The meter has very low resistance in that mode, so it acts almost like a short circuit. This can blow the meter's fuse or damage the battery.
- Measure battery voltage while the load is running, not only when it is disconnected. A battery that reads 4.1 V open-circuit may read noticeably lower under load.
What to carry into the next chapters
- Voltage is set by the source, and current is set by the load.
- P = V × I, and any voltage drop carrying current becomes heat.
- Energy in watt-hours equals voltage times amp-hours, so mAh alone is not a measure of energy.
- Series cells add voltage, and parallel cells add capacity.
- Convert prefixes to base units before calculating, and distinguish average from peak current.
The next chapter compares the three common battery chemistries, and it builds on the idea that a cell's voltage is a property of its chemistry.
Exercise
A 4-cell AA pack (four 1.5 V cells in series, each 2400 mAh) powers a board that draws 80 mA from the pack. (a) What is the pack voltage and capacity? (b) How much energy does it store in watt-hours? (c) How much power does the load draw? (d) A 100 Ω resistor is placed across the full pack voltage. How much current does it draw and how much heat does it produce?
Show answer
(a) Series cells add voltage and keep capacity: 4 × 1.5 V = 6 V, and the capacity stays 2400 mAh. (b) Energy = 6 V × 2.4 Ah = 14.4 Wh. (c) P = 6 V × 0.080 A = 0.48 W. (d) I = 6 V / 100 Ω = 0.06 A (60 mA). P = 6 V × 0.06 A = 0.36 W, which also equals V² / R = 36 / 100. A 1/4 W resistor would be overloaded, so a 1/2 W or larger part is needed.