How yunisnasla/reaction-wheel-inverted-pendulum works
This repository combines Arduino firmware for a reaction-wheel inverted pendulum with a small React landing page. The principal physical workflow reads encoder motion, selects swing-up or stabilization control, and drives the motor; the README documents the firmware stages and algorithms, while the sampled source shows the web entry point and landing page. The firmware internals are all attributed to RWIP.ino because its contents were not sampled. The advertised Live Control link and telemetry types do not establish a working control interface or backend in the available evidence.
Main entry points: RWIP.ino Swing-up control · main.tsx Web entry · App.tsx App router · Home.tsx Landing page
Components 17
Web presentation
- Web entry
client/src/main.tsx - App router
client/src/App.tsx - Landing page
client/src/pages/Home.tsx - Telemetry types
client/src/types/telemetry.ts
Firmware control
- Mode selection
RWIP.ino - Swing-up control
RWIP.ino - Approach decelerator
RWIP.ino - Near-miss handling
RWIP.ino - Rotation detection
RWIP.ino - PID stabilization
RWIP.ino - Wheel desaturation
RWIP.ino - Serial diagnostics
RWIP.ino
Physical system
- Quadrature encoder
RWIP.ino - Pendulum motion
RWIP.ino - Motor driver
RWIP.ino - Reaction wheel
RWIP.ino
Other components
- Visitor
Connections 20
- Visitor → Web entry: opens
client/src/main.tsx - Web entry → App router: renders
client/src/main.tsx - App router → Landing page: routes to
client/src/App.tsx - Landing page → Visitor: offers navigation
client/src/pages/Home.tsx - Quadrature encoder → Mode selection: provides angle and velocity
README.md - Pendulum motion → Quadrature encoder: measured by
README.md - Mode selection → Swing-up control: selects
README.md - Mode selection → PID stabilization: selects
README.md - Swing-up control → Approach decelerator: applies near upright
README.md - Swing-up control → Near-miss handling: adjusts next pump
README.md - Swing-up control → Rotation detection: checks rotation
README.md - Swing-up control → Motor driver: commands
README.md - Approach decelerator → Motor driver: brakes
README.md - Rotation detection → Motor driver: stops pumping
README.md - PID stabilization → Wheel desaturation: biases setpoint
README.md - PID stabilization → Motor driver: commands
README.md - Motor driver → Reaction wheel: drives
README.md - Reaction wheel → Pendulum motion: reacts against
README.md - Mode selection → Serial diagnostics: reports mode
README.md - PID stabilization → Serial diagnostics: reports balance data
README.md