---
title: Transistor current sources
heading: Output resistance, compliance, and sources you can build from a handful of parts
eyebrow: C5 · Lesson 37 · Transistor current sources
xp: 40
---

::: hook
A current mirror copies a current; this lesson asks how well a current source holds its current when the voltage across it changes, and over what range of voltage it works at all. Those two numbers, output resistance and compliance, decide whether an LED string stays evenly bright as the battery sags, whether a ramp stays straight, and how much gain an amplifier with a current-source load can reach.

::: play
- A transistor with its base held by a Zener and a resistor in its emitter sinks current through a load resistor from the supply.
- Change the load resistor from 100 Ω to a few kilohms. The current hardly moves until one particular point. What happens there?
- Change the supply. Does the current follow it?
:::
:::

```sim circuit
VCC vcc 0 12                 @ 0,0 down 7
RB vcc b 10k                 @ 2,0 down 3
DZ 0 b BV=3.3                @ 2,7 up 4
Q1 c b e npn BF=100          @ 4,3
RL vcc c 1k                  @ 5,0 down 2
RE e 0 1k                    @ 5,4 down 3
slider: RL 100..10k log
slider: VCC.amp 5..20
scope: v(c), v(e)
time: 0..1m s
meter: i(Q1), v(c)
```

::: predict
## The sink above carries about 2.5 mA through a 1 kΩ load. The load is doubled to 2 kΩ. What happens?

- [ ] The current halves
- [x] The current stays about 2.5 mA, and the load's voltage doubles
- [ ] The current doubles
- [ ] The transistor turns off

::: reveal
The current stays put: it's set by the emitter resistor, $\frac{V_Z - V_{BE}}{R_E}$, not by the load. The collector simply moves down to make room, from about 9.5 V to 7 V. That works until the collector comes within a few tenths of a volt of the emitter, near a 3.6 kΩ load; beyond that the transistor saturates and the load sets the current again.
:::
:::

::: nameit
## The single-transistor source

Hold the base at a fixed voltage $V_B$ (a Zener, two forward diodes, or a stiff divider) and put $R_E$ in the emitter:

$$I \approx \frac{V_B - V_{BE}}{R_E}.$$

A pair of forward diodes for the reference cancels $V_{BE}$'s temperature drift, since the diodes drift the same way. A PNP or PMOS version sources current from the positive supply instead of sinking it.

## Compliance

The source works only while its transistor stays active: for an NPN sink, the collector must stay above about $V_E + 0.2$ V (for a MOSFET, $V_S + v_{OV}$). The range of load voltage over which the current holds is the **compliance**. With a supply $V_{CC}$, the largest load resistance is about $\frac{V_{CC} - V_E - 0.2}{I}$.

## Output resistance

An ideal source's current doesn't change with its voltage; a real one has an output resistance $R_\text{out}$, and $\Delta I = \frac{\Delta V}{R_\text{out}}$. A bare transistor gives its $r_o = \frac{V_A}{I_C}$. Emitter degeneration multiplies it:

$$R_\text{out} \approx r_o\left[1 + g_m(R_E \parallel r_\pi)\right],$$

for a base held at a fixed voltage. For a BJT the gain levels off near $\beta r_o$ as $R_E$ grows past $r_\pi$; for a MOSFET (no $r_\pi$) it keeps growing as $r_o(1 + g_mR_S)$. A simple mirror's output is just $r_o$, which is why precision mirrors add emitter resistors or cascodes (C6).

## Other sources

- **Two-transistor limiter:** a sense resistor $R$ in the load's path, with a second transistor across it that steals the first one's base drive when $IR$ reaches $V_{BE}$: $I \approx \frac{V_{BE}}{R}$. Simple, but it drifts with $V_{BE}$, about −0.3%/K.
- **JFET with its gate to its source:** $I_{DSS}$, two terminals.
- **Charging a capacitor** from a source gives a straight ramp, $\frac{dV}{dt} = \frac{I}{C}$, the basis of sawtooth generators and integrating converters.
:::

::: example
## Design a 10 mA sink for a string of white LEDs (3.1 V each) from 24 V, with a 5.1 V Zener reference. How many LEDs can it drive, and what does the transistor dissipate with 6 LEDs and with 3?

::: solution
1. **Emitter resistor.** $V_E = 5.1 - 0.7$ = 4.4 V, so
   $$\begin{aligned} R_E &= \frac{4.4}{10\ \text{mA}} \\ &= 440\ \Omega \end{aligned}$$
