Stufin
Home Quick Cart Profile

SG90 Micro Servo Motor (Pack of 25)

Buy Now

Operating Voltage

4.8V to 6.0V

Maximum Current

200mA

Torque

1.8 kg-cm

Speed

0.12 seconds transit time

Resolution

1

Angle Range

0 to 180

Dimensions

23x12x29mm

Weight

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.

Pin Configuration

  • SG90 Micro Servo Motor Pinout Documentation
  • The SG90 Micro Servo Motor is a compact and lightweight servo motor commonly used in robotics, drones, and other IoT projects. This documentation explains the pinout of the SG90 Micro Servo Motor, which comes in a pack of 25.
  • Pin Description:
  • The SG90 Micro Servo Motor has a 3-pin connector, with each pin serving a specific purpose:
  • ### Pin 1: VCC (Red Wire)
  • Function: Power supply voltage
  • Voltage Range: 4.8V to 6V (typical operating range is 5V)
  • Current Rating: 200mA (maximum)
  • Connect the VCC pin to a stable 5V power supply. Ensure the power source can provide the recommended current rating to prevent motor damage.
  • ### Pin 2: GND (Brown Wire)
  • Function: Ground
  • Voltage: 0V (reference voltage)
  • Connect the GND pin to the ground terminal of your power supply or microcontroller. This pin provides a return path for the motor's current.
  • ### Pin 3: Signal (Orange Wire)
  • Function: Control signal
  • Signal Type: Pulse Width Modulation (PWM)
  • Frequency: 50Hz (typical)
  • Connect the Signal pin to a digital output pin on your microcontroller. The microcontroller will send a PWM signal to control the servo motor's position.
  • Connection Structure:
  • To connect the SG90 Micro Servo Motor to your microcontroller, follow this structure:
  • 1. VCC (Red Wire)
  • Connect to a 5V power supply or the 5V output pin on your microcontroller.
  • 2. GND (Brown Wire)
  • Connect to the ground terminal of your power supply or the GND pin on your microcontroller.
  • 3. Signal (Orange Wire)
  • Connect to a digital output pin on your microcontroller (e.g., Arduino's digital pins 9, 10, or 11).
  • Example Connection Diagram:
  • ```
  • +-----------+
  • | SG90 |
  • | Micro |
  • | Servo |
  • +-----------+
  • | |
  • | |
  • V V
  • +-----------+ +-----------+
  • | Power | | Micro- |
  • | Supply | | controller |
  • +-----------+ +-----------+
  • | | |
  • | | |
  • V V V
  • +-----------+ +-----------+ +-----------+
  • | VCC (Red) | | 5V | | Digital |
  • | | | Output | | Output Pin |
  • +-----------+ +-----------+ +-----------+
  • | | |
  • | | |
  • V V V
  • +-----------+ +-----------+ +-----------+
  • | GND (Brown) | | GND | | GND Pin |
  • +-----------+ +-----------+ +-----------+
  • | | |
  • | | |
  • V V V
  • +-----------+ +-----------+ +-----------+
  • | Signal | | Digital | | Digital |
  • | (Orange) | | Output | | Output Pin |
  • +-----------+ +-----------+ +-----------+
  • ```
  • Remember to consult the datasheet of your microcontroller and SG90 Micro Servo Motor for specific connection requirements and programming guidelines.

Code Examples

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.