EIGENROOMLAB WORKSHEET 18DC motor · Design challenges
The controller clock matters
NameSectionDate
Goal
Measure how the controller's update period changes the phase margin and the step response at fixed gains.
Setup
Lab eigenroom.com/lab?lesson=sampling-period · short link eigenroom.com/sampling-period
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
- 90 rad/s
- Loop
- Closed loop
- Controller type
- PID
- Proportional Kp
- 0.32
- Integral Ki
- 0.5
- Derivative Kd
- 0.012
- 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: Controller period → 80 ms.
- CChange only: Controller period → 10 ms.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
Do identical PID gains behave the same at 10, 20 and 80 ms?
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 |
|---|---|---|---|---|
| Phase margin (°) | Frequency workbench | |||
| Rise time, 10–90% of target (s) | Measured response | |||
| Overshoot vs target (%) | Measured response | |||
| Settling, ±2% of target (s) | Measured response |
3. Explain
Order the runs by phase margin. Why does a slower controller clock reduce the margin?
The step responses differ much less than the margins. What does that say about judging a sampling period from one step test?
Extension (optional)
Raise Kp to 3 at 80 ms (run D) and at 10 ms (run E). Compare the phase margin and the requested voltage near the end.