The resistor is the simplest and most common electronic part: open any board and you'll find dozens. Its job in one phrase: it opposes the flow of current. And that opposition isn't a flaw; on the contrary, it's what lets us control current and voltage everywhere in a circuit.
What exactly does it do?
When current passes through a resistor, part of the voltage is dropped across it, and that energy turns into heat. The relationship between voltage, current and resistance is Ohm's law:
V = I × R
Think of it as a narrow section in a water pipe: the narrower the section, the less water flows through. This idea is explained further in voltage and current.
And a resistor has no direction: connect it either way, unlike an LED or an electrolytic capacitor.
The specifications of any resistor
- The value in ohms (Ω): from fractions of an ohm up to megohms. 1 kΩ = 1000 Ω, and 1 M = a million.
- Tolerance: usually ±5% or ±1%. So a 1k ±5% resistor could be any value from 950 to 1050 Ω.
- Power (watts): the maximum heat it can handle. The most common is ¼ W. Load it beyond that and it'll overheat and burn.
The value is shown with colour bands on ordinary resistors, or with numbers on SMD resistors.
Example: power
A 100 Ω resistor carrying 50 mA: the power = I² × R = 0.05² × 100 = 0.25 W. That's exactly the limit of a ¼ W resistor, so it'll get very hot. Choose at least twice the power: ½ W here. This rule extends the resistor's life and keeps heat away from neighbouring parts.
The colours in brief
A four-band resistor: yellow, violet, red, gold:
- Yellow = 4, violet = 7 → the two digits 47.
- Red = two zeros → 4700 Ω = 4.7k.
- Gold = ±5%.
The full table and the calculator are in resistor colour codes.
Types
| Type | Advantages | Where it's used |
|---|---|---|
| Carbon film | Cheap, ±5% | General use |
| Metal film | More accurate (±1%) and less noisy | Measurement and audio |
| SMD | Very small and soldered on the surface | Modern boards |
| Cement or wirewound | Handles a watt or more | Power and loads |
| Variable (potentiometer) | Its value changes as you turn it | Volume and adjustment; see the potentiometer |
There's also the resistor network: several resistors of the same value in one part with pins in a row, useful for many pull-ups. And the zero-ohm resistor: just a "wire" in the shape of an SMD resistor, used as a jumper on boards.
Resistors whose value changes by itself
- The NTC thermistor: its value falls as the temperature rises. For measuring temperature.
- LDR: its value falls with light. See light and temperature sensors.
- PTC and polyfuse: its value rises sharply when hot, so it acts as a self-resetting fuse. See the fuse.
What do we use them for?
- Limiting current: such as an LED resistor that stops it burning out.
- Dividing voltage: two resistors in series produce a lower voltage, which is the voltage divider.
- Pull-up and pull-down: they hold a microcontroller pin at 1 or 0 when the button isn't pressed. See pull-up and pull-down.
- With a capacitor for timing: the RC time constant.
- Measuring current: a very small resistor (a shunt), and the voltage across it tells you the current. See current sensing.
How do you measure one?
- A multimeter in ohms mode.
- Measure it out of the circuit, or at least with one leg disconnected. In a circuit, other parts are in parallel with it and the reading comes out lower.
- Don't hold both ends with your fingers: your body is a resistance in parallel, and it spoils the reading of large resistors (hundreds of kilohms).
How do they fail?
- They burn: they darken or crack, and usually their value rises or they go completely open. That tells you something else drew too much current, so find the cause before replacing it.
- A resistor rarely fails short.
- Very large resistors (megohms) can drift in value with humidity and age.
Advice for beginners
Get a resistor kit with E12 or E24 values, and at least 10 of each value. You'll find these standard values cover almost anything you'll need.
FAQ
Why is a ½ W resistor bigger than a ¼ W one? Because its surface is larger, so it sheds heat better. With ordinary resistors, the size roughly tells you the power.
Can I use a resistor with a higher power rating than needed? Yes, it's always safe. The only drawbacks are size and price.