---
title: "Sandbox: design a voltage divider to spec"
heading: Choosing resistor values that meet a specification
eyebrow: C1 · Lesson 26 · Sandbox
xp: 60
---

::: hook
Analysis asks what a circuit does. Design asks the reverse: what values make it do what you need? A divider is the simplest design problem in electronics, but it already has the real ingredients: a target voltage, a limit on the current you can afford, a load that pulls the output down, and resistors that come only in certain values. In this sandbox you choose the parts, and each design is graded by simulating the circuit you built.

::: play
- A 12 V supply feeds a divider with a 10 kΩ load. Slide $R_1$ and $R_2$ to make 5 V at the output.
- Watch the supply current too. Can you hit 5 V while drawing less than 1 mA? What about with less than 0.5 mA?
- Many pairs of values give 5 V. What do the low-current ones have in common?
:::
:::

```sim circuit
V1 in 0 12          @ 0,0 down
R1 in out 4.7k      @ 0,0 right
R2 out 0 4.7k       @ 2,0 down
RL out 0 10k        @ 4,0 down
slider: R1 100..100k log
slider: R2 100..100k log
scope: v(out)
time: 0..1m s
meter: v(out), i(R1)
```

::: predict
## You need 4 V from 12 V and the supply can spare 1 mA for the divider (no load). Which pair works?

- [ ] $R_1$ = 1 kΩ, $R_2$ = 2 kΩ
- [ ] $R_1$ = 2 kΩ, $R_2$ = 1 kΩ
- [x] $R_1$ = 10 kΩ, $R_2$ = 5 kΩ
- [ ] $R_1$ = 5 kΩ, $R_2$ = 10 kΩ

::: reveal
10 kΩ over 5 kΩ. The output is a third of the supply, so $R_2$ must be half of $R_1$; that rules out two choices. The current is $12/(R_1 + R_2)$: 4 mA for the 1k/2k pair, which is over budget, and 0.8 mA for 10k/5k, which fits. The ratio sets the voltage; the total sets the current.
:::
:::

::: nameit
## A design procedure

1. **Ratio from the target.** For output $V_t$ from supply $V_s$ with no load: $R_2/(R_1 + R_2) = V_t/V_s$, so $R_2 = R_1V_t/(V_s - V_t)$.
2. **Total from the current budget.** The divider draws $V_s/(R_1 + R_2)$. A budget $I_\text{max}$ needs $R_1 + R_2 \geq V_s/I_\text{max}$.
3. **Stiffness from the load.** The output resistance is $R_1 \parallel R_2$. For the output to hold within about 10% under a load $R_L$, keep $R_1 \parallel R_2 \lesssim R_L/10$. If you know the load exactly, design with $R_2 \parallel R_L$ as the bottom resistor instead.
4. **Trade-off.** Steps 2 and 3 pull in opposite directions: a stiff divider needs small resistors, and a frugal one needs large resistors. If you can't satisfy both, a divider is the wrong tool; use a voltage regulator or a buffer amplifier (C5).
5. **Real values.** Resistors come in standard series: E12 (1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2, times a power of ten) at 10% or 5% tolerance, E24 and E96 at 1%. Pick the nearest values, then recompute the output and check it's still within spec, including the resistors' tolerance.

**Biasing a transistor** uses the same thinking: choose a resistor so the controlling current comes out right. With the CCCS model from lesson 21, the base resistor sets $i_b$, and $\beta i_b$ through the collector resistor sets the output's resting voltage.
:::

::: example
## Make 3.3 V from 12 V with standard E24 resistors, drawing under 1 mA.

::: solution
1. **The ratio.**
   $$\frac{R_2}{R_1 + R_2} = 0.275$$
   means $R_1 \approx 2.64R_2$.
2. **An E24 pair.** 39 kΩ over 15 kΩ gives
   $$12 \times \frac{15}{54} = 3.33\ \text{V}$$
   1% high, at 0.22 mA.
3. **The obvious pair.** 8.2 kΩ over 3.3 kΩ gives 3.44 V, 4% high.

**Answer:** 39 kΩ over 15 kΩ gives 3.33 V at 0.22 mA.
:::
:::

::: example
## A divider with 4.7 kΩ on top must give 5 V from 12 V into a 10 kΩ load. What bottom resistor is needed?

::: solution
1. **Bottom resistor with the load.** The bottom resistor in parallel with the load must be
   $$\frac{5 \times 4.7}{7} = 3.357\ \text{k}\Omega$$
2. **Take out the load.**
   $$\begin{aligned} R_2 &= \frac{1}{1/3.357 - 1/10} \\ &= 5.05\ \text{k}\Omega \end{aligned}$$
