Circuits that do a job, and the range they do it over

The load that does not fall with the supply

A linear regulator draws its output current from its input at every input voltage it can regulate from, so the honest load for the supply in front of it is a current sink and not a resistor. Marched both ways at the design point — 15.3 V peak, a 13 V trough, half an amp — the two agree: a 0.5 A sink needs 2.71 mF where 28 Ω needed 2.65, and 1.53 where it needed 1.58 with 0.3 mH of leakage, because the resistor drew 0.493 A in one design and 0.507 in the other. Away from it they part. Below the design mains the sink's trough falls 0.99 V for every volt of peak and the resistor's only 0.89, since a resistor's current falls with its voltage; the resistor lends a margin the regulator never has. At high mains a resistor draws 0.61 A where the regulator draws 0.5, so the heat the resistor model implies, 3.05 and 3.43 W, is 18 and 23 per cent too high — and the leakage's heat penalty is 8 per cent, not 12.

Assumes: The direct voltage that is a sawtooth · A source below a frequency

The reservoir the headroom sizes sized an unregulated supply for the regulator behind it. A 12 V regulator with a volt of headroom needs its input never to fall below 13 V, and the hardest moment is low mains — a rectified peak of 15.3 V — at full load. Marched with the diodes in the netlist, the supply held that trough from 2.65 mF with no leakage inductance and from 1.58 mF with the 0.3 mH that the inductance that flattens the supply had found improving its regulation. At high mains the leaky design’s regulator dissipated 3.43 W against 3.05: twelve per cent more heat for forty per cent less capacitor.

Every one of those marches loaded the reservoir with a 28 Ω resistor, about half an amp at the voltages involved, and stood it in for the regulator. A regulator is not a resistor. A linear regulator delivering half an amp to its load draws half an amp from its input whatever its input voltage is, as long as it is regulating — the current is set by the load on the far side, and the input voltage only decides how much of the power the regulator turns into heat. So the regulator is a current sink, and the essay that sized the reservoir closed by asking whether loading the supply with one changes the leakage’s saving or only shifts both designs together.

The same supply, loaded honestly

The supply is the earlier essay’s: a centre-tapped winding with 50 mΩ of resistance in each half — the resistance the resistance that belongs in the winding put into the netlist — two diodes with their exponential law in the netlist, a reservoir from 680 µF to 4.7 mF, and the source at 15.3 V peak for ten per cent low mains. The load is either 28 Ω or a current sink of 0.5 A. The sink ramps up over the first two cycles of the march, as a regulator’s output does while its own output capacitor charges, so that the march does not begin by pulling an empty reservoir negative; by the twelfth cycle, where every reading is taken, it has drawn exactly half an amp for ten.

Fed into a 0.5 A sink instead of 28 Ω, the supply needs 2.71 mF without leakage and 1.53 mF with 0.3 mH — the resistor's 2.65 mF and 1.58 mF, to a few per cent. computed by solving, not by drawing, marched with the diodes in the netlist at 15.3 V peak with 50 mΩ of winding: the trough of the reservoir against its capacitance, the load either 28 Ω or a current sink of 0.5 A, without leakage and with 0.3 mH. No leakage, 28 Ω: trough 10.03, 11.15, 12.08, 12.76, 13.28, 13.60 V from 680 µF to 4.7 mF, smallest reservoir for 13 V 2.65 mF; No leakage, 0.5 A sink: trough 9.46, 10.86, 11.96, 12.71, 13.27, 13.61 V from 680 µF to 4.7 mF, smallest reservoir for 13 V 2.71 mF; 0.3 mH, 28 Ω: trough 10.63, 12.16, 12.95, 13.31, 13.52, 13.62 V from 680 µF to 4.7 mF, smallest reservoir for 13 V 1.58 mF; 0.3 mH, 0.5 A sink: trough 10.42, 12.20, 12.98, 13.33, 13.53, 13.63 V from 680 µF to 4.7 mF, smallest reservoir for 13 V 1.53 mF. The leakage's saving is a ratio of 1.67 with the resistor and 1.77 with the sink. Below the design point the sink's trough falls further, because a resistor's current falls with its voltage and a sink's does not; at 13 V the resistor already draws close to 0.5 A.
Fig. 1 The trough of the reservoir at 15.3 V peak against its capacitance, into 28 Ω and into a 0.5 A sink, with no leakage and with 0.3 mH. No leakage: the smallest reservoir for a 13 V trough is 2.65 mF into the resistor and 2.71 mF into the sink. With 0.3 mH: 1.58 mF and 1.53 mF. The leakage’s saving, the ratio of the two, is 1.67 with the resistor and 1.77 with the sink. Below the design point the sink’s trough falls further, at 680 µF 9.46 V against 10.03.

