EIGENROOMLAB WORKSHEET 10ANSWER KEY · FOR INSTRUCTORSCart-pole · Cart balance
Balance the pole
Goal
Measure how far the pole leans and how far the cart travels before an inverted pendulum recovers from a tilt.
Setup
Lab eigenroom.com/lab?lesson=balance · short link eigenroom.com/balance
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
- Balance + position
- Proportional Kp
- 15
- Integral Ki
- 0
- Derivative Kd
- 3
- Sensor noise
- 0
- Disturbance events
- None
- Recording
- 8 s
- APreset, exactly as the link opens it.
- BChange only: Initial angle → 12°.
- CChange only: Initial angle → 20°.
- DChange only: Initial angle → 20°, Derivative Kd → 0.5. (ext.)
1. Predict
Which way should the cart move when the pole leans right?
The cart accelerates toward a falling pole so the pivot catches up. This model covers balance near the upright position.
2. Observe
| Quantity | Where to read it | A | B | C | D ext. |
|---|---|---|---|---|---|
| Cart position at t = 0.2 s (m) | Plot, with the replay cursor | 0.080 m | 0.159 m | 0.251 m | 0.225 m |
| Peak angle (°) | Measured response | 7.96° | 15.36° | 20.62° | 85.68° |
| Peak cart travel (m) | Measured response | 0.08 m | 0.16 m | 0.25 m | 2.22 m |
| Control effort (N·s) | Measured response | 3.32 N·s | 6.20 N·s | 7.98 N·s | 10.54 N·s |
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 starts with the pole leaning at a positive angle. Read the cart position at t = 0.2 s: which way did the cart move relative to the lean, and why?
In the direction of the lean: 0.080 m. To catch a falling pole the cart accelerates toward the side it leans to, so the pivot moves back under the pole's centre of mass.
In every run the peak angle exceeds the starting angle. Why does the pole lean further before it recovers?
The cart has to build up speed before it gets under the pole, and meanwhile gravity keeps tipping the pole: peak angles 7.96°, 15.36° and 20.62°, with cart travel 0.08 m, 0.16 m and 0.25 m.
Extension (optional)
At the slider's largest angle the controller still recovers. Lower Kd to 0.5 and start again from 20°. What happens?
The pole falls. Run D's recording stops at 1.04 s (pole fell), with the pole already at 85.68°. Derivative action damps the pole's swing; with too little of it the controller cannot catch a large tilt.