TimbreWorks · Progress update
From a shared embedded platform to a distributed biomimetic multi limb body
November 2026
The mission
Sensing, filtering, remembering and learning sit beside every muscle-wire actuator, so balance and motion come from many small, self-aware parts rather than one central loop.
Paraphrased from the ActiveRobot manifesto and mission statement (README)
2
Origin
“A Motorless Artificial Limb and its Control Architecture”
R. Chapman, W. Pedrycz and S. Rae. IEEE Canadian Conference on Electrical and Computer Engineering (CCECE ’99), pp. 1734–1739. doi:10.1109/CCECE.1999.804979
That paper is the origin of the Strawbotics form that ActiveRobot builds upon as required technologies develop. We explore architectures with more computing power.
1999
Source: IEEE Xplore, CCECE ’99 proceedings
3
The path so far
01
Search for a working single limb
02
Search for a driver
03
Create a reliable analog driver
04
Test a four-muscle limb
05
Decide on a rectangular body
06
First working analog driver board
07
Build four limbs — fail on a shared limb segment
08
Hexapod body: modular limbs, one central board
09
Digital designs on the same analog loop
10
Success, burnt muscles, safety features
11 · NOW
Two wires per limb, a bus board in every segment
Chapters: limb and driver · bodies · analog to digital · modular bus
4
Build photo (limb_board/Limb Assembly)
5
Steps 01–02
Shape-memory muscle wires run through a lower and an upper segment of a straw segmented to bend when activated. Small diameter straws were tried but the joints were unstable and prone to twisting. A stronger joint was required with antagonistic muscles for true biomimetic motion.
SMA wires are variable resistive loads drawing tens to hundreds of milliamps. The current is inversely proportional to the length. The driver has to hold a requested current. The wire can contract up to 8%. With a non-linear transfer curve and hysteresis, it is difficult to build a proper controller to partially engage the muscle wire.
A single limb on the breadboard with its driver
Step 03
An MCP6001 holds the 1 Ω source resistor at the DAC voltage, so 30–500 mV sets 30–500 mA through the muscle wire on a 5–12 V supply. Very stable control with a knowable transfer curve to calibrate from. While in the linear region, the FET is disipaiting wasted energy as heat.
Red: DAC setpoint ramp. Blue: AIN0, op-amp output driving the gate. It tracks the setpoint, steps to full drive near the top and drops out at the bottom. Very easy to pick off the linear zone where we want to operate the muscle in a linear analog fashion. Before and after the linear region the muscle is not contracting. Adding more current only leads to wasted heat and possible wire rupture.
Linear current regulator, first analog driver; scope capture from the bench
6
Step 04
One limb, two antagonistic joints, driven by four separately controlled analog current loops through a full range of movement.
Bench video, four-muscle limb on the analog driver
7
Step 05
05
Four limbs, one at each corner opposing crab like. A simple quadruped, one leg moving, 3 supporting. Planar shoulder movement allows movement in two directions with the hinged knee. Front and back limbs share and integrate with the front and back body segments. All eight shoulder muscles tie in to that member. Six wires from each limb are routed in the exoskeleton to the centre where they channel out of a straw and connect to the body board.
ActiveRobot build log; quadruped model in a stance
8
Step 06
Nano R4 footprint is mirrored (v1 runs with a workaround); standardize all four limbs on one layout; put the IMU sensor on the board. Use a thinner board.
Strawbot 4×2 v1, assembled. Micro is underboard due to layout error but otherwise functional. The Arduino 3DOF sensor can be seen as a daughterboard mounted in the middle.
Source: Strawbot 4×2 v1 board; Strawbot_v2_upgrades.md
9
Step 07 · Failed
Too many wires was the root cause. Each muscle pair has three wires; a limb carries two pairs, and the shared segment adds a pair of muscle wires which need to be threaded and anchored. Eight total wires from one limb and eight from another met in that segment, and a muscle-wire anchor cable was lost while 95% assembled.
16
→
2
wires through one shared segment, versus two per limb now
The fix: rework the design to reduce the wiring to minimum of two, and keep limbs separate and modular.
Before assembly
After failure: a loose magnet wire, caught in the shared segment and pulled off its muscle wire
ActiveRobot build log; build photos
10
Source: central board layout drawing; build photo
11
Step 08
Board limited by wiring: each limb segment adds 3 wires back to the body. A limb with two segments brings back 6 wires.
Hexapod body frame, one limb modelled
Central board layout: six 4-channel limb ports in three groups
Step 08 · One platform, many forms
Four limbs on the diagonal faces: left and right, front and back.
Add a left and a right centre limb. Same body, same board.
Add a head at the front and a tail at the back, with the 6DOF sensor still at the centre.
Quadruped, hexapod and animal forms of the modular body
12
Step 08 · One platform, many forms
Change from a central controller to a distributed control. Power and comms share the Limb Bus. Every limb segment is the same block: PHY in feeds, switch, muscle driver, local power and half-duplex comms, and Switch feeds PHY out to the next joint. The Limb Bus Protocol is used to communicate between the body and limb segments. Only two wires per limb and the control loops have been pushed out to the limb segments where each limb segment has a node that controls two antagonistic muscle wires. The limb segments are connected to planar shoulder or knee joints.
Limb bus block diagram: body, planar shoulder, knee
13
Step 08 · One platform, many forms
Two muscle pairs at 90 degrees to each other through the shoulder U joint, so the shoulder moves in a cone instead of just a plane.
Added to the end of a limb for additional contact control: one more node on the same limb bus.
Multiple shoulders cascaded, segment 1 to segment N, to embellish the snake form.
Additional body plans on the limb bus
14
Step 09
STEP 03 · LINEAR ANALOG LOOP
STEP 09 · DIGITIZED LOOP
1 · Same feedback loop. The analog gate driver becomes a digital one; the loop is unchanged. FET dissipates no power.
2 · Fully on or off. The DAC8 ramp and comparator switch the FET hard; duty cycle follows the feedback.
3 · Burn-out guard. Blocking capacitor 100nf, pull-up 47K and Schmitt trigger stop the FET staying on and burning out muscles.
4 · Wider range. Amplification in the analog control loop widens the range of settings.
5 · Voltage monitors. Added taps characterize the drive response.
6 · Higher voltage. More power reaches the muscle in a shorter time. Smart scheduling can minimize overlap of muscle pulsing.
Step 03 analog loop beside the step 09 digitized loop
15
Step 09
16
Step 10
With digital control and multiple muscle wires sharing a single supply, the voltage was doubled. This quickly led to learning about how every failure can inspire a layer of protection. The gate guard was added to physically prevent wire loss. Muscle wires can be replaced in-situ but it is better not to break them.
| Layer | Protection |
|---|---|
| Firmware | On-time clamped at 4.0 ms per pulse |
| Gate | Capacitor-coupled gate turns the FET off after ~5 ms |
| Channel | Gate guard stops a stuck output holding a FET on |
| Watchdog | Kills drive on a lost heartbeat, independent of I²C |
| Bus frame | Bad or missing frame: muscles off for that frame |
| Supply | VIN pulse puts nodes into listen mode |
Sources: FIRMWARE_NOTES.md, hex_ctrl README, Strawbot v2 list, protocol §6
17
Step 11 · Modular bus
~3 ms
~17 ms power window — muscle current
One 20 ms frame: quiet signalling window first, then power. Data and muscle current never share the bus.
Central controller
2 wires · power + comms
Segment 1 · node board
Segment 2 · node board
Segment n …
Source: SMA_Limb_Bus_Architecture §1–3, §13–15
18
Step 11 · The two boards
60 × 58 mm, 0.8 mm thick, 4 layers, routed. Nano R4 host, six limb ports, Kelvin-sensed 50 mΩ shunts with INA181 amplifiers, IMU at centre.
≈ 5 g bare, against ≈ 18 g for the 1.6 mm, 70 × 88 mm analog board: about 3½× lighter.
Two muscle wires per node with a pass switch to the next. Capacitor-coupled gate shut-off (~5 ms) backs up firmware; through-hole bus pads for 24–26 AWG. Above MCU is an 8 pin PIC. Eventual MCU: STM32G431.
≈ 0.8 g populated on a 35.5 × 9 mm, 0.8 mm board. With 10 cm of bus wire ≈ 1.1 g, so a 12-segment limb’s electronics come to about 13.2 g. Add body for a total of 18.2 g or about the same overall weight but with two extra limbs and 24 less wires.
Source: limb_board/limb_controller and sma_node git logs, FIRMWARE_NOTES.md
19
Step 11 · Limb-bus protocol
FRAMES
CRC-checked frames on a 20 ms cadence. Per-limb discovery at startup maps which nodes are present, working or faulty, and hands the result to the topology layer.
FAIL-SAFE
On-time clamped at 4.0 ms, backed by the hardware gate timeout. A bad or missing frame turns muscles off for that frame only. VIN-loss is used as a sync signal which puts all nodes in listen mode.
MAINTENANCE
A bus-mode session tunnels a node’s CLI to the host and passes firmware straight through — no separate bootloader on the node. Firmware updates over the Limb Bus.
Source: SMA_Limb_Bus_Protocol.md §2–8 (30 Oct – 5 Nov)
20
Step 11 · Physical layer
The controller’s UART TX switches the 20 V limb bus through a high-side P-FET. The node reads it through a 120k/22k divider, with sync detect on the edge drop.
The node’s TX sinks current through 1.3 kΩ. A 1 Ω shunt, INA181 and LM339 turn those pulses back into bits; the INA183 also feeds the ADC for current sense.
Each node takes local power and drives its muscles from the bus; its own switch passes the bus in broadcast communication mode or muscle mode.
Breadboard schematic, controller (left) and node (right)
21
Step 11 · Physical layer
UART Tx drives Q1, which pulls the Q2 gate down and puts Vhi on the bus. A 10 V zener keeps the gate safe at any supply.
In coms mode Q4 adds a 4.7 kΩ load so the bus falls cleanly to 0 V between bits; in muscle mode it is off.
The same circuit on every node: 1 passes the bus to the next node, 0 blocks it.
Breadboard schematics: controller high-side switch + load; node high-side switch
22
Step 11 · Firmware update over the bus
0.5 s
In a bench test to push limits to update the latest node image, 39,420 bytes were sent error free at 1 Mbaud with the slot pre-erased.
All limbs run in parallel, so one broadcast can reflash every node in the whole body at once: the same 0.5 s for one node or all of them.
Download
Verify
Update
Clear
The image lands in a spare slot, its CRC is checked, and the boot stub copies it in on reset. The node then erases the spare slot in the background, ready for next time, so no erase are needed during the download.
1 KiB TEST IMAGE, TOTAL TIME
First measurement — 1243 ms
Image slot pre-erased in the background — 256 ms
Metadata page pre-erased too — 66 ms
Source: NucleoG431.bin, 6 Nov build; Firmware_Update.md §9.1–9.2, §9.16 (bench)
23
Step 11 · The real node MCU
Flash — 38.5 of 60 KiB (64%)
RAM — 26.0 of 32 KB (79%)
TimbreOS scheduler, CLI, limb bus, update receiver and diagnostics, built without float support.
Its flash programs at ~11 ms/KiB, slower than the 10.4 ms/KiB wire. A 16 KiB stream lapped the receive ring.
The node states its window and pace; every chunk is offset-addressed and safe to resend.
36 KiB in 463 ms (77 KiB/s) with the slot pre-erased; 16 KiB that failed before now takes 420 ms.
Source: SMA_Limb_Bus_Firmware_Update.md §9.15–9.16; protocol §8.5 (3–4 Nov)
24
Step 11 · Bench bring-up
STAGE 1 · DONE
Controller and Node on its own; TX/RX verified driver and peripheral settings.
STAGE 2 · IN PROGRESS
This will test the controller flipping the node between comms and muscles.
STAGE 3 · CHECKPOINT
Protocol-only round trip passed on the real Nano R4 on 2 Nov.
STAGE 4 · WAITING
Needs a second node board on the bench.
Nano R4 controller (left) talking to a Nucleo-G431 node (right) over the power bus.
Verify the circuit on the breadboard before fabricating boards.
Source: bench_bringup/BRINGUP_PLAN.md; git log 31 Oct – 5 Nov
25
• validate circuit for body and limb node
• lay out and fabricate boards
• construct distributed quadruped
26
Underneath · Software platform
BOARD PORTS — pin maps, HAL, drivers
Discovery F4 · Nucleo-F411 · Nucleo-G431 · P-Nucleo · Tiva · MCXA · Nano R4 · G341 · Nano RP2040
ROBOT — board-agnostic, composed at start-up
net NTP, Telnet, HTTP, web · io limb bus, ADC/DAC, IMU · limbs muscle, wirecal, gait, posture · storage fs, calib · diagnostics canary, post-mortem
TIMBREOS — event-driven cooperative scheduler
Action queue, timeout events, CLI, printers; automated test harness over the serial link
Connect over Ethernet, USB or PPP-over-serial; the web interface gives a command line, live line graphs and a 3D body model.
Source: README.md, Robot/README.md
27
Underneath · CLI and TimbreOS
Bench tests are CLI words: limb-ping, limb-loopback, limb-selftest, limb-fw-size.
A pytest harness drives the same CLI over serial or a host build: 105 tests, a transcript kept for every run.
Maintenance mode tunnels a node’s CLI through the body over console or telnet. The body is a dumb pipe; each node runs its own commands.
TIMBREOS · TEA
Running should not be waiting. Waiting should not be running. Actions execute sequentially.
Events start short actions on one queue — no threads, no locks, no heap. The same small OS and CLI run on the controller and on a 1 cm node, so every board is the same kind of machine. Nothing waits. Actions are triggered by events.
Source: TimbreOS/AutomatedTest; protocol §8.3; Dox/ttbook.md
28
Underneath · Software platform
wirecal learns each SMA wire, waits for a settle tail before trusting a transition, and saves calibration without blocking.
Each segment node drives its two antagonistic muscles with the digitized loop, timing pulses from the frame break using the duty value sent each 20 ms frame. The controller senses limb current through the INA181 and ADC.
Quadruped gaits and posture; a robot body model served to the browser at /model with live /events.
Four-state stack canary with high-water mark; a post-mortem recorder that survives reset to catch silent hangs.
Source: Robot/limbs, Robot/io, Robot/diagnostics
29
Underneath · Simulation
Crawl, trot, pace and bound, run by a direct port of gait.c: the same phase clock, lift-off and touchdown rules.
Rough ground, IMU levelling and foot-contact sensing. Past 45° of tilt it tips over and relaxes every muscle.
Muscle heat and effort, and how much of the 4096-count PWM frame each step uses; windows never overlap.
board-NanoR4/Docs/gait-lab.html, running its demo
30
Try the Gait Lab ↗What comes next
01
Add the digital comparator stage on the controller for the upstream link
02
Finish Stage 2: measure the real upstream baud rate and timing constants
03
Fix the bus voltage, which several circuits still depend on
04
Get a second node on the bench and run discovery (Stage 4)
05
Build the independent watchdog that kills drive on a lost heartbeat
06
Fabricate sma_node and limb_controller and drive real muscle wires on the bus
Source: protocol §9 open items; BRINGUP_PLAN.md; Strawbot v2 list
31