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
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.
The formulas
| Driver | Formula | Typical Rsense |
|---|---|---|
| A4988 | Imax = Vref ÷ (8 × Rsense) | 0.05, 0.068, 0.1 or 0.2 Ω |
| DRV8825 | Imax = Vref ÷ (5 × Rsense) — with 0.1 Ω, I = 2 × Vref | 0.1 Ω |
| TMC2208 / 2209 / 2225 (standalone) | IRMS = Vref ÷ 2.5 × 0.325 ÷ (Rsense + 0.02) ÷ √2 | 0.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
- Start at about 75% of the motor’s rated current.
- If the axis skips steps at the speeds and accelerations you use, raise the current in 5–10% steps — or lower acceleration first.
- Extruder motors (especially small pancake steppers) often need less current; check their own rating.
- After a change, let the printer run a long print and feel the motors and drivers.
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.