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
Lab eigenroom.com/lab?lesson=windup · short link eigenroom.com/windup
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
- APreset, exactly as the link opens it.
- BChange only: Anti-windup → Off.
- CChange only: Target speed → 100 rad/s, Anti-windup → Off. (ext.)
- DChange only: Target speed → 100 rad/s. (ext.)
1. Predict
What happens when the requested voltage exceeds what the motor can receive?
The integrator can keep accumulating during saturation. Anti-windup pauses accumulation when the error pushes farther into a limit.
2. Observe
| Quantity | Where to read it | A | B | C ext. | D ext. |
|---|---|---|---|---|---|
| Requested voltage at t = 2 s (V) | Readout at 2 s | 11.7 V | 159.5 V | 53.7 V | 7.7 V |
| Applied voltage at t = 2 s (V) | Readout at 2 s | 11.7 V | 12.0 V | 12.0 V | 7.7 V |
| Overshoot vs target (%) | Measured response | 0.72% | 6.12% | 38.66% | 5.33% |
| Settling, ±2% of target (s) | Measured response | 3.16 s | Not settled | 5.02 s | 2.04 s |
| Final error (rad/s) | Measured response | 0.00 rad/s | -8.57 rad/s | 0.00 rad/s | 0.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
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.
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.