The MG90S is a compact and lightweight micro servo motor known for its precise angular movement capabilities. It is widely used in hobby projects, small robotic systems, and radio-controlled devices. The MG90S is favored for its durability, metal gears, and its ability to operate at higher speeds than many other servos in its class.
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 the MG90S
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
myservo.write(90); // sets the servo position to 90°
delay(1000); // waits for a second
myservo.write(0); // sets the servo to position 0°
delay(1000); // waits for a second
}
Q: Can I control the MG90S with a Raspberry Pi? A: Yes, but you will need to ensure proper PWM signal generation, which may require additional libraries or hardware.
Q: How many MG90S servos can I connect to an Arduino UNO? A: The UNO can control as many servos as there are PWM pins available, but power limitations may require an external power supply for multiple servos.
Q: What is the lifespan of the MG90S servo? A: The lifespan can vary based on usage, but with proper care and within its operating specifications, it can last for several years.