Stepper Driver Vref Calculator: A4988, DRV8825 and TMC2209

Short answer: the reference voltage (Vref) sets a stepper driver’s current limit. For an A4988 it is Vref = 8 × Imax × Rcs (0.068 Ω on Pololu boards since 2017, so 1 A needs 0.544 V) [1]. For a DRV8825 it is Vref = Imax ÷ 2 with Pololu’s 0.100 Ω resistors (1 A needs 0.5 V) [2]. For a standalone TMC2209 with 0.110 Ω resistors it is Vref = IRMS × √2, so 1.01 A RMS needs 1.43 V [3][4]. The A4988 and DRV8825 limits are peak currents; the TMC2209’s is RMS, so the same motor needs a different Vref on each.

Result

Defaults are a 1.5 A motor at 70% on a TMC2209. The percentage is only a starting point, not a standard; see the tips below. Measure Vref between the trimmer (or the Vref pin) and GND with the driver powered, motor stopped. Nothing is uploaded.

How the Vref is calculated

A4988. Pololu gives IMAX = VREF ÷ (8 × RCS), solved for Vref as 8 × IMAX × RCS [1]. All Pololu A4988 carriers made since 2017 have 0.068 Ω resistors; earlier green ones have 0.050 Ω [1]. Pololu’s own example is 1 A needs about 540 mV (the exact 8 × 1 × 0.068 is 544 mV). Pololu also notes that IMAX is the length of the current vector in the two coils, so in full-step mode each coil only carries about 70% of it [1].

DRV8825. Pololu’s current limit is VREF × 2 with 0.100 Ω sense resistors, or VREF = limit ÷ 2: a 1 A limit is 0.5 V [2]. That is the same as VREF ÷ (5 × RS) with RS = 0.1 Ω. The calculator uses that general form so a different sense resistor can be entered; Pololu only specifies the 0.100 Ω board [2].

TMC2209 (standalone, Vref mode). Trinamic’s formula, as published by BIGTREETECH, is IRMS = 0.325 V ÷ (RSENSE + 0.020 Ω) × (1 ÷ √2) × (VREF ÷ 2.5 V) [3]. With BIGTREETECH’s 0.110 Ω resistors that simplifies to IRMS = VREF ÷ √2, so the peak current equals the Vref [3]. At the 2.5 V ceiling that is 1.77 A RMS, the module’s maximum [7]. The datasheet rates the chip at 2 A RMS and 2.8 A peak [4].

Klipper UART. In UART mode you give Klipper run_current in amps RMS, with sense_resistor defaulting to 0.110 Ω [5][6]. Klipper turns it into a 5-bit current scale: it first tries the more sensitive range (full-scale 0.18 V, vsense on), and if that runs out at scale 31 and the 0.32 V range lands closer it switches, then I = (scale + 1) × Vfs ÷ (32 × (R + 0.020) × √2) [5]. The third calculator mode shows which level you actually get.

Vref for common target currents

Target currentA4988 0.068 Ω (peak)A4988 0.050 Ω (peak)DRV8825 0.1 Ω (peak)TMC2209 0.11 Ω (as RMS)TMC2209 0.11 Ω (as peak)
0.4 A0.218 V0.160 V0.200 V0.566 V0.400 V
0.6 A0.326 V0.240 V0.300 V0.849 V0.600 V
0.8 A0.435 V0.320 V0.400 V1.131 V0.800 V
1 A0.544 V0.400 V0.500 V1.414 V1.000 V
1.2 A0.653 V0.480 V0.600 V1.697 V1.200 V
1.4 A0.762 V0.560 V0.700 V1.980 V1.400 V
1.5 A0.816 V0.600 V0.750 V2.121 V1.500 V
1.7 A0.925 V0.680 V0.850 V2.404 V1.700 V
2 A1.088 V0.800 V1.000 V2.828 V2.000 V

Computed from the formulas above. Values above the limits in the tips (for example 1.7 A or 2 A on a TMC2209 as RMS) are shown only for reference; the calculator warns when a result passes a documented limit.

Worked examples

TMC2209, BIGTREETECH module, 1.01 A RMS. Vref = 1.01 × √2 × 2.5 × 0.130 ÷ 0.325 = 1.43 V. A 1.5 A motor at 70% is 1.05 A RMS, which needs 1.485 V.

TMC2209 factory setting. BIGTREETECH says the module ships at about 1.2 V (±0.1 V) [3]. That is 1.2 ÷ √2 = 0.85 A RMS by the formula; the BIGTREETECH page itself says about 0.9 A, which is consistent within the ±0.1 V tolerance.

A4988, new Pololu board, 1 A. 8 × 1 × 0.068 = 0.544 V. A 1.05 A limit needs 0.571 V. If you want 1 A in each coil in full-step mode, Pololu says to set the limit 40% higher, 1.4 A, which is 0.762 V (Pololu rounds this to 770 mV) [1]. An older 0.050 Ω board needs 0.40 V for 1 A.

DRV8825, 1 A. 1 ÷ 2 = 0.50 V. A 1.5 A motor at 70% is 1.05 A, so 0.525 V.

