EIGENROOMLAB WORKSHEET 10Cart-pole · Cart balance
Balance the pole
NameSectionDate
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°.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
Which way should the cart move when the pole leans right?
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 |
|---|---|---|---|---|
| Cart position at t = 0.2 s (m) | Plot, with the replay cursor | |||
| Peak angle (°) | Measured response | |||
| Peak cart travel (m) | Measured response | |||
| Control effort (N·s) | Measured response |
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 every run the peak angle exceeds the starting angle. Why does the pole lean further before it recovers?
Extension (optional)
At the slider's largest angle the controller still recovers. Lower Kd to 0.5 and start again from 20°. What happens?