Home Industry InsightBLDC
Looking for a suitable motor? Looking for a suitable motor?
Looking for a suitable motor?

Unlocking Precision: A Comprehensive Guide to the SG90 Servo Motor Pinout

小编

Published2025-10-15

Getting to Know the Fundamentals of the SG90 Servo Motor

Servo motors are the backbone of precision control in robotics, RC vehicles, automation systems, and countless DIY projects. Among these, the SG90 micro servo is a perennial favorite — cherished for its compact size, lightweight design, and impressive performance at an incredibly approachable price point. Before diving into wiring diagrams and technical details, it’s essential to understand what makes the SG90 tick and why its pinout is the key to unlocking seamless integration.

What is the SG90 Servo Motor?

The SG90 is a small, lightweight servo motor manufactured by TowerPro, renowned for its reliable performance in hobbyist and educational projects. Its petite form factor—roughly 23mm x 12mm x 29mm—packs a powerful punch, capable of rotating approximately 180 degrees with precise control. It’s powered by a DC motor coupled with a gear train that amplifies torque, all managed by an internal controller.

Why Is the Pinout Important?

The pinout refers to the specific arrangement of the servo's terminals—each serving a function—crucial for connecting the servo correctly to power sources and control signals. Ignoring proper pin connections might lead to damage, erratic movements, or non-functionality. Whether you’re prototyping with Arduino, Raspberry Pi, or other microcontrollers, understanding the pinout ensures smooth operation.

The Basic Structure of an SG90 Servo

The SG90 typically features a three-wire configuration, encapsulated in a compact plastic case, with the wires extending from one side for easy connection. The three primary connections are:

Power (+V) Ground (GND) Control Signal (PWM)

Understanding the Three Wires

While the color coding can vary, common conventions are:

Red: Power (typically +5V) Brown or Black: Ground Orange, Yellow, or White: PWM control signal

However, it’s always wise to verify this for your specific servo, as manufacturers might vary slightly.

Pinout Diagram and Functionality

The standard pinout for the SG90 looks like this when viewed from the side with the connector facing the user:

Pin Position Color (Common) Function Pin 1 Red Vcc (+5V power) Pin 2 Brown/Black GND (Ground) Pin 3 Orange/Yellow/White Signal (PWM)

Connecting the SG90 to Your Microcontroller

When wiring the SG90, ensure that:

The red wire (Vcc) connects to a stable +5V power supply. The brown or black wire (GND) connects to the system ground. The PWM signal wire connects to a GPIO capable of PWM output.

This simple three-pin setup makes the SG90 quite versatile. You can plug it directly into an Arduino with minimal fuss or incorporate it into more complex robotics setups.

Power Supply Considerations

Although the SG90 operates at around +4.8V to +5V, providing a clean, stable power source prevents jittery movements or resets. Using a dedicated battery pack or regulated power supply is advisable for projects with multiple servos or high current demands.

Control Signal Details

The PWM control signal determines the servo’s position, with a typical pulse width modulation ranging from 1ms (full left) to 2ms (full right), with 1.5ms as the center. Most microcontrollers generate this PWM signal, which is interpreted internally by the servo to rotate the shaft to the desired angle.

This is a broad overview of the SG90 servo pinout, laying the foundation for understanding how to wire and control this miniature marvel.

Part 2 will continue with detailed wiring diagrams, troubleshooting tips, compatibility considerations, real-world applications, and advanced control techniques. Stay tuned to explore the full potential of your SG90 servo!

Kpower has delivered professional drive system solutions to over 500 enterprise clients globally with products covering various fields such as Smart Home Systems, Automatic Electronics, Robotics, Precision Agriculture, Drones, and Industrial Automation.

Update:2025-10-15

Contact a motor expert for product recommendation.
Contact a motor expert for product recommendation.

Powering The Future

Contact Kpower's product specialist to recommend suitable motor or gearbox for your product.