Skip to main content
Sandbox Physics

Control & mechanics · Momentum storage

Reaction-Wheel Balance

How can spinning up a wheel keep a rod upright? Every time the motor speeds the wheel up one way, it twists the rod the other way with an equal torque. The controller times that twist to cancel gravity's tipping and settle the rod upright. Once the rod is still, the wheel can keep spinning, because nothing has taken its spin away. The motor's torque fades as it nears top speed, so a small wheel or a low speed limit can let the rod fall.

Keep a pivoted rod upright by speeding up or slowing down its flywheel. Change the wheel radius, the available torque or the initial spin, and see why the rod can come to rest while the wheel is still spinning fast.

Interactive modelReaction-Wheel Balance
Tilt from upright00
Rod angular speed00
Delivered rotor torque00
Requested rotor torque00
Motor-relative wheel speed00
Absolute rotor angular momentum00
Signed motor work00
Maximum sampled work-balance residual00

Physics tutorial

A steady rod can hide a spinning wheel

BackgroundStanding straight up is an unstable equilibrium: any small lean grows. To hold it there, feedback has to respond to the actual motion, using a motor that can only push so hard.

Why it mattersRead the motion, the drive the controller asks for and the mechanical work together, as parts of one experiment.

Start with the essentials

Focus question
Why can the pole balance while the rotor keeps its angular momentum?
One-sentence intuition
The motor twists the wheel and the rod with equal and opposite torques. The rod can come to rest while angular momentum stays stored in the wheel. Gravity is the external torque about the pivot.

Core mathematical model

Equations of motion for rod and rotor

Ibθ¨=Gsin⁡θ−τ,Jν˙=τ,ϕ˙=νI_b\ddot\theta=G\sin\theta-\tau,\qquad J\dot\nu=\tau,\qquad\dot\phi=\nu

The rotor's angle and speed are measured in the lab frame; the motor shaft sees the difference between the rotor and rod speeds. The body's moment of inertia includes the rod and the wheel's mass carried at its center, but not the rotor's spin about its own axle.

Angle feedback below the motor limit

τd=Gsin⁡θ+Ib(λ2θ+2λθ˙),θ¨+2λθ˙+λ2θ=0\tau_d=G\sin\theta+I_b(\lambda^2\theta+2\lambda\dot\theta),\qquad\ddot\theta+2\lambda\dot\theta+\lambda^2\theta=0

The second equation holds only near upright, where the controller is active, and only while the motor can deliver the requested torque.

Motor power and the change in energy

E=12Ibθ˙2+12Jν2+G(cos⁡θ−1),E˙=τ(ν−θ˙)E=\tfrac12 I_b\dot\theta^2+\tfrac12J\nu^2+G(\cos\theta-1),\qquad\dot E=\tau(\nu-\dot\theta)

Motor work can be positive or negative. It is the mechanical work done at the shaft; electrical consumption and losses are left out.

Common difficulties

Feedback has limits

Typical misconceptionOnce feedback is on, the system will recover from any release.

Better mental modelCompare the limit presets. These controllers balance only near upright and have limited drive strength. They are not swing-up controllers.

Absolute and relative rotation

Typical misconceptionIf the rod is still, the flywheel must have stopped.

Better mental modelLook separately at the rotor's absolute angular momentum and at its speed relative to the rod, which is what the motor sees.

Run the experiment

  1. 01

    Tilt and release

    Drag the gold handle to set the initial tilt, then press play.

    What to observe: Watch the rod, and watch how hard and in which direction the controller drives the motor.
  2. 02

    Find the motor's limit

    Choose Low speed ceiling, then try a larger wheel.

    What to observe: Look for the moment when the motor stops delivering what the controller asks for.
  3. 03

    Compare energy with motor work

    Go to the end of the playback and export the record. Then compare standard and fine integration.

    What to observe: The change in mechanical energy matches the work done by the motor, which is negative whenever the motor brakes.

Primary theory: MIT · Cart-Pole · ETH Zürich · 1D reaction-wheel model, Section II

FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy