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

Arduino UNO LED and Piezo Buzzer Control Circuit

View and Edit Project In Cirkit DesignerImage of Arduino UNO LED and Piezo Buzzer Control Circuit

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a red LED, a piezo buzzer, and two resistors. The Arduino UNO controls the LED and the piezo buzzer. The LED is connected through a resistor to limit the current, and the piezo buzzer is also connected through a resistor to the Arduino.

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: anode and cathode.
    • Pins: cathode, anode
  3. Resistor

    • Description: A resistor used to limit current.
    • Pins: pin1, pin2
    • Properties:
      • Resistance: NaN Ohms
  4. Piezo Buzzer

    • Description: A piezoelectric buzzer.
    • Pins: pin 1, pin 2
  5. Resistor

    • Description: A resistor used to limit current.
    • Pins: pin1, pin2
    • Properties:
      • Resistance: NaN Ohms

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor (connected to LED)

Piezo Buzzer

Resistor (connected to Piezo Buzzer)

Code Documentation

Arduino UNO Code

int led = 11;
int buzzer = 10;

void setup() {
  // put your setup code here, to run once:
  pinMode(led, OUTPUT);
  pinMode(buzzer, OUTPUT);
}

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

}

This code initializes pin 11 as an output for the LED and pin 10 as an output for the buzzer. The setup() function runs once when the microcontroller is powered on or reset, and the loop() function runs continuously. Currently, the loop() function is empty, meaning no actions are performed repeatedly.