HUXMechanical project
WorkshopElectricalControl softwareV1-PROOF · R05 current build

V1-PROOF / Engineering project

Control software

Sensor feedback, balance control and the command and fault contract for the Pico 2.

SW / V1

SW-01 / Control architecture

Sense, correct, supervise.

V1-PROOF will run conventional control on a Pico 2. You will command the speed and the turns. Hux will continuously move its wheels to keep its body balanced.

Control architecture and modes ↗
01 / Sense

Know the lean and motion.

The received LSM6DSO IMU measures acceleration and rotation. Encoder counts track the wheels. The Pico 2 combines these readings into pitch, pitch rate, position and speed estimates. Current, battery and fault inputs constrain movement.

02 / Correct

Keep the wheels under the body.

A target 500 Hz control loop corrects pitch, with slower speed/position correction and differential steering. Both wheels cooperate to balance. Their speed difference turns Hux. Balance gets priority when motor authority is limited.

03 / Supervise

Accept bounded human commands.

A laptop/gamepad or qualified RC link asks for speed and yaw. DISARMED, BALANCE, DRIVE and FAULT modes govern behavior. Stale commands over 250 ms, bad feedback or limit violations latch a fault and require a deliberate rearm.

Design locked, implementation ahead. The control architecture and purchased actuator models define V1-PROOF. The host simulation exists. The embedded firmware, the measured loop timing and the physical balance are not implemented or proven. Slow powered height adjustment follows pinned-leg balance and measured trim. The catch fixture contains a power-off fall.

There is no onboard AI, camera or Linux computer in this proof. A future vision/planning computer can request bounded motion. The Pico 2 will retain balance, limits and fault handling. See what the simulation actually establishes ↗

SW-02 / Implementation references

Firmware & bring-up