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

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
  1. APreset, exactly as the link opens it.
  2. BChange only: Position loop → Balance + position.
  3. 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?

What happens

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

QuantityWhere to read itABC ext.
Recording ends at (s)Replay slider and status2.72 s (cart reached the rail)8.00 s (balanced to the end)2.20 s (cart reached the rail)
Peak angle (°)Measured response6.00°15.98°15.22°
Peak cart travel (m)Measured response2.39 m0.98 m2.37 m
Final cart position (m)Measured response2.39 m0.01 m2.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

  1. 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.

  2. 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.

Source: eigenroom.com/worksheets/cart/position/answersCite: EIGENROOM. (2026). Balance is not position [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/cart/position