Everything on this page comes from the rev V9 schematic and 3D model.
Board layout

Top view, component side. The eight gold rings are the M3 mounting holes; the dashed square in the middle is the encoder on the underside, centred on the motor axis.
Connectors
| Ref | Function | Connector on the board | Mating part (example) |
|---|---|---|---|
| CN1, CN6 | Power + CAN, in and out | HC-MX3.0-2×2AW: 3.0 mm pitch, 2×2, right angle (Micro-Fit 3.0 style) | Micro-Fit 3.0 2×2 receptacle housing, e.g. Molex 43025-0400, with crimp terminals |
| MOTOR (B1B2A1A2) | Motor coils | HC-MX3.0-4AW: 3.0 mm pitch, 1×4, right angle (Micro-Fit 3.0 style) | Micro-Fit 3.0 1×4 receptacle housing, e.g. Molex 43645-0400 |
| CN5 | STEP / DIR / DIAG0 | JST B4B-PH-K-S: 2.0 mm pitch, 4-pin, top entry | JST PHR-4 housing with SPH-002T-P0.5S crimps |
| LS3V3 | Limit / home 1 (3.3 V) | JST S3B-XH-A: 2.5 mm pitch, 3-pin, side entry | JST XHP-3 housing with SXH-001T-P0.6 crimps |
| NPN | Limit / home 2 (NPN sensor) | JST S3B-XH-A: 2.5 mm pitch, 3-pin, side entry | JST XHP-3 housing with SXH-001T-P0.6 crimps |
| USBC | USB 2.0 data | USB-C receptacle (TYPE-C-31-M-12), mid-mount | Any USB-C cable |
The right-angle and side-entry connectors overhang the board edge, so the board with its connectors is wider than the motor. See Mounting and clearances.
Power and CAN (CN1, CN6)
Two identical connectors, wired in parallel: CN1 on the left edge, CN6 on the top edge. Each carries both power and CAN, so boards daisy-chain on one cable: in on one, out on the other.
| Pin | Signal |
|---|---|
| 1 | Supply, 24–48 V DC |
| 2 | GND |
| 3 | CANL |
| 4 | CANH |
- Supply 24–48 V DC. The 12 V regulator's undervoltage lockout starts the board at about 16.5 V. Do not exceed 48 V continuous.
- Input protection, in order: a 6.3 A fuse (Littelfuse 0458 series), then a 100 V P-channel MOSFET (SQD40P10-40L) that blocks a reversed supply, then an SMBJ48A TVS clamp and the bulk capacitors (2 × 100 µF and 47 µF electrolytic plus ceramics).
- 5 A per contact. That is the connector rating, and in a daisy chain every board downstream draws its supply through the contacts upstream of it. Plan the chain so the current through any one connector stays under 5 A.
- USB does not power the board. USB VBUS only reaches the ESD protection; it is not connected to the regulators. Connect the main supply for any work, including flashing.
- Power LED (red, near the middle of the board) runs from the 12 V rail. It lights once the supply is above the undervoltage lockout and the 12 V regulator is running.
CAN bus
- Topology: a linear daisy chain through CN1/CN6. Use twisted pair for CANH/CANL and keep stubs short.
- Termination: a slide switch in the bottom-left corner connects a 120 Ω resistor across CANH/CANL. Turn it on only at the two physical ends of the bus, and off on every board in between. With power off, a correctly terminated bus measures about 60 Ω between CANH and CANL (two 120 Ω terminators in parallel). 120 Ω means one terminator is missing; 40 Ω or less means too many are on.
- Transceiver: TCAN3413, CAN FD up to 8 Mbit/s, bus-fault protected, 3.3 V logic. Its standby pin is tied to GND, so it is always active.
- Bit rate and protocol are set by firmware, which is not released yet. Bring-up testing used 500 kbit/s.
Board-to-board CAN has not been proven on this revision yet: see Bring-up status. Also, while one board is transmitting, a second board may fail to enter USB DFU mode; see Troubleshooting.
Motor
| Pin | Signal | Coil |
|---|---|---|
| 1 | B1 | Coil B |
| 2 | B2 | Coil B |
| 3 | A1 | Coil A |
| 4 | A2 | Coil A |
- 2-phase bipolar stepper, NEMA 23, 4-wire. The connector is on the bottom edge.
- Each coil is driven by its own H-bridge of four CSD19537Q3 MOSFETs, with a 75 mΩ sense resistor per bridge.
- Coil current is set in software, up to 3.1 A RMS / 4.4 A peak (formula). Set it to the motor's rated phase current or below.
- Find the coil pairs with a multimeter: the two wires of one coil show a few ohms between them; wires from different coils show open circuit. Put one pair on pins 1–2 and the other on pins 3–4. If the motor turns the wrong way, swap the two wires of one coil (or invert direction in firmware).
- Connect or disconnect the motor only with the supply off. Unplugging a coil under power can damage the driver.
STEP/DIR input (CN5)
CN5 is a 4-pin JST PH connector on the left edge, between USB-C and CN1.
| Pin | Signal | Direction | Notes |
|---|---|---|---|
| 1 | GND | — | Common reference with the controller |
| 2 | STEP | Input | Goes straight to the TMC5160 REFL_STEP pin; pulled down on the board |
| 3 | DIR | Input | Goes straight to the TMC5160 REFR_DIR pin; pulled down on the board |
| 4 | DIAG0 | Output | TMC5160 diagnostic output, also read by the MCU (PB6); 3.3 V pull-up on the board |
3.3 V logic only
STEP and DIR are not 5 V tolerant: the driver's I/O runs at 3.3 V. Drive them from 3.3 V logic, or put a level shifter between a 5 V controller and the board.
How the two modes use CN5:
- SDMODE switch on (Mode A, open loop): the TMC5160 steps the motor from the pulses on STEP and DIR.
- SDMODE switch off (Mode B, closed loop): the TMC5160 runs its own ramp generator, and the same two pins become its left/right reference switch inputs (REFL / REFR). They are read by the driver, not by the MCU.
Mode A still needs firmware
The TMC5160's SPI interface is always enabled on this board, and its enable line (DRV_ENN) is held off by a pull-up until the MCU drives it low. So in STEP/DIR mode the STM32 must still set the driver up over SPI (current, microsteps, chopper) and enable it before step pulses move the motor.
DIAG0 is an open-drain output from the driver with a 3.3 V pull-up on the board, so by default it is active low. Firmware chooses which events it signals.
Limit and home inputs (LS3V3, NPN)
Two 3-pin JST XH connectors on the right edge, each wired to its own MCU pin.
| Pin | LS3V3 (limit / home 1) | NPN (limit / home 2) |
|---|---|---|
| 1 | +3.3 V supply for the sensor | +12 V supply for the sensor |
| 2 | GND | GND |
| 3 | Signal → MCU PB4 | Signal → MCU PB5 |
LS3V3, for a switch or 3.3 V sensor. The signal has a 10 kΩ pull-up to 3.3 V, a 4.7 kΩ series resistor and a 100 nF filter. It reads high when open. Wire a normally-open switch between pin 3 and GND (pin 2) to make it read low when pressed, or connect the output of a 3.3 V sensor powered from pin 1.
NPN, for an NPN (sinking) proximity sensor. Power the sensor from pin 1 (12 V) and pin 2 (GND), and connect its output to pin 3. A Schottky diode (B5819W) keeps the sensor's 12 V off the MCU, and a 10 kΩ pull-up to 3.3 V plus a 100 nF filter set the logic level. The input reads high when the sensor is off and low when it switches on.
The NPN input only works with NPN (current-sinking) sensors. A PNP sensor drives its output toward 12 V, which the diode blocks, so it never registers.
Encoder magnet
The MT6701 sits on the underside of the board, facing the motor. In the 3D model its centre is within 0.1 mm of the mounting-hole centre, which is the motor axis. It reads a magnet on the motor's rear shaft, so the motor must be dual-shaft.
| Item | Requirement |
|---|---|
| Magnet | Diametrically magnetised NdFeB, Ø6 × 2.5 mm or Ø8 × 3 mm |
| Air gap | 1–2 mm between magnet face and sensor |
| Centring | Within 0.3 mm of the sensor centre |
| Sensor face | About 1.5 mm below the board's bottom surface (SOP-8 package) |
The encoder reports field strength with each reading. In bring-up it showed
status 1010 (field too weak) with no magnet, and 0000 (field OK) once the
magnet was fitted. A magnet slightly off the shaft axis shows up as a smooth
once-per-turn angle error (about −3.5° to +7° on the bring-up board), which a
one-turn calibration table can remove.
Mounting and clearances
| Item | Value |
|---|---|
| Board | 56.6 × 56.6 mm, 1.6 mm thick, 6 layers (NEMA 23 frame is 56.4 mm) |
| Holes | 8 × Ø3.3 mm plated, for M3 |
| Hole positions | (±24.25, ±15.00) and (±15.00, ±24.25) mm from the motor axis, on a Ø57.0 mm circle |
| Envelope with connectors | About 64.2 × 61.9 mm. The connectors overhang the board edge: NPN and LS3V3 by up to 5.7 mm (right), CN6 by 2.7 mm (top), the motor connector by 2.6 mm (bottom), CN1 by 1.9 mm (left) |
| Tallest part, top side | 14.5 mm above the board (the two 100 µF capacitors) |
| Other tall parts | 47 µF capacitor 10.3 mm · CN1/CN6 8.8 mm · CN5, NPN, LS3V3 6.0 mm · motor connector 5.9 mm · switches 4.2 mm |
| Underside | The encoder IC (1.5 mm) plus through-hole connector pins, which stick out up to 1.9 mm |
| Overall stack | About 18 mm, from pin tips under the board to the top of the 100 µF capacitors |
The hole pattern is the board's own. It does not match the 47.14 mm bolt square of the NEMA 23 front flange. Leave at least 2 mm between the board's underside and anything below it, for the connector pins, while still holding the magnet-to-sensor air gap.
Buttons, switches and LEDs
| Item | Where | What it does |
|---|---|---|
| SDMODE slide switch | Right edge, bottom | On: STEP/DIR mode (Mode A). Off: closed loop (Mode B). |
| CAN termination slide switch | Bottom-left corner | Connects the 120 Ω terminator across CANH/CANL |
| RESET button | Top-right corner | Resets the MCU |
| BOOT button | Top right, below RESET | Held during reset, starts the USB bootloader (flashing) |
| Power LED (red) | Middle of the board | On when the 12 V rail is up |
| ERR LED (red) | Top-right corner, next to RESET | Driven by firmware (MCU pin PB15, active high) |
Debug pads (SWD)
Five pads, labelled GND · 3V3 · DIO · CLK · NRST (SWDIO and SWCLK). To use an ST-Link, connect DIO, CLK, GND and NRST, and leave 3V3 unconnected: power the board from its main input. See Programming & flashing.