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

The direct voltage that is a sawtooth

A rectifier and a reservoir capacitor make what everybody calls a direct voltage. Marched with the diodes in the netlist, a thousand microfarads across a hundred ohms gives 15.69 volts with 1.33 volts of ripple on it, against the 1.57 the textbook expression predicts. The expression is high by the fraction of the cycle the diode conducts for — measured at 0.94 to 0.96 of it across two sweeps — and it has no opinion at all about the quantity that actually sizes the transformer, which is a peak diode current 13.4 times the current the load draws.

Assumes: A bias point is a solution, not a choice · The current that does no work

Before a regulator there is usually a transformer, a rectifier and a large capacitor, and the voltage they produce is called a direct voltage by everybody including the people who designed it. It is not one. It is a sawtooth with a mean, and this essay is about the difference and about which of the sawtooth’s properties the usual design expression can see.

1000 µF across a 100 Ω load, rectified from 17 V peakThe output sits at 15.69 V with 1.331 V of ripple, against the 1.569 V the expression I/2fC gives — 15.1% high, because the capacitor is being recharged for part of the cycle rather than discharging throughout it. The lower panel is why: the diode conducts for 28.8° of each half cycle and carries 2.10 A at the peak, which is 13.4 times the 157 mA the load draws.1416180102030output (volts)where I/2fC says the trough iswhere it isthe rectified sinusoid0120102030time (milliseconds)current in one diode (amperes)peak 2.10 A · 13.4× the load's direct currentsolved, then checked28.8° of conduction, 13.4× crest
Fig. 1 A full-wave rectifier feeding a reservoir capacitor and a load, marched for twelve cycles at fifty hertz. The upper panel is the output with the rectified sinusoid behind it; the lower is the current in one diode on the same time axis. The slider is the capacitance.

What is being solved

Two diodes from a centre-tapped source, a capacitor and a resistor. Every diode is an exponential — the same diodeElement the semiconductors field uses, with its own current law and its own derivative — and the whole thing is marched forward in time by the machinery the oscillator essays needed, with a Newton loop at every step.

The topology is centre-tapped rather than a bridge, and the reason is numerical rather than historical. A bridge’s two alternating-current nodes are held by nothing at all during the interval when all four diodes are off; each connects to the rest of the circuit only through devices whose companion conductance has fallen to the floor, so the matrix loses rank at every instant between conductions. A centre tap grounds the source and every node keeps a path to ground at every instant. The two circuits rectify identically and only one of them is solvable at every step.

That is a small thing and it is the sort of small thing this collection writes down, because the alternative — adding a large resistor across each node to keep the matrix invertible — is exactly the “stamp a wire as a milliohm” mistake the networks field refuses.

Four networks the solver refuses. Each has no answer, for a reason that is a fact about the circuit rather than about the arithmetic. The solver names the reason; it does not return a number.
Fig. 2 Why the shortcut is refused rather than taken. Four networks the solver declines, each for a reason that is a fact about the circuit. A node with no path to ground is one of them, and the answer is to choose a topology that does not produce one rather than to add an element that makes the symptom go away.
A diode fed from 5 V through 1.0 kΩ. computed by solving, not by drawing. The operating point is where the exponential meets the load line: 0.692544 V and 4.3075 mA, reached in 13 damped Newton steps from a cold start. The one-line Newton on Vs = v + R·i(v), which touches no matrix, gives 0.692544 V. The "drop" is not a constant: it moves 59.53 mV per decade of current, measured between two solved operating points.
Fig. 3 The other half of the machinery, in the field it came from: Newton’s method on a netlist, with each nonlinear element replaced by a conductance and a current source that agree with its own law at the present guess. Here that loop runs once per time step, warm-started from the step before, and converges in two iterations rather than thirteen.

What it settles at

