Skip to content
Calculator · Electronics

Stepper driver Vref calculator

Pick the driver and the sense resistor printed on the board, enter the motor current, and read the voltage to set on the trimpot. The bench shows the meter on the pot and the two coil currents on a scope.

TMC2209 · 800 mA RMS → Vref 1.13 V
Driver
Sense resistor (printed on it)
80%
Read that current as
Set Vref to
Peak coil current
RMS coil current
Full-step current
Most this board can set
Working

A4988: eight times Rs

Allegro's datasheet sets the current limit from the reference voltage and the sense resistor.

Vref = 8 × Rs × I

DRV8825: five times Rs

TI's chip uses a divide-by-five, so the same current needs a lower Vref on the same resistor.

Vref = 5 × Rs × I

TMC2209: an RMS current

Trinamic drivers scale a 325 mV full-scale sense voltage, and the result is RMS, not peak.

IRMS = 0.325 ÷ (Rs + 0.02) × Vref ÷ (2.5 √2)

What Vref should I set on my stepper driver?

Vref is the sense resistor times a constant times the current. An A4988 with 0.068 Ω resistors needs Vref = 8 × 0.068 × I, so 544 mV for a 1 A limit. A DRV8825 with 0.100 Ω needs 5 × 0.100 × I, 500 mV for 1 A. A TMC2209 with 0.110 Ω sets an RMS current, and 800 mA RMS needs 1.131 V.

The step-by-step guide with the multimeter, and why a TMC2209 number is RMS while an A4988 number is a peak, is in how to set Vref on A4988 and TMC2209 drivers.

Key results from the calculator

  • A4988, R068, 1 A limit: Vref 544 mV. On an older R050 board, 400 mV.
  • DRV8825, R100, 1 A limit: Vref 500 mV, which is simply half the current.
  • TMC2209, R110: Vref ≈ 1.41 × the RMS current, so 800 mA RMS is 1.131 V and the top of the 2.5 V range is 1.77 A RMS.
  • TMC2208, R110: 800 mA RMS needs 1.218 V; 2.5 V gives 1.64 A RMS.

Six boards

Each example loads the driver, the sense resistor and the current.

An A4988 carrier set to 1 A

A4988 · R068

Pololu has fitted 0.068 Ω sense resistors to its A4988 carriers since 2017. Vref = 8 × 0.068 × 1 = 544 mV. In full step each coil then carries 707 mA.

Vref 544 mV Limit 1.00 A Full step 707 mA ±5% band 517 mV to 571 mV

An older A4988 with R050 resistors

A4988 · R050

Earlier Pololu boards had green 0.050 Ω resistors. The same 1 A needs only 400 mV, so a Vref copied from a newer board would set 1.36 A.

Vref 400 mV Limit 1.00 A Full step 707 mA Vref × 2.5 1.00 A

A DRV8825 carrier set to 1 A

DRV8825 · R100

With 0.100 Ω resistors, Vref = 5 × 0.1 × I = I ÷ 2, so 500 mV for 1 A. TI quotes full accuracy for Vref from 1 to 3.5 V; below 1 V the chip works but the current is less exact.

Vref 500 mV Limit 1.00 A Full step 707 mA At 2.5 A 1.25 V

A TMC2209 at 0.8 A RMS

TMC2209 · R110

Watterott suggests 0.5 to 0.8 A RMS for 3D-printer NEMA 17 motors, which is Vref 707 mV to 1.131 V on a 0.110 Ω SilentStepStick. The peak of each coil's sine wave is 1.13 A.

Vref 1.131 V RMS 800 mA Peak 1.13 A Range top 1.77 A RMS

A TMC2209 read as a peak current

TMC2209 · R110

With R110 the volts on the pot equal the peak amps: BIGTREETECH ships its TMC2209 at about 1.2 V, a 1.20 A peak and 849 mA RMS.

Vref 1.20 V Peak 1.20 A RMS 849 mA Full step 849 mA

