TimbreWorks · Progress update

ActiveRobot

From a shared embedded platform to a distributed biomimetic multi limb body

November 2026

ActiveRobot radial logo

The mission

A muscle that feels its own actuation, usage, condition and pain — and remembers it.

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

Strawbotics began with a motorless limb

“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

Eleven steps to a modular limb

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

A limb that works, and something to drive it

A single working limb

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.

A driver

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 straw limb with a bent knee, mounted at the end of a breadboard that carries its driver circuit

A single limb on the breadboard with its driver

Step 03

A reliable analog current loop

Schematic: DAC 30–500 mV into an MCP6001 op-amp driving an IRLZ44N gate, muscle wire on a 5–12 V supply, 1 ohm source resistor fed back to the op-amp, gate monitored on AIN0

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.

Scope trace: red triangular DAC ramp; blue op-amp output that rises slowly with the ramp, steps up near the peak and drops out at the bottom

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

A four-muscle limb, full movement

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

A rectangular body for four limbs

05

Rectangular body

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.

Model of the rectangular-body quadruped: a ladder-frame body with a limb at each corner, standing in a crab-like stance Model of the rectangular-body quadruped: a ladder-frame body with a limb at each corner, standing in a crab-like stance

ActiveRobot build log; quadruped model in a stance

8

Step 06

The first working analog body board

  • Four limb blocks, each running four analog current loops for the muscles for 16 controllers in parallel
  • External expanded DAC setpoints and ADC read-back on I²C, per limb
  • Nano R4 carrier with an IMU module
  • v1 ordered, built and working, there starts a new industry
  • AI assisted design and layout
  • Online small board assembly house

Lessons queued for v2

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.

Assembled Strawbot 4×2 board: four limb blocks of MCP6002 op-amps and drivers around an IMU module, silkscreened ‘Strawbot 4x2, an ActiveRobot from Timbreworks’

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

Four limbs built, and a shared segment broke it

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.

Limb segment assembly before assembly: straw segments joined at a shared central segment, with many fine wires running to it

Before assembly

The same assembly after failure, with a loose magnet wire hanging free of its muscle wire at the shared segment

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

Modular limbs, still one central board

  • With the physical limb as an attachable module, a hexapod body supports four or six limbs
  • Every muscle still driven from a single central board
  • 24 muscle channels: six limbs × four, in three current-sensed groups
  • Nano R4 carrier, 74HC595 gate chain for time sharing resources, IMU at the centre
  • Hexagonal frame with legs at 60°; octagonal board, slightly modified, as 45° angles route more easily and leave natural places for a head and tail

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 of tube segments on a cutting mat, with one orange limb fitted at a vertex

Hexapod body frame, one limb modelled

Central board block layout with six limb ports L1 to L6, each a 4-channel block with five wire holes (W1 to W4 and +10 V), grouped A, B and C with a 595 shift register and current sense per group; IMU at the top centre, Nano R4 underneath, USB-C at the top, power input at lower left

Central board layout: six 4-channel limb ports in three groups

Step 08 · One platform, many forms

One body: quadruped, hexapod or animal

Three forms of the same octagonal body with a 6DOF sensor at its centre. Quadruped form: four limbs on the diagonal faces, left and right, front and back. Hexapod form: the same four plus left-centre and right-centre limbs. Animal form: the six limbs plus a head at the front and a tail at the back.

A better quadruped

Four limbs on the diagonal faces: left and right, front and back.

Becomes a hexapod

Add a left and a right centre limb. Same body, same board.

An animal form

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

Limb Bus, 2 wires from body to limb segments

Block diagram. Top: Body, Planar Shoulder and Knee joined in a chain by Limb Bus links. Bottom: the body's High Power, Current Sense and Half Duplex blocks feed a PHY onto the Limb Bus; each joint has a PHY in, Switch, Muscle Driver, Local Power and Half Duplex blocks, and a PHY out to the next Limb Bus.

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

Modular segments open new body plans

Two chains on the limb bus. Top: Body, Rotating Shoulder, Knee and Foot, each joined by a Limb Bus link. Bottom: Snake, then segment 1, segment i and segment N, each joined by a Limb Bus link.

A rotating shoulder or hip

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.

A foot or a hand

Added to the end of a limb for additional contact control: one more node on the same limb bus.

A snake

Multiple shoulders cascaded, segment 1 to segment N, to embellish the snake form.

Additional body plans on the limb bus

14

Step 09

Same control loop, digital parts

Step 03 schematic: DAC 30–500 mV into an MCP6001 op-amp driving an IRLZ44N gate, muscle wire on a 5–12 V supply, 1 ohm source resistor fed back to the op-amp

STEP 03 · LINEAR ANALOG LOOP

Step 09 schematic: 20 V supply to the muscle wire; DAC12 setpoint and amplified feedback compared against a DAC8 ramp; a 74HCT14 Schmitt trigger drives an IRLZ44N with a 0.5 ohm sense resistor; voltage taps P101 to P103

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

