Cart-Pendulum

What is this?

A cart on a rail carries a pendulum. Drag the bob to set an angle, then release to drop it. Friction at the pivot (cP) and rail (cR) bleeds energy away, so the swing decays over time. The damping regime depends on the damping ratio ζ: ζ<1 is underdamped (it oscillates while decaying), ζ=1 is critically damped (fastest return without overshoot), ζ>1 is overdamped (slow, no oscillation). Critical occurs at cP = 2·√(g·L). The Motor uses a small neural network that learns in the background (hill-climbing) to actively push the cart and cancel the swing — turn it ON to watch the learned policy stabilize the pendulum.

System

Time

Damping

Regime presets

underdamped ζ — · crit cP —

Motor

120

Learning ▾

0
−∞
0.30
0

Live state

0.00 s
0°
0.00 rad/s
0.00 m
0.00 m/s
0.0 N
0.00 J
— s

θ & energy vs time

θ (deg) energy (J)

Phase space θ–ω

x: θ   y: ω   spirals to origin