The SG90 Servo Motor is a small, lightweight, and inexpensive servo motor commonly used in hobbyist projects for precise control of angular position. It is widely popular in robotics, RC (Radio Control) vehicles, and various DIY electronics projects due to its ease of use and affordability.
Specification | Value |
---|---|
Operating Voltage | 4.8V - 6.0V |
Stall Torque | 1.8 kgf·cm (4.8V), 2.2 kgf·cm (6.0V) |
Operating Speed | 0.1 s/60° (4.8V), 0.08 s/60° (6.0V) |
Control Signal | PWM (Pulse Width Modulation) |
Angle Range | 0° to 180° |
Weight | 9g |
Dimensions | 22.2mm x 11.8mm x 31mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | GND | Ground |
2 | VCC | Power Supply (4.8V - 6.0V) |
3 | Signal | PWM Signal Input for Position Control |
Power Connection:
Signal Connection:
Arduino UNO SG90 Servo Motor
----------------- -----------------
5V ----------------> VCC
GND ----------------> GND
Pin 9 --------------> Signal
#include <Servo.h> // Include the Servo library
Servo myServo; // Create a Servo object
void setup() {
myServo.attach(9); // Attach the servo to pin 9
}
void loop() {
myServo.write(0); // Move to 0 degrees
delay(1000); // Wait for 1 second
myServo.write(90); // Move to 90 degrees
delay(1000); // Wait for 1 second
myServo.write(180); // Move to 180 degrees
delay(1000); // Wait for 1 second
}
Servo Not Moving:
Servo Jittering:
Limited Range of Motion:
Q: Can I use the SG90 with a 3.3V microcontroller?
Q: How do I increase the torque of the SG90?
Q: Can I control multiple SG90 servos with one Arduino?
This documentation provides a comprehensive guide to understanding, using, and troubleshooting the SG90 Servo Motor. Whether you are a beginner or an experienced user, this guide aims to help you make the most of this versatile component.