MC Stepper: Getting Started
Applies to: Rev A
CAN interface with Arduino library
The recommended starting point for most users.
- Connect a stepper motor to the
Motorconnector (A+,A-,B+,B-). - Connect the
Power and CANconnector to your bus (CAN high, CAN low, ground) and supply (VIN, 29 V maximum).- The RGB LED lights up on initialization.
- Ensure the bus is terminated at both physical ends. On-board termination is not populated by default, see the datasheet.
- Flash the
mc_stepper_basicexample from the ScalpelSpace Bus Arduino library to a host with a CAN interface (e.g. the SPI-CAN Breakout) and confirm the motor moves.
The library’s McStepper device handle covers ScalpelSpace’s unified CAN ID allocation scheme and device control.
Advanced: Classic CAN interface
For host systems integrating the CAN bus protocol directly.
- Wire power, CAN and the motor as above.
- Assign a node ID via the ScalpelSpace node ID allocation protocol. See the ScalpelSpace CAN bus protocol.
- Implement the CAN bus message encoding/decoding. The mc_stepper_driver repository holds the source-of-truth CAN bus DBC definition (
can_mc_stepper.dbc), message table and C drivers.
Advanced: UART serial interface
For development, debug and configuration from a desktop computer.
- Connect a 3.3 V USB-to-UART adapter to the
UART breakoutconnector. - Open a serial terminal at 115200 bps and run
helpfor the command list. Commands are newline (\n) terminated.
The full command reference is maintained with the mc_stepper firmware.