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

Arduino UNO Controlled Servo Motor with Precise Angle Control

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Servo Motor with Precise Angle Control

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller and a Tower Pro SG90 servo motor. The Arduino UNO is used to control the servo motor, which is powered and controlled through specific pins on the Arduino. The provided code for the Arduino UNO initializes the servo and moves it between two positions at regular intervals.

Component List

Arduino UNO

Tower Pro SG90 Servo

Wiring Details

Arduino UNO

Tower Pro SG90 Servo

Code Documentation

Arduino UNO Code

#include <Servo.h>

Servo s1;

void setup() {
  // put your setup code here, to run once:
  s1.attach(9);
}

void loop() {
  // put your main code here, to run repeatedly:
  s1.write(180);
  delay(1000);
  s1.write(90);
  delay(1000);
}

Tower Pro SG90 Servo Code

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code required to operate the circuit.