3. **Pick a standard value.** 5.1 kΩ from E24 is close.

**Answer:** the bottom resistor needs to be 5.05 kΩ, and 5.1 kΩ from E24 is close.
:::
:::

::: check
kind: design
given: Vt = 2.5 | 3.3 | 5 | 8 V
choose: R1, R2
goal: dc(v(out)) = Vt ± 2%; dc(i(R1)) < 1m
solution: R1 = 10k; R2 = 10000*Vt/(12 - Vt)

## Choose $R_1$ and $R_2$ so the divider makes {Vt} from 12 V, drawing less than 1 mA.

```sim circuit
V1 in 0 12          @ 0,0 down
R1 in out 1k        @ 0,0 right
R2 out 0 1k         @ 2,0 down
scope: v(out)
time: 0..1m s
meter: v(out), i(R1)
```

::: right
Right. The ratio sets the voltage and the total sets the current.
:::
:::

::: check
kind: design
given: Vt = 2.5 | 3.3 | 5 V
choose: R1, R2
goal: dc(v(out)) = Vt ± 2%; dc(i(R1)) < 2m
solution: R1 = 5k; R2 = 1/(1/(5000*Vt/(12 - Vt)) - 1/10000)

## The divider now drives a 10 kΩ load. Choose $R_1$ and $R_2$ so the loaded output is {Vt}, drawing less than 2 mA from the supply.

```sim circuit
V1 in 0 12          @ 0,0 down
R1 in out 10k       @ 0,0 right
R2 out 0 10k        @ 2,0 down
RL out 0 10k        @ 4,0 down
scope: v(out)
time: 0..1m s
meter: v(out), i(R1)
```

::: right
Right. With the load in parallel with $R_2$, the bottom of the divider is $R_2 \parallel R_L$, and that's what sets the ratio.
:::
:::

::: check
kind: design
given: Vc = 4 | 6 | 8 V
choose: RB
goal: dc(v(c)) = Vc ± 3%
solution: RB = (12 - 0.7)/((12 - Vc)/2000/100)

## A transistor is modeled as a 0.7 V base-emitter drop (VBE, which also measures the base current) and a CCCS with β = 100. Choose the base resistor $R_B$ so the collector rests at {Vc}.

```sim circuit
VCC vcc 0 12        @ 0,0 down
RB vcc b 1M         @ 0,0 right
VBE b 0 0.7         @ 2,0 down
RC vcc c 2k         @ 0,0 up
F1 c 0 VBE 100      @ 4,-2 down 4
scope: v(c)
time: 0..1m s
meter: v(c), i(VBE), i(RC)
```

::: right
Right. The collector current $(12 - V_c)/2\text{ kΩ}$ needs a base current a hundred times smaller, and $R_B$ sets it from the 11.3 V across it.
:::
:::

::: explain
## Why does making a divider's resistors smaller make its output hold up better under load, and what does it cost?

::: model
The divider's output behaves like a source with an internal resistance equal to the two resistors in parallel. Smaller resistors mean a smaller internal resistance, so a given load pulls the output down less. The cost is current: smaller resistors across the same supply draw more current all the time, whether or not the load needs it, which wastes power and drains batteries. Every divider design balances those two.
:::
:::

::: practice

::: check
given: Vs = 5 | 12 | 24; Vt = 1.2 | 2.5 | 3.3; R1 = 10 | 22
answer: R1*Vt/(Vs - Vt)
unit: kΩ
tolerance: 0.5%

## A divider from {Vs} V must make {Vt} V with no load. $R_1$ = {R1} kΩ. What should $R_2$ be?

::: misses
- [R1*Vt/Vs] Use $V_s - V_t$ in the denominator: $R_2/R_1 = V_t/(V_s - V_t)$.
- [any] $R_2 = R_1V_t/(V_s - V_t)$.
:::
:::

::: check
given: Vs = 5 | 12 | 24; I = 0.1 | 0.5 | 2
answer: Vs/I
unit: kΩ
tolerance: 0.5%

## A divider across {Vs} V may draw at most {I} mA. What's the smallest total resistance $R_1 + R_2$?

::: misses
- [Vs*I] Divide the voltage by the current.
- [any] $V_s/I_\text{max}$.
:::
:::

::: check
given: R1 = 10 | 22 | 47; R2 = 10 | 33 | 68
answer: R1*R2/(R1 + R2)
unit: kΩ
tolerance: 0.5%

## A divider uses {R1} kΩ and {R2} kΩ. What is its output resistance?

::: misses
- [R1 + R2] From the output, the two are in parallel.
- [any] $R_1 \parallel R_2$.
:::
:::
:::
