Resistor Networks & Loading: the short answer
Resistors in series add up: 1 kΩ + 1 kΩ = 2 kΩ. The same current flows through each, and the supply voltage is shared between them in proportion to their values. Example: A fresh 9.6 V battery reads 3.2 V on the pin, still under 3.3 V. The ESP32 ADC input draws very little, so loading is not a problem here.
- Level
- Beginner
- Time
- About 5 min
- Topic
- Basics
Combine resistors in series and parallel and design a voltage divider that still works with a load attached.
Before this: Voltage, Current & Resistance
Resistors in series add up: 1 kΩ + 1 kΩ = 2 kΩ. The same current flows through each, and the supply voltage is shared between them in proportion to their values.
Resistors in parallel give a smaller total: two equal resistors make half of one, and in general 1/R = 1/R1 + 1/R2. Each one sees the full voltage and takes its own current.
Two resistors in series make a voltage divider: Vout = Vin × R2 ÷ (R1 + R2). It is how you scale a 9 V battery down to a pin's range. A divider only gives that answer when almost no current is taken from its middle. Connect something that draws current (a low-resistance load) and Vout drops. Rule of thumb: the load should be at least ten times bigger than R2.
Series: one path, shared voltage
In series every resistor carries the same current, so the bigger resistor takes the bigger share of the voltage. Two resistors of 1 kΩ and 2 kΩ on 9 V carry 3 mA, with 3 V across the first and 6 V across the second. Add them up and you always get the supply back, which is a good check on your arithmetic.
Series resistors are how you make an odd value from standard ones, and how you spread heat across two parts when one would run too hot.
Parallel: many paths, shared current
In parallel every resistor sees the same voltage and takes its own current. The total is always smaller than the smallest resistor, because each extra path lets more current through. For two resistors, R = R1 × R2 ÷ (R1 + R2). For equal values, divide one value by how many there are.
Parallel shows up whenever you connect several loads to one supply: LEDs each with its own resistor, sensors on a 3.3 V rail, or a pull-up resistor plus the input inside a chip.
Why a divider sags under load
A divider only gives Vin × R2 ÷ (R1 + R2) when nothing takes current from its middle. Connect a load and it sits in parallel with R2, making the lower half smaller and pulling the output down. With R2 = 10 kΩ and a 10 kΩ load, the bottom half becomes 5 kΩ and the output falls a long way.
The rule of thumb is to keep the load at least ten times bigger than R2. Microcontroller ADC inputs usually qualify, but some ADCs need a low source resistance to read accurately at high speed, so check the datasheet's recommended maximum.
Dividers are for signals, not power
A divider wastes power in its resistors and its output changes with the load. It is the right tool for scaling a voltage you want to measure, setting a reference, or biasing a transistor. It is the wrong tool for powering a module: to get 3.3 V from 5 V for an ESP32, use a regulator.
Picking values is a trade-off. Small resistors (1 kΩ) waste current but stand up to loading. Large ones (100 kΩ and up) save battery but pick up noise and are easily pulled by leakage. For battery measurement, 10 kΩ to 100 kΩ with a 100 nF capacitor across R2 is a common middle ground.
- Using a divider to drop 12 V to 5 V to power a board. The moment the board draws current, the voltage collapses.
- Forgetting the input range of the ADC pin: an ESP32 reads accurately only up to about 2.5 to 3.1 V depending on its attenuation setting.
- Swapping R1 and R2 so the output is the large share instead of the small one.
- R = R1 + R2
- series
- R = R1 × R2 ÷ (R1 + R2)
- two in parallel
- Vout = Vin × R2 ÷ (R1 + R2)
- voltage divider, R2 to ground
Output against R2
Work it with your own numbers: Voltage divider · Loaded divider · Series and parallel
Read a 9 V battery on a 3.3 V ESP32 pin
- Goal: 9 V in must give at most about 3 V out.
- Pick R1 = 20 kΩ, R2 = 10 kΩ. Vout = 9 × 10 ÷ 30 = 3.0 V.
- Current through the divider: 9 V ÷ 30 kΩ = 0.3 mA, so it barely drains the battery.
- In code: battery volts = pin volts × 3.
Result. A fresh 9.6 V battery reads 3.2 V on the pin, still under 3.3 V. The ESP32 ADC input draws very little, so loading is not a problem here.
Build a divider from two 10 kΩ resistors on 5 V and measure the middle: you should see about 2.5 V. Now put a 1 kΩ resistor from the middle to GND and measure again. Explain the drop.
3 quick questions
What is the total of a 1 kΩ and a 2.2 kΩ resistor in series?
Two 10 kΩ resistors in parallel make…
A divider gives 2.5 V unloaded. You connect a 1 kΩ load to its output. What happens?
