Skip to the content
2 layers35.5 × 23.1 mmSmart servo, the printed circuit board in 3D

This repository contains the public engineering artifacts for a six-legged robot project. It combines embedded firmware for RP2040-based control experiments, host-side tooling for communicating with and visualizing…

Size
35.5 × 23.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
26
Pads
85
Tracks, vias
187, 29
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
16 Oct 2025
Updated
2 May 2026

Overview

Smart servo is an open-source printed circuit board by aj-floater, from the aj-floater/hexapod repository on GitHub. It is a 2-layer board of 35.5 × 23.1 mm with 18 parts on 26 nets, routed with 187 tracks and 29 vias.

It is built around the STM32F042F6P6 and DRV8837DSGR-MS. Its parts include 5 capacitors, 5 connectors, 4 resistors and 4 ICs. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

2

README

README.md

Hexapod Robot Public Repository

Introduction

This repository contains the public engineering artifacts for a six-legged robot project. It combines embedded firmware for RP2040-based control experiments, host-side tooling for communicating with and visualizing device state, a C++ simulation/editor shell, hardware design files, and supporting media used during development.

The public repository is organised to let a technically competent reader inspect the control stack, reproduce the host tooling, build the current simulation executable, and review the mechanical and electronics design files. It is intended as the software and hardware workspace for the project rather than a polished end-user product.

Contextual Overview

The project is split into four main layers:

text
hardware/ CAD and PCB assets
    ->
firmware/ RP2040 targets implementing control loops and devlink endpoints
    <-UART/devlink->
tools/devlink_dashboard/ Python host tooling for monitor, replay, commands, and GUI

software/simulation/ C++ editor-style sandbox for kinematic and UI experiments
media/ public images and videos used to illustrate development results

In practice, the most direct public workflow is to run a firmware target on an RP2040 board, connect it over the current devlink serial path, and inspect or record the device stream with devlink-dashboard.

Repository Layout

  • firmware/: RP2040 firmware targets, shared support code, and experimental control programs
  • tools/devlink_dashboard/: Python package for serial monitoring, command dispatch, recording, replay, and the desktop GUI
  • software/simulation/: Magnum-based C++ simulation/editor shell with vendored third-party dependencies
  • hardware/: FreeCAD assemblies, KiCad projects, and board-level hardware assets
  • media/: images and videos that illustrate assembly, calibration, and control behaviour

Installation Instructions

1. Clone the repository

bash
git clone git@github.com:aj-floater/hexapod.git
cd hexapod

2. Host tooling prerequisites

Required for tools/devlink_dashboard/:

  • Python >=3.11
  • pip
  • serial support via pyserial
  • GUI support via PySide6 and pyqtgraph when using the desktop dashboard

Install the package from the repository root:

bash
python3 -m pip install -e './tools/devlink_dashboard[gui]'

If you only need parser, replay, or non-GUI workflows, install the lighter serial extra instead:

bash
python3 -m pip install -e './tools/devlink_dashboard[serial]'

3. Simulation prerequisites

Required for software/simulation/:

  • CMake >=3.24
  • a C++17 compiler
  • a desktop OpenGL-capable environment

The simulation currently vendors its external dependencies under software/simulation/third_party/, so no separate package manager is required for Corrade, Magnum, SDL, ImGui, or ImGuizmo in the default workflow.

4. Firmware prerequisites

Required for firmware/ work:

  • Raspberry Pi Pico SDK / RP2040 toolchain
  • CMake and a C/C++ compiler
  • an SWD probe such as Pico Probe or a compatible CMSIS-DAP device for flashing and debugging
  • UART wiring when using the current devlink path

Board-specific notes in firmware/board.md currently assume:

  • GP4 -> host RX
  • GP3 -> host TX
  • shared GND

5. Hardware prerequisites

Required for hardware/ inspection and editing:

  • FreeCAD for .FCStd assemblies and parts
  • KiCad for PCB and schematic projects

How to Run the Software

Host dashboard

Launch the desktop dashboard against a live serial device:

bash
devlink-dashboard gui --port /dev/ttyACM0 --record session.jsonl

Other useful host workflows:

bash
devlink-dashboard monitor --port /dev/ttyACM0 --record session.jsonl
devlink-dashboard replay session.jsonl

Simulation

Configure, build, and run the current simulation shell:

bash
cmake -S software/simulation -B software/simulation/build
cmake --build software/simulation/build
./software/simulation/build/bin/hexapod-simulation

Firmware example

One simple public firmware workflow is the RP2040 blink/debug example:

bash
cd firmware/blink_any_copy
make build
make flash

More advanced control targets live under firmware/control_testing/, firmware/basic_control_testing/, and related subdirectories.

