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

Arduino UNO-Based Ultrasonic Distance Sensor with LED Indicators and Piezo Buzzer

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Ultrasonic Distance Sensor with LED Indicators and Piezo Buzzer

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, three LEDs (red, yellow, and green), an HC-SR04 Ultrasonic Sensor, and a Piezo Speaker. The Arduino UNO controls the LEDs and the Piezo Speaker, and it also interfaces with the Ultrasonic Sensor to measure distance.

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 (yellow)

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

    • Description: A green LED with two pins.
    • Pins: cathode, anode
  5. HC-SR04 Ultrasonic Sensor

    • Description: An ultrasonic sensor used for distance measurement.
    • Pins: VCC, TRIG, ECHO, GND
  6. Piezo Speaker

    • Description: A piezoelectric speaker used for sound output.
    • Pins: pin1, pin2

Wiring Details

Arduino UNO

LED: Two Pin (red)

LED: Two Pin (yellow)

LED: Two Pin (green)

HC-SR04 Ultrasonic Sensor

Piezo Speaker

Documented Code

Arduino UNO Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)

This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO.