Skip to content

About

15-servo bipedal humanoid (~40 cm, 1.5 kg) on an ESP32-S3. 400 Hz balance and gait control from three IMUs, capture-point stepping, push recovery, and a phone web UI for live tuning and control.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

157 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humanoid Robot

A 40 cm walking robot I designed, 3D-printed and programmed from scratch. It balances, walks, and catches itself when pushed, all from its own sensors and a single ESP32-S3.

The robot stepping on a wooden floor

The idea

Most small hobby humanoids play back motions recorded in advance. That works until the floor tilts or something bumps the robot. This one is built the other way around, closer to how research bipeds work: it constantly measures how it is tipping, decides where its feet need to go, and works out the joint angles to get them there.

Size ~40 cm, ~1.5 kg, 3D-printed frame
Brain ESP32-S3
Joints 15 servos: 6 per leg (hip yaw/roll/pitch, knee, ankle pitch/roll) and 3 in the torso
Sensing IMU in the torso, plus one IMU in each foot
Control loop 400 Hz
Interface the robot hosts its own WiFi and a web control panel, so I can tune it from a phone while it stands

How it works

  • Feeling its balance. Three IMUs, filtered together, tell the robot how its torso and each foot are tilting and how fast its body is moving.
  • Staying upright. A balance controller nudges where the feet are placed to keep the body over them, while a separate controller holds the torso level.
  • Walking. A step cycle shifts weight onto one leg, swings the other, and puts it down. The foot IMUs act as a safety check: a foot only lifts once the other one is flat on the ground.
  • Catching itself. When it gets pushed, it works out which way it is falling and takes a recovery step in that direction, then another if one wasn't enough.
  • Turning. Turning comes from rotating the hips during the step.
  • Moving the joints. Leg inverse kinematics turns foot positions into joint angles. Every module asks for joint commands with a priority, and one arbiter decides what reaches the servos. A hardware kill switch cuts power to all servos at once.

Progress

  • ✅ Standing balance and weight shifting
  • ✅ Stepping in place
  • ✅ Slow forward walking
  • ✅ Sideways push recovery
  • ✅ Foot sensors gating each step
  • 🔄 Faster, steadier walking with smarter foot placement (capture point)
  • 🔄 Forward and backward push recovery
  • 🔄 Turning while walking
  • ⬜ Upper body

Build log


First leg prototype: ankle and knee servos on a printed foot

Second leg revision with a redesigned shin

Both legs and the hips assembled

First version of the upper body and arms

Developing the walking gait: weight-shift testing

Current version, during a powered walking test

Documentation

Doc What's in it
Architecture how the code is layered and what runs in each control tick
Gait design the step cycle, foot placement and push recovery

Building

PlatformIO project, Arduino framework.

pio run -t upload      # firmware
pio run -t uploadfs    # web control panel (data/ -> LittleFS)

Join the HumanoidRobot WiFi network and open the IP address printed on the serial monitor at boot.

Repo layout

src/, include/   firmware, one module per job (sensors, balance, gait, IK, servos, web)
data/            web control panel served by the robot
lib/             BMI160 IMU driver
docs/            design docs (this README included)

About

15-servo bipedal humanoid (~40 cm, 1.5 kg) on an ESP32-S3. 400 Hz balance and gait control from three IMUs, capture-point stepping, push recovery, and a phone web UI for live tuning and control.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages