Drag the pole, let go, watch it recover

x (cart) —
θ (angle) —
u (force) —
status balanced
what to try
  • First, leave defaults alone and click small knock a few times. The pole wobbles but the controller pulls it back. Status stays "balanced." This is stabilizing an open-loop-unstable plant.
  • Drag the pole tip sideways and release. With defaults you can usually recover from ~25° tilt. Push past that and it falls. The linearization breaks down too far from upright, and the controller can't catch it.
  • Click "no derivative (watch it ring)" to set Kθ̇ = 0. Now knock the pole. It oscillates uncontrollably and falls. This is classical "P without D": the controller knows where the pole is, but not where it's going. Restore Kθ̇ and the ring vanishes.
  • Set Kx and Kẋ to 0. Knock the pole. It balances but the cart slides off-screen. The controller doesn't care about cart position, only the pole. Add both gains back; the cart returns home while the pole stays vertical.
  • Set Kθ = 0. The pole has no feedback at all. It falls immediately. Reset.

Inverted Pendulum

What you are looking at

Pole
The body balancing above its hinge.
Cart
The base that moves along the track.
Force u
The controller’s push on the cart.

Try this

  1. Drag the tip off vertical to see the cart move underneath it.
  2. Choose No derivative and apply a small knock to make the response ring.

Key idea

Upright is an unstable equilibrium. The controller combines the cart and pole states to decide how hard to push.

Copy link