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

The resistor that dilutes the lamp

A lamp in a Wien oscillator's gain network makes an amplitude loop of an integrator and a lag, damped at 0.0225 for a 100 ms filament, and the obvious cure for an under-damped loop with an integrator in it is a lead. A resistor across the filament was expected to be one: a proportional path that adds a zero. It is not. A fixed resistor does not respond to the amplitude at all, so it adds nothing to the loop's numerator; it dilutes the integrator's gain by the filament's share of the arm and makes the filament run hotter. Marched through every carrier cycle, the loop meets the earlier pair with that diluted gain and no zero in it, at every resistor from none to 400 Ω. The ring slows from 400 to 263 rad/s, the decay barely moves, 9.00 to 9.63 per second, and the damping ratio rises only 1.62 times. What the resistor does buy is distortion: 0.201% falls to 0.0871%, so the lamp's fixed exchange rate between distortion and settling improves from 0.163 of a cycle to 0.066. It is paid for in regulation — the amplitude follows the unit's gain 15.6% across ±0.1 at 500 Ω, against 4.69% with the lamp alone.

Assumes: The gain that is exactly one · What is left at crossover

The lamp that has to be slow put a small lamp in a Wien oscillator’s gain network and found the price of the amplitude control it gives. The oscillator’s envelope integrates any excess gain, the filament lags the envelope by its thermal time constant, and the two make a second-order loop, τs2+(1+m)s+2ω0m=0\tau s^2 + (1 + m)s + 2\omega_0m = 0, with mm how strongly the filament’s resistance follows its power. For a 100 ms filament the loop rings at 400 rad/s and decays at 9 per second: a damping ratio of 0.0225, a Q of about 22 in a loop nobody designed as a resonator. And because the filament’s ripple at twice the carrier is the distortion, the product of distortion and settling time came out fixed at 0.163 of a carrier cycle, whatever the time constant.

The essay ended by naming the textbook cure. A control loop that is an integrator and a lag is ordinarily compensated with a lead, a zero below the crossover, and a resistor in parallel with the filament was proposed as one: a small proportional path around the slow element, adding a zero while changing mm. How much damping it could buy, and what it would cost in regulation, was the question. Measuring it shows first that the proposal was wrong about what the resistor is, and then that it buys something else.

The amplitude's bounce after a kick, with a resistor across the lamp: none, 1 kΩ and 400 Ω ring at 64, 57, 42 Hz and decay at 9.0, 9.3, 9.6 per second — fewer swings in the same envelope. computed by solving, not by drawing: the Wien oscillator with a lamp in its gain network, τ = 100 ms, marched through every carrier cycle after the filament's power is kicked a little off its operating point, with no resistor across the filament (dashed), 1 kΩ (dotted) and 400 Ω (solid); the envelope's peaks over their first swing. Measured — no resistor: filament at 250 Ω, ring 400 rad/s against 400, decay 9.00 against 9.00 per second, damping 0.0225; 1000 Ω across it: filament at 333 Ω, ring 357 rad/s against 357, decay 9.25 against 9.25 per second, damping 0.0259; 400 Ω across it: filament at 667 Ω, ring 263 rad/s against 263, decay 9.63 against 9.63 per second, damping 0.0365. The resistor dilutes how strongly the lamp moves the gain, so the ring slows, and the filament runs hotter, so its own m rises and the decay is if anything faster — but by a few per cent, not by the factor the damping ratio suggests.
Fig. 1 The Wien oscillator with a 100 ms lamp, marched through every carrier cycle after the filament is kicked off its operating point, with no resistor across the filament (dashed), 1 kΩ (dotted) and 400 Ω (solid): the envelope’s departure, scaled to its first swing. They ring at 64, 57 and 42 Hz and decay at 9.0, 9.3 and 9.6 per second.

A resistor is not a proportional path

The oscillator is the earlier one: a Wien network of 10 kΩ and 10 nF at 1.59 kHz, an ideal amplifier, a 500 Ω upper gain resistor, and a filament of 50 Ω cold whose resistance rises in proportion to its power, low-passed by its thermal time constant. The network asks for a gain of three, so the lower arm must settle at 250 Ω.

Put a resistor RpR_p across the filament and the lower arm is the pair. It must still settle at 250 Ω, so the filament has to run hotter, at Rhot=250Rp/(Rp−250)R_{hot} = 250R_p/(R_p - 250): 333 Ω with a kilohm across it, 667 Ω with 400 Ω. And only the filament’s share of the arm’s conductance, 250/Rhot250/R_{hot}, answers to the amplitude. The resistor’s share is fixed.

