The three quantities#
Think of water in a pipe.
| Quantity | Water picture | Unit |
|---|---|---|
| Voltage (V, in many European books U) | the pressure that pushes the water | volt, V |
| Current (I) | how much water flows each second | ampere, A |
| Resistance ® | how narrow the pipe is | ohm, Ω |
Voltage is always measured between two points. “A pin at 3.3 V” means 3.3 V above ground (GND), which is the 0 V reference of the whole board. Current only flows in a closed loop: out of the supply, through the parts, and back through GND.
Units you will meet#
- 1 A = 1000 mA. An indicator LED takes a few milliamps, a microcontroller module tens to hundreds, a motor or an LED strip can take several amperes.
- 1 kΩ = 1000 Ω, and 1 MΩ = 1000 kΩ.
- Hobby boards mostly run on 3.3 V or 5 V.
Ohm’s law#
V = I × R. Know two of them and you get the third: I = V / R and R = V / I. A handy shortcut: volts divided by kilohms give milliamps.
Worked example: an LED on a 3.3 V supply. A lit red LED keeps about 2.0 V for itself, so the series resistor gets the rest: 3.3 V − 2.0 V = 1.3 V. With a 1 kΩ resistor the current is 1.3 V / 1 kΩ = 1.3 mA, which is enough for a status light.
Power#
P = V × I, in watts (W). It tells you how much heat a part makes. The resistor above turns 1.3 V × 1.3 mA ≈ 1.7 mW into heat, which is nothing; 5 V at 1 A is 5 W, which gets hot and needs a part made for it.
Pitfalls#
- An LED without a resistor. Nothing limits the current, and the LED burns out.
- A short circuit. Supply joined straight to GND has almost no resistance, so a very large current flows and something gets hot.
- Mixing up mA and A, or Ω and kΩ. The result is wrong a thousand times over. Write the unit next to every number.
- Measuring. A multimeter measures voltage across a part, and current in series with it.