Component guide · Intermediate · 4 min read
TMC2209 and TMC2208 Stepper Driver

UART, StealthChop and Wiring
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The TMC2209 is a silent StepStick stepper driver for NEMA 17 motors, used in 3D printers and CNC machines. It drives up to about 2 A RMS, uses StealthChop for near-silent motion, and can be set over a single-wire UART for current, microsteps and sensorless homing (StallGuard). The TMC2208 and TMC2225 are similar but without StallGuard; the TMC2226 is a TMC2209 in a cooler package.
Key specs at a glance
- Motor current
- TMC2209 / TMC2226 2.0 A RMS (2.8 A peak), TMC2208 / TMC2225 1.4 A RMS
- Supply
- 4.75 to 29 V motor (VM), 3.3 or 5 V logic
- Microsteps
- Up to 1/256 interpolated
- Modes
- StealthChop2 (silent), SpreadCycle (high torque)
- UART
- Single-wire, sets current, microsteps and modes
- StallGuard4
- Sensorless homing on TMC2209 and TMC2226
- Footprint
- StepStick, pin-compatible with A4988 and DRV8825 sockets
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1TMC2209 Stepper Motor Driver₹446
Option 2Makerbase MKS TMC2209 v2.0 Stepper Motor Driver₹479
Option 3Makerbase MKS TMC2226 Stepper Motor Driver with Heatsink₹399
Option 4Makerbase MKS TMC2208 v2.0 Stepper Motor Driver Module₹409
Option 5BIGTREETECH TMC2225 V1.0 Stepper Motor Driver₹399
Option 6BIGTREETECH BTT TMC2208 V3.0 UART Stepper Motor Driver₹569
What the TMC2209 is
TMC drivers replace A4988 and DRV8825 drivers in the same sockets and make printers almost silent. In standalone (legacy) mode they work with STEP and DIR only, with current set by the Vref pot. In UART mode the firmware sets everything in software.
Check your board's pin labels: some TMC2209 modules swap EN and the MS pins compared with A4988 layouts, and UART needs a jumper or a PDN/UART pin on the mainboard.
TMC2209 pinout
The pins on the TMC2209 and what each one does.
| Pin | Function |
|---|---|
| VM / GND | Motor supply, 4.75 to 29 V |
| VIO / GND | Logic supply, 3.3 or 5 V |
| A1 A2 B1 B2 | Motor coils (or 1A 1B 2A 2B) |
| STEP | One microstep per pulse |
| DIR | Direction |
| EN | LOW enables the driver |
| MS1 / MS2 | Microsteps in standalone mode, UART address with UART |
| PDN / UART | Single-wire UART |
| DIAG | StallGuard output for sensorless homing |
| Vref pot | Sets motor current in standalone mode |
- VM / GND
- Motor supply, 4.75 to 29 V
- VIO / GND
- Logic supply, 3.3 or 5 V
- A1 A2 B1 B2
- Motor coils (or 1A 1B 2A 2B)
- STEP
- One microstep per pulse
- DIR
- Direction
- EN
- LOW enables the driver
- MS1 / MS2
- Microsteps in standalone mode, UART address with UART
- PDN / UART
- Single-wire UART
- DIAG
- StallGuard output for sensorless homing
- Vref pot
- Sets motor current in standalone mode
Wiring the TMC2209
Add a 100 uF capacitor across VM near the driver. Never plug or unplug the motor while powered: it destroys the driver. Fit the heatsink, and the module the right way round (EN pin to EN).
| TMC2209 pin | Arduino Uno | ESP32 |
|---|---|---|
| STEP | D2 (X step on CNC shield) | GPIO 26 |
| DIR | D5 | GPIO 27 |
| EN | D8 (LOW = on) | GPIO 14 |
| PDN / UART | D11 via 1 k resistor (TX) and D10 (RX) | GPIO 17 via 1 k and GPIO 16 |
| VM / GND | 12 or 24 V supply | 12 or 24 V supply |
| VIO / GND | 5V / GND | 3V3 / GND |
- STEP
- Arduino Uno:
- D2 (X step on CNC shield)
- ESP32:
- GPIO 26
- DIR
- Arduino Uno:
- D5
- ESP32:
- GPIO 27
- EN
- Arduino Uno:
- D8 (LOW = on)
- ESP32:
- GPIO 14
- PDN / UART
- Arduino Uno:
- D11 via 1 k resistor (TX) and D10 (RX)
- ESP32:
- GPIO 17 via 1 k and GPIO 16
- VM / GND
- Arduino Uno:
- 12 or 24 V supply
- ESP32:
- 12 or 24 V supply
- VIO / GND
- Arduino Uno:
- 5V / GND
- ESP32:
- 3V3 / GND
Example code
In standalone mode skip the UART lines and set current with Vref: Irms = Vref / 1.41 for most TMC2209 boards (check the seller's formula). In Marlin or Klipper, set driver type TMC2209 and run_current in the config.
#include <TMCStepper.h>
#include <SoftwareSerial.h>
#define STEP 2
#define DIR 5
#define EN 8
SoftwareSerial uart(10, 11); // RX, TX
TMC2209Stepper drv(&uart, 0.11f, 0b00); // sense resistor 0.11 ohm, address 0
void setup() {
pinMode(STEP, OUTPUT); pinMode(DIR, OUTPUT); pinMode(EN, OUTPUT);
digitalWrite(EN, LOW);
uart.begin(115200);
drv.begin();
drv.rms_current(800); // mA
drv.microsteps(16);
drv.en_spreadCycle(false); // StealthChop
}
void loop() {
digitalWrite(DIR, HIGH);
for (long i = 0; i < 3200; i++) { // one turn at 1/16
digitalWrite(STEP, HIGH); delayMicroseconds(150);
digitalWrite(STEP, LOW); delayMicroseconds(150);
}
delay(500);
}Setup and tuning
measure between the pot and GND with the driver powered; set it with a ceramic screwdriver.
start at 70 % of the motor's rated current and raise only if steps are lost.
on a mainboard, fit the UART jumper under the socket; remove MS jumpers if the board asks.
set the StallGuard threshold and connect DIAG to the endstop pin.
above 1.2 A use a fan over the heatsinks.
What you need
Shop this list13 of 14 found in our store · ₹5,116
TMC2209 Stepper Motor Driver: the part this guide coversTMC2209 Stepper Motor Driver₹446
Makerbase MKS TMC2209 v2.0 Stepper Motor Driver: another version this guide coversMakerbase MKS TMC2209 v2.0 Stepper Motor Driver₹479
Makerbase MKS TMC2226 Stepper Motor Driver with Heatsink: another version this guide coversMakerbase MKS TMC2226 Stepper Motor Driver with Heatsink₹399
Makerbase MKS TMC2208 v2.0 Stepper Motor Driver Module: another version this guide coversMakerbase MKS TMC2208 v2.0 Stepper Motor Driver Module₹409
BIGTREETECH TMC2225 V1.0 Stepper Motor Driver: another version this guide coversBIGTREETECH TMC2225 V1.0 Stepper Motor Driver₹399
BIGTREETECH BTT TMC2208 V3.0 UART Stepper Motor Driver: another version this guide coversBIGTREETECH BTT TMC2208 V3.0 UART Stepper Motor Driver₹569
BIGTREETECH BTT TMC2208 V3.0 Stepper Motor Driver: another version this guide coversBIGTREETECH BTT TMC2208 V3.0 Stepper Motor Driver₹539- 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
CNC Shield V3 for Arduino Uno: to plug StepStick drivers into an UnoCNC Shield V3 for Arduino UNO – A4988 DRV8825 Compatible₹89Closest match, check the specs
24V 4A switching power supply board: to power the stepper driver24V 4A AC-DC Switching Power Supply Board₹411
Electrolytic capacitor: 100 uF across VM near the driverElectrolytic Capacitor₹16
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
Alternatives and when to choose them
- A4988 vs DRV8825 vs TMC2209: which StepStick to choose.
- DRV8825 stepper driver: the cheaper 1/32 driver.
- Stepper motors: sizing and wiring NEMA motors.
- 3D printer mainboards: boards that take these drivers.
Common mistakes to avoid
- Plugging the driver in backwards or offset by a pin.
- Unplugging the motor while powered.
- Setting Vref far above the motor's rating.
- Forgetting the 1 k resistor on the UART TX line.
- Expecting sensorless homing on a TMC2208.
Frequently asked questions
Can I replace an A4988 with a TMC2209?
Usually yes, same socket. Check EN pin position and set Vref; firmware changes are only needed for UART features.
TMC2209 or TMC2208?
The TMC2209 gives more current and sensorless homing; choose the TMC2208 only for simple silent upgrades.
What is StealthChop?
A voltage-mode chopper that makes motors almost silent at low and medium speed.
Why does my motor lose steps at speed?
StealthChop loses torque at high speed; switch to SpreadCycle or raise the voltage to 24 V.
How do I set the current?
Use rms_current() over UART, or turn the Vref pot in standalone mode.
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.

