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

Arduino UNO Controlled Dual SG90 Servo Circuit

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Dual SG90 Servo Circuit

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller board and two Tower Pro SG90 servos. The Arduino UNO is used to control the servos by sending PWM (Pulse Width Modulation) signals to the servos' signal pins. The servos are powered by the 5V output from the Arduino UNO, and all components share a common ground.

Component List

Arduino UNO

Tower Pro SG90 Servo (First Servo)

Tower Pro SG90 Servo (Second Servo)

Wiring Details

Arduino UNO

Tower Pro SG90 Servo (First Servo)

Tower Pro SG90 Servo (Second Servo)

Documented Code

The code provided is for the Arduino UNO microcontroller. It is written in Arduino's implementation of C/C++ and is intended to be uploaded to the Arduino UNO using the Arduino IDE or a similar development environment.

sketch.ino

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

}

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

}

This code template includes two main functions: setup() and loop(). The setup() function is called once when the microcontroller is powered on or reset. It is used to initialize the settings, such as pin modes. The loop() function is called repeatedly and contains the main logic of the program.

Currently, the code does not contain any specific instructions for controlling the servos. To control the servos, PWM signals need to be generated on pins D2 and D3 using the analogWrite() function or a servo library that simplifies the control of hobby servos.

documentation.txt

The second code file named documentation.txt is empty and does not contain any code or comments. It is likely intended to be a placeholder for additional documentation or notes related to the codebase.