V3 in action
Let the body help the controller
Most balancing robots treat their body as a fixed constraint and leave all the work to the controller. This project asks the opposite: how much passive stability can you engineer into the geometry itself? This idea is often called morphological intelligence.
I map three design variables (hip link length, wheel radius and center-of-mass height) to measurable stability. The work combines three pieces:
- A linearized analytical model
- A nonlinear simulation with realistic motors and sensors
- A purpose-built hardware testbed (V3)
Three prototypes, one testbed
V1 was a 3D-printed proof of concept that set the coaxial wheel layout and a basic balance controller. V2 moved to an aluminum-extrusion frame with onboard electronics, hip actuation and Bluetooth teleoperation. Both had fixed geometry, so neither could support a controlled study.
V3 is the main hardware contribution. It lets you change one geometric variable while holding everything else constant:
- Modular spine with a sliding battery tray to set COM height
- Swappable 3D-printed hip links, each built as a four-bar linkage
- A family of interchangeable wheels with TPU tires covering the full radius range


Why there's no obvious best geometry
I modeled the robot as a planar two-body system: a wheel rolling without slip and a chassis on a rigid hip link of length L. The design study sweeps 5 link lengths (8–20 cm) against 6 wheel radii (3–8 cm), giving 30 configurations organized by the ratio ρ = L/r.
Linearizing about upright shows two trends that pull in opposite directions:
- Shorter links fall faster. The unstable pole scales as λ ≈ √(g/L), so short links need more control bandwidth.
- Smaller wheels push harder. Ground force is F = τ/r, so small wheels get more authority before hitting the 3 A current limit.
Because these trends conflict, there's no naive optimum, which is why the full sweep is needed.


Four-bar hip linkage
A simple revolute hip would swing the wheel along an arc and couple vertical motion into sideways COM shift. Instead, each hip is a four-bar linkage that moves the wheel along a near-straight vertical line.
- Linkage optimized with differential evolution, then refined with Nelder-Mead
- RMS lateral deviation below a millimeter, well within 3D-print tolerance
- Re-optimized for every link length so all V3 configurations keep the straight-line path

A simulation that saturates like the real robot
The linear model can't capture actuator limits or sensor noise, so I built a nonlinear simulation (RK4 at 10 kHz) using datasheet parameters for the actual hardware:
- Motor: GM3506 (KT = 0.078 Nm/A, R = 5.6 Ω), 3 A driver limit and back-EMF torque ceiling
- Sensors: 14-bit AS5048A encoder quantization, BNO085 IMU noise
- Control: 500 Hz cascaded PID, with gains scaled by dimensional analysis so differences come from geometry, not tuning

Geometry alone changes stability by 45%
Across all 30 configurations I measured the largest sideways impulse the robot could recover from, plus peak tilt and control effort at half that impulse.
- Failure threshold ranged from 1018 to 1479 mN·s, with the same controller throughout
- The best thresholds came from L = 17 cm with small wheels (r = 3–4 cm)
- Bigger wheels don't always help: they need more torque per unit of ground force, so they hit the current limit during hard recoveries
- Control effort rises steadily with both L and r
Takeaway: L = 17 cm, r = 4 cm is the best overall trade-off in simulation. The next step is to confirm the counter-intuitive large-wheel result on hardware.

System architecture
- Compute: Arduino Nano ESP32 (ESP32-S3)
- Drive: 2× GM3506 BLDC motors, SimpleFOC Mini drivers, AS5048A encoders (SPI)
- Sensing: BNO085 IMU (I2C)
- Hips: 2× Waveshare ST3215 bus servos on a separate, slower position loop outside the balance loop
- Power & teleop: 3S LiPo; Xbox controller over Bluetooth (BluePad32)


From simulation to hardware
Two physical tests will check the simulation's predictions:
- Impulse rig: a pendulum with adjustable mass and release angle delivers repeatable sideways hits. I measure peak tilt, recovery time and control effort.
- Obstacle course: modular 3D-printed bumps of varying height and spacing. I measure tilt, energy used and success rate.


I presented the work at the ME 497 undergraduate research showcase. Next steps are to finish V3 assembly, run the disturbance protocol, and compare hardware results against simulation for a Humanoids 2026 submission.

