
This circuit uses an Arduino UNO to control a Tower Pro SG90 servo motor. The Arduino provides power and ground to the servo, and sends control signals via digital pin D9 to rotate the servo between 90 and 180 degrees in a loop.

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.

This circuit uses an Arduino UNO to control a Tower Pro SG90 servo motor. The Arduino provides power and ground to the servo, and sends control signals via digital pin D9 to rotate the servo between 90 and 180 degrees in a loop.

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.

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.

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.
| Pin Number | Description |
|---|---|
| 1 | Ground (GND) |
| 2 | Power Supply (VCC) |
| 3 | Control Signal |
#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
}
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.