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

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
  1. APreset, exactly as the link opens it.
  2. BChange only: Initial angle → 12°.
  3. CChange only: Initial angle → 20°.
  4. DChange only: Initial angle → 20°, Derivative Kd → 0.5. (ext.)

1. Predict

Which way should the cart move when the pole leans right?

What happens

The cart accelerates toward a falling pole so the pivot catches up. This model covers balance near the upright position.

2. Observe

QuantityWhere to read itABCD ext.
Cart position at t = 0.2 s (m)Plot, with the replay cursor0.080 m0.159 m0.251 m0.225 m
Peak angle (°)Measured response7.96°15.36°20.62°85.68°
Peak cart travel (m)Measured response0.08 m0.16 m0.25 m2.22 m
Control effort (N·s)Measured response3.32 N·s6.20 N·s7.98 N·s10.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

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

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

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