Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Tower Pro SG90 servo: Examples, Pinouts, and Specs

Image of Tower Pro SG90 servoDesign with Tower Pro SG90 servo in Cirkit Designer

Introduction

The Tower Pro SG90 is a compact and efficient micro servo motor widely utilized in the field of robotics and electronics projects. It is renowned for its precision control and robust torque output despite its small size. The SG90 operates on a 5V power supply and is capable of rotating approximately 180 degrees, making it an ideal choice for radio-controlled (RC) airplanes, cars, boats, and various automation and robotics applications.

Explore Projects Built with Tower Pro SG90 servo

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Itsy Bitsy M0 Express Controlled Multi-Servo System: A project utilizing Tower Pro SG90 servo in a practical application
Itsy Bitsy M0 Express Controlled Multi-Servo System

This circuit consists of an Itsy Bitsy M0 Express microcontroller connected to eight Tower Pro SG90 servos. Each servo is controlled by a different digital or analog output pin on the microcontroller. A single power supply provides +5V and GND to all servos, and the microcontroller is configured with some of its pins interconnected for potential programming or operational purposes.

Open Project in Cirkit Designer
Image of Arduino UNO Controlled Servo Motor Sequence: A project utilizing Tower Pro SG90 servo in a practical application
Arduino UNO Controlled Servo Motor Sequence

This circuit consists of an Arduino UNO microcontroller connected to a Tower Pro SG90 servo motor. The Arduino provides power (5V and GND) to the servo and controls its position via digital pin D7. The embedded code on the Arduino cycles the servo through a range of positions with delays between each movement.

Open Project in Cirkit Designer
Image of Arduino UNO Controlled Dual SG90 Servo Circuit: A project utilizing Tower Pro SG90 servo in a practical application
Arduino UNO Controlled Dual SG90 Servo Circuit

This circuit consists of an Arduino UNO microcontroller connected to two Tower Pro SG90 servos. The servos are powered by the Arduino's 5V output and share a common ground with the Arduino. The signal pins of the servos are controlled by digital pins D2 and D3 on the Arduino, allowing for independent servo actuation through programmed instructions.

Open Project in Cirkit Designer

Technical Specifications

General Specifications

Pin Configuration

Pin Number Description
1 Ground (GND)
2 Power Supply (VCC)
3 Control Signal

Usage Instructions

Connecting to a Circuit

  1. Power Supply (VCC): Connect the VCC pin to a 5V power source.
  2. Ground (GND): Connect the GND pin to the ground of your power source.
  3. Control Signal: Connect the control signal pin to a PWM-capable pin on your microcontroller, such as an Arduino UNO.

Best Practices

Example Code for Arduino UNO

#include <Servo.h>

Servo myservo;  // create servo object to control the SG90

void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
}

void loop() {
  myservo.write(0);   // turn servo to 0 degrees
  delay(1000);        // wait for a second
  myservo.write(90);  // turn servo to 90 degrees (middle position)
  delay(1000);        // wait for a second
  myservo.write(180); // turn servo to 180 degrees (maximum position)
  delay(1000);        // wait for a second
}

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can I power the SG90 directly from an Arduino board? A: While the Arduino board can provide 5V, it may not be able to supply sufficient current for the servo under load. It is recommended to use an external power source.

Q: What is the maximum angle the SG90 can rotate? A: The SG90 can rotate approximately 180 degrees, but the actual range may vary slightly from unit to unit.

Q: How can I control the speed of the SG90 servo? A: The speed can be controlled by the rate at which you update the angle through the control signal. Gradually increasing the angle in your code will result in a slower movement.

Q: Can the SG90 rotate continuously? A: No, the SG90 is a standard servo designed for limited rotation, typically up to 180 degrees. For continuous rotation, a modified servo or a continuous rotation servo is required.

For further assistance or inquiries, please refer to the manufacturer's datasheet or contact technical support.