Source: https://mokxi.com/parts/tmc2209
Updated: 2026-11-16

Part

# TMC2209 stepper driver

The TMC2208 with 1/32 and 1/64 on its mode pins, a SPREAD pin, and 29 V at most.

See every part

- 16 pins
- 2 settings
- In 2 projects

Drawn live by the editor's own code, at the size you see it.

At a glance

## The TMC2209 stepper driver in brief

What it is, and every setting the properties panel gives it.

The TMC2209 is the quiet Trinamic driver on SilentStepStick boards, in the A4988’s footprint: STEP, DIR and an active-low EN on the logic side, VM at 5.5 to 29 V, M1A, M1B, M2A and M2B for the motor’s two coils, and VIO at 3 to 5.25 V for the logic. Its inputs switch at 0.3 and 0.7 of VIO, so VIO goes to 5 V on an Uno and to 3.3 V on an ESP32. There is no RST or SLP to link. MS1 and MS2 are pulled down, and left alone the board is at 1/8 step, not full step, so 1600 pulses turn a 200-step motor once; MS1 high alone is 1/32, MS2 high alone 1/64 and both 1/16, a different table from the TMC2208’s. Mokxi models that table, the enable pin and Trinamic’s current formula on the board’s 0.11 ohm sense resistors: 1 A peak at the default VREF of 1 V, and 1.77 A RMS at 2.5 V. The classic mistake is reusing a full-step A4988 sketch and turning an eighth as far. The UART, stealthChop, spreadCycle, StallGuard, the standstill power-down and the 1/256 interpolation are not modeled.

Family

Outputs

Pins

16

vref

1

rsense

0.11

Pins

## 16 pins

Named as the editor names them, so a wire lands where you expect it.

- EN
- MS1
- MS2
- SPREAD
- PDN_UART
- NC
- STEP
- DIR
- VM
- GNDM
- M2B
- M2A
- M1A
- M1B
- VIO
- GND

How to use it

## How to use the TMC2209 stepper driver with an Arduino

STEP to pin 2, DIR to pin 3 and EN to pin 4, VIO to 5 V, GND to GND, VM to 12 V, and the motor’s coils on M1A and M1B and on M2A and M2B. There is no RST or SLP to link: write EN LOW and the outputs are on.

With MS1 and MS2 left open the TMC2209 is at 1/8 step, not full step, so this sketch sends 1600 pulses for one turn of a 200-step NEMA 17. MS1 high alone is 1/32, MS2 high alone 1/64, and both high 1/16, which is not the TMC2208’s table, so check which chip is on the board before you count pulses. A sketch written for a full-step A4988 turns an eighth as far here. AccelStepper’s DRIVER mode drives it the same way, with setEnablePin(4) and setPinsInverted(false, false, true) for the active-low EN.

Part pin

Board pin

STEP

Pin 2

DIR

Pin 3

EN

Pin 4

VIO

5 V

GND

GND

VM

12 V supply

On an ESP32 put VIO on 3.3 V. The inputs switch at 0.3 and 0.7 of VIO, so the logic supply has to match the board’s pins.

Click to open it in the editor

This is the simulator itself, running here. Click anything to open it in the editor.

Open this project in the editor Read the full tutorial

One turn at 1/8 step, from the TMC2209 sketch

How it is modeled

## What is true about the TMC2209 stepper driver, here

In its help article’s own words: what the simulation gets right, and where it stops.

### Not modeled

The Trinamic chips' UART (PDN_UART), stealthChop, spreadCycle (SPREAD),
StallGuard, the standstill power-down and the 1/256 interpolation: one pulse on
STEP is one step at the pins' resolution. On the TMC boards EN unwired is taken
as on, from the chips' input pulls, which the boards' pin pages do not state. The
DRV8834's phase/enable mode (CONFIG low), the DRV8880's AutoTune and its V3P3
and TOFF pins. As on the A4988: the chopper's ripple, inductance, faults and heat.

From TMC2208, TMC2209, TMC2100, DRV8834, DRV8880, in full.

Projects

## See the TMC2209 stepper driver in a project

2 built-in projects use it. Each opens in the editor, already wired.

Boards

## The boards it is shown on

This board has a built-in project with the TMC2209 stepper driver in it.

- Arduino Uno R3

Libraries

## Arduino libraries for the TMC2209 stepper driver

Built in, so the sketch compiles with nothing to install. Each page has the calls, the wiring and an example to run.

- TMCStepper

More parts

## The rest of the bench

Every one of these is drawn and simulated the same way.

Full-size breadboard

A real 0.1 inch grid with the rails and the center channel, 63 columns wide.

Jumper wires

Drag from any pin or hole to any other. Corners snap, and you can drag them.

Power

A supply rail at the voltage you choose.

Ground

The other end of every circuit.

LED

Lights when current flows. Five colors, and the brightness is what your eye would see.

Filament lamp

A tungsten bulb in a holder: an inrush when it is switched on cold, tens of milliseconds to warm up, and dim on half its voltage.

Resistor

Any value you like, with the color bands drawn to match.

ESP32-C3-DevKitM-1

A RISC-V board that runs your firmware at 160 MHz on the real memory map.

Pushbutton

A 12 mm tactile switch. Hold it while the simulation runs.

Raspberry Pi Pico

The RP2040 board on our own Cortex-M0+ core. Pick a program and press Run.

Raspberry Pi Pico W

Raspberry Pi Pico W (RP2040). The same board and the same pinout as a Pico, with the CYW43439 on it. The WiFi is simulated (no radio; real internet through the Cloud panel’s switch), and the on-board LED, which hangs off that chip rather than off GP25, is driven through the same path. Everything else is the Pico.

Raspberry Pi 4 Model B

Raspberry Pi 4 Model B: the 40-pin header, driven by main.py with RPi.GPIO or gpiozero.

See every part

## Wire up the TMC2209 stepper driver

Open the editor and push it into the breadboard. It is free, and it runs on your own machine.

Start building free Open the editor
