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
- Description: A small and lightweight servo motor for RC (Radio Controlled) applications.
- Pins: Signal, +5V, GND
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, widely used for building digital devices and interactive objects.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
Traffic Light
- Description: A module with three LEDs simulating a traffic light.
- Pins: Green, Yellow, Red, GND
Battery 12V
- Description: A power source providing 12 volts, used to power the Arduino UNO.
- Pins: +, -
12V Power Supply
- Description: A power supply unit that provides a 12V output.
- Pins: +, -
Logo
- Description: A non-functional component used for branding or identification.
- Pins: None
Comment
- Description: A non-functional component used for adding comments or notes within the circuit design.
- Pins: None
Wiring Details
Tower Pro SG90 Servo
- Signal: Connected to Arduino UNO's D9 pin.
- +5V: Connected to Arduino UNO's 5V pin.
- GND: Connected to Arduino UNO's GND pin.
Arduino UNO
- D9: Connected to Tower Pro SG90 servo's Signal pin.
- 5V: Connected to Tower Pro SG90 servo's +5V pin.
- GND: Common ground shared with Tower Pro SG90 servo and Traffic Light module.
- Vin: Connected to the positive terminal of the 12V battery.
- D4: Connected to Traffic Light's Green LED.
- D3: Connected to Traffic Light's Yellow LED.
- D2: Connected to Traffic Light's Red LED.
Traffic Light
- Green: Connected to Arduino UNO's D4 pin.
- Yellow: Connected to Arduino UNO's D3 pin.
- Red: Connected to Arduino UNO's D2 pin.
- GND: Connected to Arduino UNO's GND pin.
Battery 12V
- +: Connected to Arduino UNO's Vin pin.
- -: Connected to Arduino UNO's GND pin.
Documented Code
void setup() {
}
void loop() {
}
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.