Skip to main content

Labs

Spin the Pen, Balance the Bat: Inverted-Pendulum Toy

Balancing a bat, broom or paddle on a fingertip is control theory you can feel: the longer the object, the slower it falls, the more time you have. This toy adds gusts. Hold it upright as long as you can.

Use ◀ ▶ arrow keys or the buttons. Best: 0.0 s

How it works

An inverted pendulum falls faster the shorter it is — which is why a bat is easier to balance than a pen, and why your corrections must come earlier than feels natural. The physics here is the real pendulum equation with a little weather added.

Original toy on the inverted-pendulum equation of motion.

← All labs