Back to blog

How to set the Vref of a stepper driver (A4988, DRV8825, TMC2209)

Published: 5 min read
How to set the Vref of a stepper driver (A4988, DRV8825, TMC2209)

Too little stepper current means skipped steps and shifted layers. Too much means a hot motor and a driver that shuts itself down. The current is set by the reference voltage Vref, measured on the driver's potentiometer.

The Vref calculator works out the voltage for your driver and motor. Below we explain the formulas and the measurement.

3D printing calculatorsFree tool3D printing calculatorsCost, drying, spool, shrinkage, flow, E-steps

How much current to give the motor

  • The rated current per phase is on the motor label or datasheet, for example 1.5 A.
  • Start with 70-85% of the rated current. At 85% of 1.5 A you get 1.275 A peak, or about 0.90 A RMS.
  • A4988 and DRV8825 are set by peak current, TMC2209 by RMS current. Mixing them up is an error of about 40%.

Vref formulas

  • A4988: Vref = I × 8 × Rs. With a 0.1 Ω resistor and 1.275 A that is 1.02 V.
  • DRV8825: Vref = I × 5 × Rs. With 0.1 Ω and 1.275 A that is about 0.64 V.
  • TMC2209 (potentiometer control): Vref = I_RMS × 2.5 × √2 × (Rs + 0.02) / 0.325. With 0.11 Ω and 0.90 A RMS that is about 1.28 V.
  • Read the sense resistor (Rs) on the driver board: R100 is 0.1 Ω, R110 is 0.11 Ω. Different makers use different values.

Need a print like this?

Send a model or describe the part - you'll usually get a free quote within 24 hours.

Request a quote

How to measure and set it

  • Power the board but do not move the motors. Never unplug a motor with the power on, or you may kill the driver.
  • Set the multimeter to DC volts. Negative to ground (GND), positive to the driver's metal potentiometer.
  • Turn the potentiometer a few degrees at a time with a small, ideally ceramic, screwdriver and measure after each change.
  • With a TMC2209 driven over UART the current is set in the firmware and the potentiometer does nothing.

How to tell it is right

After an hour of printing the motor may be warm, but you can hold it in your hand. If it burns, lower the current by 5-10%. If layers shift or the motor hums and skips steps, raise it in the same steps without exceeding the rated current. A driver without a heatsink and cooling usually will not handle more than about 1 A.

Frequently asked questions

What Vref for a TMC2209 and a 1.5 A motor?+

At 85% current and a 0.11 Ω resistor, about 1.28 V. Check the resistor value on your board, because a different Rs changes the result.

Why does a stepper motor get hot?+

Steppers draw current even at rest, so a warm motor is normal. If you cannot touch it, the current is too high.

Can I set the full rated current?+

You can, but usually there is no need. 70-85% gives enough torque for a 3D printer, and the motor and driver run cooler.

Recommended gear for this topic

Affiliate links: if you buy something I get a small commission, and you pay the same. As an Amazon Associate I earn from qualifying purchases.

Author

Bartosz Budny, founder of BnB3D

He has worked in 3D printing for more than 10 years: servicing, building and running printers, and has designed in Fusion 360 for more than 5 years. He writes about what he prints and tests on his own printers in Myszków, Poland (over 4,000 print hours on his MakerWorld models alone).

Got a project to print?

Send a model or a description - you'll usually get a free quote within 24 hours.

Request a quote

Related services