A 17 V peak, 50 Hz, 1000 µF and 100 Ω:

  • mean output 15.69 V
  • peak-to-peak ripple 1.331 V
  • load current 157 mA
  • peak diode current 2.098 A
  • conduction 28.8° of each half cycle

The first number already contains something. Seventeen volts of peak into a capacitor should charge it to seventeen volts, and the mean is 15.69 — about a volt of that is the ripple’s own shape and the rest is the diode. A silicon junction carrying two amps sits at about 0.8 V rather than the 0.7 V it is usually credited with, because the drop moves 59.5 millivolts per decade of current and two amps is two and a half decades above a milliamp.

That the drop is a solution rather than a constant is the semiconductors field’s opening result. A bias point is a solution, not a choice solves the same junction from a five-volt supply through a kilohm and gets 0.692544 V, and from forty-eight volts through the same kilohm 0.754459 V — the same part, the same equation, sixty millivolts apart because the current is. And the value everybody quotes is exact somewhere: the one current a constant is right at locates seven-tenths of a volt at 5.748 milliamperes and nowhere else. A rectifier’s diode is two and a half decades above that current for a twentieth of each cycle and far below it for the rest, so the constant-drop model is wrong in both directions within one period and there is no single current at which to pin it.

220 µF across a 100 Ω load, rectified from 17 V peak. The output sits at 14.17 V with 4.607 V of ripple, against the 6.441 V the expression I/2fC gives — 28.5% high, because the capacitor is being recharged for part of the cycle rather than discharging throughout it. The lower panel is why: the diode conducts for 54.2° of each half cycle and carries 0.911 A at the peak, which is 6.43 times the 142 mA the load draws.
Fig. 4 Two hundred and twenty microfarads. The ripple is 4.607 V, the diodes conduct for 54.2° of each cycle, and the peak current is 6.43 times the mean. This is the smallest reservoir drawn and it has the gentlest current waveform, which is the opposite of what a reader sizing a capacitor for ripple would expect.

The ripple, and the expression for it

Every design guide gives the ripple as

Vr=Idc2fCV_r = \frac{I_{dc}}{2 f C}

which comes from assuming the capacitor is discharged by a constant current for the whole of each half period. At these values it gives 1.569 V. The march gives 1.331 V — the expression is 15.1% high.

Across a capacitance sweep and a load sweep:

measured expression high by conduction
220 µF 4.607 V 6.441 V 28.5% 30.1% of a half cycle
470 µF 2.556 V 3.216 V 20.5% 21.8%
1000 µF 1.331 V 1.569 V 15.1% 16.0%
2200 µF 0.644 V 0.727 V 11.4% 12.1%
4700 µF 0.312 V 0.344 V 9.2% 9.6%

The last two columns are the essay’s first result. The amount the expression is high by is the fraction of the half cycle the diode is conducting for — the ratio of the two runs 0.942 to 0.963 across the capacitance sweep and a load sweep together, and the gate holds that it stays inside a fifteen per cent band over both.

That is the mechanism named rather than a fudge factor fitted. The expression assumes the capacitor discharges for the whole half period; it actually discharges for the part of the half period when the diode is off, which is one minus the conduction fraction. Multiplying the expression by that fraction recovers the measurement to within a few per cent, and the few per cent is the fact that the discharge current is not quite constant either, since the load is a resistor and the voltage across it is falling.

The ratio is not exactly one, and the reason is worth stating rather than hiding: the conduction fraction is measured at a stated threshold — the interval during which the diode current exceeds one per cent of its own peak — and a different threshold moves the number by a few per cent. What does not move is that the two quantities track each other across a decade of capacitance and a decade of load.

What the expression cannot see

The ripple is not what breaks a supply. Look at the lower panel of the figure.

The diode conducts for 28.8° of each half cycle and carries 2.098 A at the peak, against a load drawing 157 mA. That is a crest factor of 13.4, and it gets worse as the capacitor gets larger:

