Skip to main content

Standalone board

Standalone board Rev. H

The controller for the Discovery boxes and for any small setup that does not need a Raspberry Pi. One board, one 12 V supply, one USB cable: an ESP32 drives up to four stepper motors, three high-power LEDs, a laser, a NeoPixel matrix and reads three endstops. Since Rev. G it also has the FRAME's 12 V + CAN jack, so the same satellites can be attached to it. In the KiCad repository the project is called mainboard. Firmware and shop call the current generation "v4".

Current revisionRev. H, 2026-06-29. ESP32-WROOM-32 soldered on the board, stepper drivers configured over UART.
PreviousRev. G: ESP32 DevKitC plugged into headers, microstepping fixed by solder bridges. Older generations: v3, v2.
ControllerESP32-WROOM-32, USB-C through a CP2102
Motors4 slots for BigTreeTech TMC2209 modules (A, X, Y, Z)
Light3 × ZXLD1360 constant-current drivers up to 800 mA, laser header with 4 PWM lines, NeoPixel header
Supply12 V DC barrel jack
FirmwareUC2_canopen_standalone_v4 or UC2_4, see Firmware
SourcesKiCad project · schematic PDF

The quickest reference is the board itself: every jack is labelled on the silkscreen. The most complete one is the schematic, which is full of the designer's notes.

Top view with silkscreen

ESP32 pinout​

GPIOFunctionGoes to
0Z stepdriver slot Z
1, 3TXD0, RXD0CP2102 (USB, flashing)
2PWM 3pin header, amplified header, laser header, LED driver 3
4PWM 2pin header, amplified header, laser header, LED driver 2
5SPI CSpin header
12PWM 1pin header, amplified header, laser header, LED driver 1
13LED 1NeoPixel header
14Y stepdriver slot Y
15A stepdriver slot A
16X stepdriver slot X
17laser 4laser header
18, 19, 23SPI SCK, MISO, MOSIpin header
21, 22I2C SDA, SCLI/O expander, STEMMA jacks, pin header
25DAC 1pin header
26UART to the stepper drivers (or DAC 2)all four driver slots
27I/O expander interrupt
32CAN TXCAN transceiver, 12 V + CAN jack
33CAN RXCAN transceiver, 12 V + CAN jack
34UART from the stepper driversall four driver slots
35free, input onlytest point

GPIO 26 can be either the UART to the drivers or the second DAC, not both. If you need DAC 2, the driver slots have to be converted back to fixed microstepping, see below.

I/O expander​

Slow signals sit on an XL9535 port expander at I2C address 0x27. The firmware handles it, so in commands they behave like ordinary pins.

Expander pinFunction
P00enable for all stepper drivers. Low switches the drivers off: saves power, loses the microstep position.
P01, P02, P03, P04DIR for X, Y, Z, A
P05, P06, P07endstop X, Y, Z
P10 to P17unused, on 2.54 mm solder holes

SDA and SCL have 4.7 kΩ pull-ups to 3.3 V on the board. Do not add a second set on a module you connect.

Stepper drivers​

The slots are made for BigTreeTech TMC2209 modules. On Rev. H each driver is connected to the ESP32 by UART. Microstepping, current and StallGuard are set by the firmware at boot. The four drivers share the UART and are told apart by an address that is hard-wired per slot:

UART addressAxisSlot
0Anext to the 12 V input jack
1X
2Y
3Zfarthest from the input jack

Motor jacks are JST PH 4 on Rev. H (2.54 mm pin headers before):

Pin1234
Driver outputA1A2B1B2
FRAME cableblueredgreenblack

One coil is swapped compared to Rev. G, so a motor may turn the other way after a board swap. Flip the direction in the firmware settings.

Going back to fixed microstepping​

Needed for other driver modules such as a plain A4988, or if GPIO 26 has to be DAC 2. Each slot can be converted on its own. For slot A: break R201 (0 Ω), bridge JP201, JP202 and JP203, break R108 and R109. The other slots have the same parts under their own numbers. The instructions are printed on the stepper-driver sheet of the schematic.

Star-LED drivers​

PWM 1 to 3 each feed a ZXLD1360 buck driver that runs one high-power LED at constant current. This is the same circuit as on the USB star-LED driver, supplied from 12 V here, so two LEDs in series work as well.

The maximum current of each channel is set with a 4-way DIP switch. The switches add up:

SwitchAdds
1426.6 mA
2213.3 mA
3106.6 mA
453.3 mA

The ESP32 dims below that maximum with PWM. Use a PWM frequency between 10 kHz and 1 MHz: the driver low-pass filters the signal into a DC level, so the LED does not flicker and cameras see no banding. The price is a lower limit. Below about 10 % the LED becomes unstable and then goes off. If you need less light, lower the DIP switch setting rather than the duty cycle.

Laser header​

JST XH 6: 12 V on pin 1, GND on pin 2, then the four signals (PWM 1 to 3 and laser 4), each behind a buffer that survives a short to ground. The pin order matches the laser modules we ship, so a straight 6-pin cable connects them. Check the engraving on the laser housing if you use another make.

Endstops​

X, Y and Z each have an XH 3 and a ZH 3 jack in parallel:

Pin123
signalGND3.3 V

An endstop that is not triggered connects signal to 3.3 V. Triggered, it connects signal to GND, and the red LED next to the jack lights. The expander can raise its interrupt line (GPIO 27) on the edge, which makes homing react quickly.

STEMMA and STEMMA QT​

JST PH 4 and JST SH 4 with 3.3 V and I2C in the Adafruit pinout. They have their own 12 V to 3.3 V regulator (200 mA continuous, 1 A peak). The cables we sell do not follow Adafruit's colour code, but the pins are in the right place.

CAN​

A JST XH 4 jack with the FRAME pinout (GND, +12 V, CAN_H, CAN_L) and an SN65HVD230 transceiver on GPIO 32 / 33. With the hybrid firmware the board is the CAN master: its own motors and lasers stay local, an illumination board (node 30) and a galvo interface (node 40) are reached over the bus. It can also be turned into a four-axis satellite of a FRAME: Standalone v4 as satellite.

Firmware​

UC2_canopen_standalone_v4UC2_4
In the web flasherStandalone v4 + CAN (hybrid)Standalone v4
CANmaster, node 1, 500 kbit/snot used
TMC2209 over UARTyesno
Use it forRev. H, and any board with CAN satellitesRev. G and older v4 boards with fixed microstepping
Pin mapPinConfig.hPinConfig.h

Rev. H needs the UART to set microstepping, so flash the hybrid firmware even if nothing is connected to the CAN jack.

Serial is 115200 baud over USB-C. A first test:

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

More in First serial command and the serial command reference.

Before you plug things in​

  • Disconnect 12 V before changing motor cables. Pulling a motor from a powered driver can kill the driver.
  • The NeoPixel header (GND, data, 5 V) is not keyed. Check the polarity of LED matrix cables.
  • USB alone powers the ESP32 but not motors and LEDs.

Boards, motors and LEDs: shop.openuc2.com. Questions: openuc2.discourse.group.