At the design point the two loads agree to a few per cent. Without leakage the sink needs 2.71 mF where the resistor needed 2.65; with leakage it needs 1.53 where the resistor needed 1.58. The leakage’s saving survives and grows a little, from a ratio of 1.67 to 1.77, so the answer to the question the earlier essay left is that the sink shifts the two designs in opposite directions, and the leaky one comes out further ahead.

Why it shifts them oppositely is worth seeing, because it is not a difference between a resistor and a sink at all. At its own smallest reservoir the leak-free supply sits at a mean of 13.8 volts, and 28 Ω there draws 0.493 A; the leaky supply sits at a mean of 14.2 volts — its inductance rings the reservoir up past the source’s own peak — and the same resistor draws 0.507 A. The earlier essay compared two designs at currents three per cent apart, and in the direction that flattered the design without leakage. The sink draws half an amp in both, which is the comparison the earlier essay meant to make.

Away from the design point the two loads part, and that is where the rest of this essay lives. At 680 µF the sink’s trough is 9.46 V against the resistor’s 10.03: a small reservoir sags a long way, the resistor’s current falls as it sags, and the sink’s does not.

The margin a resistor lends

A supply sized at low mains is sized at a corner, and the useful question about a corner is how fast the design falls off it. If the mains sags further than the specification assumed — a brown-out, a long cable, a generator under load — the trough falls, and the regulator drops out when it passes 13 volts.

As the mains falls below its design point, the trough into a sink falls 0.99 V for each volt of peak, and into 28 Ω only 0.89: the resistor lends a margin a regulator never has. computed by solving, not by drawing, marched: the trough against the source's peak from 14.3 to 15.3 V, for each supply at its own smallest reservoir from the headroom sizing (no leakage, 2.65 mF; 0.3 mH, 1.58 mF), into 28 Ω and into a 0.5 A sink. No leakage, 28 Ω: 12.132, 12.577, 13.023 V, a slope of 0.891; No leakage, 0.5 A sink: 12.012, 12.506, 13.000 V, a slope of 0.988; 0.3 mH, 28 Ω: 12.123, 12.570, 13.016 V, a slope of 0.893; 0.3 mH, 0.5 A sink: 12.064, 12.555, 13.047 V, a slope of 0.984. A resistor's current falls as its voltage does, about 7% for a volt here, so it removes less charge each half cycle as the mains sags and holds a little of the trough back; a regulator's current does not, and its supply's trough follows the peak down almost volt for volt.
Fig. 2 The trough against the source’s peak from 14.3 to 15.3 V, each supply at its own smallest reservoir from the resistor sizing (2.65 mF, and 1.58 mF with 0.3 mH). Into 28 Ω the trough falls 0.891 and 0.893 V for each volt of peak; into a 0.5 A sink 0.988 and 0.984. At 14.3 V peak the leak-free supply’s trough is 12.13 V into the resistor and 12.01 V into the sink.

Into the sink the trough follows the peak down almost volt for volt — 0.988 V of trough for each volt of peak without leakage, 0.984 with it. That is what a constant current must do: the charge it removes each half cycle is fixed, so the ripple is fixed, and the whole waveform moves down with the source. Into the resistor the trough falls only 0.89 V a volt, because the resistor’s current falls by about seven per cent for each volt the reservoir loses, the ripple shrinks with it, and the trough is held up by the difference.

So a resistor stood in for a regulator reports a tenth of a supply’s sensitivity to the mains as margin that is not there. On the leak-free design a volt below the low-mains specification leaves the regulator’s input at 12.13 V into the resistor and 12.01 V into the sink; either has dropped out, but the resistor says it has dropped out by nine tenths of a volt and the sink by a volt. A design that has to tolerate a stated brown-out is sized for it with the sink, and with the resistor it is undersized by that tenth.

