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

Arduino UNO Controlled Servo and Traffic Light Simulation

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Servo and Traffic Light Simulation

Circuit Documentation

Summary

This circuit is designed to control a Tower Pro SG90 servo and a traffic light module using an Arduino UNO microcontroller. The Arduino UNO is powered by a 12V battery and interfaces with the servo and traffic light LEDs (Green, Yellow, Red) through its digital I/O pins. The servo is controlled by a signal from one of the Arduino's PWM-capable pins. The traffic light module's LEDs are individually controlled by separate digital pins on the Arduino. The circuit is designed for educational purposes to demonstrate basic interfacing and control of peripherals with a microcontroller.

Component List

Tower Pro SG90 Servo

Arduino UNO

Traffic Light

Battery 12V

12V Power Supply

Comment

Wiring Details

Tower Pro SG90 Servo

Arduino UNO

Traffic Light

Battery 12V

Documented Code

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

}

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

}

Filename: sketch.ino

Description: This is the template code for the Arduino UNO. The setup() function is called once when the microcontroller is powered on or reset. It is used to initialize variables, pin modes, start using libraries, etc. The loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond. Use it to actively control the Arduino board.