Home / Learn Chip Programming / Resistors: Series, Parallel and Voltage Dividers
Resistors: Series, Parallel and Voltage Dividers
Resistors are the most common part. Learn colour codes, combinations and the voltage divider that feeds sensors to your ADC.
Theory in plain words
What it is
In series, resistances add. In parallel, the total is smaller than the smallest. A voltage divider uses two resistors to make a lower voltage.
Why we use it
Pull-ups, current limiting, sensors and level shifting all use resistors. A divider is the basis of reading analog sensors.
How it works
Series: Rt = R1 + R2. Parallel: 1/Rt = 1/R1 + 1/R2. Divider: Vout = Vin x R2 / (R1 + R2).
Where it is used
- LED resistors
- Pull-up and pull-down resistors on buttons and I2C
- Sensor dividers and battery monitors
Colour code (4 band)
| Colour | Digit | Multiplier |
|---|---|---|
| Black | 0 | x1 |
| Brown | 1 | x10 |
| Red | 2 | x100 |
| Orange | 3 | x1k |
| Yellow | 4 | x10k |
| Green | 5 | x100k |
| Blue | 6 | x1M |
| Violet | 7 | |
| Grey | 8 | |
| White | 9 | |
| Gold (tolerance) | 5 % | |
| Silver (tolerance) | 10 % |
Example: brown, black, red, gold = 1, 0, x100 = 1000 ohm = 1 kohm, 5 % tolerance.
Use R1 = 10k and R2 = 20k with 5 V in: Vout = 3.33 V, a classic way to bring 5 V down to a 3.3 V ADC.
Pull-up and pull-down
A floating input picks up noise and reads random 0 and 1. A pull-up (resistor to VCC, 4.7 kohm to 100 kohm) gives a default high; a button to ground pulls it low. A pull-down does the opposite. I2C needs pull-ups (2.2 to 10 kohm) on SDA and SCL.
Quick quiz
1. Two 10 kohm resistors in parallel give...
Equal resistors in parallel give half.
2. Why use a pull-up resistor?
It prevents a floating input.