2. **Room for the LEDs.** The collector needs at least 4.4 + 0.2 = 4.6 V, leaving 19.4 V for the string: six LEDs (18.6 V) fit, seven don't.
3. **With six LEDs.** The transistor drops
   $$24 - 18.6 - 4.4 = 1.0\ \text{V}$$
   and dissipates 10 mW.
4. **With three LEDs.** It drops 10.3 V and dissipates 103 mW.
5. **Efficiency.** A linear current source absorbs whatever voltage the load doesn't use, which is why long strings on a fixed supply are efficient and short ones aren't.

**Answer:** $R_E$ = 440 Ω, and it can drive six LEDs; the transistor dissipates 10 mW with six and 103 mW with three.
:::
:::

::: example
## A sink runs at 1 mA with a transistor of β = 100 and $V_A$ = 100 V, its base held by a stiff reference. Compare its output resistance with $R_E$ = 0 and 1 kΩ, and the current change for a 10 V swing at the collector.

::: solution
1. **Without $R_E$.** $R_\text{out} = r_o$ = 100 kΩ, and 10 V changes the current by 100 µA, 10%.
2. **Small-signal values with $R_E$ = 1 kΩ.** $g_m$ = 38.7 mS and $r_\pi$ = 2.59 kΩ, so $R_E \parallel r_\pi$ = 721 Ω.
3. **Output resistance.**
   $$\begin{aligned} R_\text{out} &= 100\ \text{k}\Omega \\ &\quad \times (1 + 38.7 \times 0.721) \\ &= 2.89\ \text{M}\Omega \end{aligned}$$
4. **Current change.** Now 10 V changes the current by 3.5 µA, 0.35%.
5. **The limit.** Raising $R_E$ further helps less and less: the ceiling is $\beta r_o$ = 10 MΩ.

**Answer:** the output resistance is 100 kΩ without $R_E$ (10 V changes the current 10%) and 2.89 MΩ with 1 kΩ (only 0.35%).
:::
:::

::: example
## A two-transistor limiter must hold an LED at 20 mA. What sense resistor, and how much does the current change between 25 °C and 75 °C?

::: solution
1. **Sense resistor.** The second transistor turns on when the sense resistor drops about 0.65 V, so
   $$\begin{aligned} R &= \frac{0.65}{20\ \text{mA}} \\ &= 32.5\ \Omega \end{aligned}$$
2. **At 75 °C.** Its $V_{BE}$ has fallen 100 mV, to 0.55 V, so the current falls to
   $$\frac{0.55}{32.5} = 16.9\ \text{mA}$$
   15% less.
3. **Is that good enough.** It's fine for an indicator; for a precision source, use a reference that doesn't drift, or two diodes against one $V_{BE}$.

**Answer:** use 32.5 Ω; the current falls 15%, from 20 mA to 16.9 mA, between 25 °C and 75 °C.
:::
:::

::: check
given: VZ = 3.3 | 5.1 | 6.2; I = 1 | 5 | 20
answer: (VZ - 0.7)/I*1000
unit: Ω
tolerance: 0.5%

## A current sink holds its base at a {VZ} V Zener. What emitter resistor sets {I} mA?

::: right
Right. $R_E = \frac{V_Z - 0.7}{I}$ = {answer}.
:::

::: misses
- [VZ/I*1000] The emitter sits a $V_{BE}$ below the base.
- [any] $R_E = \frac{V_B - V_{BE}}{I}$.
:::
:::

::: check
kind: parts
given: V = 9 | 12 | 24; VE = 1 | 2.5; I = 2 | 10

## A sink carries {I} mA with {VE} V on its emitter, from a {V} V supply.

::: part
answer: VE + 0.2
unit: V
tolerance: 0.5%

### What's the lowest voltage its collector can reach and still hold the current?

::: misses
- [VE] The transistor needs about 0.2 V across it to stay out of saturation.
- [any] $V_E + V_{CE,\text{sat}}$.
:::
:::

::: part
answer: (V - VE - 0.2)/I
unit: kΩ
tolerance: 0.5%

### What's the largest load resistance it can drive?

::: misses
- [V/I] Subtract the transistor's minimum voltage and the emitter's.
- [any] $\frac{V_{CC} - V_E - 0.2}{I}$.
:::
:::
:::

::: check
kind: parts
given: I = 0.5 | 1 | 2; VA = 50 | 100; RE = 0.47 | 2.2; b = 100 | 200

## A sink runs at {I} mA with β = {b}, $V_A$ = {VA} V and $R_E$ = {RE} kΩ, its base held by a stiff reference.

