Component guide · Intermediate · 3 min read
TB6560 3A Single-Axis Stepper Driver

DIP Switches, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The TB6560 single-axis board drives one bipolar stepper at up to 3 A from 10 to 35 V. DIP switches set current, microstepping (up to 1/16) and decay mode, and the opto-isolated STEP, DIR and EN inputs connect to an Arduino, CNC breakout or parallel port controller. It suits NEMA 17 and small NEMA 23 motors on budget CNC builds.
Key specs at a glance
- Motor supply
- 10 to 35 V DC
- Current
- Up to 3 A (DIP switches)
- Microstepping
- Full, 1/2, 1/8, 1/16
- Inputs
- Opto-isolated CLK, CW, EN
- Decay
- Selectable
- Cooling
- Heatsink on board; add a fan
What the TB6560 stepper driver is
The TB6560 board is a single-axis stepper driver built on Toshiba's TB6560 chip, with DIP switches for current and microstepping and opto-isolated inputs, aimed at budget CNC routers.
Inputs are opto-isolated, so they need the + side tied to 5 V and the - side pulled low by the Arduino (common anode), or the reverse wiring.
The TB6560 is older and less robust than DM542-style drivers; avoid hot-plugging motors and keep it cool.
TB6560 stepper driver pinout
The pins on the TB6560 stepper driver and what each one does.
| Pin | Function |
|---|---|
| +24V / GND | Motor supply |
| A+, A-, B+, B- | Motor coils |
| CLK+ / CLK- | Step |
| CW+ / CW- | Direction |
| EN+ / EN- | Enable |
- +24V / GND
- Motor supply
- A+, A-, B+, B-
- Motor coils
- CLK+ / CLK-
- Step
- CW+ / CW-
- Direction
- EN+ / EN-
- Enable
Wiring the TB6560 stepper driver
Connect the TB6560 stepper driver like this.
| TB6560 stepper driver pin | Arduino Uno | ESP32 |
|---|---|---|
| CLK+, CW+, EN+ | 5V | 3V3 (may need a 5 V level) |
| CLK- | D3 | GPIO 25 |
| CW- | D2 | GPIO 26 |
| EN- | Leave open to enable | Leave open |
- CLK+, CW+, EN+
- Arduino Uno:
- 5V
- ESP32:
- 3V3 (may need a 5 V level)
- CLK-
- Arduino Uno:
- D3
- ESP32:
- GPIO 25
- CW-
- Arduino Uno:
- D2
- ESP32:
- GPIO 26
- EN-
- Arduino Uno:
- Leave open to enable
- ESP32:
- Leave open
Example code
A minimal sketch to check the part works.
#include <AccelStepper.h>
AccelStepper st(AccelStepper::DRIVER, 3, 2);
void setup() {
st.setPinsInverted(true, true, false); // common anode wiring inverts signals
st.setMaxSpeed(2000); st.setAcceleration(1000);
st.moveTo(3200);
}
void loop() { st.run(); }Setup and tuning
set the DIP switches to the motor's rated current or slightly below; the motor runs cooler and rarely needs more.
1/8 is a good balance of smoothness and speed for CNC; 1/16 is smoother but needs higher step rates.
tie CLK+, CW+ and EN+ to 5 V and pull CLK-, CW- and EN- low from the controller (common anode), or use the common cathode wiring from the board's sheet.
blow air over the heatsink; the TB6560 is sensitive to heat.
switch off before connecting or disconnecting the motor, every time.
What you need
Shop this list4 of 5 found in our store · ₹785
TB6560 3A Single-Axis Stepper Motor Driver: the part this guide coversTB6560 3A Single-Axis Stepper Motor Driver₹423- Uno R3 development board: the controller used in the wiring tableFind this part
SMPS power supply in metal enclosure (5/12/24 V): a 12 or 24 V supplySMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
Stepper motor mounting bracket: to mount the motorMotor Mounting Bracket₹49
Limit and micro switch: for end stops and homingLimit and Micro Switch₹15
Alternatives and when to choose them
- TB6600: enclosed, more common.
- DM556: digital, smoother.
- External stepper drivers.
Common mistakes to avoid
- Hot-plugging the motor, which often kills the TB6560.
- Running it without a fan in an enclosed cabinet.
- Wiring the opto inputs with the wrong polarity, so steps are ignored.
- Setting the current above the motor's rating.
Frequently asked questions
Can the TB6560 drive a NEMA 23 motor?
Small NEMA 23 motors up to about 3 A work. Larger NEMA 23 motors run better on a DM542 or DM556 style driver.
Does it work with 3.3 V logic?
Often not reliably, because the opto inputs need enough current. Use 5 V signals or a buffer when driving it from an ESP32.
What microstepping does it offer?
Full step, 1/2, 1/8 and 1/16, set by DIP switches.
What supply voltage does it need?
10 to 35 V DC. 24 V is a good choice for CNC because it gives better torque at speed.
Is the TB6600 better?
The TB6600 boxed drivers are usually more robust and better cooled, so they are the safer choice for new builds.
Parts for this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from 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.


