A resistor is a passive two-terminal component whose whole job is to oppose the flow of current in a circuit — and to do it predictably. That predictability is why it’s the most-used component in electronics: every Arduino board, LED, and sensor breakout is full of them. Its value is measured in ohms (Ω), and in doing its job it turns a small amount of unwanted electrical energy into heat. Grab a handful from a parts bin and the first problem is obvious — they all look nearly identical, and not one has the value printed in plain numbers.
The behaviour follows Ohm’s law: voltage equals current times resistance (V = I × R). Put a fixed resistor in series with an LED and you set exactly how much current reaches it — the difference between a bright LED and a dead one. Wire two resistors in series across a supply and the junction between them gives a lower, predictable voltage: a voltage divider, which is the basis of countless sensor readings. The same humble part also handles pull-up and pull-down duty, holding a logic input at a known state instead of letting it float.
Physically, resistors split into fixed values (carbon film, metal film, wirewound, and tiny surface-mount chips) and adjustable ones (potentiometers, rheostats, and trimmers), plus sensing types like thermistors and photoresistors that change value with temperature or light. Through-hole resistors rarely show their value as a number — instead it’s encoded in coloured bands read according to IEC 60062, the international marking standard. Surface-mount parts use a short numeric code printed on top. Reading either one correctly is the single skill that turns a mystery component into a known quantity.
Pro Tip: The ohm value is only half the spec
A resistor’s resistance tells you nothing about how much power it can safely dissipate. Every resistor also has a power rating — ¼ W and ½ W are the common through-hole sizes — and pushing past it discolours the body, drifts the value, and eventually fails the part open. Before you drop in a substitute, check both the ohms and the wattage: two resistors with identical values but different power ratings are not interchangeable in a high-current spot.
🛠️ Fun Fact: Resistors aren’t made in every possible value. They come in standardised “E-series” sets — E12, E24 and so on — where the values are spaced logarithmically so each part’s tolerance band butts up against the next without leaving gaps. That’s why a standard E12 kit has a 4.7 kΩ and a 5.6 kΩ but never a 5.0 kΩ: the spacing is chosen to cover the whole number line with the fewest distinct values.