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

Arduino UNO Controlled LED and Buzzer Alert System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled LED and Buzzer Alert System

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, three LEDs (red, green, and yellow), and a buzzer. The Arduino UNO controls the LEDs and the buzzer, turning them on and off in a sequence. The LEDs are connected to digital pins D13, D12, and D11, while the buzzer is connected to digital pin D10.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  2. LED: Two Pin (red)

    • Description: A red LED with two pins.
    • Pins: cathode, anode
  3. LED: Two Pin (green)

    • Description: A green LED with two pins.
    • Pins: cathode, anode
  4. LED: Two Pin (yellow)

    • Description: A yellow LED with two pins.
    • Pins: cathode, anode
  5. Buzzer

    • Description: A simple buzzer with two pins.
    • Pins: PIN, GND

Wiring Details

Arduino UNO

LED: Two Pin (red)

LED: Two Pin (green)

LED: Two Pin (yellow)

Buzzer

Code Documentation

Arduino UNO Code

void setup() {
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
  pinMode(10, OUTPUT); // Buzzer pin
}

void loop() {
  digitalWrite(13, HIGH);
  delay(5000);
  digitalWrite(13, LOW);
  digitalWrite(10, LOW); // Turn off buzzer
  delay(10);

  digitalWrite(12, HIGH);
  delay(5000);
  digitalWrite(12, LOW);
  delay(10);

  digitalWrite(11, HIGH);
  digitalWrite(10, HIGH); // Turn on buzzer
  delay(5000);
  digitalWrite(11, LOW);
  digitalWrite(10, LOW); // Turn off buzzer
  delay(10);
}

This code initializes the digital pins D13, D12, D11, and D10 as output pins. In the loop function, it turns on the red LED for 5 seconds, then turns it off. Next, it turns on the yellow LED for 5 seconds, then turns it off. Finally, it turns on the green LED and the buzzer for 5 seconds, then turns them off. This sequence repeats indefinitely.