4.8V to 6.0V
4.8V to 6.0V
200mA
1.8 kg-cm
0.12 seconds transit time
1
0 to 180
23x12x29mm
9g
Compatibility and Integration
The SG90 Micro Servo Motor is compatible with most microcontrollers, including Arduino, Raspberry Pi, and ESP32. It can be easily integrated into IoT projects using popular communication protocols such as I2C, UART, and PWM.
Packaging and Accessories
This pack of 25 SG90 Micro Servo Motors includes |
25 x SG90 Micro Servo Motors
25 x mounting screws
1 x instruction manual
Ordering Information
When ordering, please note that this product comes in a pack of 25 units. If you require a single unit or a smaller quantity, please contact our sales team for custom ordering options.
SG90 Micro Servo Motor (Pack of 25) Documentation
Overview
The SG90 Micro Servo Motor is a compact and lightweight servo motor designed for use in robotics, drones, and other IoT projects. This pack of 25 motors provides a cost-effective solution for projects that require multiple servo motors. The SG90 servo motor is compatible with various microcontrollers, including Arduino, Raspberry Pi, and ESP32.
Technical Specifications
Operating Voltage: 4.8V to 6V
Operating Speed: 0.12sec/60 (4.8V), 0.10sec/60 (6V)
Stall Torque: 1.6kg.cm (4.8V), 2.2kg.cm (6V)
Dimensions: 23mm x 12mm x 28mm
Weight: 9g
Interfacing with Microcontrollers
The SG90 Micro Servo Motor can be controlled using a microcontroller's PWM (Pulse Width Modulation) output. The servo motor expects a PWM signal with a frequency of 50Hz and a pulse width between 500us and 2500us.
Code Examples
### Example 1: Basic Servo Motor Control with Arduino
In this example, we will use an Arduino Board to control the SG90 Micro Servo Motor.
```c++
#include <Servo.h>
Servo myServo; // Create a servo object
void setup() {
myServo.attach(9); // Attach the servo to digital pin 9
}
void loop() {
for (int pos = 0; pos <= 180; pos += 1) {
myServo.write(pos); // Set the servo position
delay(15); // Wait for 15ms
}
for (int pos = 180; pos >= 0; pos -= 1) {
myServo.write(pos); // Set the servo position
delay(15); // Wait for 15ms
}
}
```
### Example 2: Servo Motor Control with Raspberry Pi using Python
In this example, we will use a Raspberry Pi to control the SG90 Micro Servo Motor using Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM) # Set the GPIO mode to BCM
servo_pin = 17 # Set the servo pin to GPIO 17
GPIO.setup(servo_pin, GPIO.OUT) # Set the servo pin as an output
pwm = GPIO.PWM(servo_pin, 50) # Create a PWM object with a frequency of 50Hz
pwm.start(0) # Start the PWM with a duty cycle of 0
while True:
for dc in range(0, 101, 5):
pwm.ChangeDutyCycle(dc)
time.sleep(0.05)
for dc in range(100, -1, -5):
pwm.ChangeDutyCycle(dc)
time.sleep(0.05)
```
These code examples demonstrate the basic usage of the SG90 Micro Servo Motor with Arduino and Raspberry Pi. You can modify the code to suit your specific project requirements.