ClassA Motor

Why does my motor position drift after it stops?: causes and fixes

A motor that runs correctly but ends up in a different position each cycle is losing position somewhere: lost steps, slip in the drive train, backlash, a brake that does not hold, or counting noise. How to find which one applies.

Updated 2026-11-28

Short answer

Position drift means the number of motor revolutions does not match the number of commands, or the load moves after the motor stops. Find out whether the error is in the motor (lost steps or counts), between the motor and the load (slip, backlash or coupling movement), or in the holding (a brake or friction that does not hold). Test by moving the motor a known amount and measuring the load, then repeat with the motor disabled.

Where the error can come from

  • Open-loop stepper: lost steps under load or acceleration are never corrected. Each lost step is a fixed position error.
  • Closed-loop encoder counts: noise or a wrong encoder setting adds false counts.
  • Between motor and load: belt slip, a loose coupling, a set screw working loose, or gearbox backlash.
  • Holding: a brake or friction that does not hold a vertical load lets it creep when the motor is disabled.
  • Control: a drive in velocity mode, or with a command offset, creeps slowly even when the target is fixed.

Worked example: backlash and encoder counts

Take a 5 mm lead screw, a 5:1 gearbox and a 2000-line encoder read in x4 quadrature. The motor gives 8000 counts per revolution, so the screw gives 40,000 counts per revolution, and one count is 5 mm ÷ 40,000 = 0.000125 mm. A gearbox with 0.1 degree of backlash at the output shaft has 0.1 ÷ 360 × 5 mm = 0.0014 mm of play, which is about 11 counts. If the encoder sits on the motor side, the controller cannot see this play, and the load position differs from the counted position by up to that amount each time the direction changes.

Find the source with a test

  • Command the same move, say 10 mm, twenty times. Measure the load with a dial indicator. Scatter that repeats in the same direction points to backlash or slip. A steady one-way drift points to lost steps or a control offset.
  • Compare the encoder count with the load reading. If the count changes but the load does not, the coupling or the belt is the link to check.
  • Disable the drive and see whether the load still moves. Movement with the motor off means the brake or the friction is failing.
  • Check whether the drift happens in one direction only. One-way drift on a vertical axis points to gravity and the brake; two-way scatter points to backlash.

Fixes

  • Use closed-loop control, or put the encoder on the load side, when precision matters.
  • Reduce the acceleration or increase the torque margin so steps are not lost.
  • Tighten and check couplings, belts, set screws and bearing play.
  • Choose a low-backlash gearbox, or preload the gear train for reversing moves.
  • Fit a holding brake on vertical axes and check its torque.
  • Always finish a move from the same side, so backlash is taken up in the same direction every time.

Common mistakes

  • Assuming an open-loop stepper is accurate. It loses steps silently when overloaded.
  • Reading drift from the motor encoder when the load is what moved.
  • Adjusting gains to remove drift that is actually caused by slip.
  • Ignoring thermal growth in a long shaft, which can look like drift during warm-up.

Gearbox output

T₂ = T₁ × i × η; n₂ = n₁ / i

Output torque5.4N·m
Output speed300rpm
Output power170W

Sourcing a motor or production equipment from China? We can find and contact the right factories for you in Chinese. Ask on WhatsApp →