Lite / Intelligent Robotic Systems / Week 30
What I and D buy, and what they cost
Integral action wipes out the lift's levelling error. So why do engineers sometimes switch it off while the lift is moving?
Why should I care?
Every term in PID fixes one problem and creates another. An engineer who knows both sides can tune deliberately instead of twiddling knobs and hoping.
- Explain how integral action removes steady-state error and why it can add overshoot.
- Explain how derivative action adds damping and why it amplifies noise.
- Recognise integrator windup when an actuator saturates.
Predict
A lift motor is at full power for 4 seconds while the cabin accelerates, with a PI controller running. What happens to the integral term during those seconds?
- It stays small
- It keeps growing, because the error is large and the motor can't do more
- It resets itself
Guess first, then reveal
It winds up. The motor is already at its limit, but the integral keeps adding error. When the cabin arrives, the stored integral keeps pushing and the lift overshoots the floor. Anti-windup stops the integral while saturated.
Discover
Take six passengers from floor 0 to floor 7. First try P only and measure how far short of the floor it stops. Add integral action and measure again. Then look for overshoot at arrival and decide whether anti-windup helps.
What the interactive shows (text version)
In the elevator build, P control stops the cabin a few millimetres short of the floor under load; adding integral action removes the shortfall but can cause a small overshoot at arrival, which anti-windup reduces.
Watch (optional)
Watch for: Watch the integral term while the actuator is saturated, and what conditional integration does to it.
Explains what goes wrong when an integral term keeps growing while the actuator is already at its limit, and how to stop it.
“Anti-windup for PID control | Understanding PID Control, Part 2” 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
Integral: memory of past error
The integral term adds up error over time. As long as any error remains, it keeps growing and keeps pushing, so it can supply the steady push P needed error for. Result: zero steady-state error to a step or a constant load. Cost: stored push takes time to unwind, so it tends to add overshoot and slow oscillation.
Derivative: a brake on fast change
The derivative term reacts to how fast the output is changing and pushes against rapid movement, like a shock absorber. It adds damping, reducing overshoot and ringing. Cost: differentiating a noisy signal amplifies the noise, so real controllers filter the derivative and often take it from the measurement rather than the error.
Windup
When the actuator saturates (full power), the error stays large and an unprotected integral grows far beyond anything useful. On arrival it overshoots badly. Anti-windup (for example, stopping integration while saturated) prevents this. Always check integral control with realistic actuator limits.
Explain it another way
Intuitive
P is how hard you pull now, I is a grudge that grows the longer you're off target, D is caution when things move fast.
Technical
u = Kp·e + Ki·∫e dt − Kd·dy/dt. The integrator raises the loop type and removes step error; the derivative adds phase lead (damping). Saturation breaks the linear model, which is why windup protection is part of any practical PI or PID.
Applied
Lift, drone and process controllers almost always include anti-windup and derivative filtering; plain textbook PID rarely survives contact with real actuators.
Worked example 1
A P-only lift stops 12 mm short at 450 kg. With PI it reaches the floor but overshoots by 6 mm before settling. Which term caused each behaviour?
The 12 mm shortfall is P's steady-state error from the constant load. PI removes it, but the integral's stored push causes the overshoot; anti-windup or a little derivative action can reduce it.
Common mix-ups
PID is always better than P.
✓ Each extra term adds tuning effort and risks (overshoot, noise, windup). P is fine when its steady-state error is within spec.
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 BUILD Elevator Level 3, record the levelling error and arrival overshoot for P, PI and PI with anti-windup over three runs each. Present a table and say which you would ship and why.
Reflect
Which of the three terms do you trust least, and why?
Write your answer on paper or in your own notes. Lite never stores what you write.