A 3D printer, a CNC router or a camera slider moves by counting steps, and the firmware needs to know how many steps make a millimetre. This calculator converts the motor, the microstepping and the travel per revolution into steps per millimetre, the resolution, the pulse frequency at your target speed and the maximum speed your driver can reach.
How the calculation works
- Steps per millimetre = full steps per revolution × microstepping ÷ travel per revolution
- Resolution = 1 ÷ steps per millimetre
- Pulse frequency = steps per millimetre × speed in mm/s
- Motor speed (rpm) = speed ÷ travel per revolution × 60
- Maximum speed = driver step rate limit ÷ steps per millimetre
Example
A 200-step motor at 1/16 microstepping drives a belt with 40 mm of travel per revolution. That gives 80 steps/mm and a resolution of 0.0125 mm. At 100 mm/s the controller must output 8 kHz of pulses, and the motor turns at 150 rpm. A 100 kHz step-rate limit allows up to 1,250 mm/s, so the pulse rate is no limit at this speed.
Why it matters
A wrong steps-per-millimetre value gives parts that are the wrong size. The same maths shows when a high microstepping value will overload the controller: at 1/256 on a fast machine the pulse rate can be higher than a small board can generate, and the axis will stutter. Knowing the numbers helps you pick a belt, a screw lead and a microstepping value together.
Good to know
The resolution is theoretical: real accuracy depends on the motor’s step error, the backlash in the mechanism and the stiffness of the frame, and only about the first few microsteps of each full step are accurate. Torque falls with speed, so a motor may skip steps at speeds well below the pulse-rate limit. This tool is for education and for setting up a machine; verify with a measured move.
In practice
After entering the steps per millimetre, command a move of 100 mm, measure the actual distance and scale the setting by the ratio. If the machine is noisy or loses steps, try a lower speed or acceleration before changing the microstepping.
Related tools
The gear ratio and bike gear calculators work out mechanical ratios, the 555 timer calculator generates pulse trains and the PWM calculator sets duty cycles.