SG90 Mini Servo

SG90 Mini Servo image

View on Amazon

Overview

The SG90 is a compact micro servo motor ideal for robotics and DIY projects. Operating on 4.8V to 6V, it delivers 1.8 kg·cm torque, with a 0° to 180° range controlled via PWM signals. Weighing 9g, its nylon gears and dimensions (22.8mm x 12.2mm x 28.5mm) make it perfect for lightweight, precise applications.

About SG90 Mini Servo

The SG90 is a popular micro servo motor widely used in robotics, RC models, and DIY electronics. It offers precise angular control via PWM signals, making it ideal for small-scale projects that require lightweight and reliable actuation.

Key Features

  • Torque1.8 kg·cm at 4.8V, suitable for light-duty tasks.
  • Operating Voltage4.8V to 6V, making it compatible with ESP32 and other microcontrollers.
  • Angular Range0° to 180°, controlled via PWM signals.
  • Compact & Lightweight – Weighs 9g with dimensions 22.8mm × 12.2mm × 28.5mm.
  • Nylon Gears – Ensures smooth operation and durability for lightweight applications.

Looking for an ESP32-compatible servo motor project?

Where to Buy

Get Your SG90

SG90 Mini Servo

Starting from

1.5$ per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

SG90 Specifications

Complete technical specification details for SG90 Mini Servo

📊 Technical Parameters

Operating Voltage 4.8V to 6V
Torque 1.8 kg·cm at 4.8V
Operating Angle 0° to 180°
Pulse Width Control 1ms (0°) to 2ms (180°)
Dimensions 22.8mm x 12.2mm x 28.5mm
Weight 9 grams
Gear Material Nylon
Control Signal PWM (50Hz)
Pin Configuration

SG90 Pinout

The SG90 is a 3-wire servo motor with GND (brown), +5V (red), and DATA (orange) wires.

Visual Pinout Diagram

Pinout Diagram Primary
SG90 Mini Servo pinout
3
Total Pins

Pin Types

Power
2

Quick Tips

[object

Object],[object Object]

[object

Object],[object Object]

Nylon

gears (less durable than metal gears),[object Object]

Pin Descriptions

Pin NameTypeDescriptionNotes
1 GND
Power

Ground connection. Connect to ESP32 GND or external power supply ground.

Completes the electrical circuit.

2 +5V
Power

Power supply input (4.8V-6V). Can be powered from ESP32 5V pin for light loads.

Use external power supply for multiple servos.

3 DATA
PWM

PWM control signal. Pulse width: 1ms (0°), 1.5ms (90°), 2ms (180°).

Connect to a PWM-capable GPIO pin (e.g., GPIO 18).

Connection Guide

Wiring SG90 to ESP32

To control the SG90 servo with an ESP32, connect the brown wire to GND, red wire to 5V power, and orange wire to a PWM GPIO pin.

Visual Wiring Diagram

Wiring Diagram Recommended
SG90 Mini Servo wiring with ESP32
3
Connections

Connection Status

Required
3

Protocol

PWM

Pin Connections

SG90 PinConnectionESP32 PinDescription
1 GND (brown) Required
GND

Ground connection for both power and signal reference.

2 +5V (red) Required
5V or External Supply

Power supply (4.8V-6V). Use external supply for multiple servos.

3 DATA (orange) Required
GPIO 18

PWM control signal (50Hz, 1-2ms pulse width).

[object

Object]

[object

Object]

[object

Object]

[object

Object]

Add

100µF capacitor across power supply to reduce noise

[object

Object]

[object

Object]

Use

ESP32Servo library or ledc functions for control

Help & Support

SG90 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

SG90 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up SG90

The ESP32 SG90 Mini Servo is a powerful servo sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the SG90 into your ESP32 project and bring your ideas to life!