A TMC2208 at 0.8 A RMS

TMC2208 · R110

Watterott gives the TMC2208 SilentStepStick 1.64 A RMS at 2.5 V against 1.77 A for the TMC2209, so the same current needs a slightly higher Vref: 1.218 V for 800 mA.

Vref 1.218 V RMS 800 mA Peak 1.13 A Range top 1.64 A RMS

Vref for common boards

CurrentA4988 R068A4988 R050DRV8825 R100TMC2209 R110 (RMS)TMC2208 R110 (RMS)
500 mA272 mV200 mV250 mV707 mV761 mV
800 mA435 mV320 mV400 mV1.131 V1.218 V
1.00 A544 mV400 mV500 mV1.414 V1.523 V
1.20 A653 mV480 mV600 mV1.697 V1.828 V
1.50 A816 mV600 mV750 mV2.121 V2.284 V

A4988 and DRV8825 columns treat the current as the limit (peak); TMC columns treat it as RMS. Check the marking on your own sense resistors before using a column.

How the calculator works

A4988: ITripMAX = Vref ÷ (8 × Rs), from the Allegro datasheet. Vref range 0 to 4 V, trip accuracy ±5% at 70.71% and 100%.

DRV8825: ICHOP = Vref ÷ (5 × Rs), from the TI datasheet. Recommended Vref 1 to 3.5 V, ±5% at 71% to 100%.

TMC2209: IRMS = 0.325 V ÷ (Rs + 0.02 Ω) × 1/√2 × Vref ÷ 2.5 V, as BIGTREETECH and Watterott give it. The peak is √2 times the RMS.

TMC2208: the same form with 0.03 Ω in place of 0.02 Ω, which reproduces Watterott’s 1.64 A RMS at 2.5 V.

Full step: both coils sit at 70.71% of the peak, which is why Pololu notes that a coil-current reading in full step is about 0.7 times the limit.

What the model leaves out

  • Logic voltage on A4988 boards: on Pololu carriers Vref is divided down from VDD, so changing between 3.3 V and 5 V logic changes it. Measure again after a change.
  • Motor speed: at high step rates the coil voltage cannot drive the full current in, and the real current falls below the limit.
  • Heat: a driver that can be set to 2 A will not carry it on a bare board. Pololu rates its A4988 carrier at about 1 A per phase without a heat sink or air flow.
  • UART setups: a TMC2208 or TMC2209 can also be configured over UART by the printer firmware, so check the firmware current setting as well as the pot.

Common misconceptions

"Vref is the current." It is a voltage. Only on a TMC2209 with 0.110 Ω does it happen to equal the peak current in amps.

"Same Vref, same current on any board." The sense resistor sets the scale. R050 and R068 A4988 boards differ by 36%.

"Set it to the motor rating." Watterott suggests starting at half the rated current and raising it in 0.1 A steps only if steps are lost.

Frequently asked questions

What should Vref be for an A4988?

Vref = 8 × Rs × I. With 0.068 Ω resistors, 544 mV for a 1 A limit; with older 0.050 Ω resistors, 400 mV.

What should Vref be for a DRV8825?

Vref = 5 × Rs × I. On a 0.100 Ω board that is half the current: 500 mV for 1 A.

What should Vref be for a TMC2209?

With 0.110 Ω sense resistors Vref ≈ 1.41 × the RMS current, so 1.131 V for 0.8 A RMS. The highest it can set at 2.5 V is 1.77 A RMS.

Is TMC2209 Vref RMS or peak?

The Trinamic formula gives RMS. On a 0.110 Ω board the Vref in volts equals the peak current in amps, and the RMS is that divided by √2.

Why is my full-step coil current lower than the limit?

In full step both coils are on at 70.71% of the limit, so a meter in series with one coil reads about 0.7 times the setting.

Keep learning

More simulations

More electronics and batteries tools

See all science tools