Sub topic 12
Where Dividers Are Used: Potentiometers, Sensors, ADC Inputs, and Shunts
This chapter applies the two divider rules to four common jobs. It assumes you can already derive and use the voltage divider rule, Vout = Vin · R2 / (R1 + R2). It also assumes you know the current divider rule, I1 = Itotal · R2 / (R1 + R2), and the Thevenin view of a loaded divider (Vth in series with Rth). The question here is how to turn those formulas into working parts of a circuit.
Each application has the same shape. You pick a ratio, then check what the next stage does to that ratio. Most real divider mistakes come from skipping that second step.
Potentiometers: a divider you can adjust
A potentiometer is a resistor with three terminals. The two ends connect to the full track of resistance Rpot. The third terminal, the wiper, slides along the track. Wire one end to the supply and the other to ground. The wiper then taps a voltage divider whose ratio you set by hand.
If the wiper sits at fraction x of the way from the ground end (0 to 1), the lower part is x · Rpot and the upper part is (1 − x) · Rpot. The divider rule gives:
Vout = Vin · x
The total resistance cancels, so an unloaded pot gives a clean linear fraction of the supply. A pot used this way is called a potentiometer, or "pot". A pot wired as only a variable resistor (using the wiper and one end) is a rheostat.
Loading changes this. Suppose a 10 kΩ pot on 5 V has its wiper at 30%, and the wiper feeds a 10 kΩ load. The lower section (3 kΩ) is now in parallel with the load:
- Lower side: 3 kΩ ∥ 10 kΩ = 2.308 kΩ
- Upper side: 7 kΩ
Vout = 5 · 2.308 / (7 + 2.308)= 1.24 V, not the 1.50 V an unloaded pot would give
The error is worst near the middle of the track, where the Thevenin resistance is largest. Two practical rules follow:
- Keep the load at least ten times the pot's total resistance, or accept the bend in the response.
- Choose a lower pot value when the load is low, and pay for it in standing current (
Vin² / Rpot).
Pots also come in tapers. A linear taper changes resistance in proportion to wiper travel. A logarithmic (audio) taper changes it in a curve, so that equal turns give roughly equal perceived loudness changes. The divider formula still holds at every position. Only the relation between knob angle and x changes.
Resistive sensors: turning resistance into voltage
An ADC or comparator measures voltage. Many sensors change resistance: thermistors (temperature), light-dependent resistors (light), and flex or force sensors. A divider converts the resistance change into a voltage change.
Put the sensor Rs on the bottom and a fixed resistor Rf on top. Then Vout = Vin · Rs / (Rf + Rs). For a 10 kΩ NTC thermistor (resistance falls as temperature rises) on 3.3 V with Rf = 10 kΩ:
| Condition | Rs | Vout |
|---|---|---|
| 25 °C (nominal) | 10 kΩ | 1.65 V |
| Warmer | 5 kΩ | 1.10 V |
Choose Rf near the sensor's resistance at the middle of the range you care about. The output then sits near mid-supply, where the slope of Vout against Rs is steepest. A fixed resistor far from the sensor's range compresses the signal into a small voltage window and wastes ADC resolution.
Two caveats apply. The relation between Rs and Vout is nonlinear, so firmware usually converts the reading back to resistance (Rs = Rf · Vout / (Vin − Vout)) before converting to temperature. And the current through the sensor heats it. At 1.65 V across a 20 kΩ series path, the current is about 82 µA, so the sensor dissipates only about 68 µW. A low-resistance sensor on a high supply could self-heat enough to shift the reading.
ADC inputs: scaling a signal into range
A microcontroller ADC accepts 0 to Vref, often 3.3 V. A divider scales larger signals into that range, for example a 12 V battery rail. Design it in four steps:
- Choose the ratio from the largest input you expect:
R2 / (R1 + R2) ≤ Vref / Vin,max. - Choose the absolute values from the ADC's source impedance limit and the standing current you can afford.
- Compute the worst-case error from resistor tolerance.
- Add a capacitor if the ADC needs a lower source impedance during sampling.
For R1 = 10 kΩ and R2 = 3.3 kΩ the ratio is 0.248, so a 3.3 V ADC reads up to 13.3 V. The Thevenin resistance seen by the ADC is 10 kΩ ∥ 3.3 kΩ = 2.48 kΩ. The divider draws 12 V / 13.3 kΩ = 0.90 mA and dissipates about 10.8 mW, well within a quarter-watt resistor.
With 1% resistors, the worst case is R2 high by 1% and R1 low by 1%. That gives a ratio of 0.2519 instead of 0.2481, a 1.5% gain error before ADC error. If that is too much, use 0.1% parts or calibrate in firmware.
Many ADC inputs sample through a small switched capacitor. A high source resistance cannot recharge that capacitor within the acquisition time, so the reading sags. A 100 nF capacitor from the ADC node to ground acts as a local charge reservoir. With 2.48 kΩ it also forms a low-pass filter with a corner near 640 Hz, which suits slow signals like battery voltage but not fast ones.
Shunts: current dividers in meters and sensors
A shunt is a low-value resistor placed in parallel with something that cannot carry the full current. Its job is the current divider rule.
A moving-coil meter has a full-scale current Im and an internal resistance Rm. To measure a larger full-scale current Ifs, the shunt must carry Ifs − Im while the meter carries Im. Both see the same voltage, so:
Rsh = Im · Rm / (Ifs − Im)
For a 1 mA meter with Rm = 50 Ω, extending the range to 100 mA needs Rsh = 0.001 · 50 / 0.099 = 0.505 Ω. Adding the shunt also lowers the total resistance of the meter, which is a benefit: the ammeter disturbs the circuit less.
A current-sense shunt used with an amplifier or ADC is a related case. A 10 mΩ resistor in series with a load develops V = I · R across it. At 5 A that is 50 mV, and the shunt dissipates I² R = 0.25 W. Here the resistor is not dividing current. It converts current to voltage, and a smaller value wastes less power but gives a smaller signal. Choose the value so full-scale current produces a voltage the amplifier can resolve, while keeping the voltage drop and heating acceptable. Because the value is milliohms, tolerance, temperature coefficient, and four-wire (Kelvin) connection to the pads all matter.
Putting the numbers together
This script reproduces the worked values above.
def divider(vin, r_top, r_bottom, r_load=None):
"""Voltage divider output, with an optional load across r_bottom."""
if r_load is not None:
r_bottom = r_bottom * r_load / (r_bottom + r_load)
return vin * r_bottom / (r_top + r_bottom)
def pot_output(vin, r_pot, x, r_load=None):
"""Wiper at fraction x (0 to 1) from the ground end."""
return divider(vin, (1 - x) * r_pot, x * r_pot, r_load)
def shunt_resistance(i_meter, r_meter, i_full):
return i_meter * r_meter / (i_full - i_meter)
print(round(pot_output(5.0, 10_000, 0.30), 3)) # 1.5
print(round(pot_output(5.0, 10_000, 0.30, 10_000), 3)) # 1.24
print(round(divider(3.3, 10_000, 10_000), 3)) # 1.65
print(round(divider(3.3, 10_000, 5_000), 3)) # 1.1
print(round(divider(12.0, 10_000, 3_300), 3)) # 2.977
print(round(divider(13.3, 10_000, 3_300), 3)) # 3.3
print(round(shunt_resistance(0.001, 50, 0.1), 3)) # 0.505Common errors across these uses
| Mistake | Effect | Fix |
|---|---|---|
| Ignoring the load on a pot wiper | Output is lower and nonlinear | Keep load at least 10 times the pot value, or buffer the wiper |
| Sensor divider with mismatched `Rf` | Output compressed into a small window | Pick `Rf` near the sensor's mid-range resistance |
| High-value ADC divider with no capacitor | Reading sags or drifts | Lower the resistances or add a capacitor at the pin |
| Checking only nominal ratio | Gain error from tolerance | Compute worst-case ratio with the resistor tolerance |
| Shunt too large | Excess voltage drop and heat | Size for the minimum usable signal, then check `I² R` |
Exercise
A 12 V battery is monitored by a 12-bit ADC with a 3.3 V reference. The divider uses R1 = 10 kΩ and R2 = 3.3 kΩ. (a) What voltage does the ADC see when the battery is 12 V? (b) What is the divider's Thevenin resistance? (c) Replacing both resistors with 100 kΩ and 33 kΩ keeps the ratio. Why might that be a poor choice for the ADC input?
Show answer
(a) Vout = 12 · 3.3 / 13.3 = 2.977 V. (b) Rth = 10 kΩ ∥ 3.3 kΩ = 2.48 kΩ. (c) The ratio is unchanged, but Rth becomes 24.8 kΩ. A sampling ADC may be unable to recharge its sample capacitor in the acquisition time through that resistance, so readings sag or drift. The leakage current of the ADC pin also drops more voltage across the larger resistance. The benefit is lower standing current (about 90 µA instead of 0.9 mA).
Exercise
A 100 µA meter has an internal resistance of 1 kΩ. What shunt resistance extends its full scale to 10 mA, and what current does the shunt carry at full scale?
Show answer
The shunt carries 10 mA − 0.1 mA = 9.9 mA. Rsh = 0.0001 · 1000 / 0.0099 = 10.10 Ω (about 10.1 Ω). Both branches see 0.1 V at full scale.