Skip to main content

CAN GPIO board

CAN GPIO board Rev. A-2

The smallest way to get your own hardware onto the FRAME bus. The board is a carrier for a XIAO ESP32-S3 with the same power and CAN front end as the stepper backpack, and it breaks the remaining pins out to small jacks. In the FRAME it reads the emergency-stop state and the objective collision sensor. It is also the board to start from for a new satellite.

Current revisionRev. A-2, 2026-04-06
ControllerSeeed XIAO ESP32-S3
Supply12 V from the bus, on-board buck to 5 V (TPS54302), 3.3 V from the XIAO (max. 700 mA)
FirmwareUC2_canopen_slave_gpio, in the web flasher as "GPIO / E-stop satellite"
CAN node60
SourcesKiCad project · schematic PDF

Connectors​

Top view with silkscreen

RefTypePin 1 → 3 (4)XIAO pin
J103JST XH 4GND, +12 V, CAN_H, CAN_Lbus
J101JST ZH 3GPIO1, GND, 5 VD0
J102JST ZH 3GPIO4, GND, 5 VD3
J104JST ZH 3GPIO8, GND, 3.3 VD9
J108JST ZH 3GPIO9, GND, 3.3 VD10
J106JST SH 4 (STEMMA QT)GND, 3.3 V, SDA, SCLD4, D5

The ZH jacks have the pinout of the endstop jack on the stepper backpack (signal, GND, supply), so the same cables fit. Two of them supply 5 V and two 3.3 V. The signal level is 3.3 V on all of them. The XIAO pins are not 5 V tolerant.

The I2C lines have 2.2 kΩ pull-ups on the board.

XIAO pinout​

XIAO pinESP32-S3 GPIOOn the boardIn the firmware
D01J101digital output 1
D12CAN RXCAN RX
D23CAN TXCAN TX
D34J102digital output 2
D45I2C SDA, J106I2C bridge
D56I2C SCL, J106I2C bridge
D643header onlyfree (UART0 TX)
D744header onlyfree (UART0 RX)
D87header onlydigital input 1 (E-stop)
D98J104free
D109J108collision sensor, ADC

Solder jumpers​

JumperWhen closed
JP502120 Ω CAN termination. Close only at a physical end of the bus.
JP503CAN activity LED
JP501puts the CAN transceiver into standby (listen only)
JP101bridges the 12 V and 5 V nets, to run the board from 5 V. Never connect 12 V with this closed.

Firmware​

EnvUC2_canopen_slave_gpio
Pin mapmain/config/UC2_canopen_slave_gpio/PinConfig.h
BusCANopen, 500 kbit/s, node 60
USBserial JSON over USB-CDC

Flash it as described in Flashing the firmware. From the master, address the board with "node":60:

{"task":"/digitalout_act","node":60,"digitaloutid":1,"digitaloutval":1}
{"task":"/gpio_get","node":60}
{"task":"/i2c_act","node":60,"addr":68,"write":[36,0],"read":6,"delay":10,"stop":1}

/gpio_get returns the collision detector state (raw and filtered ADC value, threshold, trip flag) and the E-stop input. The I2C bridge forwards up to 35 bytes written and 40 bytes read per call, which is enough to talk to most STEMMA QT sensors from ImSwitch without writing firmware. All fields: serial command reference.

Using it for your own satellite​

Copy main/config/UC2_canopen_slave_gpio, give the env a name and a node ID that is not in the table of default IDs, and enable the controllers you need. Add a CAN satellite walks through the bus side.


Boards: shop.openuc2.com. Questions: openuc2.discourse.group.