PPolySim OS
For K-12 Students · Cart-Pole Balance

Cart-Pole Balance for a humanoid gait

Built for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework. Simulate a humanoid gait 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 k-12 students?
Yes — this version of "Cart-Pole Balance for a humanoid gait" is framed for k-12 students learning it in middle or high school. Watch the idea come alive with plain-language steps and everyday examples — perfect for projects and homework.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.