Lite / Intelligent Robotic Systems / Week 30
Why P control always falls short
Turn the proportional gain up from 1 to 9 and the error shrinks from half the setpoint to a tenth. Why does it never reach zero?
Why should I care?
Proportional control is the first controller everyone tries, and it nearly works. Understanding exactly why it leaves an error, and by how much, tells you when it is good enough and when you need something more.
- Derive the steady-state error of proportional control for a plant with static gain K.
- Calculate the gain needed to meet an error specification.
- Explain why higher gain is not a free fix.
Predict
A unit-gain plant under P control with Kp = 1 is asked to reach 1.0. Where does it settle?
- 1.0
- 0.5
- 0.0
Guess first, then reveal
0.5. At steady state the output equals the controller's push, which equals Kp × error. With Kp = 1, output = error, and they must add to 1: each is 0.5.
Discover
Choose P control on the first-order plant with gain 1. Try Kp = 1, 3 and 9 and read the final value each time. Compare with 1/(1 + Kp). Then double the plant gain: what happens to the error?
What the interactive shows (text version)
In the feedback lab with P control on a unit-gain plant, the output settles at 0.5 for Kp = 1, 0.75 for Kp = 3 and 0.9 for Kp = 9, matching 1 − 1/(1 + Kp).
Watch (optional)
Watch for: Listen for why a proportional controller needs some error to produce any output at all.
Shows how proportional, integral and derivative terms each help a system reach its setpoint quickly without overshooting or drifting.
“What Is PID Control? | Understanding PID Control, Part 1” by MATLAB (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
The error is doing a job
A P controller's output is proportional to the error. To hold a motor at speed, the motor needs a steady push; the only way P can provide one is to keep some error. That leftover is the steady-state error, e = r/(1 + K·Kp).
Designing to a spec
If the error must be within 2 % of r, set r/(1 + K·Kp) ≤ 0.02·r, so K·Kp ≥ 49. For a unit plant, Kp ≥ 49. That is a large gain, which leads to the next problem.
Why not just crank Kp?
High gain amplifies sensor noise into the motor command, can push the actuator into saturation, and on plants with more dynamics (a springy joint, a delay) causes overshoot and oscillation or even instability. Integral action removes steady-state error without needing enormous gain.
Explain it another way
Intuitive
Holding a heavy door half-open against a spring: you only push when it starts to close. So it always sags a little before you push back hard enough.
Technical
The closed-loop DC gain of P control on a type-0 plant is K·Kp/(1 + K·Kp) < 1. Adding an integrator makes the loop type 1, giving zero steady-state error to a step.
Mathematical
e = r/(1 + K·Kp). Kp needed for error fraction f: Kp = (1/f − 1)/K. For f = 0.1, K = 1: Kp = 9. For f = 0.01: Kp = 99.
Applied
A cruise controller using P only would sit slightly below the set speed on a hill, and further below on a steeper one. Real cruise controllers add integral action for this reason.
Derivation: Steady-state error of P control
Controller: u = Kp·e, where e = r − y (setpoint minus output).
Plant at steady state: once nothing is changing, the output is just its static gain times its input, y = K·u.
Combine: y = K·Kp·e. Substitute into e = r − y to get e = r − K·Kp·e.
Collect the e terms: e·(1 + K·Kp) = r.
So e = r / (1 + K·Kp). For a unit plant (K = 1) and unit setpoint, e = 1/(1 + Kp).
e is zero only if Kp is infinite. Any finite gain leaves an error, because the controller needs a non-zero error to produce the non-zero push that holds the output up.
Worked example 1
K = 2, Kp = 4, r = 10. Find the steady-state error and final output.
e = 10/(1 + 2×4) = 10/9 ≈ 1.11. Output y = 10 − 1.11 ≈ 8.89.
Worked example 2
A unit plant must settle within 5 % of its setpoint. What Kp is needed?
Kp = (1/0.05 − 1)/1 = 19.
Common mix-ups
Steady-state error means the controller is badly tuned.
✓ With P only, some error is built in: e = r/(1 + K·Kp). Tuning trades its size against noise and overshoot.Doubling Kp halves the error.
✓ The error goes as 1/(1 + K·Kp), so doubling Kp from 1 to 2 takes it from 1/2 to 1/3, not 1/4.
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
In the feedback lab, find the smallest Kp that keeps the P-only error within 10 % on the first-order plant. Check it against the formula, then add sensor noise and describe what the high gain does to the control effort.
Reflect
In your own words: what job is the leftover error doing?
Write your answer on paper or in your own notes. Lite never stores what you write.