SKU:M039












Module13.2 Stepmotor Driver is a three-axis stepper motor driver module for M5 controllers. It uses three HR8825 drivers to control three bipolar stepper motors. It is suitable for small drawing devices, linear stages, and stepper motor control experiments.
The M5 controller directly generates the step and direction signals. An onboard TCA9554 provides IO expansion over I2C (0x27) to read four digital inputs, select microstepping, and control driver enable. Each motor channel has a current adjustment potentiometer, supports a maximum drive current of 1.5A, and offers microstepping up to 1/32 step.
The module provides three motor connectors and four digital input connectors. These inputs can connect to limit switches and other switches; the host program handles motion according to their states. A PWR485 port combines RS485 communication and power input. Both the PWR485 port and the DC5521 power port accept DC 9 ~ 24V. Arduino and UiFlow development are supported.
| Specification | Parameter |
|---|---|
| Stepper Motor Driver Chip | HR8825 |
| IO Expansion Chip | TCA9554 |
| Communication Interface | I2C @0x27 |
| Supported Microstepping Modes | FULL, 1/2, 1/4, 1/8, 1/16, 1/32 |
| Max Driving Current Per Channel | 1.5A |
| Input Signal Terminal Spec | KF2EDGR-2.54-2P |
| Motor Wiring Terminal Spec | KF2EDGR-2.54-4P |
| PWR485 Port | HT3.96-4P |
| DC Power Port | Input: DC 9–24V, compatible with DC5521 (5.5 × 2.1 mm) plug, center positive |
| Product Size | 54.2 x 54.2 x 13.2mm |
| Product Weight | 40.0g |
| Package Size | 95.0 x 65.0 x 25.0mm |
| Gross Weight | 60.0g |
Set the microstep mode through the TCA9554 M0 / M1 / M2 control bits. All three axes share the same setting.
| M2 | M1 | M0 | Resolution |
|---|---|---|---|
| 0 | 0 | 0 | FULL |
| 0 | 0 | 1 | 1/2 |
| 0 | 1 | 0 | 1/4 |
| 0 | 1 | 1 | 1/8 |
| 1 | 0 | 0 | 1/16 |
| 1 | 0 | 1 | 1/32 |
| 1 | 1 | 0 | 1/32 |
| 1 | 1 | 1 | 1/32 |
I2C Addr: 0x27
Use register 0x00 to read status
Use register 0x01 to write status
Set the corresponding bit in register 0x02 to 1 for polarity inversion, 0 for no inversion
Set the corresponding bit in register 0x03 to 1 for input mode, 0 for output mode.
The pin correspondence for the above register bytes is shown in the table below.
| Bit | Description | R/W |
|---|---|---|
| 7 | P7 Microstep adjustment bit M0 | R/W |
| 6 | P6 Microstep adjustment bit M1 | R/W |
| 5 | P5 Microstep adjustment bit M2 | R/W |
| 4 | P4 DRV EN Driver chip enable | R/W |
| 3 | P3 Input signal 3 | R/W |
| 2 | P2 Input signal 2 | R/W |
| 1 | P1 Input signal 1 | R/W |
| 0 | P0 Input signal 0 | R/W |
Different stepper motors may require different driving currents. The current output can be adjusted using the metal knob on the module. To prevent motor overheating or damage, adjust the knob slowly and observe the motor status or use an ammeter to determine the appropriate driving current.
| PIN | LEFT | RIGHT | PIN |
|---|---|---|---|
| GND | 1 | 2 | |
| GND | 3 | 4 | |
| GND | 5 | 6 | |
| 7 | 8 | RS485_TX | |
| 9 | 10 | ||
| 11 | 12 | 3V3 | |
| 13 | 14 | ||
| STEP_X | 15 | 16 | DIR_X |
| SDA | 17 | 18 | SCL |
| 19 | 20 | ||
| STEP_Y | 21 | 22 | DIR_Y |
| STEP_Z | 23 | 24 | DIR_Z |
| HPWR | 25 | 26 | RS485_RX |
| HPWR | 27 | 28 | 5V |
| HPWR | 29 | 30 |
1.0.3. Versions higher than this may cause compilation issues. For usage instructions and WEB-UI control, please refer to ESP32-GRBL-WIKI| Product Comparison | Module13.2 GRBL | Module13.2 Stepmotor Driver | Module13.2 Stepmotor Driver v1.1 |
|---|---|---|---|
| Motion Control | I2C motion commands; onboard controller generates STEP/DIR | Host generates STEP/DIR directly | Host generates STEP/DIR directly |
| Controller / IO Expansion | ATmega328P-AU running GRBL firmware | TCA9554 IO expander | STM32F030F4P6 IO expansion |
| I2C Address | 0x70 / 0x71 (DIP switch) | 0x27 (IO expansion) | 0x27 (IO expansion) |
| Motor Channels | 3 | 3 | 3 |
| Motor Driver IC | DRV8825PWPR | HR8825 | HR8825 |
| Microstep Selection | DIP switch, up to 1/32 step | TCA9554 control, up to 1/32 step | Solder jumpers (shared by all three axes), up to 1/32 step |
| External Digital Inputs | Three limit signals sharing 1 x XH2.54-4P | Four inputs, 4 x KF2EDGR-2.54-2P | Four inputs, 4 x KF2EDGR-2.54-2P |
| Motor Connectors | 3 x XH2.54-4P | 3 x KF2EDGR-2.54-4P | 3 x KF2EDGR-2.54-4P |
| PWR485 Port | None | HT3.96-4P, RS485 + power input | HT3.96-4P, RS485 + power input |
| DC Power Port | DC35135, 3.5 x 1.35mm | DC5521, 5.5 x 2.1mm | DC5521, 5.5 x 2.1mm |
| Input Voltage | DC 9 ~ 24V | DC 9 ~ 24V | DC 9 ~ 24V |