Overview
The SG90 is a 9g lightweight servo motor, perfect for small-scale applications. It is widely used in DIY electronics and robotics projects due to its affordability, ease of use, and compatibility with microcontrollers like Arduino.
Specifications
- Weight: 9g
- Operating Voltage: 4.8V to 6V
- Torque: 1.8 kg/cm (4.8V), 2.2 kg/cm (6V)
- Speed: 0.1s/60° (4.8V), 0.09s/60° (6V)
- Rotation Angle: 0° to 180°
- Connector Type: 3-wire (Signal, Vcc, Ground)
Features
- Compact and lightweight design.
- High efficiency and low power consumption.
- Wide compatibility with Arduino, Raspberry Pi, and other microcontrollers.
- Durable plastic gear for smooth operation.
Applications
- Robotics: Small robotic arms and grippers.
- RC Vehicles: Steering mechanisms.
- Cameras: Pan-and-tilt mechanisms for lightweight cameras.
- DIY Projects: Animatronics and custom automation systems.
How to Use SG90
To control the SG90 with Arduino:
- Connect the SG90's signal wire to a PWM pin on the Arduino.
- Provide power (5V) and ground connections.
- Upload the following code:
#includeServo sg90; void setup() { sg90.attach(9); // Connect to pin 9 } void loop() { sg90.write(0); // Rotate to 0° delay(1000); sg90.write(90); // Rotate to 90° delay(1000); sg90.write(180); // Rotate to 180° delay(1000); }