BLACKFYRE
MG—01
MODE
←
Case studies
02 · Projects / CASE STUDY
CASE STUDY

Spooder.

A six-legged, eighteen-servo hexapod being built to walk, with its firmware, a gamepad bridge and a desktop calibrator that tests it against a virtual robot.

The problem

Spooder is a hexapod: six legs, three servos each, eighteen in all. It is an iteration over Aecert’s Hexapod V1, and it reuses that design’s mechanics and movement code with Aecert’s permission. I printed the frame and started assembling it in February 2024, and within a week I had a moving leg.

Then the work stopped. The first build ran on an Arduino Nano RP2040 Connect with two PCA9685 servo boards on one shared I²C bus, which did not have the bandwidth for eighteen servos. Each board needed its oscillator calibrated by hand, and the Bluetooth library I used for the gamepad has since dropped support for the Nano’s radio. The frame stayed half-built because the firmware never caught up.

A school career day brought it back. On 8 October I took a palm-sized four-legged robot, a kit my daughter and I built together in 2024, to her primary school. The children loved it, and it left me needing something better to bring next year.

The build

Spooder is now the firmware and tooling for the hexapod. The movement code (inverse kinematics, Bézier foot paths and the gait table) comes from Aecert’s design. The rest is new: other boards, a power-protection layer, a gamepad bridge, live calibration, and a desktop calibrator that rehearses everything against a virtual robot before the real one is powered.

The robot runs on a Pimoroni Servo 2040. It drives all eighteen servos from the RP2040’s PIO with no bus in between, and it measures its own servo current and voltage. The bridge, a Waveshare ESP32-S3 board with a 3.5-inch screen, takes commands from a TrimUI Smart Pro handheld over WiFi, talks to the robot over a serial link and shows the robot’s telemetry. It replaced the first bridge, a LilyGO T-Display that paired a Bluetooth gamepad. The desktop calibrator, written in Go, drives and calibrates the robot over USB.

The firmware has six gaits from the original gait table and five gestures: say hi, wiggle, dance, attack and ball.

Architecture

Everything that makes a decision lives in a core of plain C++, with no SDK, no hidden globals and time passed in as an argument. The board code only moves bytes between the hardware and that core. As a result the robot’s 20 ms control tick runs unchanged on my computer, behind a pseudo-terminal that behaves like the board’s USB port. That is the virtual robot, and the calibrator and the end-to-end tests talk to it as if it were the board.

Each tick reads its input and checks the power before anything else, so an emergency stop lands within 20 ms. Overcurrent, brown-out, high voltage and the emergency stop each latch a fault and cut the servos at once. Sustained overload and low voltage latch a fault and put the robot to sleep, which folds the legs before the servos switch off. Clearing a fault never sets the robot moving again by itself; a new mode request has to follow. Every byte from outside, whether a gamepad report or a USB frame, is validated in the core and rejected or visibly clamped.

The robot and its tools share a link protocol with CRC-16 checks, pinned by golden test vectors that the C++ and Go implementations both test against. The firmware also slows its own movement wherever a joint would have to turn faster than an MG996R servo manages under load.

The bridge’s drive page shows the robot’s state: the mode and gait, the supply voltage and current against the robot’s limits, whether the servos are powered, and any faults. The replay below draws that page from a telemetry recording in the calibrator’s export format and lists the recording’s mode changes and faults under it.

EVENTS
  1. 0.0 S INITIALISE · WAVE
  2. 2.0 S STAND · WAVE
  3. 8.0 S WALK · TRI
  4. 30.6 SFault: OVERCURRENT
  5. 34.0 S STAND · TRI
  6. 38.0 S WALK · WAVE
  7. 54.0 S SLEEP · WAVE
TELEMETRY REPLAYThe bridge's drive page during a minute of walkingGenerated sample, not a real runRecording (CSV) ↓

Decisions and trade-offs

I built the new firmware over one weekend with AI agents. Each change was planned in OpenSpec, implemented by an agent and reviewed by Codex on my machine. I set up the toolchain on Friday 16 October, and by Sunday afternoon the repository held 101 new commits. I could have written all of it myself, but it would have taken far more time than two days of inattentiveness.

That changed the order of the work. A calibrator and a virtual robot are the kind of tooling that usually waits until the main thing works, and here they arrived first. The safety rules live in the repository as instructions the agents follow, so every change is held to them.

The cost is that none of it moved a real leg that weekend. Timing, wiring and power behaviour can only be confirmed on the boards, and I will only find out what the virtual robot missed once the real one is assembled. The electronics mount carries the same caveat. An agent designed it in Python with build123d, and the script checks that the parts stay out of the legs’ sweep and print without supports. Its sizes are nominal until I measure the bought parts, so none of it has been printed yet.

Where it stands

The firmwares, the calibrator and the virtual robot are built and tested on the host, and bring-up on the rebuilt robot is in progress. All eighteen MG996R servos have run on the Servo 2040; five were lightly seized at first and moved again after I regreased their gears. The first bridge read the real robot’s telemetry over the serial link; the Waveshare bridge that replaced it is tested on the host but has not run on its board yet.

On 27 October I spent a day assembling the robot. By the evening five of its six legs were built and a second leg was on the frame, and the day ended there only because I ran out of M3×12 countersunk screws, and assembly waits for the delivery. The remaining legs, the mount, the Servo 2040 and the bridge still have to go on. The deadline is next year’s career day.

WRITTEN ABOUT IT

Spooder the hexapod
  1. 03 NOV 2026

    Upping the Ante for Next Year's Career Day

    A school career day sent me back to Spooder, the hexapod I parked in 2024, and one weekend with AI agents produced the firmware it had been waiting for.
  2. 05 NOV 2026

    Spooder Gets Its Legs

    My birthday present was a day to build Spooder, my hexapod: a stray screw inside a servo, horns fitted off-centre and a stop for want of screws.
  3. 12 NOV 2026

    Driving Spooder from a TrimUI Smart Pro

    How a TrimUI Smart Pro came to drive Spooder over WiFi: the transport, measuring the link, a splash screen that wouldn't quit and a Go pak.
  4. 19 NOV 2026

    Spooderifying the Career Day Robot

    The career day robot had no support, so I read its flash, had new firmware written from it and drove it from a TrimUI over two Wi-Fi bugs.
PRODUCT DATA SHEET
MG—01
BLACKFYRE
S/N MG-1985-1027
Miklós Galicz — Golang Advocate · Solution Architect
MODEL
MG—01 "Miklós Galicz"
SERIES
1985
ORIGIN
Nagykovácsi, Hungary
FUNCTION
Senior Full Stack Engineer · Solution Architect
CORE LANGUAGES
Go · PHP · JavaScript
SPOKEN
Hungarian · English · German
SERVICE LIFE
~20 years in software, ongoing
POWER SUPPLY
Coffee, 2–4 cups / day
DIMENSIONS
1 × human, standard size
OPERATING TEMP.
Calm under production incidents
CONNECTIVITY
[email protected] · github.com/blackfyre · linkedin.com/in/galiczmiklos
Less, but better. Specifications subject to continuous improvement.
● ● ●