

The Servo SG90 is a small, lightweight servo motor widely used in hobby projects, robotics, and remote-controlled devices. It is designed to provide precise control of angular position, making it ideal for applications such as steering mechanisms, robotic arms, and pan-tilt camera systems. Its compact size, affordability, and ease of use make it a popular choice for beginners and experienced makers alike.








The Servo SG90 has a 3-pin connector with the following pinout:
| Pin Number | Wire Color | Function | Description |
|---|---|---|---|
| 1 | Brown | Ground (GND) | Connect to the ground of the power supply |
| 2 | Red | Power (VCC) | Connect to a 4.8V-6.0V power source |
| 3 | Orange | Signal (PWM) | Receives PWM signal for position control |
Below is an example of how to control the Servo SG90 using an Arduino UNO:
#include <Servo.h> // Include the Servo library
Servo myServo; // Create a Servo object to control the SG90
void setup() {
myServo.attach(9); // Attach the servo to pin 9 on the Arduino
}
void loop() {
myServo.write(0); // Move the servo to 0 degrees
delay(1000); // Wait for 1 second
myServo.write(90); // Move the servo to 90 degrees (center position)
delay(1000); // Wait for 1 second
myServo.write(180); // Move the servo to 180 degrees
delay(1000); // Wait for 1 second
}
Code Explanation:
Servo library simplifies controlling the SG90.attach() function links the servo to a specific PWM pin.write() function sets the servo's position in degrees (0° to 180°).Servo Not Moving:
Servo Jittering:
Servo Overheating:
Limited Range of Motion:
Q: Can I use the Servo SG90 with a 3.3V microcontroller?
A: Yes, but you must power the servo with 4.8V-6.0V and use a level shifter for the PWM signal if necessary.
Q: How many SG90 servos can I control with an Arduino?
A: The number depends on the available PWM pins and the power supply's capacity. Ensure the power supply can handle the total current draw.
Q: Can the SG90 rotate continuously?
A: No, the SG90 is a positional servo with a range of 0° to 180°. For continuous rotation, use a continuous rotation servo.
Q: What is the lifespan of the SG90?
A: The lifespan depends on usage conditions, but it is generally durable for hobby projects when operated within its specifications.