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.

In shortResistors are the most common part. Learn colour codes, combinations and the voltage divider that feeds sensors to your ADC.

Theory in plain words

Series and parallelSeriesSame current in every partRt = R1 + R210k + 10k = 20kParallelSame voltage on every part1/Rt = 1/R1 + 1/R210k || 10k = 5k
Series and parallel

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)

ColourDigitMultiplier
Black0x1
Brown1x10
Red2x100
Orange3x1k
Yellow4x10k
Green5x100k
Blue6x1M
Violet7
Grey8
White9
Gold (tolerance)5 %
Silver (tolerance)10 %

Example: brown, black, red, gold = 1, 0, x100 = 1000 ohm = 1 kohm, 5 % tolerance.

Series, parallel and divider calculatorTry it Yourself

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.

Careful:A voltage divider is a poor power source: the load changes the output. Use it only to feed a high impedance input like an ADC pin, never to power a motor or an LED strip.

Quick quiz

1. Two 10 kohm resistors in parallel give...

2. Why use a pull-up resistor?