The remaining one per cent of the sink’s slope, the 0.988 rather than one, belongs to the source side. The charging pulse flows through the winding’s resistance and the diodes’ exponential law, and as the source falls the pulse starts a little later in each half cycle and lasts a little longer, so the drop across those elements during charging changes slightly with the mains. That is a property of the rectifier and would be there under any load.

The leakage does not change this. Both leaky curves have the same slopes as their leak-free counterparts to a few thousandths, because the slope is a property of the load and not of the source: a resistor feeds back on its own current and a sink does not, whatever is in front of them.

The heat the resistor invents

At the other end of the mains the error runs the other way and is larger, because the resistor’s current rises with the voltage and the regulator’s does not.

What a 28 Ω load draws across the mains: 0.459 A at 14.3 V peak to 0.608 A at 18.7, where the regulator it stands for draws 0.5 A throughout. computed by solving, not by drawing, marched, each design at its own smallest reservoir: the mean current a 28 Ω load draws at five source peaks from 14.3 to 18.7 V. No leakage, 2.65 mF: 0.459 A, 0.476 A, 0.493 A, 0.544 A, 0.608 A; 0.3 mH, 1.58 mF: 0.472 A, 0.489 A, 0.507 A, 0.559 A, 0.625 A. The resistor matches the 0.5 A sink at the low-mains design point and nowhere else: at high mains it draws a fifth more, and as the mains sags it draws less, which is the margin and the heat the resistor model invents.
Fig. 3 The mean current a 28 Ω load draws at five source peaks from 14.3 to 18.7 V, each supply at its own smallest reservoir. Without leakage: 0.459, 0.476, 0.493, 0.544 and 0.608 A. With 0.3 mH: 0.472, 0.489, 0.507, 0.559 and 0.625 A. A regulator delivering half an amp draws 0.5 A at every one.

Across the ten per cent either side of nominal mains, the resistor’s current moves from 0.459 A to 0.608 — a third of its range — while the regulator it stood for draws half an amp throughout. The resistor matches the regulator at the low-mains design point, where it was chosen to, and at no other mains voltage. At high mains it draws a fifth more than the regulator, and every reading that depends on the load current there is wrong by that fifth.

The one that matters is the regulator’s dissipation, which is its input voltage less its output, times its current.

At high mains the regulator dissipates 2.59 W and 2.79 W, not the 3.05 and 3.43 a 28 Ω load implies, and the leakage's heat penalty is 8% rather than 12%. computed by solving, not by drawing, marched at 18.7 V peak, ten per cent high mains, each design at its own smallest reservoir. Dissipation is (mean input − 12 V) times the current. No leakage, 2.65 mF: into 28 Ω the mean input is 17.02 V at 0.608 A, 3.05 W; into a 0.5 A sink 17.19 V, 2.59 W; 0.3 mH, 1.58 mF: into 28 Ω the mean input is 17.49 V at 0.625 A, 3.43 W; into a 0.5 A sink 17.58 V, 2.79 W. The resistor draws a fifth more current at high mains than the regulator does, so it overstates the heat by 18 and 23 per cent, though the sink's mean input is the higher of the two.
Fig. 4 The regulator’s dissipation at 18.7 V peak, each design at its own smallest reservoir, as (mean input − 12 V) times the current. Without leakage: into 28 Ω the mean input is 17.02 V at 0.608 A, 3.05 W; into a 0.5 A sink 17.19 V, 2.59 W. With 0.3 mH: 17.49 V at 0.625 A, 3.43 W; into the sink 17.58 V, 2.79 W.

Loaded by the sink, the regulator dissipates 2.59 W in the leak-free design and 2.79 W in the leaky one. The resistor model said 3.05 and 3.43: eighteen and twenty-three per cent too much. The mean input voltage is in fact a little higher into the sink — 17.19 V against 17.02, because the sink draws less current than the resistor at high mains and the reservoir sags less — but the current is lower by a fifth, and the current wins.

The headline the earlier essay drew from these numbers shrinks with them. Its leaky design saved forty per cent of the capacitance and paid twelve per cent more heat at high mains. Into the sink it saves forty-three per cent of the capacitance and pays eight per cent more heat, 2.79 W against 2.59. The leakage is a better bargain than the resistor said, on both sides of the ledger.

