CompleteSEOTools
Home › 3D Printing Tools › Stepper Driver Vref Calculator

Stepper driver Vref calculator

Choose the driver, type your sense resistor value and the current you want, and get the voltage to set on the potentiometer.

About Stepper Driver Vref Calculator

Drivers like the A4988, DRV8825 and TMC2209 have a small potentiometer that sets the motor current. You measure its voltage, called Vref, and compare it with a formula. The formula depends on the driver and on the sense resistor soldered to the board. An A4988 with 0.068 ohm resistors set to 1.0 A needs 0.544 V, because Vref = current x 8 x Rs. A DRV8825 uses a factor of 5 in place of 8. The TMC2209 formula gives an RMS current and also a CS value for UART mode.

  • Setting motor current on a new printer board.
  • Checking what current a Vref reading already gives.
  • Moving between A4988, DRV8825 and TMC2209 drivers.
  • Finding the CS value for a TMC2209 in UART mode.

How to use Stepper Driver Vref Calculator

1

Step 1

Pick the driver and whether you want the Vref or the current.

2

Step 2

Enter the sense resistor value from your own board, and the target current.

3

Step 3

Measure Vref between the potentiometer and ground, and adjust until it matches.

Good to know

  • The sense resistor value varies between makers and clone boards. Read the code printed on the resistor, such as R068 for 0.068 ohm, or check the seller's data sheet.
  • A4988 and DRV8825 formulas give the peak chopper current. The TMC2209 formula here gives RMS, so the same number is not the same heat in the motor.
  • Higher current means a hotter driver and motor. Check both data sheets, add a heatsink and a fan, and never exceed the motor's rating.

Common questions

What is the A4988 formula?

Current limit = Vref / (8 x Rs). With Rs of 0.068 ohm and Vref of 0.544 V you get 1.0 A.

What is the DRV8825 formula?

Current limit = Vref / (5 x Rs). With Rs of 0.1 ohm and Vref of 0.75 V you get 1.5 A.

Why does the TMC2209 add 0.02 ohm?

The chip has its own small internal resistance, which the data sheet adds to the sense resistor in the current formula.