Phase transition detection

  • The green linear noisy line is the voltage on the sense resistor. The noise is from the PWM. Every PWM pulse, Vbus, Vfet and Vsense are read. The blue line is the calculated value of:
    • (Vbus - Vfet)/(Vsense/Rsense)
  • It is averaged with the surrounding values to reduce noise. Just as in the analog controller, there is a sigmoidal shape with a useable linear region that can be found and used for calibration.
image.png

Step 09

16

Step 10

Muscle safety

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.

LayerProtection
FirmwareOn-time clamped at 4.0 ms per pulse
GateCapacitor-coupled gate turns the FET off after ~5 ms
ChannelGate guard stops a stuck output holding a FET on
WatchdogKills drive on a lost heartbeat, independent of I²C
Bus frameBad or missing frame: muscles off for that frame
SupplyVIN pulse puts nodes into listen mode

Sources: FIRMWARE_NOTES.md, hex_ctrl README, Strawbot v2 list, protocol §6

17

Step 11 · Modular bus

Two wires per limb carry power and comms

~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.

  • Every limb segment has its own bus board inside it, driving two muscles
  • A limb can connect any number of segments over the same two wires
  • Every limb routes back to one central controller (up to six)
  • Commands go down as UART Tx bits by voltage pulses; nodes answer as current pulses which become UART Rx bits
  • Comms run at 100Kbaud with CRC and retries for resiliency

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

Two early boards, designed in KiCad

3D render of limb_controller: six limb connectors around the edges, Nano R4 header pads and logic in the centre

limb_controller r07

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.

3D render of sma_node: a narrow strip board with bus pads at each end, the MCU in the middle and FETs either side

sma_node

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

The protocol is specified to the byte

FRAMES

PING · CALIBRATE · SET

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

Off unless told

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

Reach every node

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

Volts down the bus, current back up

Schematic. Controller: UART Tx drives a BS170 that pulls the gate of a BS250 high-side switch (10k pull-up, 10 V zener clamp, 4.7k gate resistor) onto the 20 V limb bus; a 1 ohm shunt feeds an INA181A1 whose output goes to the ADC for current sense and to a quarter LM339 comparator, with adjustable threshold and hysteresis, into UART Rx. Node: a 120k/22k divider into sync detect (edge drop sense) and UART Rx, UART Tx driving a 2N3904 current sink through 1.3k, local power, muscle driver, and a B

Downstream

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.

Upstream

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.

Pass-through

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

Two switches shape the bus

High side switch plus load: Q3 from D11 drives a BS250 P-FET with 10k pull-up and 10 V zener; Q4 switches a 4.7k load for coms (1) or muscle (0); 100k gate pull-downs Node high side switch: Q6 drives a BS250 P-FET with 10k pull-up and 10 V zener; 1 passes, 0 blocks; 100k gate pull-down

Bus driver · controller

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.

Coms or muscle

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.

Pass switch · node

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

Reflashing a node takes about half a second

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

The full node app fits on the limb micro

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.

Failed

Its flash programs at ~11 ms/KiB, slower than the 10.4 ms/KiB wire. A 16 KiB stream lapped the receive ring.

Fixed in the protocol

The node states its window and pace; every chunk is offset-addressed and safe to resend.

Measured

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

Where the bench stands

STAGE 1 · DONE

UART loopback

Controller and Node on its own; TX/RX verified driver and peripheral settings.

STAGE 2 · IN PROGRESS

Current-pulse link

This will test the controller flipping the node between comms and muscles.

STAGE 3 · CHECKPOINT

Frame + CRC

Protocol-only round trip passed on the real Nano R4 on 2 Nov.

STAGE 4 · WAITING

Discovery

Needs a second node board on the bench.

Breadboard: a Nano R4 controller on the left and a Nucleo-G431 node on the right, joined by the bus driver, current-sense and comparator circuit built from discrete parts between them

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

Immediate Agenda

•  validate circuit for body and limb node

•  lay out and fabricate boards

•  construct distributed quadruped

26

Underneath · Software platform

TimbreOS, one shared layer, nine board ports

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

A command line in every node

Testing is typing

Bench tests are CLI words: limb-ping, limb-loopback, limb-selftest, limb-fw-size.

Automated

A pytest harness drives the same CLI over serial or a host build: 105 tests, a transcript kept for every run.

Remote, to any segment

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

Time · Event · Action: the backbone

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

Muscle-level software

Per-wire self-calibration

wirecal learns each SMA wire, waits for a settle tail before trusting a transition, and saves calibration without blocking.

Muscle drive

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.

Motion and model

Quadruped gaits and posture; a robot body model served to the browser at /model with live /events.

Diagnostics

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

Gait Lab: the quadruped in a browser

Muscle-Wire Gait Lab running a crawl: side view of the body and legs over flat ground, top view of the support polygon, body readouts for speed, roll, pitch and stability, and controls for gait, speed, terrain roughness and effort

Gaits

Crawl, trot, pace and bound, run by a direct port of gait.c: the same phase clock, lift-off and touchdown rules.

Terrain

Rough ground, IMU levelling and foot-contact sensing. Past 45° of tilt it tips over and relaxes every muscle.

Power

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

From one bench node to a walking limb

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

Updates to follow...