Anyone who has wired a multi-axis machine knows the mess: one driver per motor on a central board, a fat bundle of four-wire cables, and a controller with no idea whether a motor actually reached its position. Josh Rogan of Things by Josh has flipped that layout with the CANBUS Stepper, a small board that bolts onto the back of a NEMA 17 motor and turns it into a smart node. Chain the motors together with one cable that carries power and CAN bus, and they behave a lot like an addressable LED strip, only with torque.
What sits on the back of each motor
Each board carries an ESP32-S3, a TMC2209 silent stepper driver and a 14-bit magnetic absolute encoder that reads a small magnet on the motor shaft, so the node runs closed-loop and knows where the rotor really is. The datasheet lists 5 to 29 V input, 12 to 24 V typical, up to 1.92 A of software-adjustable motor current and a 1 Mbit/s CAN link through a TCAN3414 transceiver. XT30 2+2 connectors pass power and CAN through to the next board, rated for 12 A of pass-through current. There is also a Qwiic/Stemma QT port for sensors, two configurable AUX pins, sensorless homing, Wi-Fi and BLE, and ESPHome support. Klipper integration is listed as in progress.
One cable, 31 motors
The protocol is simple enough to read in one sitting. Each 11-bit CAN ID packs a 5-bit node ID and a 6-bit message type, so up to 31 motors can share one bus, with node 0 reserved for broadcast commands. Message types 0 to 31 are commands and 32 to 63 are telemetry, and a remote request frame asks any node for its current position, setpoint or supply voltage. You set a node ID by holding a button at power-up and counting LED flashes. Plug a USB cable into any node and a browser-based GUI can configure, flash and drive every motor on the chain, with a basic motion studio for stringing moves together.
Our take: the useful part is not the ESP32 itself but the architecture. Putting the driver and encoder at the motor turns a wiring problem into a networking problem, and CAN is built for exactly that, with differential signalling that shrugs off motor noise. The firmware and hardware files are open under GPL-3.0, and kits are sold on the maker's site. If CAN is new to you, our Arduino CAN bus tutorial with the MCP2515 covers the frame basics this project builds on.
Image credit: Josh Rogan, CANBUS Stepper GitHub repository, cropped and resized.
About the author: Aswinth Raj is an electronics engineer and the editor of CircuitDigest, where he has published more than 150 hands-on projects and tutorials across Arduino, PIC, ESP32, Raspberry Pi and EV battery systems. He selects the stories on this page for what engineers and makers can actually learn or build from. Connect on LinkedIn
Add a comment
No account needed. Your comment appears once a moderator has reviewed it.