D3 · Lesson 2 · Feedback and error
The standard feedback loop with a plant, a controller and a sensor, the closed-loop gain G/(1 + GH), how loop gain makes the result depend on the sensor instead of the plant, the steady-state error of proportional control, and the sensitivity function that measures how much a disturbance gets through
In 1927 Harold Black was trying to build telephone amplifiers whose gain wouldn't drift with temperature and aging tubes. His solution, sketched on a newspaper on the ferry to work, was to build an amplifier with far more gain than needed and feed a fixed fraction of the output back to subtract from the input. The result had a gain set almost entirely by two resistors, and every op-amp circuit since works the same way. The same arithmetic describes the cruise control of lesson 1, a thermostat and an autopilot: high loop gain makes the output follow the reference and ignore the plant's quirks.
- A first-order plant (time constant 1 s) under proportional control with loop gain K, stepped from 0 to a reference of 1.
- The output settles to , leaving a steady error of , and it gets there with time constant s.
- Raising K shrinks the error and speeds the response; for this simple plant nothing goes wrong, but real plants with delays and extra lags oscillate at high gain (lesson 5).
Predict
An amplifier with open-loop gain 100,000 has a feedback fraction of 0.1. Its open-loop gain then falls by half as it warms up. By how much does the closed-loop gain change?
The closed-loop gain is : 9.9990 before and 9.9980 after, a change of 0.01%. A 50% change in A is divided by the loop gain plus one, = 10,001. The closed-loop gain is almost exactly = 10, set by the feedback network.
Name it
The loop
A plant G (the thing being controlled) is driven by a controller C; a sensor H measures the output and the error is . Lumping controller and plant into G, the closed-loop gain is
and is the loop gain. When , : the output depends on the sensor and hardly at all on the plant.
Sensitivity
A fractional change in G changes T by
and a disturbance added at the output is also reduced by the sensitivity . Black's amplifier with L = 10,000 cuts a 50% drift in A to 0.005% in T (a little more for a change as large as half, which the linear formula only approximates).
Steady-state error
With unity feedback (H = 1), a plant of DC gain and a proportional controller of gain , a step reference leaves
of the step. To make the error vanish, the controller needs integral action (lesson 3).
Worked example
A unity-feedback loop with a plant of DC gain 2 uses a proportional gain of 4.5. What fraction of a step remains as error? What gain would cut it to 1%?
Show the solution
- Steady-state error.
- Gain for 1%. so .
Answer 10% of the step remains as error, and cuts it to 1%.
Worked example
Black's amplifier: A = 100,000, β = 0.1. What's the closed-loop gain, and what fraction of an output disturbance gets through?
Show the solution
- Closed-loop gain.
- Disturbance that gets through. so a 1 V disturbance at the output appears as 0.1 mV.
Answer the closed-loop gain is 9.9990, and 0.01% of an output disturbance gets through.
Worked example
Black's amplifier ages, and its open-loop gain falls 20%, from 100,000 to 80,000. How much does the closed-loop gain change (β = 0.1)?
Show the solution
- Gain before.
- Gain after.
- Change. That's a change of 0.0025%.
- Why it's so small. Feedback divides the plant's variation by about , here ten thousand, which is why amplifiers are built from imprecise transistors.
Answer the closed-loop gain changes by only 0.0025%.
Check
An amplifier with gain 10000 has feedback fraction 0.01. What's its closed-loop gain?
Check
A unity-feedback loop has a proportional gain of 4 and a plant of DC gain 1. What percentage of a step input remains as steady-state error?
Check
A plant's gain drifts by 5%. If the loop gain is 10, by about what percentage does the closed-loop gain drift?
Check
A plant has DC gain 2. What proportional gain holds the steady-state error to a step at 2%?
Check
A unity-feedback loop has plant DC gain 2 and proportional gain 3.
(a)
What fraction of a step remains as error?
(b)
What gain would cut it to 1%?
Check
An amplifier with open-loop gain 10000 and feedback 0.01 loses 50% of its open-loop gain with age.
(a)
What is the closed-loop gain at first?
(b)
By what percentage does the closed-loop gain fall?
Explain why
Why does a high loop gain make the closed-loop gain depend on the feedback path instead of the plant?
The loop works by comparing the measured output with the reference and amplifying the difference. If the gain around the loop is large, even a tiny difference produces a large correction, so the loop settles only where the measured output almost exactly equals the reference. That makes the output equal the reference divided by the sensor's gain, regardless of the plant's gain, which only determines how small the remaining difference is. Changes in the plant therefore show up in the output divided by one plus the loop gain, which is how feedback turns an imprecise, drifting amplifier into a precise one.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.