C555 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C5 · Lesson 55 · Project

From the wall transformer to a steady 5 volts

A bench supply for a small circuit takes 60 Hz AC from a transformer, rectifies it, smooths it, and then regulates it so the output stays put as the load and the line voltage change. Every block is something you've built in this course: the bridge and reservoir capacitor of lesson 8, the Zener reference of lesson 11, and an emitter follower (lesson 43) to supply the current the Zener can't. In this project you'll design one for 5 V at half an amp, simulate its ripple in Python, and set its Zener bias by simulating the real circuit.

  • The whole supply: a bridge from a 10.4 V peak source, a 2200 µF reservoir, and a Zener-referenced emitter follower feeding a 10 Ω load (about half an amp).
  • The upper trace is the raw rectified voltage, rippling by about 1.5 V. The lower trace is the regulated output, nearly flat.
  • Shrink the reservoir capacitor until the valleys of the raw voltage dip toward the output: the regulator runs out of headroom and the ripple comes through.

Predict

The regulator's output is about 4.9 V and its transistor needs at least 2 V across it. The raw voltage peaks at 9 V. How much ripple can the reservoir be allowed?

Name it

The design, block by block

For an output Vo at up to IL, with a pass transistor of minimum β, from a supply at frequency f:

  1. Reference: the follower's output sits a VBE below its base, so VZ≈Vo+0.7 V.
  2. Headroom: the raw voltage's valley must stay at least VCE,min (about 2 V) above Vo: valley =Vo+VCE,min.
  3. Reservoir: choose the ripple Vr; the raw peak is valley + Vr, and C=IL2fVr (lesson 8).
  4. Transformer: the secondary's peak is the raw peak plus two diode drops, so Vrms=Vpeak+1.42, plus margin for low line voltage.
  5. Zener bias: at the valley, RS must still deliver the most base current, IL/βmin, plus the Zener's minimum current: RS=Vvalley−VZIL/β+IZ,min.
  6. Heat: the pass transistor drops the average raw voltage minus the output: P=(Vpeak−Vr2−Vo)IL, often watts, so it goes on a heat sink (lesson 34).

Ripple, simulated

With ideal diodes and a regulator drawing a steady IL, the reservoir voltage follows the rectified input |Vssin⁡ωt|−1.4 when that's higher, and otherwise falls at IL/C. In code, one line per time step does both:

V←max⁡(V−ILΔtC,|Vssin⁡ωt|−1.4)

Run it for a few cycles and read the minimum and maximum of the last one.

What the regulator buys

Between the reservoir and the load, ripple and load changes appear across the Zener divided by roughly rzRS+rz, with rz the Zener's small-signal resistance, and the follower adds its low output resistance. Integrated regulators replace the Zener with a bandgap reference and the follower with an error amplifier, and reject ripple a thousand times better; C6 builds one.

Worked example

Design the supply for 5 V at 0.5 A with β ≥ 50, 60 Hz, 2 V of ripple and 2 V of headroom.

Show the solution
  1. Zener voltage. VZ = 5.7 V (a 5.6 V part gives 4.9 V).
  2. Raw supply levels. Valley 7 V, peak 9 V.
  3. Capacitor. C=0.5120×2=2083μF Use 2200 µF.
  4. Transformer. The secondary needs 10.42=7.35V RMS so use an 8 V transformer.
  5. Zener resistor. RS=7−5.710mA+5mA=87Ω
  6. Pass transistor. It dissipates (8−5)×0.5=1.5W

Answer a 5.7 V Zener fed through 87 Ω, 2200 µF, an 8 V RMS transformer, and a pass transistor that dissipates 1.5 W.

Worked example

With 2200 µF from a 12 V peak source at 0.5 A, how low does the raw voltage dip?

Show the solution
  1. Estimate. Vmin=12−1.4−0.5120×2200μF=8.71V
  2. Simulation. Simulated, it bottoms at 9.03 V.
  3. Why it's higher. The input catches the capacitor well before the next peak, so less charge is lost than the estimate assumes.

Answer it dips to about 9.03 V, a little above the estimate of 8.71 V.

Check

A 5 V linear supply needs 1.5 V of headroom and allows 2 V of ripple. What raw peak voltage must it have?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A bridge supply's raw peak is 9 V. What RMS secondary voltage does its transformer need, before margin?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A Zener-follower regulator (VZ = 5.6 V) must deliver 1 A with β ≥ 80, keeping 2 mA in the Zener when the raw voltage dips to 7 V. What RS?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

A pass transistor feeds 1.5 A at 9 V from a raw supply peaking at 9 V with 1 V of ripple. What does it dissipate?

Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.

Check

Write design_supply(Vout, IL, beta, f=60, Vr=2.0, head=2.0, IZmin=5e-3) returning a dict with keys VZ, valley, peak, C, Vrms, RS and Ppass, following the six steps.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write simulate_supply(Vs, f, C, IL, dt=2e-6, cycles=6): step the reservoir voltage from 0 with the update rule above (input |Vssin⁡2πft|−1.4), and return (vmin, vmax) over the last cycle.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

The regulator alone, fed from the 7 V valley, drives a 10 Ω load through a pass transistor with β = 50. Choose RS so the Zener keeps 5 mA. (The meter's Zener current is negative: it flows in reverse.)

Type values the way you would write them on a schematic: 4.7k, 100n, 10m. Then try them: the circuit runs with your values and is measured.

Explain why

Why does a linear regulator need headroom, and what does that cost?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.