capacitance conduction peak diode current crest factor
220 µF 54.2° 0.911 A 6.4
470 µF 39.2° 1.423 A 9.4
1000 µF 28.8° 2.098 A 13.4
2200 µF 21.8° 2.983 A 18.6
4700 µF 17.3° 3.916 A 24.3

The gate holds that every increase in the reservoir capacitance makes the crest factor worse, which is the design fact hiding behind the ripple expression: the charge the load takes out over a whole cycle has to be put back during the conduction interval, so shortening the interval raises the current in proportion. A designer who doubles the capacitor to halve the ripple has also raised the peak current by about 40%.

And the peak current is what sizes things. The transformer’s winding heats as the mean square of the current, not as its mean; the diode’s dissipation is the drop times the current at the instant it flows; the capacitor’s own series resistance sees the whole of that pulse. None of those is in I/2fCI/2fC, which contains the load current and the capacitance and nothing about the shape.

470 µF across a 100 Ω load, rectified from 17 V peak. The output sits at 15.12 V with 2.556 V of ripple, against the 3.216 V the expression I/2fC gives — 20.5% high, because the capacitor is being recharged for part of the cycle rather than discharging throughout it. The lower panel is why: the diode conducts for 39.2° of each half cycle and carries 1.42 A at the peak, which is 9.41 times the 151 mA the load draws.
Fig. 5 Four hundred and seventy: 2.556 V of ripple, 39.2° of conduction, a crest factor of 9.41. Doubling the capacitance has halved the ripple and made the current spikier by half again, because the same charge must now be delivered in a shorter window.

Two larger reservoirs finish the sweep, and they are the ones that matter to a designer, because they are the values anybody actually fits. The ripple specification is met somewhere in here; the conduction angle is not on the specification at all.

2200 µF across a 100 Ω load, rectified from 17 V peak. The output sits at 16.00 V with 644 mV of ripple, against the 727 mV the expression I/2fC gives — 11.4% high, because the capacitor is being recharged for part of the cycle rather than discharging throughout it. The lower panel is why: the diode conducts for 21.8° of each half cycle and carries 2.98 A at the peak, which is 18.6 times the 160 mA the load draws.
Fig. 6 Two thousand two hundred: 644 mV, 21.8°, crest 18.6. The expression a designer uses for ripple contains the capacitance and the load and says nothing whatever about the conduction angle — which is the quantity that decides what the transformer, the diodes and the supply’s own harmonics have to survive.
4700 µF across a 100 Ω load, rectified from 17 V peak. The output sits at 16.15 V with 312 mV of ripple, against the 344 mV the expression I/2fC gives — 9.2% high, because the capacitor is being recharged for part of the cycle rather than discharging throughout it. The lower panel is why: the diode conducts for 17.3° of each half cycle and carries 3.92 A at the peak, which is 24.3 times the 161 mA the load draws.
Fig. 7 Four thousand seven hundred, the top of the slider: 312 mV of ripple, 17.3° of conduction, and a crest factor of 24.3. Across the five capacitances the ripple falls from 4.607 V to 312 mV — a factor of 14.8 — while the crest factor rises from 6.43 to 24.3. Every microfarad added to fix one number makes the other worse, and only the first of them is on the specification.

The number a regulator cares about is the trough

The mean is what a voltmeter reads and it is not the quantity the rest of the design is constrained by. A regulator in front of this supply needs its input to stay above its output by its dropout voltage at every instant, so what matters is the bottom of the sawtooth.

capacitance peak trough mean
220 µF 16.33 V 11.73 V 14.17 V
470 µF 16.33 V 13.77 V 15.12 V
1000 µF 16.32 V 14.99 V 15.69 V
2200 µF 16.31 V 15.67 V 16.00 V
4700 µF 16.30 V 15.99 V 16.15 V

The peak barely moves — it is the transformer’s peak less a diode, and the diode’s drop changes only with the logarithm of the current. Everything else in the table is the reservoir deciding how far the voltage falls before the next pulse arrives.

