Skip to content
Tactiverge

School/□ Systems Engineer/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

1.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.

  • ◇ Explain actuator saturation and why it makes a loop temporarily open-loop.
  • ◇ Show how an integral term winds up during saturation and causes overshoot.
  • ◇ Compare conditional integration (anti-windup) with no protection in simulation.

2.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?

Guess first. Being wrong here is how the surprise works.

3.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?

Loading the interactive…

Can't use the interactive? Read a description instead

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.

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

What causes integrator windup?

5.Watch

→ 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.

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.

6.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

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.

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

  • If it works without limits in simulation, it will work on hardware.
    ✓ Simulate with the real actuator limits. Windup only appears when saturation is modelled.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

Which change directly prevents windup?

Practice 3

Can a pure P controller suffer integrator windup?

Practice 4

An actuator is saturated for 4 s while the error is constant at 0.5. With Ki = 3, by how much does the integral term Ki·∫e grow?

Practice 5 · a fresh version every time

A plant τ·dy/dt + y = K·u has τ = 12 s and K = 1. It is put under proportional control u = Kp·(r − y) with Kp = 0.5. What is the closed-loop time constant in seconds?

s

8.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.

Open BUILD 002: Engineer an Elevator →

9.Reflect

Concepts: Saturation and integrator windup · Tuning a PID controller · Motors, servos and steppers