WIP - Max the Mini Martian: A Second-Gen 5-Bar Biped
The name comes from Absolute Martian Manhunter, my favorite green Martian.
Status: Walking in simulation · first leg printed · Fall 2026 Tools: Onshape, MuJoCo, Python, C++, Teensy 4.0, BNO085, Feetech STS3215
Current Physical Build Progress:

Built from scratch, from a failure analysis
My first biped was an 8-DOF robot on LX-16A servos: 345 mm at the hip, 1.7 kg. I got it balancing with a discrete-time LQR, then took apart why it couldn't go further:
Slow bus. The LX-16A's 115.2 kbaud bus capped the control loop rate.
Heavy legs. Too much mass sat low on the legs, slowing and costing the swing.
Weak actuators. The servos had too little torque margin for dynamic motion.
Max is a clean-sheet design that targets each of these weak points. A visual comparison is below.
Design
All servos at the hip. Each leg has four servos: hip roll, two that drive a 5-bar linkage, and ankle pitch. Everything below the hip is printed links and bearings. The ankle is driven through a gear pair and pushrod chain, so the foot holds level and can still push off.
Stronger, faster motors. I compared 10+ servos and chose the Feetech STS3215: about 2.9 N·m at 12 V, a 12-bit encoder, and load and current feedback for about $15. It runs on a 1 Mbps bus, split into one bus per leg.
Mass. About 440 g per leg and 1.35 kg total with battery and electronics.
Simulation
I exported the Onshape design as a URDF and turned it into a MuJoCo model. The closed linkages need six loop-closure constraints and a gear coupling. I rebuilt every printed part's mass as 15%-infill PLA.
Capture-point walking
Max walks on the linear inverted pendulum model (LIPM), treating the body as a point mass at constant height z ≈ 0.21 m, so ω = √(g/z) ≈ 6.8 rad/s.
Capture point: ξ = c + ċ/ω, the spot where the foot must land to stop the robot.
Prediction: each control tick predicts where ξ will be at touchdown: ξ_T = p + (ξ − p)·e^{ω·t_left}, where p is the stance foot.
Foot placement: the swing foot lands at ξ_T minus a steady-gait offset, L/(e^{ωT} − 1) forward and ±W/(e^{ωT} + 1) sideways. L is the commanded stride and W the step width, so each step holds the target speed instead of stopping.
Timing: steps last 0.16 s, shortening to 0.13 s at speed. The stance leg holds height and sweeps backward, and the ankle shifts the center of pressure to correct small forward errors.
IK: a precomputed closed-chain table turns foot targets into servo angles to under 0.3 mm.
Hip-roll load: the first gait pinned the hip-roll servos at their torque limit every step. I made stance roll compliant, anchored the lateral foot offset at touchdown, planned swing targets in the pelvis frame, and limited step width to 6–10 cm. Together that cut hip-roll load 3× (1.5 → 0.5 N·m RMS).
Feet: I tested five foot designs. Four corner contacts matched a flat sole on flat ground and did best on rough terrain.
Worst-case model
The controller never sees ground truth:
Servos: modeled from Rhoban's BAM (Better Actuator Models) STS3215 parameters, with 5 ms latency and 12-bit readback.
IMU: a noisy, drifting BNO085.
Feet: four force sensors per foot, with lag and noise.
A Bayesian contact filter and a Kalman filter (IMU plus leg odometry) estimate the state, holding the capture point within 3–6 mm of truth. On that stack Max:
walks at up to 0.15 m/s, with 0.1 m/s or below as the safe range
recovers from 0.3–0.5 N·s pushes
crosses random terrain up to 10 mm high
Electronics
The hub is a Teensy 4.0, with:
one servo bus per leg
the BNO085 on SPI
one I²C bus per foot
an INA226 on a 3S LiPo regulated to 12 V
Next
The first leg is printed. Next comes the second leg, assembly, and the capture-point gait on real hardware with TPU force-sensing feet. After that: MPC, then RL.



Comments