Component guide · Intermediate · 4 min read
DM556, DM542, DM860 and DM422 Digital Stepper Drivers

DIP Settings and Wiring
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The DM556, DM542, DM860 and DM422 are digital (DSP) stepper drivers for NEMA 17 to NEMA 34 motors in CNC routers, laser cutters and linear stages. Current and microsteps are set with DIP switches, and the controller sends PUL (step), DIR and ENA signals through opto-isolated inputs. They run smoother and cooler than TB6600 drivers, with anti-resonance and idle current reduction.
Key specs at a glance
- DM422
- Up to 2.2 A peak, 12 to 36 V DC, NEMA 17
- DM542
- 1.0 to 4.2 A peak, 20 to 50 V DC, NEMA 17 and 23
- DM556
- 1.8 to 5.6 A peak, 20 to 50 V DC, NEMA 23 and 24
- DM860 / DM860A
- 2.4 to 7.2 A peak, 24 to 80 V AC or 36 to 110 V DC, NEMA 34
- Microsteps
- 400 to 25,600 steps per revolution by DIP switch
- Inputs
- Opto-isolated PUL, DIR, ENA, 5 V (24 V with resistor on most)
- Step rate
- Up to 200 kHz
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DM556 Digital Stepper Driver (NEMA23/24/34)₹1,299
Option 2DM860 Digital Stepper Driver for NEMA34₹2,499
Option 3DM860A 2-Phase Digital Stepper Motor Driver₹5,372
Option 4DM422 2-Phase Digital Stepper Driver₹2,450
Option 5Two Trees DM542 Digital Stepper Motor Driver₹949
What the DM556 is
These drivers sit in a CNC control box next to a 24 V, 36 V or 48 V supply. Higher supply voltage keeps torque up at speed; stay below the driver's limit with margin for back-EMF.
Set the current switch to the motor's rated current (peak or RMS as labelled), and turn on half-current at idle to cut heat when the machine stands still.
DM556 pinout
The pins on the DM556 and what each one does.
| Pin | Function |
|---|---|
| PUL+ / PUL- | Step input (opto) |
| DIR+ / DIR- | Direction input |
| ENA+ / ENA- | Enable (leave open to keep enabled on most models) |
| A+ A- B+ B- | Motor coils |
| +VDC / GND | Motor supply (AC1 / AC2 on DM860 AC versions) |
| SW1-SW8 | Current, idle current and microstep DIP switches |
- PUL+ / PUL-
- Step input (opto)
- DIR+ / DIR-
- Direction input
- ENA+ / ENA-
- Enable (leave open to keep enabled on most models)
- A+ A- B+ B-
- Motor coils
- +VDC / GND
- Motor supply (AC1 / AC2 on DM860 AC versions)
- SW1-SW8
- Current, idle current and microstep DIP switches
Wiring the DM556
This is common-anode wiring: the + inputs go to 5 V and the controller pulls the - inputs low. The opto inputs need about 7 to 16 mA, which 3.3 V boards cannot always drive reliably, so buffer ESP32 outputs. Use 24 V logic only on drivers that state it or with a series resistor.
| DM556 pin | Arduino Uno | ESP32 |
|---|---|---|
| PUL+ / DIR+ / ENA+ | 5V | 3V3 through a 74HCT buffer or 5 V level shifter |
| PUL- | D2 | GPIO 26 (via buffer) |
| DIR- | D5 | GPIO 27 (via buffer) |
| ENA- | D8 (optional) | GPIO 14 (optional) |
| +VDC / GND | 24 to 48 V supply | 24 to 48 V supply |
- PUL+ / DIR+ / ENA+
- Arduino Uno:
- 5V
- ESP32:
- 3V3 through a 74HCT buffer or 5 V level shifter
- PUL-
- Arduino Uno:
- D2
- ESP32:
- GPIO 26 (via buffer)
- DIR-
- Arduino Uno:
- D5
- ESP32:
- GPIO 27 (via buffer)
- ENA-
- Arduino Uno:
- D8 (optional)
- ESP32:
- GPIO 14 (optional)
- +VDC / GND
- Arduino Uno:
- 24 to 48 V supply
- ESP32:
- 24 to 48 V supply
Example code
Set the microstep switches to 1600 steps/rev to match this example. In GRBL or LinuxCNC, set the steps/mm from the same value and a step pulse of at least 2.5 us.
#include <AccelStepper.h>
AccelStepper motor(AccelStepper::DRIVER, 2, 5); // PUL- on D2, DIR- on D5
void setup() {
motor.setPinsInverted(true, true, false); // common-anode: LOW = active
motor.setMaxSpeed(4000); // steps per second
motor.setAcceleration(8000);
motor.moveTo(16000); // 10 turns at 1600 steps/rev
}
void loop() {
if (motor.distanceToGo() == 0) motor.moveTo(-motor.currentPosition());
motor.run();
}Setup and tuning
set to the motor's rated current; lower it if the motor runs hot above 80 C.
a 48 V supply suits NEMA 23 on a DM556; 36 V suits NEMA 17 on a DM542.
1600 to 3200 steps/rev is a good balance of smoothness and controller step rate.
use shielded motor cable on CNC routers and keep it away from signal wires.
connect or disconnect the motor with power on.
What you need
Shop this list9 of 11 found in our store · ₹14,340
DM556 Digital Stepper Driver (NEMA23/24/34): the part this guide coversDM556 Digital Stepper Driver (NEMA23/24/34)₹1,299
DM860 Digital Stepper Driver for NEMA34: another version this guide coversDM860 Digital Stepper Driver for NEMA34₹2,499
DM860A 2-Phase Digital Stepper Motor Driver: another version this guide coversDM860A 2-Phase Digital Stepper Motor Driver₹5,372
DM422 2-Phase Digital Stepper Driver: another version this guide coversDM422 2-Phase Digital Stepper Driver₹2,450
Two Trees DM542 Digital Stepper Motor Driver: another version this guide coversTwo Trees DM542 Digital Stepper Motor Driver₹949- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
NEMA 17 stepper motor 42HS48: a motor to driveNEMA 17 Stepper Motor 42HS48-2504 AF-01 (5.6 kg-cm)₹794
24V 4A switching power supply board: to power the stepper driver24V 4A AC-DC Switching Power Supply Board₹411- 4-channel logic level converter: to drive the opto inputs from 3.3 V boardsFind this part
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- TB6600 stepper driver: cheaper, noisier, up to 4 A.
- External stepper drivers: how box drivers compare.
- Stepper motors: NEMA sizes and current.
Common mistakes to avoid
- Driving the opto inputs straight from 3.3 V GPIO and missing steps.
- Using a supply above the driver's limit.
- Setting the current switch above the motor's rating.
- Running PUL pulses shorter than 2.5 us.
Frequently asked questions
DM542 or DM556?
The DM542 for NEMA 17 and small NEMA 23 motors up to 4.2 A; the DM556 for NEMA 23 and 24 up to 5.6 A.
Can I use it with GRBL?
Yes. Wire PUL, DIR and ENA from the GRBL board's step and direction pins.
What supply voltage should I use?
24 to 48 V for the DM542 and DM556; 60 to 80 V AC for the DM860 on NEMA 34.
Does ENA need to be connected?
No. On most models the driver is enabled when ENA is left open.
Why is my motor noisy at one speed?
That is mid-band resonance; change microsteps or use the driver's auto-tune at power-up.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


