Grafito CANStepper

Prototype

Hardware rev V9. Specifications come from the current design and may change before launch. The continuous current rating is still being confirmed in thermal testing, and production firmware is not released yet.

What is CANStepper NEMA 23?

CANStepper NEMA 23 (CANStepper V1.0) is a 56.6 mm square driver board that bolts to the back of a NEMA 23 motor. It runs the motor open loop from any STEP/DIR controller, or closed loop from its own STM32 and on-axis magnetic encoder, networked over CAN FD.

Each board carries:

  • STM32H503 microcontroller (Arm Cortex-M33, up to 250 MHz)
  • TMC5160A stepper driver with eight external 100 V MOSFETs, configured over SPI, up to 3.1 A RMS / 4.4 A peak
  • MT6701 14-bit magnetic encoder (16,384 counts/rev) under the board, centred on the motor shaft
  • TCAN3413 CAN FD transceiver, up to 8 Mbit/s
  • 24–48 V power input with reverse-polarity, surge and fuse protection

Looking for the smaller ESP32-C3 board? See CANStepper NEMA 17.

Two ways to run it

The SDMODE switch on the board picks the mode.

Mode A: open loopMode B: closed loop
SDMODE switchOnOff
Commands come fromSTEP / DIR / GND from a CNC, 3D-printer or PLC controllerCAN FD (daisy-chained boards) or USB-C
Who drives the motorTMC5160, directly from your step pulsesSTM32, commanding the TMC5160 over SPI
Firmware on the STM32Needed: sets up the driver over SPI and enables itNeeded: runs the closed loop
EncoderNot in the loopRead by the STM32 to correct lost steps and report real position
Feedback to controllerDIAG0 on the same connector, for fault or stall signallingStatus over CAN FD or USB

In both modes the TMC5160 gives up to 256 microsteps (MicroPlyer interpolation) and StealthChop2 quiet operation. STEP, DIR and DIAG0 are on the 4-pin JST PH connector CN5. They are 3.3 V logic and not 5 V tolerant; see Hardware & wiring.

Block diagram

 CN1/CN6 24–48 V ─► 6.3 A fuse ─► reverse-polarity P-FET ─► TVS + bulk caps ─┬─► 8× MOSFET H-bridges ─► MOTOR (A1 A2 B1 B2)
                                                                             └─► 12 V buck (LM5164) ─┬─► TMC5160 gate drive, power LED
                                                                                                     ├─► NPN connector (12 V)
                                                                                                     └─► 3.3 V buck (TPS562201) ─► logic

 CN1/CN6 CANH/CANL ◄─► TCAN3413 ◄─► FDCAN1 ─┐
 USB-C (data only) ◄─────────────────► USB ─┤
 MT6701 encoder (underside, on axis) ─ SSI ─┤
 LS3V3 limit 1 ─────────────────────── PB4 ─┼─ STM32H503 ── SPI, DRV_ENN ──► TMC5160A ──► gates of the 8 MOSFETs
 NPN limit 2 ───────────────────────── PB5 ─┘                                   ▲  │
                                                         CN5 STEP / DIR ────────┘  └─► DIAG0 ─► CN5, MCU

The board layout, with every connector, is on Hardware & wiring.

Status

The board is alive end to end on the bench. The MCU, motor driver, encoder and USB programming all work, and a NEMA 23 motor ran 30–800 rpm with no lost steps (worst end-position error 0.19°, measured by the on-board encoder). Two items are still open:

  • CAN between two boards is not proven yet. One board transmits correctly, but a second board has not acknowledged its frames.
  • Production firmware and bootloader are not released. Bring-up used small test images only.

Full subsystem table, measured data and open items: Bring-up status & test results.

Software support

The NEMA 17 software stack (GCSP and CANopen firmware, the grafito-canstepper Python library, the G-code layer, the dashboard test station) does not support the NEMA 23 board yet. NEMA 23 firmware is in development; these pages will be updated when it ships.

Where to go next

On this page