The Micro Servo 9G (SG90) by AZDelivery is a compact and lightweight servo motor widely used in the world of hobby electronics and robotics. Its small size and affordability make it an ideal choice for applications such as radio-controlled models, small robotics projects, and any application where precise movement and control of small components are required.
Pin Number | Color | Description |
---|---|---|
1 | Brown | Ground (GND) |
2 | Red | Power Supply (VCC) |
3 | Orange | Control Signal (PWM) |
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
myservo.write(90); // sets the servo position according to the scaled value
delay(1000); // waits for the servo to reach the position
myservo.write(0); // sets the servo back to the starting position
delay(1000); // waits for the servo to reach the position
}
Q: Can I control the Micro Servo 9G with a Raspberry Pi? A: Yes, you can control the servo using the Raspberry Pi's GPIO pins, but you will need to ensure proper logic level conversion and power supply.
Q: How many servos can I connect to an Arduino UNO? A: The Arduino UNO can control as many servos as there are PWM-capable pins available, but power limitations may require an external power supply when using multiple servos.
Q: What is the lifespan of the Micro Servo 9G? A: The lifespan can vary based on usage, but with proper care and not exceeding its specifications, it can last for many operational hours.