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

How to Use Micro servo 9G: Examples, Pinouts, and Specs

Image of Micro servo 9GDesign with Micro servo 9G in Cirkit Designer

Introduction

The Micro Servo 9G (SG90) by AZDelivery is a compact and lightweight servo motor widely used in the world of hobby electronics and robotics. Its small size and affordability make it an ideal choice for applications such as radio-controlled models, small robotics projects, and any application where precise movement and control of small components are required.

Explore Projects Built with Micro servo 9G

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 Arduino UNO Controlled Dual Servo Motion System: A project utilizing Micro servo 9G in a practical application
Arduino UNO Controlled Dual Servo Motion System

This circuit consists of an Arduino UNO microcontroller connected to two 9G micro servos and powered by a 9V battery. The Arduino controls the servos using PWM signals on pins D9 and D10, allowing the servos to rotate between 0 and 180 degrees. The embedded code on the Arduino sequentially moves each servo through its full range of motion and then back, demonstrating basic servo control for applications such as robotics or automated systems.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Color Description
1 Brown Ground (GND)
2 Red Power Supply (VCC)
3 Orange Control Signal (PWM)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the red wire to a power supply that is within the operating voltage range (4.8V to 6.0V).
  2. Ground: Connect the brown wire to the ground of your power supply and microcontroller.
  3. Control Signal: Connect the orange wire to a PWM-capable pin on your microcontroller.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Servo.h>

Servo myservo;  // create servo object to control a servo

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

void loop() {
  myservo.write(90);  // sets the servo position according to the scaled value
  delay(1000);        // waits for the servo to reach the position
  myservo.write(0);   // sets the servo back to the starting position
  delay(1000);        // waits for the servo to reach the position
}

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Q: Can I control the Micro Servo 9G with a Raspberry Pi? A: Yes, you can control the servo using the Raspberry Pi's GPIO pins, but you will need to ensure proper logic level conversion and power supply.

Q: How many servos can I connect to an Arduino UNO? A: The Arduino UNO can control as many servos as there are PWM-capable pins available, but power limitations may require an external power supply when using multiple servos.

Q: What is the lifespan of the Micro Servo 9G? A: The lifespan can vary based on usage, but with proper care and not exceeding its specifications, it can last for many operational hours.