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?
About 40 min · 3 goals · Checked by automated tests
1.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.
2.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.
Can't use the interactive? Read a description instead
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.
3.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
Which term removes a constant steady-state error?
4.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.
5.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
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.
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.
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.
6.Watch
→ 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.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
The video is optional: everything you need is also in the lesson text and the interactive.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Why is derivative action often filtered?
Practice 3
What is integrator windup?
Practice 4 · a fresh version every time
A joint behaves like a second-order system with damping ratio ζ = 0.4. Using overshoot = exp(−π·ζ / √(1 − ζ²)) × 100 %, what percentage overshoot should a step produce?
Practice 5 · a fresh version every time
A plant with static gain K = 1 is under proportional control with Kp = 9. The setpoint steps to r = 1. What is the steady-state error e = r − y once it settles?
8.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?
Guess first. Being wrong here is how the surprise works.
9.Reflect
Concepts: Steady-state error and integral action · Derivative action and damping · Saturation and integrator windup