EIGENROOMLAB WORKSHEET 04DC motor · PID tuning
Erase the lasting error
NameSectionDate
Goal
Show that integral action removes the error a constant load leaves, and find the limit it cannot pass.
Setup
Lab eigenroom.com/lab?lesson=integral · short link eigenroom.com/integral
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
- 120 rad/s
- Loop
- Closed loop
- Controller type
- PID
- Proportional Kp
- 0.22
- Integral Ki
- 0
- Derivative Kd
- 0
- Anti-windup
- On
- Load torque
- 0.08 N·m
- Sensor noise
- 0
- Controller period
- 20 ms
- Disturbance events
- None
- Recording
- 12 s
- APreset, exactly as the link opens it.
- BChange only: Integral Ki → 0.3.
- CChange only: Integral Ki → 0.6.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
Can the motor reach the target under a constant load with I set to zero?
Write your prediction and a reason before you run anything.
2. Observe
Read each value in the lab and write it in the table.
| Quantity | Where to read it | A | B | C |
|---|---|---|---|---|
| Final error (rad/s) | Measured response | |||
| Applied voltage at t = 12 s (V) | Readout at 12 s | |||
| Settling, ±2% of target (s) | Measured response | |||
| Overshoot vs target (%) | Measured response |
3. Explain
Run A stops at an error that never shrinks. Use the applied voltage at 12 s to explain what the integral term adds in runs B and C.
Doubling Ki from run B to run C barely changes the settling time. What limits how fast these runs recover?
Extension (optional)
Raise the load torque to 0.12 N·m with Ki = 0.6. Can any integral gain remove the error now?