PPolySim OS
For Students · Cart-Pole Balance

Cart-Pole Balance for a claw machine

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a claw machine live below — adjust the inputs and watch it respond, right in your browser.

Cart-Pole BalanceLive

Controls

Presets

Balancing a pole on a moving cart is the classic control benchmark. A state-feedback controller senses the pole angle and cart position and pushes the cart to keep the pole upright. Turn the controller off and it topples instantly; add disturbance to test how hard it can fight back.

▶ Run in Python

Data Inspector

Pole angle8.6°
Cart position0.00
Statusbalanced

Governing equation

Reading this result: The state-feedback law F = -K·state pushes the cart under the falling pole; with gain above the disturbance it recovers from each nudge.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Cart-Pole Balance

Frequently asked questions

Is this good for students?
Yes — this version of "Cart-Pole Balance for a claw machine" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.