Skip to main content

Stepper backpack

Stepper backpack Rev. E

One board per motor. It screws to the back of a NEMA 11 stepper, takes 12 V and CAN from a single 4-pin cable and does the rest locally: a TMC2209 drives the coils, a XIAO ESP32-S3 generates the steps, runs homing and reports the position back to the master. The FRAME uses four of them (A, X, Y, Z).

Current revisionRev. E, 2026-10-29. Rev. C and D are the ones in FRAMEs shipped so far; the differences are listed below.
ControllerSeeed XIAO ESP32-S3, plugged into two 7-pin headers
DriverTMC2209, UART-configured, 0.2 Ω sense resistors
Supply12 V from the bus. An on-board buck (TPS54302) makes 5 V, the XIAO makes 3.3 V
FirmwareUC2_canopen_slave_motor, in the web flasher as "Motor satellite"
CAN node11 after flashing. Convention: 10 = A, 11 = X, 12 = Y, 13 = Z
SourcesKiCad project · schematic PDF

Mounting​

  • Three M2.5 screws with roughly 2.5 mm standoffs between motor and board. The board stays inside the outline of the motor.
  • Up to Rev. D the encoder chip (AS5600) sits on the board and reads a diametric magnet glued to the end of the motor shaft. The gap matters: keep to the standoff length.
  • Plug the XIAO in with its USB port pointing to the edge marked "XIAO USB here".

An early revision with the XIAO plugged in

An early revision with the XIAO plugged in. Up to Rev. D the motor coils go to a screw terminal, Rev. E has a JST PH jack.

Connectors​

Top view with silkscreen

Ref (Rev. E)TypePin 1 → nUse
J107JST XH 4GND, +12 V, CAN_H, CAN_Lbus in. There is only one jack: daisy-chain through a connector hub
J102JST PH 4OA1, OA2, OB1, OB2motor coils A and B
J1033-pin terminalsignal, GND, 3.3 Vendstop 1
J1063-pin terminalsignal, GND, 3.3 Vendstop 2
J101JST ZH 4GND, 3.3 V, A, Bexternal encoder (Rev. E)

FRAME motor cable colours on J102: blue, red, green, black.

Endstops are expected to pull the signal to GND when triggered. Optical endstops work, 3.3 V is on the jack.

XIAO pinout​

XIAO pinESP32-S3 GPIORev. C / DRev. E
D01endstopendstop 1
D12CAN RXCAN RX
D23CAN TXCAN TX
D34TMC2209 DIAG (StallGuard)endstop 2
D45I2C SDA to AS5600encoder A
D56I2C SCL to AS5600encoder B
D643UART to TMC2209UART to TMC2209
D744UART from TMC2209UART from TMC2209
D87DIRDIR
D98STEPSTEP
D109driver enabledriver enable

The two UART lines are joined through a resistor into the single PDN_UART pin of the TMC2209.

Motor current​

The sense resistors are 0.2 Ω. With that, the vsense bit of the TMC2209 selects the range:

vsensePeakRMS
01.4 A1.0 A
10.8 A0.55 A

The actual run and hold current is set in firmware within that range (/tmc_act, see serial commands).

Solder jumpers​

All are open when the board leaves the factory. Reference designators changed between revisions, so check the silkscreen of your board.

FunctionRev. C / DRev. E
120 Ω CAN termination. Close only on the board at the physical end of the bus.JP502JP401
CAN activity LED, lights while the bus is dominantJP503JP402
Bridge the 12 V and 5 V nets, to run the board from 5 V. Never connect 12 V with this closed.JP101JP101

Rev. C can be converted back to the old 5 V + I2C bus. The procedure is in the repository README. Nothing current uses that bus any more.

Firmware​

EnvUC2_canopen_slave_motor (FastAccelStepper). UC2_canopen_slave_accelmotor is the same board with the AccelStepper back-end.
Pin mapmain/config/UC2_canopen_slave_motor/PinConfig.h
BusCANopen, 500 kbit/s
USBserial JSON over USB-CDC, works without a bus for bench tests

The pin map in the firmware matches Rev. C / D: StallGuard DIAG on D3, one endstop on D0. On Rev. E, D3 is the second endstop and D4 / D5 carry the encoder's A / B signals, so tmc_pin_diag and the encoder pins have to be changed in PinConfig.h before building for that revision.

Flash it as described in Flashing the firmware, then give the board its node ID. How to wire it into a running system: Add a CAN satellite.

A quick test over USB, without a master:

{"task":"/motor_act","motor":{"steppers":[{"stepperid":1,"position":1000,"speed":2000,"isabs":0}]}}

Revisions​

Rev.DateChanges
C2025-0812 V + CAN on the XH jack instead of 5 V + I2C
D2025-08production revision of the first FRAME series
E2026-10flatter and larger outline. No encoder chip on board, a ZH jack for an external A/B encoder instead. Two endstop inputs on separate GPIOs, the DIAG line to the XIAO is gone. Smaller sense resistors.

Boards and complete motor assemblies: shop.openuc2.com. Questions: openuc2.discourse.group.