EIGENROOMLAB WORKSHEET 01ANSWER KEY · FOR INSTRUCTORSDC motor · Feedback basics
Find the feedback loop
Goal
Read a feedback loop in numbers: how fast the motor reaches its target, how far it overshoots and how much voltage it needs to stay there.
Setup
Lab eigenroom.com/lab?lesson=feedback · short link eigenroom.com/feedback
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.6
- 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: Target speed → 80 rad/s.
- CChange only: Target speed → 50 rad/s. (ext.)
- DChange only: Target speed → 25 rad/s. (ext.)
1. Predict
Where does the motor speed go after you change the target?
The controller measures the gap and changes voltage. The gap shrinks as the motor responds.
2. Observe
| Quantity | Where to read it | A | B | C ext. | D ext. |
|---|---|---|---|---|---|
| Rise time, 10–90% of target (s) | Measured response | 1.38 s | 0.72 s | 0.44 s | 0.44 s |
| Overshoot vs target (%) | Measured response | 1.93% | 6.49% | 14.41% | 14.55% |
| Settling, ±2% of target (s) | Measured response | 1.88 s | 2.08 s | 1.84 s | 1.84 s |
| Final error (rad/s) | Measured response | 0.00 rad/s | 0.00 rad/s | 0.00 rad/s | 0.00 rad/s |
| Requested voltage at t = 0 s (V) | Readout at 0 s | 26.4 V | 17.6 V | 11.6 V | 5.8 V |
| Applied voltage at t = 12 s (V) | Readout at 12 s | 10.0 V | 7.2 V | 5.1 V | 3.4 V |
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
Both runs end with zero error, yet the applied voltage at 12 s differs. Why does run A need more voltage than run B to stay at its target?
A faster motor needs more voltage: back-EMF and friction grow with speed, and the load torque of 0.04 N·m still needs current. Run A holds 10.0 V at its target and run B 7.2 V. Once the error is zero, the integral term supplies all of it.
If the loop were linear, the overshoot in percent would not depend on the target. Compare the two overshoots. What does the requested voltage at t = 0 s tell you about why they differ?
The overshoot changes from 1.93% to 6.49%, so the loop is not behaving linearly. At t = 0 s the controller requests 26.4 V in run A and 17.6 V in run B, more than the ±12 V the actuator can apply. Saturation makes the shape of the response depend on the size of the step.
Extension (optional)
Lower the target until the request at t = 0 s stays within 12 V: try 50 rad/s, then 25 rad/s. Does the percentage overshoot now stay the same when you halve the target?
Almost. Run C requests 11.6 V and overshoots 14.41%; run D requests 5.8 V and overshoots 14.55%. Without saturation the loop is close to linear, so the percentage barely changes. The small difference comes from parts of the model that do not scale with the target, such as the constant load torque.