Repository navigation
v1.0.0
Hexapod v1.0.0
First release of the firmware, hardware and mechanics for a six-legged walking robot: an
ESP32-S3 driving 18 Dynamixel servos with inverse kinematics at 200 Hz, controlled from a
handheld transmitter over ESP-NOW.
What it does
- Three walking gaits - tripod, tetrapod and ripple - switchable on the fly, with step
length, step height and ground clearance adjustable from the transmitter while walking - Inverse kinematics per leg, with targets clamped to the reachable workspace
- Self-levelling on uneven ground using the onboard IMU, with the feet planted
- Posing: translate and rotate the body (roll, pitch, yaw) with the feet planted
- Animated face on a 128x64 OLED that tracks the joystick and changes mood with the
robot's state, and doubles as the fault display - Sound and lights: I2S audio and a 19-LED strip that follows the state machine
- Safety: parks itself when the radio link drops, releases torque after inactivity,
never switches torque on against positions it could not read, and warns when the battery
runs low
What's in the repository
software/- the firmware sketch, plus the servo setup, calibration and bench test sketcheshardware/- PCB: EasyEDA project, Gerbers, schematic, bill of materialsmechanics/- chassis and legs: Fusion source, STLs, dimensioned drawingsdocs/- the quick guide, the operating manual
and the inverse-kinematics write-up
Requirements
- Arduino IDE with esp32 core 3.3.12 (IDF 5.5.5); it does not build against core 2.x
- Board ESP32S3 Dev Module: 16 MB flash, OPI PSRAM, custom partition scheme, USB CDC on
boot (full settings in the README) - Libraries, all from the Arduino Library Manager: FastLED 3.10.6, Dynamixel2Arduino 0.8.2,
MPU6050_light 1.2.1, U8g2 2.36.19, Streaming 6.3.0, SoundEngine 1.1.1,
ESPNowUtilities 1.0.0, VectorUtilities 1.0.0 - The transmitter with app protocol version 1
Hardening before release
A full code review, done with the help of Claude (Anthropic), preceded this release.
Before the first walk
The servos need IDs, the bus baud rate and joint limits set first.
software/DynamixelUtilities/ covers that, in the order given in its README.