Heat that is linear in the mains

The two loads also disagree about how the heat grows, and the disagreement is one of form rather than of size. Into a sink the regulator’s dissipation is I(Vˉin−Vout)I(\bar V_{in} - V_{out}) with II fixed, and the mean input follows the mains almost volt for volt: on the leak-free design it rises from about 13.8 V at low mains to 17.19 V at high, 3.4 volts for 3.4 volts of peak. So the heat is linear in the mains, and its slope is simply the load current — half a watt for each volt the peak rises.

Into a resistor the current rises with the voltage as well, so the dissipation is the product of two rising quantities and grows as the square of the mains, less a constant. A thermal design read off a resistor model therefore errs by a growing amount as the mains rises, and the error at the top of the range — where a heatsink is sized — is the largest. At ten per cent high mains it is the eighteen per cent the figure shows; at fifteen per cent, a tolerance some supplies are specified to, it would be larger again.

What the sink also makes plain is where the heat comes from. With a fixed current, every watt of dissipation is a volt of excess input times the current, so the leaky design’s extra 0.20 W at high mains is exactly its extra 0.39 V of mean input times half an amp: the ring-up that the inductance that flattens the supply found lifting the reservoir above the source’s peak, priced in heat. A resistor model mixes that volt with the extra current the volt drives through the resistor, and the mixture is what inflated the penalty from eight per cent to twelve.

A straight line to the same floor

At the design point the two loads arrive at almost the same trough, and they get there along different paths.

One reservoir, 2.65 mF, at low mains: into 28 Ω it sags from 14.55 to 13.02 V, into 0.5 A from 14.55 to 13.00 — the same floor reached along a straight line instead of a curve. computed by solving, not by drawing, marched: the last 20 ms of the reservoir voltage for the supply with no leakage at its own smallest reservoir, 15.3 V peak, into 28 Ω (solid) and into a 0.5 A sink (dashed). Into the resistor the reservoir discharges along an exponential whose current is 0.519 A at the crest and 0.465 A at the trough; into the sink it discharges in a straight line at 0.5 A throughout. Troughs 13.023 and 13.000 V; ripple 1.523 and 1.547 V. The resistor removes more charge early in the discharge and less late, and across a ripple of a tenth of the voltage the two nearly balance.
Fig. 5 The last 20 ms of the reservoir voltage for the leak-free supply at 2.65 mF and 15.3 V peak. Into 28 Ω it falls from 14.55 V to 13.02 V along an exponential, the current 0.519 A at the crest and 0.465 A at the trough; into a 0.5 A sink it falls from 14.55 V to 13.00 V in a straight line at half an amp throughout. Ripple 1.523 V and 1.547 V.

Into the resistor the reservoir discharges along an exponential: 0.519 A at the crest, when the voltage is highest, falling to 0.465 A at the trough. Into the sink it discharges in a straight line at half an amp. The resistor removes more charge than the sink early in the discharge and less late, and over a ripple that is a tenth of the voltage the two nearly balance — the sink’s trough is 23 millivolts lower, its ripple 24 millivolts larger.

That is why the resistor was a reasonable model for the sizing and a poor one for anything else. The trough depends on the charge removed between charging pulses, and the charge removed depends on the mean current, which the resistor matches at the design point by construction. The second-order difference — the curvature of the exponential — is a few per cent of the ripple. What the resistor gets wrong is the first-order dependence of its current on its voltage, and that matters as soon as the voltage moves for any reason other than the ripple.

Why the textbook ripple formula was a sink all along

The ripple formula every introduction to rectifiers gives, ΔV=I/(2fC)\Delta V = I/(2fC), assumes a constant load current that discharges the reservoir for the whole of each half cycle. The direct voltage that is a sawtooth found it high, because the reservoir is in fact being charged for part of each half cycle and discharges for less than the whole. But the assumption of a constant current was never the part that was wrong: the load the formula describes is a sink, and it is the honest model of the regulator.

The irony is that the netlist the marches used had replaced the formula’s sink with a resistor, which is the one simplification the formula does not make. The current that sizes the transformer and the resistance that lowers the ripple measured the charging pulse and the winding’s effect on it, and both are properties of the source side; the load side was the resistor from the first essay onward, because a resistor is what a netlist reaches for first.

Where the two models agree, and why

The agreement at the design point is not luck, and it is worth stating when it holds. A resistor matches a sink when its current is the sink’s current at the voltage it is evaluated at, and when the voltage does not move far from there. The first is a choice of resistance. The second is the ripple’s size relative to the mean, and for a supply sized for a regulator the ripple is a tenth of the mean — large enough to matter to the trough and small enough that a resistor’s current varies by only ten per cent across it.

A supply feeding a resistive load — a heater, a lamp, a motor at fixed speed — should be marched into a resistor, and nothing here changes that. A supply feeding a regulator, a switching converter or any other load that holds its own output should be marched into whatever that load draws at its input. For a linear regulator that is a constant current. For a switching converter it is a constant power, whose current rises as its input falls, and the margin the resistor lent becomes a margin taken away.

A load that takes margin away

The constant-power load is the case that turns this essay’s finding into a hazard, and it is the obvious next measurement. A switching converter delivering six watts draws 0.46 A at 13 volts and 0.35 A at 17. As its input sags it draws more current, which makes it sag faster, which makes it draw more: the trough’s slope against the mains is steeper than one, and below some mains voltage there is no steady state at all. The regulator that pushes past the nose met the same instability in a power line feeding a regulated load, where a constant-power load turns the line’s voltage curve into a nose beyond which no operating point exists. A reservoir feeding a converter has a nose of its own.

So the ordering is clear and has a sign. A resistor’s current falls with its voltage and it lends margin; a sink’s holds and it lends none; a converter’s rises and it takes margin away. A supply sized against a resistor and then fitted with a converter is undersized twice.

What the march leaves out

The sink is ideal. A real regulator draws its ground current as well as its output current, a few milliamps for a bipolar part and microamps for a modern one, and its ground current rises steeply as it approaches dropout. Near 13 volts that rise is the next correction, and it goes in the direction of the sink’s error, not the resistor’s.

The regulator’s own ripple rejection is not modelled, so the waveform here is its input and not its output. What gets through from the rail measured how much of an input ripple a regulator passes, and none of that depends on whether the reservoir was marched into a resistor or a sink — only on the trough, which the two models agree on at the design point.

The leakage and the winding resistance are the earlier essays’ values, and the mains is a pure sine. A flat-topped mains waveform, common where many rectifier loads share a supply, lowers the peak the reservoir charges to and is a brown-out of its own that the sink would follow volt for volt.

The numbers to keep

At the design point a 0.5 A sink and 28 Ω need the same reservoir to a few per cent — 2.71 mF against 2.65, and 1.53 against 1.58 with 0.3 mH — and the leakage’s saving grows from 1.67 to 1.77 because the resistor drew 0.493 A in one design and 0.507 in the other. Below the design mains the trough falls 0.99 V a volt into the sink and 0.89 into the resistor. At high mains the regulator dissipates 2.59 and 2.79 W, not the 3.05 and 3.43 the resistor implied, and the leakage’s heat penalty is eight per cent, not twelve.

Still open: the converter as a load, the dropout’s own current, and the mains cable

A constant-power load. A switching converter draws more current as its input falls, so the trough’s slope against the mains is steeper than one and below some mains voltage the supply has no steady state. Where that collapse sits for a six-watt converter on these two reservoirs, and whether the leakage — which lifts the trough — moves it far enough to matter, is a march with a load whose current is computed from its own voltage at every step.

The regulator near dropout. A regulator’s ground current rises as its headroom vanishes, so a sink is optimistic exactly where the sizing is done. Adding a ground current that grows below a volt of headroom would say how much larger the reservoir has to be than the sink says.

The cable and the primary behind the winding. The mains cable’s inductance and the primary’s resistance sit in series with the leakage, seen through the turns ratio. A supply tuned for its trough with 0.3 mH on a stiff bench supply has more than that on a long lead, and whether the installation pushes it past an optimum is a march with a second inductance in it — now with a sink, so that the answer is about the regulator and not about a resistor standing in for one.

Part 9 on unregulated supply

One argument about Unregulated supply, and one of 9 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Design tradeoffHeadroomLeakage inductanceLoad regulationMarchingRectificationReservoir capacitor