So a five-volt regulator with two volts of dropout needs seven volts at the trough and has it in every row; a twelve-volt regulator with the same dropout needs fourteen and gets it only from 470 µF upwards. The capacitor is sized by the trough and the mean is a summary of it.

The same table read the other way is the reason a supply’s regulation looks bad when it is measured casually. Between 220 µF and 4700 µF the mean output moves by 1.98 V — fourteen per cent — with no change to the transformer, the diodes or the load. A measurement of “the supply voltage” that does not say which reservoir it was made with has not said much.

And the load sweep says the same thing in the other variable:

load ripple expression high by crest
50 Ω 2.425 V 3.032 V 20.0% 9.7
100 Ω 1.331 V 1.569 V 15.1% 13.4
200 Ω 0.705 V 0.800 V 11.8% 17.9
500 Ω 0.294 V 0.324 V 9.1% 24.7

A lighter load gives less ripple and a worse crest factor, for the same reason a larger capacitor does: the charge per cycle falls, the conduction interval shortens faster, and the current in the interval goes up. A supply designed at full load and then run lightly is running its diodes and its transformer at a peak current they were never sized for — and the ripple measurement, which is the one everybody makes, looks better while it happens.

The capacitor is not a capacitor either

The march models the reservoir as an ideal capacitance, and it is worth saying what that leaves out, because the frequency field has already measured it.

A real electrolytic has an equivalent series resistance — tens of milliohms for a part this size — and a two-amp pulse through 50 mΩ is 100 mV of additional ripple that appears at the instant of conduction rather than being spread through the cycle. It also has an equivalent series inductance, which at 100 Hz is nothing at all.

Adding it is not hard — a resistor in series with the capacitor, which the regulator essays do — and it is left out here so that the comparison with I/2fCI/2fC is a comparison of two models of the same circuit rather than of two different circuits.

What comes before and after

The supply this essay describes sits between two things, and both are elsewhere in the collection.

In front of it is a transformer, whose band, winding resistance and saturation limit the magnetics field measures. The pulse current matters there too: a winding’s loss is the mean square of the current times its resistance, and a crest factor of 13 with a given mean current means a mean square several times what a sinusoid of the same average would give.

Behind it is a regulator, and the ripple measured here is exactly what that regulator is asked to remove. The next essays measure how much of it gets through, and the answer depends on the frequency: at a hundred hertz the loop still has most of its gain, and at the megahertz where a switching supply puts its ripple it has none.

Three measurements of that regulator exist and all three are about the same sawtooth arriving at a hundred hertz. A source below a frequency drives the output node and finds 0.43 milliohms at direct current, ten times worse by 27 hertz and 1.95 ohms at ten kilohertz — so the impedance the ripple current works against is already climbing at the frequency this supply delivers it. What gets through from the rail asks the complementary question and answers it in the direction that matters here: the rejection is good at ten hertz, bad at a kilohertz and negative at ten, where the regulator puts out 1.9 times what arrives. A hundred hertz is the fortunate case, and it is fortunate because of where mains sits rather than because of anything anybody designed.

The capacitor that follows is where the two halves of this essay meet. Two requirements pulling one capacitor finds the output capacitor’s series resistance to be a stability requirement and a transient requirement at once, pulling in opposite directions, with the best transient sitting ten per cent inside the region the loop must not be built in. The reservoir measured here has the same quantity in it and no loop to be unstable in — which is why its series resistance appears in this essay only as an underestimate of the ripple, and in that one as the parameter the whole design is decided by.

The cycle the table does not contain

Every number above is read from the settled state. The march starts with an empty capacitor, runs twelve cycles and reports the last of them, which is the right thing to report and is also a decision to discard the largest current the circuit ever carries. The first cycle, which no steady state contains measures that discarded cycle on this same arrangement and finds 32.4 amperes into an empty reservoir against a repetitive peak of 1.23 — twenty-six times anything the circuit does afterwards, and dependent on where in the supply’s cycle somebody’s hand closed the switch. A crest factor of 13.4 is a statement about the steady state. The parts have to survive both, and only one of the two is in the tables above.

