TactivergeLite

Lite / Engineering Complex Systems / Week 17

Hitting the wall: saturation and windup

A robot arm is held still for two seconds, then released. It flies past its target. The controller was perfect in simulation. What did the simulation forget?

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

Why should I care?

Every real actuator has limits. Integrator windup is one of the most common causes of 'it worked in simulation but overshoots on the robot'. The fix is simple once you know to look for it.

Predict

A PI loop's actuator is stuck at its limit for a long time while the error stays positive. What does the integral term do?

  1. Stays constant
  2. Keeps growing
  3. Resets to zero
  4. Shrinks
Guess first, then reveal

It keeps growing, even though the extra command does nothing. When the output finally reaches the set point, the huge integral keeps the command high, and the output overshoots until the integral unwinds.

Discover

Choose PI, Kp = 4, Ki = 6, actuator limit ±1.5, anti-windup off. Note the overshoot and settling. Tick anti-windup and compare. Then try limit None: which run is the fair 'ideal' reference?

What the interactive shows (text version)

With a PI controller and an actuator limit of plus or minus 1.5, the effort plot sits on the limit at the start. Without anti-windup, the output overshoots by about 40 % and settles slowly. With anti-windup on, the same gains overshoot by only a few per cent.

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

Watch (optional)

Watch for: Note two different anti-windup methods and the trade-off between them.

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

Saturation opens the loop

A motor driver can't exceed its supply voltage; a heater can't exceed full power. When the controller asks for more, the actuator delivers its maximum. While saturated, changing the command changes nothing: the loop is effectively open, and the plant just runs flat out.

Windup

The integral doesn't know the actuator is saturated, so it keeps adding error. By the time the output reaches the set point the integral is far too large, and it takes a long period of negative error (overshoot) to unwind it. Bigger Ki and longer saturation mean worse windup.

Anti-windup

Conditional integration: stop integrating while the actuator is saturated and the error would push it further. Back-calculation: bleed the integral back in proportion to the difference between requested and actual command. Clamping: cap the integral. All three keep I useful without the overshoot.

Explain it another way

Intuitive

Pushing a car that's stuck against a wall, getting angrier the longer it doesn't move. When the wall vanishes you shove it right across the road.

Technical

With saturation, the plant input is sat(u). The integrator state ∫e grows while the loop gain is effectively zero, so the controller state drifts far from its useful range. Anti-windup schemes keep the integrator consistent with the actual actuator output.

Applied

Large set-point changes, start-ups and blocked mechanisms are classic windup triggers: a lift starting a long trip, a robot joint briefly blocked by an obstacle, an oven at start-up.

Worked example 1

A heater is at full power for 60 s while the error averages 10 °C, and Ki = 0.05 %/(°C·s). How much has the integral term added to the command?

Ki·∫e ≈ 0.05 × 10 × 60 = 30 percentage points of extra command that the heater couldn't deliver. That excess must unwind after the target is reached, causing overshoot.

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. What causes integrator windup?
Practice 2. Which change directly prevents windup?
Practice 3. Can a pure P controller suffer integrator windup?

s

Apply it

In the PID tuner, find a PI setting where anti-windup changes overshoot by at least a factor of three. Report both runs with all metrics, and explain the difference using the effort plot.

Reflect

Where in the Elevator build could saturation occur, and what would windup feel like to a passenger?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Tuning to a written specA fair fight between controllers →