C5 · Lesson 53 · Power supply lab
Exact ripple and diode currents, Zener and follower regulators, in Python
Lessons 8 and 11 sized rectifiers and regulators with approximations: ripple as , a conduction window of , a Zener as a fixed voltage. Each is good to ten or twenty percent, which is fine for a first pass and not for a product. In this lab you'll compute the same quantities exactly from the models, see where the approximations err and in which direction, and build the calculations a power-supply design needs.
Play
- A half-wave rectifier charges a capacitor that feeds a constant-current load. The second trace is the diode's current.
- The diode conducts in short pulses near each peak. Raise the load current: the ripple grows, the pulses widen, and their peaks climb.
- Raise the capacitance. The ripple falls, but the pulses get narrower and taller: the same charge has to arrive in less time.
Predict
A full-wave rectifier with a 10.6 V peak feeds 100 mA from 1000 µF at 60 Hz. The formula gives 0.83 V of ripple. Is the true ripple larger or smaller?
Smaller: 0.73 V. The formula assumes the capacitor discharges for the whole half-period, but recharging starts before the next peak, so the discharge lasts only minus the conduction time. The error grows with the ripple: the formula is conservative, which is the safe direction for a capacitor size and the unsafe one for a diode's peak current.
Name it
Exact conduction with a constant-current load
Take the input as after the diode drops, with . While the diode conducts, the capacitor follows the input and the diode supplies . That falls to zero just after the peak, at
From there the capacitor discharges linearly, , until it meets the rising input of the next half-cycle (full-wave, π later) or the next cycle (half-wave, 2π later). Solving that crossing by bisection gives the turn-on phase and with it
- the ripple, ;
- the conduction angle, ;
- the peak diode current, , at turn-on.
A Zener with resistance
Model the Zener in breakdown as in series with . With the supply, , the Zener and the load all meeting at the output node, the node equation gives
valid while that V is at least (the Zener conducts). Below that the Zener is off and the output is just the divider .
The follower regulator
The base node satisfies , and the output is . The input must stay above both and plus the pass transistor's minimum voltage, or the output drops out.
Worked example
Find the exact ripple, conduction angle and peak diode current for lesson 8's bridge supply: 10.6 V peak, 100 mA, 1000 µF, 60 Hz. Compare them with the approximations.
Show the solution
- Turn-off angle. = 4.00 A, so just past the peak.
- Turn-on angle. Bisection finds the next turn-on at = 1.197 rad into the next half-cycle.
- Ripple.
- Conduction angle and peak current. The conduction angle is 0.399 rad (22.8°), and
- Compare with the approximations. They gave 0.833 V, 0.396 rad and 1.68 A: the ripple 14% high, the window less than 1% narrow, the peak current 8% high. All are on the safe side for sizing, but a supply designed to them carries a larger capacitor than it needs.
Answer the exact ripple is 0.731 V, the conduction angle 0.399 rad (22.8°) and the peak diode current 1.56 A, against the approximations' 0.833 V, 0.396 rad and 1.68 A.
Worked example
A 5.1 V Zener ( = 10 Ω) is fed from 12 V through 150 Ω. Find the output with 1 kΩ, 200 Ω and 100 Ω loads.
Show the solution
- With 1 kΩ. and the Zener carries = 38 mA.
- With 200 Ω. The output is 5.284 V, with 18 mA in the Zener.
- With 100 Ω. The formula gives 5.057 V, below , so the Zener is off and the output is Regulation has been lost.
- What the model shows. The output already falls 0.2 V between the first two loads, which the fixed-voltage model hides.
Answer the output is 5.480 V with 1 kΩ and 5.284 V with 200 Ω; with 100 Ω the Zener turns off and the output drops to 4.80 V.
Worked example
Lesson 52's follower regulator (5.6 V Zener with = 10 Ω, = 220 Ω, β = 50, A) runs from 9 V. What's its output at 50 mA and 500 mA, and what's its dropout input at 500 mA?
Show the solution
- Base voltage at 50 mA.
- Output at 50 mA. so = 4.983 V.
- At 500 mA. = 5.654 V and = 0.815 V, so the output is 4.839 V: 144 mV lower, as lesson 52 estimated.
- What the base resistor needs.
- What the pass transistor needs. It needs 4.84 + 1.0 = 5.84 V.
- Which sets the limit. So the regulator drops out below 8.86 V at full load: the Zener's resistor sets the limit, well above what the transistor needs.
Answer the output is 4.983 V at 50 mA and 4.839 V at 500 mA, and the regulator drops out below an 8.86 V input at 500 mA.
Check
Step 1. Write conduction(Vp, f, C, IL, full=True) returning (ripple, angle, ipeak) for a capacitor-input rectifier with an ideal diode and a constant-current load, as in the reading: find , then bisect for the turn-on phase in the next half-cycle (full-wave) or cycle (half-wave).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 2. Write zener_design(Vmin, Vmax, VZ, ILmax, IZmin) returning (RS, PZ, PR): the largest series resistor, and the Zener's and the resistor's worst-case dissipation (at the highest input with no load).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 3. Write zener_out(Vin, RS, VZ0, rz, RL) returning the output of a Zener regulator with the + model, falling back to the plain divider when the Zener isn't conducting.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 4. Write follower_reg(Vin, VZ0, rz, RB, beta, IL, IS=1e-14) returning the output of an emitter-follower regulator, from the base-node equation and with = 0.02585 V.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 5. Write dropout(Vout, IL, beta, VZ, RB, IZmin=0.005, vce=1.0) returning the lowest input voltage at which a follower regulator still regulates at load current IL.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A full-wave rectifier (10 V peak after the diodes, 50 Hz) feeds 0.5 A from 2200 µF.
(a)
What ripple does the usual approximation give?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
At what phase does the diode stop conducting?
Check
A Zener ( = 6.2 V, = 20 Ω) fed from 10 V through 100 Ω drives 1 kΩ. What's the output?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Explain why
Why does the usual ripple formula overestimate the ripple of a capacitor-input rectifier?
The formula assumes the capacitor supplies the load for an entire half-period (or period) between charging pulses. In reality the diode turns on again before the next peak, as soon as the rising input catches the falling capacitor voltage, so the capacitor discharges for the half-period minus the conduction time. A shorter discharge means less voltage lost, so the true ripple is smaller. The bigger the ripple, the earlier the diode turns on and the larger the error. The same short-window effect makes the formula for peak diode current, which assumes a narrow window, overestimate it too.
Practice
Keep practicing
4 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.