The two repairs for that first cycle pull opposite ways on everything measured here. The inductance that limits, and lifts puts a winding resistance in and finds the peak limited and the energy not reduced at all — two per cent apart over a factor of four in the resistance — while leakage inductance divides the peak by seven and the energy by five and dissipates nothing to do it. What the inductance charges for is the one thing the arithmetic above forbids: a rectifier whose output sits 29 per cent above the peak of its own supply, permanently. Every row of the peak-and-trough table here assumes the only reactance in the loop is the reservoir, and the moment that assumption is dropped the peak stops being the transformer’s peak less a diode.

The part usually fitted to hold the first cycle down stops being that part after the first cycle. The protection that is gone by the second time measures an inrush thermistor at ten ohms cold and 1.94 ohms once the load current has warmed it, with 198 seconds to recover half of what it started with — against a reservoir that empties in tens of milliseconds. A supply dip inside that window hands the rectifier an unlimited inrush into an empty capacitor, which is the event the part is on the bill of materials for.

What the pulse costs where nobody is measuring it

The crest factor is a property of the current drawn from the supply, and the supply is shared. Three of this collection’s measurements are about what that shape does after it leaves the circuit, and none of them is visible from inside it.

An average-responding meter is the usual instrument on a mains current, and what a meter multiplies by measures it as exactly right for a sinusoid and 35.9 per cent low on a rectifier drawing its current in sixty degrees. The narrower the conduction interval — which is what every increase in the reservoir capacitance buys — the further wrong the reading goes, so the instrument most likely to be pointed at this circuit understates it by more as the design is improved in the direction the ripple table recommends.

The same shape has a consequence three phases up. The neutral that carries more than a line shows three balanced loads of exactly this kind putting √3 times a line current down a conductor sized on the assumption that balanced loads put nothing there, because the pulses are disjoint and the neutral is their union. The imbalance that would normally explain a current in a neutral is absent: the loads are identical, and the current is there because none of them draws a sinusoid.

And the winding in front pays for the harmonics twice. The resistance that grows with frequency computes a conductor’s resistance from the Kelvin functions and finds it already 2.05 per cent up at the frequency the rule of thumb names as the point where the effect begins — so a pulse, which is a sum of harmonics reaching well past the fundamental, meets a higher resistance than a direct-current measurement of the same winding suggests. The mean square of the current is the first factor and the resistance it meets is the second, and the crest factor raises both.

The gate

The expression is high at every capacitance and every load tested — five capacitances and three loads, all in the same direction.

And the amount it is high by is the conduction fraction, with the ratio between them inside a fifteen per cent band across both sweeps.

The crest factor exceeds five everywhere and rises with capacitance, monotonically, over the capacitance sweep — which is the design fact the expression cannot express.

Current law holds at every step of every march, rebuilt from the diodes’ own exponentials rather than from the companions the steps used, at worst 2×10112\times10^{-11} of the largest branch current.

The first two of those are the essay. An expression that is fifteen per cent high is not a bad expression — it is a good one used outside the assumption it was derived under, and the assumption is recoverable from the discrepancy, which is the most useful thing a discrepancy can be. What makes the third claim worth having beside them is that it is about a quantity the expression does not mention at all: no amount of care with the ripple arithmetic will tell a designer that the diode is carrying thirteen times the load current, and that is the number the parts list is decided by.

The collection’s usual sentence applies unchanged. The model is right inside a range, the range has an edge, and the figure carries it.

Part 1 on unregulated supply

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

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 21.

What this makes readable

Essays that name this one as a prerequisite.

The objects named here

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

Companion modelConduction angleCrest factorPower factorRectificationReservoir capacitor