That is the whole of what the resistor does to the loop, and it is not a lead. A proportional path, in control terms, is a path that responds to the error instantly where the main path responds through a lag; its effect is a term in ss in the loop’s numerator, a zero. A fixed resistor does not respond to anything. It carries a fixed share of the current whatever the amplitude, and it adds no term to the loop at all. What it changes is the coefficients: linearised, the loop becomes

τs2+(1+mL) s+2ω0 mg=0,mL=1−R0Rhot,mg=mL 250Rhot.\tau s^2 + (1 + m_L)\,s + 2\omega_0\,m_g = 0, \qquad m_L = 1 - \frac{R_0}{R_{hot}}, \qquad m_g = m_L\,\frac{250}{R_{hot}}.

The lamp’s own mLm_L, which sets how much its power moves when its resistance does, stays in the lag; the diluted mgm_g, which sets how much the arm’s gain moves, goes into the integrator. The first figure shows the consequence on the envelope. After a kick, the three cases ring at 64, 57 and 42 Hz: the resistor slows the ring. They decay at 9.0, 9.3 and 9.6 per second, nearly the same: the resistor barely touches the decay.

The march finds no zero

That the resistor adds no zero is a claim about the circuit, not just the algebra, and the second figure tests it against a march of every carrier cycle.

Ring and decay against how much of the lower arm the resistor carries: the ring falls from 400 to 263 rad/s, the decay rises from 9.00 to 9.63 per second, and the damping ratio only from 0.0225 to 0.0365. computed by solving, not by drawing: the amplitude loop's ring frequency and decay rate, fitted to marched envelopes (dots) at resistors of none, 2000 Ω, 1000 Ω, 700 Ω, 500 Ω, 400 Ω across the filament, against the pair τs² + (1 + mL)s + 2ω₀mg = 0 (lines), τ = 100 ms. The march has no zero to find and finds none: ring and decay meet the pair to three per cent at every resistor. Measured — no resistor: decay 9.00, ring 400; 2000 Ω across it: decay 9.13, ring 380; 1000 Ω across it: decay 9.25, ring 357; 700 Ω across it: decay 9.36, ring 335; 500 Ω across it: decay 9.50, ring 300; 400 Ω across it: decay 9.63, ring 263. Below 400 Ω the filament would have to run so hot that the output passes the 12 V rail. The damping ratio goes as one over the square root of the diluted gain, so diluting it by two thirds buys 1.62 times the damping.
Fig. 2 The amplitude loop’s ring frequency and decay rate, fitted to marched envelopes (dots), against the pair with the diluted gain and no zero (lines), for resistors from none to 400 Ω across the filament, τ\tau = 100 ms. The ring falls from 400 to 263 rad/s, the decay rises from 9.00 to 9.63 per second, and the damping ratio from 0.0225 to 0.0365.

The oscillator is marched through every carrier cycle with fourth-order Runge–Kutta — two capacitors and the filament’s power, no envelope assumed — kicked a little off its operating point, and the ring and decay are fitted to the envelope’s peaks. At six resistors, from none to 400 Ω, both meet the pair with no zero to within three per cent. Had the resistor added a zero, the decay would have risen with it, since a lead adds damping by adding to the coefficient of ss; instead the decay moves from 9.00 to 9.63 per second, and only because the hotter filament has a slightly larger mLm_L.

The damping ratio, (1+mL)/(22ω0mgτ)(1 + m_L)/(2\sqrt{2\omega_0 m_g\tau}), rises as one over the square root of the diluted gain, from 0.0225 to 0.0365 at 400 Ω — a factor of 1.62 for diluting the gain by nearly two-thirds. Below 400 Ω the filament would have to run so hot that the output passes the 12 V rail, so that is the most a resistor can buy. And what it buys is a ratio, not a time: the envelope rings fewer times inside an envelope that decays as fast as before. A disturbance takes as long to die, ln⁡(100)/σ\ln(100)/\sigma or about half a second to one per cent, and swings through fewer cycles on the way.

So the earlier essay’s question, how much damping a parallel resistor can buy, has the answer: a factor of 1.6 in the ratio and nothing in the settling time. A loop with an integrator and a lag gets its damping from the coefficient of ss, and that coefficient is 1+mL1 + m_L, which no fixed element can raise far. A real lead needs an element that responds to the amplitude faster than the filament does — a rectifier, a pair of diodes — and every such element brings a distortion of its own.

