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
- Power it from 4 AA cells or a 5 V supply, not from the Arduino's 5V pin, if you have more than one.
- Join the supply's GND to the Arduino's GND.
- Try 10 to 170 instead of 0 to 180.
- Call
detach()when it needn't hold.
It worked if: It sweeps smoothly with the Servo > Sweep example.
Related errors
Tutorials where it can happen
- Ultrasonic Sensor and Servo Motor with Arduino Uno
- Automatic Pet Feeder with Arduino and Servo
- Bluetooth Controlled Servo Motor using Arduino for Kids
- Color Detection and Sorting System with TCS34725
- Object Tracking and Following System with LCD Feedback
- Smart Blinds Control Based on Weather Conditions with LCD Feedback
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.

