Extra Screws, Issue 03: One servo, four legs
Builds, hacks and the people making them.
In this bin: Opener / Builds / Shop Class / Datasheet Decoder / Bench
01Opener
One servo, four legs
A walking base that turns a desk robot’s neck servo into four legs. A one-axis gimbal that keeps its top pointed the same way however you twist the bottom. A homemade robot joint whose tools measure the motor before they tune it. 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 stop a motor before it surprises you, and why a tiny IMU likes to be kept warm.
02Builds
Robots worth a weekend
Three open robot builds, each with a real license file, and a note on why each one is worth your bench time.
M5Stack StackChan / One yaw servo / 57 printed parts
Stackchan Strider: the neck servo does the walking
Yeq6X’s Stackchan Strider is a printed four-legged base for StackChan, the open-source desk robot started by Shinya Ishikawa, and it adds no motor of its own. The robot’s head sits between two printed pads that stop it turning side to side, so when the yaw servo spins continuously, the base turns instead. A 1:1 bevel gear hands that rotation to a crank shaft, and the crank drives four Jansen-linkage legs, with the left and right cranks set 180° apart. It’s 57 printed parts, 22 of them C-clips: no screws, no bearings, no glue. Every shape is generated from Python, and the repo ships scripts that check gear mesh, collisions through a full stride and the assembly order, plus a MuJoCo sweep of 24 friction and speed cases. None of them tipped over in simulation, and at 60% servo command the simulated walk ran about 31 mm/s. The README is upfront about limits: the feet lift only about 6 mm, it rocks roughly ±3° front to back, and you can’t plug in USB while it walks because the base keeps turning. Docs are in Japanese, with an interactive assembly guide.
The clearances are published as real numbers: 0.4 mm on the diameter for turning joints, 0.15 mm between stacked plates. Tighter fits made too much friction for the servo to walk, so the builder loosened them to values that walk on the real robot, and kept them in one file you can retune for your own printer.
Credit: Yeq6X / License: MIT
github.com/Yeq6X/stackchan-strider →XIAO STM32C5 / CAN gimbal motor / ~1 kHz loop
CAN do GYRO: a top that refuses to turn
Christopher Pietsch wanted an excuse to try a brushless motor, and the Seeed XIAO STM32C5 had the two things he needed on one thumb-sized board: an IMU and a CAN transceiver. He set it on top of an M5Stack Unit RollerCAN, a gimbal motor with its own FOC driver and encoder, along with a small 2S battery. Turn, tilt or flip the bottom, and the motor turns the top back to its original heading. The XIAO tracks its own orientation in 3D from the gyro, nudged toward gravity by the accelerometer, and runs the loop at about 1 kHz, sending the motor a fresh position target every pass. It also records about 90 seconds of telemetry into an unused slot in its own flash, so you can see what it did running untethered. The README is honest about what’s left: on battery alone the gyro reads much noisier and the top slowly drifts, while on USB plus battery it holds within 0.4° a minute.
Every tuning value comes with what went wrong on either side of it. Stiffer than the default buzzed at 50 Hz, a shorter integral overshot by more than 90°, and a slower gyro rate delivered readings about 15 ms late and made the whole unit wobble. It’s a control-loop notebook you can borrow.
Credit: Christopher Pietsch (cpietsch) / License: MIT
github.com/cpietsch/can-do-gyro →STM32G431 + DRV8323 / Cycloidal reducer / CAN bus
KRC Actuator: measure the motor, then tune it
Koshiro Robot Creator posted the whole kit for a homemade robot joint: a brushless motor with a cycloidal reducer, a custom FOC driver board, firmware and Raspberry Pi host tools. The board, at revision 2.6, comes as EAGLE files with Gerbers, a BOM and placement files. It pairs an STM32G431 with a TI DRV8323 gate driver, six power MOSFETs, an MT6816 magnetic encoder and a CAN transceiver. The Pi talks to each joint over plain Linux SocketCAN. Its identify command spins the assembled joint once and measures resistance, inductance, the back-EMF and torque constants, inertia and friction, then suggests control gains. Other scripts calibrate the encoder and log winding resistance and estimated winding temperature while the motor heats up and cools down. Comments and help text are in Japanese, and the README says it plainly: provided as is, build at your own risk.
The host tool keeps its scar tissue in the help text. Until September, a hold or step command sent a target of 0 rad without checking where the joint was, so after continuous spinning it drove back from 33 rad away at full force. Now those commands re-zero first, and a latching e-stop halts every node on the bus.
Credit: Koshiro Robot Creator (KoshiroRobot) / License: MIT
github.com/KoshiroRobot/KRC-Actuator →Also on deck
Mural 2.0. Nik Ivanov’s wall plotter hangs from two belts pinned near the ceiling and climbs them on a pair of NEMA 17 pancake steppers. Version 2, merged Nov 11, moves to a FluidNC controller with TMC2209 drivers. Your SVG is scaled to fit and converted into simple moves before it’s uploaded to the bot. The repo documents its kinematic model, including how the bot tilts toward the middle near the edges, and why you only get the middle 60% of the width between the pins. One build note worth heeding: V2 wants a 16-tooth GT2 pulley, not V1’s 20-tooth.
Nik Ivanov / CC BY-NC 4.0 (non-commercial) / Source →
Tapeshnik. svofski is building a compact cassette data drive from scratch, with a brushless motor on each spindle under SimpleFOC on an RP2040-Zero, and no capstan. His notes already record that a gaming-mouse optical sensor can spot the tape leader but gives speed readings too erratic to steer by. On Nov 13 he added a photo of a motor ruined by a screw 1 mm too long, and a lesson from before it died: 9 V wasn’t enough to spin those motors properly, so the next driver board should run at 12 V or more. There’s a video series too.
svofski / No license file: ask before reusing / Source →
03Shop Class
Give your motor a runaway cutoff
A motor loop that behaves on the bench can still do something wild when the load disappears or the position reference is wrong. Two builds above ran into exactly that, and both wrote down the fix. Christopher Pietsch’s gimbal, held up by its top, had nothing to push against, and the motor spun the bottom up to thousands of degrees a second. Koshiro Robot Creator’s joint once raced back 33 radians to a stale zero.
Steps
- Record normal use first. Christopher logged his unit to flash and found that in normal use the rotor never turned more than 132° in any 0.2-second window, while free spins and runaways covered 670–1190°.
- Trip on distance over a short window, not on speed. His first try, a limit of 1000°/s held for 0.2 s, kept dipping under the line and only cut out after a full second. More than 180° in 0.2 s cuts cleanly.
- Make the restart deliberate. After a cutoff, his firmware waits for 2 seconds of standing still with under 10° of tilt, then holds whatever heading it has at that point.
- Know your zero before you command a position. The KRC host tools now re-zero before a hold or step and keep a latching stop for every node. And check what your driver does when commands stop: the RollerCAN keeps its last target, because its protocol has no timeout.
04Datasheet Decoder
ST LSM6DS3TR-C: read the temperature sensor first
The LSM6DS3TR-C is the 6-axis IMU on the XIAO STM32C5 in the gimbal above. Most of us check range and noise first. For a loop that integrates the gyro, start with drift instead. Christopher measured the gyro’s zero offset shifting by up to about 3°/s depending on whether the motor supply was on, and wandering with temperature. So his firmware reads the chip’s built-in temperature sensor and drives heater resistors next to the IMU to hold it at 40 °C. It calibrates right after power-on, and a standing-still check follows the offset as the chip warms up.
- Gyro range
- ±125 to ±2000 dps
- Accel range
- ±2 to ±16 g
- Supply
- 1.71–3.6 V
- Current
- 0.90 mA, both sensors, high-performance mode
- FIFO
- Up to 4 KB
- Package
- 2.5 × 3 mm LGA
Two reading tips from the build notes: the die temperature sits in registers 0x20/0x21 at 256 LSB per °C, with zero meaning 25 °C. And read the FIFO in one burst, every sample, because grabbing only the newest one each loop adds up to drift.
Product page (ST) → Build notes on the XIAO STM32C5 →05Bench
Sponsor — not part of the issueBench: sponsor
Subscribe