Stepper driver Vref calculator

Too little current and the printer skips steps; too much and motors and drivers overheat. Enter the motor’s rated current from its datasheet, choose the driver, and get the voltage to set on the driver’s potentiometer — or check what a measured Vref means.

Driver

Ω

Printed on the small resistors next to the chip: R100 = 0.100 Ω, R068 = 0.068 Ω, R110 = 0.110 Ω.

Motor

A

From the motor datasheet or label, e.g. 17HS4401: 1.7 A; 17HS19-2004S1: 2.0 A.

%

70–85% of rated current is a common balance between torque and temperature.

V
Print cost calculatorTolerance and fit calculatorE-steps and flow calculatorSteps per mm calculatorGear ratio calculatorFilament weight and length calculatorVolumetric flow calculatorResin print cost calculatorLayer height calculatorWall thickness calculatorPrint time estimatorInch to mm converterScale calculatorHeat-set insert and screw hole calculatorFilament drying calculator3D printer payback calculatorGT2 belt length calculatorSnap-fit calculatorStepper driver Vref calculatorPressure advance calculatorZ offset calculatorSTL volume and weight calculatorAll calculators

The formulas

DriverFormulaTypical Rsense
A4988Imax = Vref ÷ (8 × Rsense)0.05, 0.068, 0.1 or 0.2 Ω
DRV8825Imax = Vref ÷ (5 × Rsense) — with 0.1 Ω, I = 2 × Vref0.1 Ω
TMC2208 / 2209 / 2225 (standalone)IRMS = Vref ÷ 2.5 × 0.325 ÷ (Rsense + 0.02) ÷ √20.11 Ω (some boards 0.15 Ω)

Stepper datasheets give the rated current per phase. A4988 and DRV8825 limit the peak current, which is √2 times the RMS current in microstepping; TMC drivers are usually specified in RMS. The calculator converts between the two.

Tuning the current

Related: the steps per mm calculator and the e-steps calculator.

Frequently asked questions

What is Vref?

The reference voltage that tells a stepper driver how much current to send to the motor. You measure it with a multimeter between the potentiometer (or the Vref test point) and ground while the board is powered, and turn the potentiometer with a ceramic or plastic screwdriver.

How do I measure Vref safely?

Power the board from its supply (USB alone is not enough), put the black probe on a ground pin and touch the red probe to the potentiometer wiper. Turn in small steps. Do not short the pins — a slipped screwdriver can destroy the driver.

Why is my motor or driver so hot?

Stepper motors run warm — up to about 70 °C on the case is normal. Drivers above about 80 °C need a heatsink and airflow, or less current. If the motor skips steps when cool, the current is too low or the speed and acceleration too high.

What about TMC drivers in UART or SPI mode?

Then the potentiometer is ignored and the current is set in firmware: run_current in Klipper (RMS, in amperes) or the X_CURRENT / Y_CURRENT values in Marlin (RMS, in milliamperes). The calculator shows the value to enter.

Ready to print something? LyraMaker has free browser generators for keychains, signs, boxes, rulers and more — all exporting STL and 3MF.
Browse the generators →