Get a quote

Free tool

Stepper motor calculator

Pick the motor's step angle and the driver's microstepping, then the belt and pulley or the lead screw and the speed you want. You get the steps per mm for the firmware, the resolution, the step rate the controller has to keep up with, the motor's rpm, and the reference voltage to set on an A4988 or DRV8825 driver.

80 steps per mmBelt, pulley and microsteps, part T-05

Free tool. Nothing to sign up for, and nothing you type leaves your browser.

A stepper motor with a toothed pulley driving a black timing belt along an aluminium extrusion frame on a Vereeniging workbench

Stepper motor calculator

Runs in your browser, nothing is sent
The motor
The drive
Belt and pulley
Lead screw
The driver

Sense resistors and formulas differ between driver boards: read your board's own documentation before you turn the potentiometer.

Rough cost, optional: NEMA 17 motors

Starting figures from published South African prices; check whether VAT is included and type the prices you are quoted.

Stepper

Steps per mm
-
Microsteps a turn
-
Travel a turn
-
Resolution
-
Step rate
-
Motor speed
-
Driver reference voltage
-
Rough cost
-


Copies these results into the Details box of the quote request on this page.

Arithmetic from the figures you type. The motor's and the driver's datasheets decide the current, and the machine's builder tunes speed and acceleration.

The same motor and drive at other microstep settings
MicrosteppingSteps per mmResolutionStep rate at your speed
1 (full steps)50.2 mm500 Hz
1/4200.05 mm2,000 Hz
1/16 (yours)800.0125 mm8,000 Hz
1/321600.0063 mm16,000 Hz

Before you power the motor

  • Never connect or disconnect a motor while the driver is powered: it can kill the driver. Set the current before the first long run, with the method in the driver board's own documentation.
  • Microstepping smooths the motion and quietens the motor, but each microstep holds less torque. Real positioning accuracy stays close to a full step; a finer pulley or a lead screw gives more.
  • Missed steps come from too much speed or acceleration, too little current, too low a supply voltage or a binding axis. Lower the acceleration in the firmware before you raise the current.
  • Motors and drivers run warm: heat sinks on the drivers and air over them. More on drivers, NEMA sizes and wiring on stepper motors; printer and CNC controller boards are on Arduino Mega.

A hobbyist in Vereeniging has built a pen plotter from aluminium extrusion and two belt driven motors, and the first test square came out the wrong size. The firmware wants one number for each axis, the steps per mm, and the driver wants its current set before the motors cook. This calculator works out both from the motor, the microstepping and the belt or lead screw; drivers and motor sizes are compared on stepper motors.

Steps per mm from three facts

A 1.8 degree motor takes 360 / 1.8 = 200 full steps a turn. The driver splits each full step into microsteps, so at 1/16 the controller sends 3200 pulses for one turn. A belt moves the pitch times the pulley teeth each turn; a lead screw moves its lead, the thread pitch times the starts. Microsteps a turn divided by mm a turn is steps per mm. Direct drive, for a turntable or rotary axis, gives steps per degree.

Worked example: the Vereeniging plotter

The calculator starts with a 1.8 degree motor at 1/16 microstepping on a 2 mm GT2 belt and a 20 tooth pulley, 100 mm a second, 1.5 A per phase on an A4988 board with 0.1 Ohm sense resistors and a 24 V supply:

FigureResult
Microsteps a turn200 x 16 = 3200
Travel a turn2 mm x 20 teeth = 40 mm
Steps per mm80
Resolution0.0125 mm a microstep, 0.2 mm a full step
Step rate at 100 mm/s8000 Hz
Motor speed150 rpm
Vref on the A49881.2 V at the full 1.5 A, 0.96 V at 80%

A 0.2 mm full step is coarser than 0.1 mm, so the calculator flags it.

More microsteps, more pulses to send

On the same belt, full steps give 5 steps per mm and 500 Hz at 100 mm/s; 1/4 gives 20 and 2000 Hz; 1/16 gives 80 and 8000 Hz; 1/32 gives 160 and 16,000 Hz. An 8 mm lead screw at 1/16 gives 400 steps per mm, 40,000 Hz and 750 rpm at the same speed, tripping both warnings. Somewhere around 20 to 40 kHz a slow microcontroller or a busy loop stops keeping up, and torque falls as the motor spins faster.

Setting the driver's current

The A4988 sets current with Vref = I x 8 x Rsense, and the common DRV8825 module uses Vref = I / 2. Sense resistors differ between driver boards, so read the value off yours and check the board's own documentation. A TMC2209 is set over UART or by a Vref formula in its datasheet. Starting at 70 to 90% of the rated current keeps motor and driver cooler; the calculator shows 100% and 80%. The Mega with a RAMPS shield is a common controller for machines like this.

Frequently asked questions

How do I calculate steps per mm for a lead screw?

Divide the microsteps a turn by the screw's lead. A 1.8 degree motor at 1/16 gives 3200 microsteps a turn; on an 8 mm lead that is 400 steps per mm. A 2 mm pitch, four start screw has an 8 mm lead.

Why does my stepper motor miss steps?

Too much speed or acceleration, too little current, too low a supply voltage, or an axis that binds. Lower the acceleration first, then check the current and turn the axis by hand to feel for tight spots.

Does more microstepping make a machine more accurate?

It makes the motion smoother and quieter, but each microstep holds less torque and is not an exact position. Real accuracy stays close to a full step, so a smaller pulley or a lead screw does more for precision than 1/256.

Who will quote me for stepper motors and drivers in Vereeniging?

Independent electronics suppliers and component distributors who deliver to the area. Send one request with the motor size, the current, the driver and the quantity, and they quote you directly; we pass the request on and sell nothing ourselves.

Read more

More tools

Get a quote for stepper motors and drivers

Tell us what you need: Arduino, ESP32, Raspberry Pi, Pico or STM32 boards, starter kits, chips, components, sensors, motors and displays, a soldering station, a PLC or PLC programming, PCBs made, designed or assembled, firmware, an IoT device or an Arduino project built for you. Electronics suppliers, distributors, PCB houses, embedded developers and PLC integrators who work in your area quote you directly. We sell, stock, make or program nothing ourselves. It is free and there is no obligation. Please leave out your street address.

Parts and services requestStepper Motors and Drivers
Request
No. MC-5271
Status
Not sent

The request

What you want optional, it helps the quote

Your request-

The list optional

Up to 12 lines: boards, chips, sensors, motors, PCBs, hours of programming or a build.

Usual lines, tap to add:

Needs and options

You

Free and no obligation. By sending you agree that we may share your request with suitable electronics suppliers, PCB houses, developers and PLC integrators. See our privacy policy.