EIGENROOMLAB WORKSHEET 11ANSWER KEY · FOR INSTRUCTORSCart-pole · Cart balance
Balance is not position
Goal
Show that keeping the pole upright does not keep the cart in place, and measure what the outer position loop costs.
Setup
Lab eigenroom.com/lab?lesson=position · short link eigenroom.com/position
Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:
- Initial angle
- 6°
- Controller type
- PID
- Position loop
- Angle only
- Proportional Kp
- 15
- Integral Ki
- 0
- Derivative Kd
- 3
- Sensor noise
- 0
- Disturbance events
- Nudge cart 1.2 N·s at 1.4 s
- Recording
- 8 s
- APreset, exactly as the link opens it.
- BChange only: Position loop → Balance + position.
- CChange only: Position loop → Balance + position, Disturbance events → Nudge cart 2.4 N·s at 1.4 s. (ext.)
1. Predict
Can the pole stay upright while the cart drifts away?
Angle feedback keeps the pole up but does not promise a cart position. The outer position loop asks for a small tilt to guide the cart home.
2. Observe
| Quantity | Where to read it | A | B | C ext. |
|---|---|---|---|---|
| Recording ends at (s) | Replay slider and status | 2.72 s (cart reached the rail) | 8.00 s (balanced to the end) | 2.20 s (cart reached the rail) |
| Peak angle (°) | Measured response | 6.00° | 15.98° | 15.22° |
| Peak cart travel (m) | Measured response | 2.39 m | 0.98 m | 2.37 m |
| Final cart position (m) | Measured response | 2.39 m | 0.01 m | 2.37 m |
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
Run A never lets the pole fall, yet its recording stops early. What ended it?
The recording ends at 2.72 s (cart reached the rail). Angle-only feedback kept the pole up (peak angle 6.00°), but nothing pulled the cart back after the nudge, so it drifted to 2.39 m.
The cascade run tilts the pole further than angle-only control did. Why is a larger lean part of bringing the cart home?
To move the cart back, the outer position loop asks for a small lean toward home, and the balance loop then accelerates the cart under the pole. Run B leans up to 15.98°, travels up to 0.98 m and ends at 0.01 m.
Extension (optional)
Double the nudge in cascade mode (run C). Does the cart stay on its track?
No. Run C's recording stops at 2.20 s (cart reached the rail); the cart travels up to 2.37 m while the pole leans up to 15.22°. A bigger nudge needs a bigger excursion to recover, and the track is finite.