Lite / Engineering Complex Systems / Week 16
Feedback makes it faster
The heater is slow: τ = 10 minutes. A P controller makes the room reach its (slightly low) target in 1 minute. Where did the speed come from?
Why should I care?
Feedback doesn't only correct errors; it changes the system's dynamics. Knowing that τcl = τ/(1 + KKp) lets you choose a gain for a speed target in one line, and warns you how hard the actuator will have to work.
- Derive the closed-loop time constant τcl = τ/(1 + K·Kp).
- Measure τcl in simulation and compare with the formula.
- Explain why the speed-up costs actuator effort, and when saturation breaks the formula.
Predict
τ = 6 s, K = 0.5. Which Kp gives a closed-loop time constant of 1 s?
- Kp = 2
- Kp = 5
- Kp = 10
- Kp = 12
Guess first, then reveal
τcl = 6/(1 + 0.5·Kp) = 1 → 1 + 0.5·Kp = 6 → Kp = 10.
Discover
In the feedback lab choose a first-order plant (note τ and K) and P control. For three gains, read the time to reach 63 % of the final value and compare with τ/(1 + KKp). Then add an actuator limit and repeat with the highest gain: does the formula still hold?
What the interactive shows (text version)
In the feedback lab with a first-order plant, raising the P gain makes the output reach 63 % of its final value sooner, matching τ divided by one plus the loop gain. With an actuator limit and high gain, the command is clipped at the start and the early rise is slower than the formula predicts.
Understand
Same shape, faster clock
A P loop around a first-order plant is first-order again, but with τcl = τ/(1 + KKp). Loop gain 9 makes it ten times faster. The shape is the same exponential; only the timescale and the final value change.
Speed is bought with effort
At the instant of a step, the error is the whole step, so u(0) = Kp·r. Making the loop ten times faster means asking for roughly ten times the steady effort at the start. Real heaters, motors and valves have limits.
When the actuator saturates
If Kp·r exceeds the actuator's limit, the command is clipped and the plant just runs flat out: the response is set by the limit, not by τcl. The formula only applies while the loop stays linear. Check u(0) against the limit before trusting it.
Explain it another way
Intuitive
A slow bath fills faster if you open the tap wider whenever it's further from full. Feedback is the hand on the tap.
Technical
Closing the loop moves the single pole from −1/τ to −(1 + KKp)/τ. Bandwidth rises by the same factor; so does sensitivity to measurement noise.
Mathematical
τ = 6 s, K = 0.5, Kp = 10: τcl = 6/6 = 1 s and e∞ = r/6. The command starts at u(0) = Kp·r = 10·r and settles at u∞ = Kp·e∞ = 10·r/6 ≈ 1.67·r: six times more effort at the start than at the end.
Applied
Motor speed loops make a sluggish motor respond in milliseconds, but only within the driver's current limit; beyond that the motor accelerates at its maximum rate whatever the gain.
Derivation: Closed-loop time constant with P control
Plant τ·dy/dt + y = K·u with u = Kp·(r − y).
Substitute: τ·dy/dt + y = K·Kp·r − K·Kp·y.
Collect y: τ·dy/dt + (1 + K·Kp)·y = K·Kp·r.
Divide by (1 + K·Kp): (τ/(1 + KKp))·dy/dt + y = (KKp/(1 + KKp))·r.
This is first-order again, with τcl = τ/(1 + K·Kp) and gain KKp/(1 + KKp) (giving the steady error from the last lesson).
Effort at t = 0: u(0) = Kp·r. Ten times faster with KKp = 9 needs an initial command Kp·r, roughly ten times the final effort. If the actuator saturates, the formula no longer holds.
Worked example 1
τ = 20 s, K = 2. Required τcl = 2 s. What Kp, and what initial command for a step of r = 5 if the actuator limit is ±40?
1 + 2Kp = 10 → Kp = 4.5. u(0) = 4.5 × 5 = 22.5, within ±40, so the formula holds.
Common mix-ups
Feedback can make any plant arbitrarily fast.
✓ Only up to the actuator's limits, the sensor's noise and the loop's delays. Past those, the formula fails.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Pick a speed target for the Smart Greenhouse air temperature (for example τcl = 2 min). Compute the Kp needed from your week-12 model, check the initial heater command against its maximum power, and test in the build.
Reflect
What limits how fast you could make your home heating respond?
Write your answer on paper or in your own notes. Lite never stores what you write.