Extra Screws, Issue 04: Put it on skates
Builds, hacks and the people making them.
In this bin: Opener / Builds / Shop Class / Datasheet Decoder / Bench
01Opener
Put it on skates
A 30 cm printed humanoid that walks, then switches to roller skates. A stepper driver that mounts on the back of the motor and passes commands down a chain of others. A bar-shaped desk screen that works out which board revision it’s running on by counting pulses. Welcome back to Extra Screws.
Every Sunday we pull a few open builds off the bench and look at how they actually work. We link the original, credit the builder and note the license, so you know what you can borrow. When a project publishes a number worth knowing, we pass it on with the source.
Also in this bin: how to trim a balancing robot’s IMU before you blame its brain, and the stepper-driver feature that lets you skip the limit switch.
02Builds
Robots worth a weekend
Three open builds, each with a real license file, and a note on why each one is worth your bench time.
20 bus servos / 50 Hz learned policy / 25 printed parts
Xiaoxiaobai: a desk humanoid that roller-skates
AI Lab – FanGe and the Qiyuan Robotics team published Xiaoxiaobai on Nov 25: a desktop humanoid about 30 cm tall that walks, glides on roller skates and runs through a calisthenics routine of roughly 46 seconds. Twenty bus servos (six per leg, three per arm, two in the neck) share a 1 Mbps chain run from a Raspberry Pi through a USB servo board. An IMU is stacked beside the Pi in the torso, and two 18650 cells sit in the middle to keep the weight low. Every move comes from reinforcement-learning policies trained in MuJoCo with MjLab, exported to ONNX and run on the robot at 50 Hz. Put the skates on and switch policies for two-foot gliding or a one-leg push-off. The arms stay free while it walks, and you can teach it new gestures by moving its joints by hand. The frame is 25 PLA parts laid out across five Bambu Studio plates. The repo credits Rhoban’s microban for the runtime and training setup it grew from, and Pollen Robotics’ microduck for its sim-to-real techniques. Docs come in Chinese and English, and voice chat needs your own Qwen API key.
The walking policies were trained across supply voltages from 5 to 8 V, and a second gait adds voltage sag in the middle of a walk, so the robot stays steady as the pack drains. The README also lists the CAD mass of every printed part, because a print much heavier or lighter than the model can stop a sim-trained policy from transferring. Weigh your prints.
Credit: AI Lab – FanGe (AI-FanGe) with the Qiyuan Robotics team / License: GPL-3.0 (code), CC BY-NC-SA 4.0 (hardware, non-commercial)
github.com/AI-FanGe/A-MicroRobot-that-can-Rollerskate →ESP32-S3 + TMC2209 / 14-bit encoder / Up to 31 on one bus
CANBUS Stepper: motors that pass the message along
Josh of Things by Josh put everything a NEMA 17 needs onto one board that mounts on the back of the motor: an ESP32-S3, a TMC2209 driver, a 14-bit magnetic encoder that reads a magnet you glue to the shaft, and a CAN transceiver. Power and CAN share the same XT30 (2+2) connectors in and out, so boards chain together, up to 31 on one bus. You give each one an ID by holding a button at power-up and counting LED blinks. Plug USB into any node and a browser GUI can see, tune and update every board on the chain. A Python library does the same over USB or Wi-Fi, and you can also drive it over serial, raw CAN or your own code on the board. The datasheet lists 5–29 V in (12–24 V typical), up to 1.92 A of motor current set in software, and a 12 A fused pass-through for the boards further down the chain. On Nov 20 Josh rewrote the getting-started guide into one walkthrough: assembly, power, chaining, closed-loop setup and sensorless homing. He sells kits. The repo holds the firmware, examples, guide and datasheet under GPL-3.0, but not the PCB design files.
One USB cable sets up the whole machine. The GUI finds every node from whichever board you plug into, and target node 0 sends a command to all of them at once. The Python library has a matching broadcast e-stop. New settings take effect right away but only persist when you click Save to Flash, so you can try a value before you keep it. And the two boards at the ends of the chain need their CAN termination switch on, with every board in between off.
Credit: Josh, Things by Josh (joshr120) / License: GPL-3.0
github.com/joshr120/CANBUS-Stepper →ESP32-S3 / 640×172 touch bar / Four retro looks
Phosphor: a desk bar that knows which board it’s on
Melih Koray’s Phosphor, which reached v2.0 on Nov 22, turns Waveshare’s ESP32-S3-Touch-LCD-3.49, a long 640×172 touch bar, into a retro desk gadget: clock and alarm, weather from Open-Meteo with no API key, internet radio, a focus timer, pixel scenes to leave running, three games and small tools like a spirit level. Every page comes in four looks: an old vacuum-fluorescent display, plus C64, Amiga and Atari 2600 styles, each redrawn within that machine’s resolution and color limits rather than just recolored. The board’s motion sensor earns its keep. Tilt the board and the sea tilts under an ocean liner. In the blackjack game you knock once on the table to stand and twice to hit. It installs from a browser page over USB. Every build comes out of GitHub Actions with a SHA256SUMS file and a signed provenance attestation you can check, and Wi-Fi updates stay off unless you build your own image with a token. It’s meant for a trusted home network: anyone on the same Wi-Fi can change its pages and send it messages.
Waveshare’s newer V2 board (Rev1.1) swaps two pairs of pins compared with V1, including the panel reset and the panel’s tearing-effect (TE) output. Rather than make you pick a version, the firmware turns TE on and counts edges on that pin for 150 ms. Around 18 edges (nine frames at 60 Hz) means V2, and a line that just sits at its pull-up means V1. It’s a tidy way to detect a hardware revision without a version pin. One caveat: it was built and tested on V2, and nobody has confirmed V1 yet.
Credit: Melih Koray (melihkoray) / License: GPL-3.0
github.com/melihkoray/phosphor →Also on deck
SparkESP32. Todd Dailey’s NVIDIA DGX Spark has no power light, so he put an ESP32 display on top of it. A small agent on the Spark pushes a sample every second over USB-C, or the board polls it over Wi-Fi. The screen shows CPU, GPU and memory load, GPU clock, temperature, power draw, and a big ONLINE or OFFLINE that doubles as the power light. A missing reading shows as two dashes instead of a fake zero, and if the feed stops, the screen turns OFFLINE within 5 seconds. In its first week it grew to five supported boards, from a 2.16-inch AMOLED to two e-paper panels, plus a printable mount.
Todd Dailey / MIT / Source →
Syndetis. Theocharis Anastopoulos built a pocket Ethernet checker from a WT32-ETH01 (an ESP32 with a 10/100 Ethernet PHY), a 128×64 OLED and three buttons. Plug it into a wall port and it shows link speed and duplex and, from LLDP or CDP, which switch and port you’re on. When you ask, it runs DHCP, a manual-IP test with ARP conflict checks, or a ping. A Wi-Fi hotspot serves a live dashboard. Version 0.6.0, marked stable on Nov 26 after he tested it on his own hardware, adds a downloadable JSON diagnostic report that leaves out MAC and IP details unless you tick a box.
Theocharis Anastopoulos (theo79) / MIT / Source →
03Shop Class
Trim the IMU before you blame the policy
A sim-trained walker knows which way is up only from its IMU. Xiaoxiaobai’s README warns that a mounting error of just 1° can make the robot lean, drift, lurch forward or fall, so it gives correction a whole section. The routine carries over to any balancing robot that relies on an IMU.
Steps
- Calibrate the mount once, on a level surface. Hold the robot in a position-controlled stand, take your hands off, and let it measure the IMU’s offset from the torso (about 3 seconds on Xiaoxiaobai). Redo it after a fall, a rebuild or a new IMU.
- Walk it and watch. Send it straight forward and back a short way each, and compare the posture readout with what the body actually does.
- Correct against the lean, in small steps. If it drifts right, nudge roll the other way. If it keeps lurching forward, take pitch back. Xiaoxiaobai’s guide says 0.5–1° per change within ±6°, roll before pitch, one axis at a time, with several walks before you judge.
- Rule out the policy. Zero the roll correction, mirror the policy left to right and walk again. If the drift switches sides, the policy is the cause. If it doesn’t, look at the center of mass, the assembly or the IMU mount. And don’t lean on auto-correction: Xiaoxiaobai’s only trims slow drift, up to ±3° of roll and ±2° of pitch.
04Datasheet Decoder
ADI Trinamic TMC2209: the homing switch you already have
The TMC2209 is the stepper driver on the CANBUS Stepper above. Most of us read the current rating first. For a machine that has to find zero, start with StallGuard4 instead. The driver senses the motor’s load as it runs, so it can tell when the axis hits a hard stop and flag it on its DIAG pin. Josh’s firmware watches that pin, stops the motor and, if you ask it to, makes that spot position zero, resetting the step count and the encoder offset together. His guide gives you a threshold for when a stall counts, plus a live StallGuard readout to tune it against.
- Supply
- 4.75–29 V DC
- Coil current
- 2 A RMS, 2.8 A peak
- Microsteps
- Up to 256, interpolated
- Choppers
- StealthChop2 (quiet), SpreadCycle (dynamic)
- Stall detect
- StallGuard4, for StealthChop
- Setup
- Single-wire UART, OTP memory
- Package
- 28-pin QFN, 5 × 5 mm
Two lines to read twice. ADI lists StallGuard4 as working with StealthChop, the quiet mode, so check which mode your firmware homes in. And the chip’s 2 A RMS isn’t the board’s rating: the CANBUS Stepper datasheet caps operating motor current at 1.92 A, set in software.
Product page (Analog Devices) → CANBUS Stepper sensorless homing guide →05Bench
Sponsor — not part of the issueBench: sponsor
Subscribe