ClassA Motor

Why does my servo motor oscillate, vibrate or hunt?: tuning causes and fixes

The usual causes of servo oscillation and hunting: gain too high, inertia mismatch, mechanical resonance and encoder problems, with a step-by-step tuning method.

Updated 2026-11-28

1. The short answer

A servo oscillates when the control loop has too much gain for the mechanics it drives, or when the mechanics resonate at a frequency the loop can excite. The motor follows the command, overshoots, corrects too hard and overshoots again. Hunting is a slower version of the same problem, often a position that keeps drifting back and forth around the target, usually caused by too much integral action, friction or backlash. Most cases are fixed by reducing the position or velocity gain, lowering the integral time, matching the load inertia to the motor, or adding a notch filter at the resonant frequency.

2. Inertia ratio: the first number to check

The load-to-motor inertia ratio is J_load / J_motor. Many drives are tuned for a ratio of about 5:1 or less, and above about 10:1 stable high-gain control becomes hard without a gearbox or extra tuning work. A heavy load on a small motor makes the loop sluggish at low gain and unstable at high gain. Find the motor inertia on its datasheet and estimate the load inertia from its mass and geometry (for a solid cylinder J = ½ m r²).

3. Worked example: inertia ratio

A servo motor has a rotor inertia of 0.5 × 10⁻⁴ kg·m². The load is a 10 kg steel roller of radius 0.05 m: J = ½ × 10 × 0.05² = 0.0125 kg·m². The ratio is 0.0125 / 0.00005 = 250. Well over any normal limit, the loop will be hard to tune. The same roller on a gearbox with ratio 10:1 reflects to the motor as 0.0125 / 10² = 0.000125 kg·m², giving a ratio of 2.5. That is comfortable, and it explains why a gearbox often makes a servo calm down.

4. Causes and how to tell them apart

  • Gain too high: the motor rings at a frequency of a few Hz to tens of Hz, with overshoot that grows as gain increases. Lower the gain first.
  • Integral too strong: a slow drift back and forth around the target, often with a stop-start feel. Increase the integral time or reduce the integral gain.
  • Mechanical resonance: a sharp buzz or vibration at one speed that is worse at some positions. Find the frequency and apply a notch filter, or stiffen the mount.
  • Backlash or loose coupling: the motor hunts around the target because the load moves before the drive sees it. Tighten the coupling and check the gearbox.
  • Encoder noise: the position jumps by a count or two. Check the shielding, grounding and cable routing away from the motor power cable.
  • Low resolution or wrong feedback: a coarse encoder limits how tight the loop can be made. Use a higher-resolution encoder if the application needs it.

5. A simple tuning order

  • Start with the drive's auto-tune or default gains on a light load, and check that the motor does not run away.
  • Set the integral term small, then raise the proportional or velocity gain until the motor just starts to ring.
  • Back the gain off by about 20–30% to get a stable margin.
  • Increase the integral action slowly until the final position settles quickly without overshoot.
  • Record the step response at the worst load and speed, and confirm the result across the full range.

6. Common mistakes

  • Raising gains to get a stiffer position. This moves the system toward instability, not precision.
  • Tuning with the load disconnected and then running it with a heavy load.
  • Ignoring a worn gearbox or a loose pulley, which look like tuning problems but are mechanical.
  • Using a servo on an undersized mechanical frame that flexes under torque.

7. Choosing a servo that will be stable

Size the motor so that the inertia ratio is in the drive's recommended range, and so that the continuous torque covers the RMS load. A gearbox that matches the required speed and torque will often bring the ratio down. Use the servo sizing and gear ratio calculators before you buy.

  • Check the torque and inertia at /tools#inertia.
  • Check the gear ratio at /tools#gearbox.

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 →