What the resistor costs

Diluting the filament’s control weakens it, and the third figure measures how much.

What the resistor costs in regulation: across networks asking for 2.9 to 3.1, the output moves 4.69% with no resistor, 8.17% with 1 kΩ across the lamp and 15.6% with 500 Ω, and the nominal amplitude rises from 3.00 to 6.37 V. computed by solving, not by drawing: the settled output amplitude, marched (dots) and at the operating point (lines), over the nominal unit's, for networks asking for a gain of 2.9 to 3.1, with no resistor across the filament (dashed), 1 kΩ (dotted) and 500 Ω (solid). Measured — no resistor: nominal 3.002 V peak, 1.024, 1.012, 1.000, 0.989, 0.978; 1000 Ω across it: nominal 4.125 V peak, 1.042, 1.020, 1.000, 0.981, 0.963; 500 Ω across it: nominal 6.366 V peak, 1.080, 1.038, 1.000, 0.966, 0.934. The resistor takes a share of the arm that does not answer to the amplitude, so the filament has to move further to change the arm's total by the same amount, and the amplitude moves with it. Its nominal amplitude rises too, since the filament must run hotter to bring the pair down to 250 Ω.
Fig. 3 The settled output amplitude, marched (dots) and at the operating point (lines), over the nominal unit’s, for networks asking for a gain of 2.9 to 3.1, with no resistor across the filament (dashed), 1 kΩ (dotted) and 500 Ω (solid). Across the range the output moves 4.69%, 8.17% and 15.6%; the nominal amplitude rises from 3.00 V to 4.13 V and 6.37 V.

The lamp’s purpose was regulation: the gain a tolerance demands found that a fixed gain spends a margin, and the lamp replaced the margin with a filament that finds whatever resistance each unit needs. With the lamp alone, a network asking for anything from 2.9 to 3.1 moved the output 4.69 per cent end to end. With a kilohm across the filament it moves 8.17 per cent, and with 500 Ω, 15.6. The reason is the dilution again: to change the arm’s total resistance by the amount a unit’s network asks for, the filament has to move further when it carries only part of the arm, and its amplitude moves with it.

The nominal amplitude rises too, from 3.00 V peak to 4.13 V with a kilohm and 6.37 V with 500 Ω, since the filament has to run hotter to bring the pair down to 250 Ω. That is a second price, in headroom: with 400 Ω the output is 8.6 V peak on a 12 V rail, and a unit at the low end of the gain range needs a tenth more.

What the resistor buys

The resistor does buy one thing in full, and it is the thing the earlier essay’s fixed exchange rate was made of: the distortion.

The distortion the resistor removes: at τ = 10 ms the third harmonic falls from 0.201% with no resistor to 0.0871% with 400 Ω across the lamp, in proportion to the diluted gain. computed by solving, not by drawing: the third harmonic of the marched output, by a windowed correlation at the measured period (dots), against the earlier essay's law for the filament's ripple with the diluted gain in place of m (line), for a filament of 10 ms. Measured — no resistor: 0.201% against 0.201%; 2000 Ω across it: 0.181% against 0.181%; 1000 Ω across it: 0.16% against 0.16%; 700 Ω across it: 0.141% against 0.141%; 500 Ω across it: 0.113% against 0.113%; 400 Ω across it: 0.0871% against 0.087%. The ripple in the filament's resistance at twice the carrier is the same fraction of its resistance as before, but the arm's resistance moves by less of it, because the resistor's share does not ripple at all.
Fig. 4 The third harmonic of the marched output (dots) against the earlier ripple law with the diluted gain in place of mm (line), for a 10 ms filament, against the share of the lower arm’s conductance in the fixed resistor. It falls from 0.201% with no resistor to 0.0871% with 400 Ω across the filament.

The distortion of a lamp oscillator is the filament’s ripple: its power, and so its resistance, ripples at twice the carrier, and the gain modulation mixes with the carrier into a third harmonic. With a resistor across it the filament ripples by the same fraction of its own resistance, but the arm’s resistance moves by less of it, because the resistor’s share does not ripple at all. The earlier law, 0.2509 m/ω0τ0.2509\,m/\omega_0\tau, holds with mgm_g in place of mm: the fourth figure’s march meets it at every resistor, and the third harmonic falls from 0.201 per cent at a 10 ms filament to 0.0871 with 400 Ω.

