Component guide · Intermediate · 3 min read
TB6600 stepper driver

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The TB6600 is an enclosed stepper driver for NEMA17 and NEMA23 motors up to about 4 A, powered from 9 to 42 V. You set current and microstepping with DIP switches, then send step pulses to PUL and direction to DIR. Its opto-isolated inputs work with 5 V boards and, on most units, with 3.3 V boards too.
Key specs at a glance
- Motor current
- 0.5 to 4.0 A (DIP switch, peak)
- Supply
- 9 to 42 V DC
- Microstepping
- 1, 2/A, 2/B, 4, 8, 16, 32
- Inputs
- PUL, DIR, ENA, opto-isolated, 5 V signal level
- Motors
- 2-phase bipolar steppers (NEMA17, NEMA23)
- Step rate
- Up to about 20 kHz pulse frequency
What the TB6600 stepper driver is
The TB6600 is a stand-alone stepper driver in a metal case with a heatsink. A controller sends it a pulse for every step and a level on DIR for the direction; the driver handles coil currents and microstepping.
Use it when a stepper needs more current or voltage than an A4988 or DRV8825 can handle: CNC routers, laser engravers, camera sliders and conveyor projects with NEMA23 motors.
TB6600 stepper driver pinout
The pins on the TB6600 stepper driver and what each one does.
| Pin | Function |
|---|---|
| PUL+ / PUL− | Step pulses |
| DIR+ / DIR− | Direction |
| ENA+ / ENA− | Enable (leave unconnected to keep the motor enabled) |
| A+ / A− | Motor coil A |
| B+ / B− | Motor coil B |
| VCC / GND | Supply 9 to 42 V DC |
- PUL+ / PUL−
- Step pulses
- DIR+ / DIR−
- Direction
- ENA+ / ENA−
- Enable (leave unconnected to keep the motor enabled)
- A+ / A−
- Motor coil A
- B+ / B−
- Motor coil B
- VCC / GND
- Supply 9 to 42 V DC
Wiring the TB6600 stepper driver
This is the common-cathode wiring: the minus inputs go to the controller GND and the plus inputs to its pins. Find the coil pairs with a multimeter (low resistance between two wires = one coil).
| TB6600 stepper driver pin | Arduino Uno | ESP32 |
|---|---|---|
| PUL+ | D3 | GPIO 25 |
| DIR+ | D4 | GPIO 26 |
| ENA+ | D5 (optional) | GPIO 27 (optional) |
| PUL−, DIR−, ENA− | GND | GND |
| A+ A− B+ B− | Motor coils | Motor coils |
| VCC / GND | 24 V supply | 24 V supply |
- PUL+
- Arduino Uno:
- D3
- ESP32:
- GPIO 25
- DIR+
- Arduino Uno:
- D4
- ESP32:
- GPIO 26
- ENA+
- Arduino Uno:
- D5 (optional)
- ESP32:
- GPIO 27 (optional)
- PUL−, DIR−, ENA−
- Arduino Uno:
- GND
- ESP32:
- GND
- A+ A− B+ B−
- Arduino Uno:
- Motor coils
- ESP32:
- Motor coils
- VCC / GND
- Arduino Uno:
- 24 V supply
- ESP32:
- 24 V supply
Example code
With 1/16 microstepping a 1.8 degree motor needs 3200 pulses per revolution.
#include <AccelStepper.h>
AccelStepper stepper(AccelStepper::DRIVER, 3, 4); // PUL, DIR
void setup() {
stepper.setMaxSpeed(2000); // steps per second
stepper.setAcceleration(1000);
stepper.setMinPulseWidth(5); // µs, the TB6600 needs a few µs
}
void loop() {
if (stepper.distanceToGo() == 0)
stepper.moveTo(stepper.currentPosition() == 0 ? 3200 : 0); // 1 rev at 1/16
stepper.run();
}Setup and tuning
set the DIP switches to the motor's rated phase current or a little below. Running cooler lowers torque slightly but reduces heat.
1/8 or 1/16 is smooth for most builds. Higher settings need faster pulses for the same speed.
24 V is a good default; higher voltage keeps torque up at speed.
use the steps per mm calculator for lead screws and belts.
before connecting or removing the motor; unplugging a powered stepper damages drivers.
What you need
Shop this list4 of 5 found in our store · ₹2,325
Two Trees TB6600 4A stepper motor driver: the driver this guide coversTwo Trees TB6600 4A Stepper Motor Driver for 3D Printers₹492
NEMA17 stepper motor 42HM48-1684: a common stepper to driveNEMA17 4.4 kg-cm Stepper Motor 42HM48-1684₹1,399
Enclosed SMPS power supply: 12 V or 24 V supply for bigger loadsEnclosed SMPS Power Supply₹257- Uno R3 development board: the controller used in the wiring tableFind this part
Digital multimeter: to set and check output voltageDigital Multimeter₹177
Alternatives and when to choose them
- A4988, DRV8825, TMC2209: small carrier boards for 3D printers and NEMA17 up to about 2 A.
- External stepper drivers: DM542 and DM556 digital drivers run smoother and quieter than the TB6600.
- Stepper motors: choosing the motor size.
Try it: Stepper steps per mm calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting or unplugging the motor while powered.
- Setting the current higher than the motor rating, which overheats the motor.
- Sending pulses too short or too fast for the driver.
- Mixing up coil pairs, so the motor only vibrates.
Frequently asked questions
Does TB6600 work with 3.3 V ESP32 signals?
Most units do because the optocouplers switch at about 2.5 V, but some need 5 V. If steps are missed, add a level shifter or a transistor.
What supply voltage should I use?
24 V is a good default for NEMA17 and NEMA23. The range is 9 to 42 V.
How do I set the current?
Use the DIP switches S4 to S6 and the table printed on the case. Match the motor's rated phase current.
Why does my motor vibrate but not turn?
The coil pairs are wrong, or the step rate is too high to start. Check pairs with a multimeter and add acceleration.
Do I need the ENA pin?
No. Leave it unconnected and the driver stays enabled. Use it to switch the motor off to save heat.
Can I use it for a 3D printer?
It can work, but it is noisy and bulky. TMC2209 drivers are quieter for printers.
Parts for this guide
Calculators
Projects that use it
Put this into practice: 3 step-by-step builds in our project library use 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.

