SG90 Servo Motor: Specifications and Applications

SG90 Servo Motor

The SG90 is a micro-sized servo motor ideal for robotics and electronics projects requiring precise motion control.

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

Features

Applications

How to Use SG90

To control the SG90 with Arduino:

  1. Connect the SG90's signal wire to a PWM pin on the Arduino.
  2. Provide power (5V) and ground connections.
  3. Upload the following code:
#include 
Servo 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);
}