A better exchange rate

Put the two halves together and the earlier essay’s fixed exchange rate moves.

The lamp's exchange rate with a resistor across it: distortion times settling falls from 0.163 of a cycle to 0.127 at 1 kΩ and 0.066 at 400 Ω — paid for in regulation, not in time. computed by solving, not by drawing: cycles of the carrier to settle within 1% after a disturbance, against the third harmonic, at filament time constants of 10, 30, 100 and 300 ms (dots along each line), with no resistor across the filament (dashed), 1 kΩ (dotted) and 400 Ω (solid). The settling is ln(100)/σ with σ = (1 + mL)/2τ, which the resistor barely changes; the distortion is the ripple law with the diluted gain, which it lowers in proportion. So each line is the earlier essay's exchange rate moved down: no resistor 0.1634, 1000 Ω across it 0.1267, 400 Ω across it 0.0663 of a cycle. The price is elsewhere, in how far the amplitude follows the unit's gain.
Fig. 5 Carrier cycles to settle within 1% against the third harmonic, at filament time constants of 10, 30, 100 and 300 ms along each line, with no resistor (dashed), 1 kΩ (dotted) and 400 Ω (solid). The product of distortion and settling is 0.163 of a cycle, 0.127 and 0.066.

The settling time is set by the decay, (1+mL)/2τ(1 + m_L)/2\tau, which the resistor barely changes, and the distortion by mgm_g, which it lowers in proportion. Their product was 0.163 of a carrier cycle with the lamp alone, whatever the time constant; with a kilohm across the filament it is 0.127, and with 400 Ω it is 0.066. So a designer who wanted 0.01 per cent of third harmonic, and found it cost 1,634 cycles of settling, can have it in about 660 with the resistor, at the same filament.

That is the result worth keeping, and it is the opposite of what was asked. The resistor was proposed to fix the loop’s damping and turns out to do almost nothing for the settling. It improves the purity instead, because the distortion depends on the gain the filament controls and the settling does not. The bill is regulation: an oscillator whose amplitude moves 15.6 per cent across its tolerance range instead of 4.69, which for a test oscillator with an output level control may be acceptable and for a reference source may not.

Why a lead was expected

The expectation came from a familiar picture, and it is worth seeing where the picture fails. A loop made of an integrator and a lag has a crossover above the lag’s corner, where the lag has spent most of its ninety degrees, and its phase margin is small; the cure is a zero near the crossover, which returns phase. In an electronic loop a zero is often a resistor: a resistor in series with an integrating capacitor turns a pure integrator into an integrator plus a proportional term. So a resistor somewhere near the slow element looks like the natural place to find one.

The difference here is what the resistor is in series or in parallel with. In the compensated integrator, the resistor carries the error signal itself, so the voltage across it is proportional to the error and appears instantly. Across a filament it carries a share of the arm’s current set by the arm’s voltage, which is the oscillator’s node voltage — and the loop’s variable is not that voltage but its amplitude, which the resistor has no way to sense. The filament senses amplitude by heating; the resistor senses nothing. In the language of the loop, its transfer from amplitude to gain is zero at every frequency, so it contributes no term, and all it can do is change how much the filament’s term is worth.

That generalises. In an amplitude-control loop, a proportional path has to be an element that rectifies or otherwise measures amplitude quickly — anything else is a constant. The constants can move the loop’s coefficients, and so its damping ratio, by the square root of a dilution; they cannot add the term that a lead is. The gain an amplifier asks for, squared and the frequency that is not the formula both found the amplifier’s own contribution to the oscillator’s requirements small; a resistor’s contribution to its amplitude loop is not small, but it is of the wrong kind to compensate it.

A generator at 20 hertz

The earlier essay’s worked number was the low range of an audio generator: 0.01 per cent of third harmonic takes 1,634 cycles to settle, which at 20 Hz is 82 seconds, the slow-settling bottom range that real generators have. With 400 Ω across the filament the same distortion takes about 660 cycles, 33 seconds, from the same lamp. That is a real improvement for a user waiting on a level meter, and it comes at a price that a generator with an output level control can carry: the amplitude now depends about four and a half times as strongly on the parts in the Wien network, so the level has to be set after the range is switched rather than once.

