Skip to the content
2 layersHexapod, the printed circuit board in 3D

This repository contains the complete design, control software and documentation for a six-legged walking robot (hexapod).

Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
89
Pads
173
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 9.0 (file 20241229)
Created
10 Jun 2024
Updated
5 May 2026

Overview

Hexapod is an open-source printed circuit board by TH4R4V3N1324, from the TH4R4V3N1324/Hexapod repository on GitHub. It is a 2-layer board with 15 parts on 89 nets.

It is built around the ESP32-S3-MINI-1U-N8 and AMS1117-3.3. Its parts include 6 capacitors, 4 resistors, 4 ICs and 1 connector. It belongs with the ESP32 boards of this library.

Main components

2

README

README.md

Hexapod

This repository contains the complete design, control software and documentation for a six-legged walking robot (hexapod). The project combines robotics, kinematics, embedded systems, and motion planning to create a stable and adaptable walking platform.


Table of Contents


About

This project was developed to address the growing complexity in robotic control systems, where tightly coupled codebases often hinder scalability, debugging, and long-term maintainability. It is designed for developers, researchers, or engineers working with robotic platforms or automation systems who require a clean, extensible control framework that’s easy to understand and build upon.

The primary goal of the project was to emphasize modularity, ensuring that each component of the control software is clearly separated by function and responsibility. This modular design allows developers to quickly comprehend the structure of the system, make targeted changes without unintended side effects, and expand the system by adding new features or improving existing ones without rewriting the entire codebase.

To achieve this, the software is structured around a set of well-defined classes, each serving a distinct role:

  • DataPacket Class: Acts as a container for incoming or outgoing data, ensuring that all communication between system components remains consistent, structured, and easily interpretable.

  • Calculate Class: Handles all mathematical and logical computations required by the system, such as sensor data interpretation, decision-making algorithms, or movement planning.

  • Move Class: Directly interfaces with the actuators or motors, translating high-level commands into specific movement instructions. It abstracts the hardware layer, allowing for easier adaptation across different platforms.

  • Animation Class: Manages co-ordination of legs using the various gaits and modes to create walking and animation.


Features

  • 3 DOF per leg
  • Inverse Kinematic engine for stable gait control
  • Multiple gait patterns: tripod, ripple, wave
  • Multiple control modes: normal, strafe, tilt
  • Real-time control via Pimironi Servo2040
  • Wireless control using custom controller and EspNOW protocol
  • STL files for 3D-printing mechanical components

Installation

Describe how to get your project running locally. Include prerequisites, dependencies, and step-by-step instructions.

Clone the repository into the desired location using the git bash terminal.

bash
git clone https://github.com/TH4R4V3N1324/Hexapod.git

Hexapod

Before getting started, make sure you have the following installed:

Prerequisites
Dependencies

Using the Raspberry Pi Pico VSCode extension, import the Hexapod sub-folder by selecting it in the Location tab, enabling CMake-Tools and clicking Import.

image

A selection box will appear at the top of the screen. From the list, choose the appropriate Pico compiler.

image

Once imported, you can build the project by selecting Compile Project from the Pico extension commands. This will generate a .uf2 firmware file inside the build directory.

To flash the firmware to the Pimoroni Servo 2040, put the board into BOOTSEL mode (by holding the BOOT button and pressing RESET), then copy the .uf2 file to the mounted USB storage.

Alternatively, you can enter BOOTSEL mode first, then simply use the Run Project command. This will automatically build and flash the firmware to the board, no manual file transfer required.

image

Receiver & Controller

Prerequisites
Dependencies

Using the PlatformIO extension in VS Code, select the Open option under the Quick Access panel to launch the PlatformIO Home page. From there, click Open Project and navigate to the appropriate sub-folder to import your project.

image

To build or upload the project to your ESP32 board, use the Build or Upload options available under the Project Tasks panel in the PlatformIO extension.

image

Usage

Explain how to use the project. Provide code snippets, screenshots, or examples as helpful.

Ideas:

Use ROS2 for control

image image

Package Structure

1. hexapod_description (URDF/Configuration)

  • Robot URDF model with leg geometry
  • Joint limits and physical parameters
  • Launch files for simulation and hardware

2. hexapod_hardware_interface (Hardware Layer)

Servo Controller Node: Interfaces with PCA9685 or direct PWM
  • Subscribes to: /joint_commands (JointState)
  • Publishes: /joint_states (JointState with feedback)
  • Service: /emergency_stop
Sensor Manager Node: Aggregates all sensor data
  • Publishes: /imu/data (sensor_msgs/Imu)
  • Publishes: /power/status (custom PowerStatus msg)
  • Publishes: /leg_contact (custom LegContactArray msg)

3. hexapod_kinematics (Computation Layer)

