EIGENROOMLAB WORKSHEET 06ANSWER KEY · FOR INSTRUCTORSDC motor · PID tuning

When the actuator runs out

Goal

See integrator windup in the requested voltage and measure how much anti-windup changes the recovery.

Setup

Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:

Target speed
140 rad/s
Loop
Closed loop
Controller type
PID
Proportional Kp
0.22
Integral Ki
1.2
Derivative Kd
0.008
Anti-windup
On
Load torque
0.04 N·m
Sensor noise
0
Controller period
20 ms
Disturbance events
None
Recording
12 s
  1. APreset, exactly as the link opens it.
  2. BChange only: Anti-windup → Off.
  3. CChange only: Target speed → 100 rad/s, Anti-windup → Off. (ext.)
  4. DChange only: Target speed → 100 rad/s. (ext.)

1. Predict

What happens when the requested voltage exceeds what the motor can receive?

What happens

The integrator can keep accumulating during saturation. Anti-windup pauses accumulation when the error pushes farther into a limit.

2. Observe

QuantityWhere to read itABC ext.D ext.
Requested voltage at t = 2 s (V)Readout at 2 s11.7 V159.5 V53.7 V7.7 V
Applied voltage at t = 2 s (V)Readout at 2 s11.7 V12.0 V12.0 V7.7 V
Overshoot vs target (%)Measured response0.72%6.12%38.66%5.33%
Settling, ±2% of target (s)Measured response3.16 sNot settled5.02 s2.04 s
Final error (rad/s)Measured response0.00 rad/s-8.57 rad/s0.00 rad/s0.00 rad/s

Values computed by DC motor and cart-pole engine 1.5.0 at the settings above. A replay readout can differ in the last digit if the slider is not exactly at the stated time; values read from a plot are approximate.

3. Explain

  1. At t = 2 s, compare the requested and applied voltage in both runs. Where does run B's huge request come from?

    Run B requests 159.5 V while only 12.0 V reaches the motor: its integral term kept accumulating while the voltage was at the limit. Run A requests 11.7 V, because anti-windup paused the accumulation while the error pushed further into saturation.

  2. Run B ends the recording above the target. Why does the motor keep receiving full voltage after the speed passes the target?

    The stored integral must unwind before the request falls below 12 V, and until then the motor keeps full voltage. Run B overshoots 6.12%, never settles within the recording and ends with an error of -8.57 rad/s. With anti-windup, run A overshoots 0.72% and settles at 3.16 s.

Extension (optional)

Lower the target to 100 rad/s, where the motor needs less of its 12 V, and compare anti-windup off (run C) and on (run D). Does windup still matter?

Even more: run C overshoots 38.66% and settles at 5.02 s, while run D overshoots 5.33% and settles at 2.04 s. At the higher target the motor had little voltage left to overshoot with; at this one the wound-up integrator can drive the speed far past the target.

Source: eigenroom.com/worksheets/motor/windup/answersCite: EIGENROOM. (2026). When the actuator runs out [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/motor/windup