The alternative within the earlier essay’s rules was a faster filament, which settles sooner and distorts more in exact proportion along the fixed line of 0.163 of a cycle. The resistor moves the line itself, which no choice of filament could. A designer who needs both purity and a fixed level at 20 Hz still has to wait, and the waiting is now a choice between seconds and per cent of amplitude rather than a fixed sentence.

Where the trade sits among the others

The diode limiter of what the limiter charges for had one number for start-up and purity: its distortion fell as the 0.74 power of the excess gain, and the excess was what guaranteed start-up. The lamp separated the two, moving purity onto an axis of time. The resistor across the lamp moves part of it back onto the axis of regulation: purity can now be bought with amplitude stability as well as with settling time. Each of those three — margin, time, regulation — is a way of paying for a quiet oscillator, and no circuit here gets one without spending another.

The best damping is not the one to build found settling exquisitely sensitive near an optimum damping; this loop is nowhere near one and the resistor moves it only from 0.0225 to 0.0365, so the settling time it decides is a matter of the decay rate alone. Two exponentials, and where they meet measured the growth rate the envelope’s integrator is built from, and the resistor changes that integrator’s gain without touching its form.

How the oscillator was marched

Three states, every cycle. The march is the earlier essay’s — two capacitor voltages and the filament’s low-passed power, fourth-order Runge–Kutta at 96 steps a cycle, the output clipped at the rails — with the lower arm now the filament in parallel with the resistor. The operating point is closed-form: the arm at Rf/(k−1)R_f/(k - 1), the filament at RhotR_{hot}, its power from its law, and the node’s peak from the power; the march’s settled amplitude meets it to six-tenths of a per cent at every unit and resistor drawn. The ring and decay are fitted to the envelope’s peaks after a kick small enough, about a per cent, that the loop is linear. The third harmonic is a Hann-windowed correlation over 64 cycles at the measured period, at a 10 ms filament where it is large enough to measure well, and meets the diluted ripple law to eight per cent.

What the resistor leaves out

A resistor’s own temperature coefficient. A resistor across a filament that runs hotter sits in a warmer place, and its value moves; a few hundred parts per million over the lamp’s warm-up is small against the filament’s change, but it enters the operating point directly.

The filament’s law. The filament is linear in its power, as before. A real filament’s mm rises more slowly as it heats, so running it hotter gains less in mLm_L than this model says, and the decay’s small rise with the resistor would be smaller still.

A second thermal state. The earlier essay’s first open question, a second lag in the filament’s supports, would cut further into a damping that the resistor raises only to 0.0365; whether the resistor’s 1.6 times is enough margin against squegging is unmeasured.

The number worth carrying

A resistor across the lamp is not a lead: it adds no zero to the amplitude loop, only dilutes the integrator’s gain to mL⋅250/Rhotm_L\cdot250/R_{hot}, and the march finds the loop τs2+(1+mL)s+2ω0mg=0\tau s^2 + (1 + m_L)s + 2\omega_0 m_g = 0 to three per cent with nothing in its numerator. The damping ratio rises 1.62 times at most, from 0.0225 to 0.0365, and the settling time not at all. What the resistor buys is purity — 0.201 per cent of third harmonic falls to 0.0871 — so the product of distortion and settling falls from 0.163 of a cycle to 0.066. The price is regulation: 15.6 per cent of amplitude across a ±0.1 gain range at 500 Ω, against 4.69.

Still open: a lead that responds, the diluted lamp with a second lag, and the detector that separates ripple from lag

A lead that responds to the amplitude. A real proportional path needs an element whose conductance follows the amplitude within a cycle — a pair of diodes in series with a resistor, across the filament. It would add the zero the resistor did not, and with it a distortion of its own at every cycle. Where the diodes’ distortion overtakes the damping they buy is a one-parameter question on this march.

The second thermal state, diluted. Dilution lowers the loop’s gain and so its crossover, which moves it away from a second, slower thermal lag. Whether that protects against squegging better than its 1.6 times of damping suggests is the earlier essay’s first open question, now with a knob.

An electronic detector. A rectifier, a capacitor and a field-effect channel separate the ripple from the lag that a filament ties together. With the ripple filtered separately the resistor’s distortion benefit is no longer needed, and the question becomes whether dilution still helps a loop whose lag can be chosen freely — the amplitude nothing linear predicts is where such a loop’s amplitude would be set.

Part 9 on oscillator

One argument about Oscillator, 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.

Amplitude stabilisationDamping ratioDesign tradeoffLimit cycleLoop gainTotal harmonic distortionWien bridge