TactivergeLite

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?

About 40 min · 3 goals · Checked by automated tests · Full interactive version

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.

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?

  1. It stays small
  2. It keeps growing, because the error is large and the motor can't do more
  3. 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.

You can also open the interactive on the full site when you have a faster connection.

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

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which term removes a constant steady-state error?
Practice 2. Why is derivative action often filtered?
Practice 3. What is integrator windup?

%

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.

← Reading a step responseInterface contracts →