Technical Details

  • The host-device protocol work is centered on devlink, with typed messages, NDJSON logging/replay, and capability-driven host state reconstruction in tools/devlink_dashboard/.
  • Current firmware work targets RP2040 boards and uses a UART-based devlink transport. The public board notes document the active wiring assumptions and shared RX helper usage.
  • The simulation executable is an editor-style sandbox rather than a full robot simulator. It currently focuses on a dockable viewport, scene hierarchy, gizmo manipulation, and persistence while replay and joint-domain integration remain future work.
  • The simulation build intentionally vendors its major third-party dependencies under software/simulation/third_party/ and pins them through the local CMake configuration.
  • Hardware assets are maintained directly in native design formats so the repository doubles as a source tree for mechanical and PCB iteration, not only as an exported artifact store.

Known Issues and Future Improvements

  • The repository is large because it includes vendored C++ dependencies, CAD files, PCB assets, images, and captured telemetry recordings.
  • Some tracked recordings and generated artifacts are large enough to trigger GitHub large-file warnings and may need Git LFS or curation later.
  • The simulation scope is still limited to the editor/bootstrap phase; full replay, model import, and complete multi-joint behaviour are not finished.
  • Firmware workflows are target-specific and assume local toolchain, probe, and serial environment setup rather than a single turnkey build.
  • Hardware and software subsystems are evolving in parallel, so interfaces and assumptions may continue to change as the robot architecture matures.

Parts

18
QtyValueFootprintReferences
30.1uFCapacitor_SMD:C_0402_1005MetricC3, C4, C5
210uFCapacitor_SMD:C_0805_2012MetricC1, C2
25k1Resistor_SMD:R_0603_1608MetricR1, R2
110kResistor_SMD:R_0402_1005MetricR4
1120Resistor_SMD:R_0402_1005MetricR3
12171790001smart_servo:MOLEX_2171790001J1
1B3B-PH-K-S_LF__SN_smart_servo:JST_B3B-PH-K-S_LF__SN_J2
1B5B-PH-K-S_LF__SN_smart_servo:JST_B5B-PH-K-S_LF__SN_J3
1Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ4
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ5
1DRV8837DSGRsmart_servo:SON50P200X200X80-9NU2
1MCP1703T-3302E_CBsmart_servo:SOT95P255X145-3NU3
1STM32F042F6P6smart_servo:SOP65P640X120-20NIC2
1TL431IDBZR,215smart_servo:SOT95P255X145-3NU1

More from aj-floater/hexapod

1
  • 2 layers59.6 × 27.2 mmSmart servo v2, the printed circuit board in 3D

    Smart servo v2

    aj-floater/hexapod

    This repository contains the public engineering artifacts for a six-legged robot project. It combines embedded firmware for RP2040-based control experiments, host-side tooling for communicating with and visualizing…

    53 parts

Similar boards

  • 4 layers60.8 × 61.3 mmOS3M Mouse, the printed circuit board in 3D

    OS3M Mouse

    spoter368/os3m-hardware

    All the hardware needed to build your own OS3M Mouse!

    51 parts399
  • 2 layers120.4 × 100.4 mmRelaymux, the printed circuit board in 3D

    Relaymux

    PetteriAimonen/relaymux

    Hardware and firmware for a USB connected relay box

    59 parts18BSD-2-Clause
  • 2 layers15.9 × 25 mmIMU, the printed circuit board in 3D

    IMU

    abstractfoundry/lumicube-boards

    PCB and firmware design files for some of the LumiCube components

    26 parts
  • 2 layers100 × 73.3 mmPride Badge, the printed circuit board in 3D

    Pride Badge

    aziraphale/pride-badge-v1

    🌈⚡Pride badge PCB with LEDs, STM32, and 3D printed diffuser+case!

    136 parts
  • 2 layers20 × 38.5 mmArm tiny pcb, the printed circuit board in 3D

    Arm tiny pcb

    Chicken-Fried/STM32-NanoCortex

    Ultra-compact USB-C development board powered by STM32F042 (ARM Cortex-M0) with native DFU, ceramic-only LDO power stage & CaveRover branding.

    29 partsCERN-OHL-S-2.0
  • 2 layers21 × 14.4 mmHub imu, the printed circuit board in 3D

    Hub imu

    ckemere/usb-imu

    USB IMU for camera rigs: BNO055 module (STM32F042) and an FE1.1S hub carrier with JST-GH camera ports. KiCad 9.

    19 partsCERN-OHL-P-2.0
  • 2 layers135 × 21 mmUsbc pd airsoft module, the printed circuit board in 3D

    Usbc pd airsoft module

    Fluffik214/airsoft-battery-module

    This is a USB-C PD charger and cell monitor for a 3S LiPo that lives in an airsoft stock tube. It has one USB-C port.

    98 parts

Questions

How big is the Smart servo PCB?

It measures 35.5 × 23.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Smart servo use?

18 parts, built around the STM32F042F6P6 and DRV8837DSGR-MS. 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 Smart servo KiCad files?

From the aj-floater/hexapod repository on GitHub, at the commit this page was made from: the board is hardware/smart_servo/smart_servo.kicad_pcb and its schematic hardware/KiCad 9 ESP32 Demo/KiCad 9 ESP32 Demo.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Smart servo design in my own project?

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