::: part
answer: VA/I
unit: kΩ
tolerance: 0.5%

### What would its output resistance be with no emitter resistor?

::: misses
- [any] $r_o = \frac{V_A}{I_C}$.
:::
:::

::: part
answer: VA/I*(1 + I/0.02585*(RE*b*0.02585/I/(RE + b*0.02585/I)))/1000
unit: MΩ
tolerance: 1%

### What is it with $R_E$?

::: misses
- [VA/I*(1 + I/0.02585*RE)/1000] Close; $r_\pi$ appears in parallel with $R_E$.
- [any] $r_o\left[1 + g_m(R_E \parallel r_\pi)\right]$.
:::
:::
:::

::: check
given: I = 5 | 20 | 50; v = 0.6 | 0.65 | 0.7
answer: v/I*1000
unit: Ω
tolerance: 0.5%

## A two-transistor limiter must hold {I} mA, with the sensing transistor turning on at {v} V. What sense resistor?

::: right
Right. $R = \frac{V_{BE}}{I}$ = {answer}.
:::

::: misses
- [(v + 0.7)/I*1000] Only the sensing transistor's $V_{BE}$ appears across the resistor.
- [any] $R = \frac{V_{BE}}{I}$.
:::
:::

::: check
given: I = 0.1 | 1 | 5; C = 10 | 100 | 470
answer: I*1e-3/(C*1e-9)/1000
unit: V/ms
tolerance: 0.5%

## A {I} mA current source charges a {C} nF capacitor. How fast does the voltage rise?

::: right
Right. $\frac{dV}{dt} = \frac IC$ = {answer}, a straight ramp.
:::

::: misses
- [any] $\frac{dV}{dt} = \frac{I}{C}$.
:::
:::

::: check
kind: choice

## What does a current source's compliance tell you?

- [ ] How much the current changes per volt
- [x] The range of voltage across it over which it holds its current
- [ ] How much current it can supply at most
- [ ] How stable its current is with temperature

::: right
Right. Outside the compliance range the transistor saturates or cuts off, and the load sets the current.
:::

::: misses
- [1] That's the output resistance (its inverse).
- [3] That's set by the design; compliance is about voltage.
- [4] That's its temperature coefficient.
:::
:::

::: check
kind: derivation
vars: o = 1000..10000000, g = 0.0001..0.1, E = 10..100000, p = 100..1000000, V = 0.1..20

## A degenerated source has $r_o$ = o, transconductance g, emitter resistor E and $r_\pi$ = p, with its base held fixed. Its collector voltage changes by V.

::: step
answer: E*p/(E + p)

### What's $R_E \parallel r_\pi$?
:::

::: step
answer: o*(1 + g*E*p/(E + p))

### What's the output resistance?
:::

::: step
answer: V/(o*(1 + g*E*p/(E + p)))

### How much does the current change?
:::

::: right
Right. Degeneration makes the transistor fight any change in its current.
:::
:::

::: explain
## Why does an emitter resistor raise a current source's output resistance?

::: model
If the collector voltage rises, the Early effect tries to raise the collector current. That extra current flows through the emitter resistor and raises the emitter's voltage, and since the base is held fixed, the base-emitter voltage falls. A smaller base-emitter voltage turns the transistor down, cancelling most of the increase. This negative feedback holds the current nearly constant, so a much larger change in collector voltage is needed for a given change in current: the output resistance grows by about one plus the transconductance times the emitter resistance.
:::
:::

::: practice

::: check
given: VZ = 2.7 | 4.7; I = 2 | 8
answer: (VZ - 0.7)/I*1000
unit: Ω
tolerance: 0.5%

## {VZ} V Zener reference, {I} mA wanted. Emitter resistor?

::: misses
- [any] $\frac{V_Z - 0.7}{I}$.
:::
:::

::: check
given: V = 5 | 15; VE = 0.5 | 2; I = 1 | 4
answer: (V - VE - 0.2)/I
unit: kΩ
tolerance: 0.5%

## {I} mA sink, {VE} V on the emitter, {V} V supply. Largest load?

::: misses
- [any] $\frac{V_{CC} - V_E - 0.2}{I}$.
:::
:::

::: check
given: I = 0.2 | 3; C = 22 | 220
answer: I*1e-3/(C*1e-9)/1000
unit: V/ms
tolerance: 0.5%

## {I} mA into {C} nF. Ramp rate?

::: misses
- [any] $\frac{I}{C}$.
:::
:::
:::
