EIGENROOMLAB WORKSHEET 03DC motor · PID tuning
What does P change?
NameSectionDate
Goal
Measure what a larger proportional gain buys and what it costs when the controller has no integral action.
Setup
Lab eigenroom.com/lab?lesson=proportional · short link eigenroom.com/proportional
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.16
- Integral Ki
- 0
- Derivative Kd
- 0
- 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: Proportional Kp → 0.24.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
Will a higher P gain reach the target faster without a cost?
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 |
|---|---|---|---|
| Requested voltage at t = 0 s (V) | Readout at 0 s | ||
| Speed at t = 12 s (rad/s) | Readout at 12 s | ||
| Final error (rad/s) | Measured response | ||
| Control effort (V·s) | Measured response |
3. Explain
Neither run reaches the target. Why does a P-only controller settle below it, and why is the gap smaller in run B?
Compare the requested voltage at t = 0 s with the 12 V the motor can receive. What does the larger gain cost that the speed plot does not show?
Extension (optional)
How large must Kp be to bring the final error below a tenth of the target? Try Kp = 1 and watch the voltage as well as the speed.