⟿ REACTION WHEEL INVERTED PENDULUM // PID ANGLE TRACKING

Reaction Wheel PID Control

MOMENTUM EXCHANGE BALANCING · INDEPENDENT PID TUNING · CLOSED-LOOP FREQUENCY RESPONSE
DESIRED CLOSED-LOOP
SYSTEM PARAMETERS
INPUT TYPE
TARGETS & DISTURBANCE
PHYSICAL SYSTEM (REACTION WHEEL FLYWHEEL CONTROL)
TIME RESPONSE HISTORY θ* (cmd) [°] θ (act) [°]
CONTROL TORQUE HISTORY (τ) τ [N·m]
CLOSED-LOOP BODE DIAGRAM (θ* ➔ θ) Magnitude [dB] Phase [°]
SYSTEM STATE DIAGNOSTICS
PENDULUM ANGLE θ
θ̇ = — °/s
WHEEL VELOCITY Ω
φ = — °
CONTROL TORQUE τ
|τ| ≤ 5 N·m
STABILITY STATUS
mode: CLOSED LOOP
TRACKED MAGNITUDE
phase shift: —
Reaction Wheel Pendulum PID Feedback Stabilization
The control input is the torque τ(t) applied by the motor on the reaction wheel (flywheel) located at the tip of the rod. This generates a reaction torque −τ(t) on the pendulum arm itself.
The feedback controller stabilizes the pendulum angle using: τ(t) = − ( Kp·e(t) + Ki·∫e(t)dt + Kd·de(t)/dt ), where the angle error is e(t) = θ* − θ(t).
Note that Kp must be greater than the gravity factor (ag) (default 1.5 N·m/rad) to stabilize the upright vertical position. Because the flywheel's velocity is uncontrolled in this single-loop angle PID structure, any steady-state gravity offset will force the flywheel to continuously accelerate, causing it to spin at higher and higher speeds!