Servo shakes, buzzes or doesn't reach the angle

  • Servo SG90

Why it happens

  • Too little power, especially with more than one servo.
  • The servo is pushed past its end (0 or 180).
  • No shared ground with a separate supply.

How to fix it

  1. Power it from 4 AA cells or a 5 V supply, not from the Arduino's 5V pin, if you have more than one.
  2. Join the supply's GND to the Arduino's GND.
  3. Try 10 to 170 instead of 0 to 180.
  4. Call detach() when it needn't hold.

It worked if: It sweeps smoothly with the Servo > Sweep example.

From the official documentation. Power advice from the Arduino Servo library page. Sources: Arduino Servo library.

Didn't help? Search another error or ask us.