Klipper run_current 0.8 A (0.110 Ω). IRUN = 25 with vsense on, giving 0.795 A RMS. 1.05 A is IRUN 18 with vsense off: 1.033 A. 1.5 A is IRUN 27: 1.523 A. 2.0 A tops out at 1.741 A, because with 0.110 Ω resistors Klipper’s highest level is below 2 A.

Tips for setting motor current

Sources

  1. Pololu A4988 Stepper Motor Driver Carrier (item 1182). IMAX = VREF ÷ (8 × RCS), 0.068 Ω since 2017 and 0.050 Ω earlier, 540 mV example, 70% full-step note, cooling above about 1 A, 2 A rating.
  2. Pololu DRV8825 Stepper Motor Driver Carrier, High Current (item 2133). Current limit = VREF × 2 with 0.100 Ω resistors, 1 A at 0.5 V, 2.2 A sense-resistor limit, cooling above about 1.5 A.
  3. BIGTREETECH docs: TMC2209 (docs repository, last commit 7aa57a9, 23 Dec 2025). Trinamic current formula, 110 mΩ sense resistors, IRMS = VREF ÷ √2, Vref range 0.2–2.2 V, factory default 1.2 V (±0.1 V).
  4. Analog Devices / Trinamic TMC2209 datasheet, rev. 1.09. 2.8 A peak and 2 A RMS rating, 1.4 A RMS thermal rule of thumb, GCONF.I_scale_analog (reset default 1: use the voltage on VREF), IRUN advice (16 to 31). Its current-scaling chapter was not readable in the text extraction, so the formula itself is taken from [3].
  5. Klipper source: klippy/extras/tmc2130.py (TMCCurrentHelper) (file last changed in commit 317f8c9; master at 7558e8c on 24 Nov 2026). run_current in amps, sense_resistor default 0.110, vsense selection, 0.18 V and 0.32 V full scale, MAX_CURRENT 2.000; also used by tmc2208.py and tmc2209.py. The Klipper config reference lists run_current and the 0.110 Ω default for the TMC2209.
  6. Klipper documentation: TMC drivers. Prefer higher current as long as the motor and driver do not overheat; warm is fine, too hot to touch is not.
  7. programming-electronics-diy: TMC2209 stepper driver module tutorial (14 Dec 2023). Start at about half the rated current, 1.77 A RMS maximum with 110 mΩ resistors, Vref ceiling 2.5 V.
  8. BIGTREETECH docs: TMC2208. 1.2 A RMS / 2 A peak rating and Vref range.

All sources fetched and checked 27 Nov 2026. The page does not use any measurement from our own printers. Always check your driver board’s own documentation, because clone boards can use other sense resistors.

Related: steps per mm (microsteps, rotation_distance) · e-steps & extruder rotation distance · input shaper · belt tension (Hz ↔ N) · bed leveling screw turns

FAQ

How do I calculate Vref for a TMC2209?

In standalone mode, Trinamic’s formula is I_RMS = 0.325 V ÷ (R_sense + 0.020 Ω) ÷ √2 × (Vref ÷ 2.5 V). With the 0.110 Ω resistors on BIGTREETECH modules that becomes Vref = I_RMS × √2. For 1.01 A RMS set about 1.43 V. The same module ships at about 1.2 V, which is 0.85 A RMS.

What Vref should I set for an A4988?

Vref = 8 × current limit × sense resistor. Pololu A4988 boards made since 2017 use 0.068 Ω, so 1 A is 0.544 V (Pololu quotes about 540 mV); older green boards use 0.050 Ω, so 1 A is 0.40 V. Pololu says boards above about 1 A per coil need a heat sink or other cooling.

What Vref should I set for a DRV8825?

Pololu’s DRV8825 carrier has 0.100 Ω sense resistors, so the current limit is Vref × 2 and Vref is the limit ÷ 2. For a 1 A limit set 0.5 V. Pololu says the carrier needs extra cooling above about 1.5 A per coil and is limited to 2.2 A by its sense resistors.

Is the TMC2209 current RMS or peak?

The datasheet and Klipper use RMS. A4988 and DRV8825 limits are peak values. Peak = RMS × √2, so a TMC2209 set to 1.0 A RMS peaks at 1.41 A. With BIGTREETECH’s 0.110 Ω resistors the peak current equals the Vref in volts.

What current should I set for a NEMA 17 motor?

Not the full rated current as a first try. One TMC2209 tutorial suggests starting at about half the rating and raising it in 0.1 A steps if the motor loses steps; Klipper’s guidance is to use higher current only as long as the motor and driver do not get too hot. The 70% default here is a starting point, not a standard.

Does Vref matter if I use UART with Klipper?

In UART mode you set run_current in amps RMS in printer.cfg and Klipper calculates the register values. Whether the Vref trimmer still limits the current depends on the driver’s I_scale_analog setting (the TMC2209 datasheet’s reset default is to use the voltage on VREF) and your firmware, so a very low trimmer setting can still make the motor weak.

Why does Klipper not give me exactly the run_current I typed?

Klipper uses a 32-step current scale, so it picks the nearest level. With 0.110 Ω resistors a run_current of 0.8 A becomes level 25 and 0.795 A, and 1.05 A becomes 1.033 A. It also cannot reach 2.0 A on 0.110 Ω resistors: its highest level there is about 1.74 A.