IK/FK Solver Node: Your Calculate class logic
  • Service: /ik_solve (Vector3 → JointAngles)
  • Service: /fk_solve (JointAngles → Vector3)
  • Subscribes to: /joint_states (JointState)
  • Publishes: /leg_poses (geometry_msgs/PoseArray

4. hexapod_gait_controller (Motion Planning)

Gait Generator Node: Your Animation/Move logic
  • Subscribes to: /cmd_vel (Twist for velocity commands)
  • Subscribes to: /gait_mode (String: tripod/ripple/wave)
  • Publishes: /leg_trajectories (trajectory_msgs/JointTrajectory)
  • Action Server: /execute_gait for complex movements

5. hexapod_control (High-Level Control)

Behavior Manager Node: State machine (Normal/Strafe/Tilt/Config)
  • Subscribes to: /mode_command (custom ModeCommand)
  • Subscribes to: /joystick (sensor_msgs/Joy)
  • Publishes: /cmd_vel (Twist)
  • Service: /set_height, /home_stance
Config Manager Node: Servo offset calibration
  • Reads/writes to parameter server
  • Service: /save_config, /load_config

6. hexapod_teleop (User Interface)

Joystick Node: Replaces your ESP-NOW controller
  • Uses joy_node from ROS2
  • Publishes: /joystick (sensor_msgs/Joy)
Web Interface Node: Optional dashboard
  • rqt plugins or custom web interface
  • Monitor battery, IMU, leg contact

Use Isaac sim for simulation

Parts

15
QtyValueFootprintReferences
2100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C6
25.1kResistor_SMD:R_0805_2012MetricR3, R4
1100RResistor_SMD:R_0805_2012MetricR2
110kResistor_SMD:R_0805_2012MetricR1
110uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC2
11uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
122uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
122uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U4
1BQ24610Package_DFN_QFN:VQFN-24-1EP_4x4mm_P0.5mm_EP2.45x2.45mmU2
1BQ76920PWPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU3
1ESP32-S3-MINI-1URF_Module:ESP32-S2-MINI-1UU1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ1

More from TH4R4V3N1324/Hexapod

1
  • 4 layers128.7 × 63.9 mmHexControllerV3, the printed circuit board in 3D

    HexControllerV3

    TH4R4V3N1324/Hexapod

    This repository contains the complete design, control software and documentation for a six-legged walking robot (hexapod).

    49 parts

Similar boards

  • 4 layers79.9 × 80 mmVidyut, the printed circuit board in 3D

    Vidyut

    D-Coder-42/Vajra-Team-Indra

    All codes and files for Team B of thrustMIT subscale

    94 parts1MIT
  • 4 layersDAC PCB, the printed circuit board in 3D

    DAC PCB

    saketharjun12-boop/High-Performance-DAC-system

    This is a analog IC design for a High performance DAC system, The architecture is comprised of dual AKM4191EQ/EX flagship chips for lossless audio.

    184 parts1
  • 2 layers44 × 20 mmUsb dmx, the printed circuit board in 3D

    Usb dmx

    Soraxem/trance

    Open Lighting hardware

    21 parts1CERN-OHL-P-2.0
  • 4 layers50 × 50 mmRubberESP32-S3, the printed circuit board in 3D

    RubberESP32-S3

    aviyanp/RubberESP32-S3

    A Rubber Ducky Devboard built around an ESP32-S3-WROOM-1U Module

    28 parts
  • 2 layers40 × 40 mmDronedrivers, the printed circuit board in 3D

    Dronedrivers

    CARS-Carleton-Robotics/driver-pcbs

    64 parts
  • 2 layers32 × 80 mmEsp32s3-rail, the printed circuit board in 3D

    Esp32s3-rail

    dominikbayerl/esp32s3-rail

    98 parts
  • 2 layers38.5 × 38.5 mmFPVSoundLogger V2, the printed circuit board in 3D

    FPVSoundLogger V2

    emileletueur/FPVSoundLogger_HW

    FPVSoundLogger Hardware

    40 parts
  • 2 layers80 × 46 mmMain control board, the printed circuit board in 3D

    Main control board

    StarweaverAudioLabs/main_control_board

    Main controller board for Haruto's DAC

    51 partsGPL-3.0

Questions

What parts does the Hexapod use?

15 parts, built around the ESP32-S3-MINI-1U-N8 and AMS1117-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Hexapod KiCad files?

From the TH4R4V3N1324/Hexapod repository on GitHub, at the commit this page was made from: the board is embedded/schematic/hexapod/Hexapod.kicad_pcb and its schematic controller/controller/schematic/hexControllerV3/hexControllerV3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Hexapod design in my own project?

Its repository states no licence, so its author keeps all rights: ask TH4R4V3N1324 before reusing the design.