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

Arduino UNO Ultrasonic Distance Sensor with LED and Buzzer Alert System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Ultrasonic Distance Sensor with LED and Buzzer Alert System

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with an HC-SR04 Ultrasonic Sensor, a buzzer, and two LEDs (one red and one green). The Arduino UNO is used to control the LEDs and the buzzer based on the input from the ultrasonic sensor.

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: cathode and anode.
    • Pins: cathode, anode
  3. LED: Two Pin (green)

    • Description: A green LED with two pins: cathode and anode.
    • Pins: cathode, anode
  4. Buzzer

    • Description: A simple buzzer with two pins: PIN and GND.
    • Pins: PIN, GND
  5. HC-SR04 Ultrasonic Sensor

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

Wiring Details

Arduino UNO

LED: Two Pin (red)

LED: Two Pin (green)

Buzzer

HC-SR04 Ultrasonic Sensor

Code Documentation

sketch.ino

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

}

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

}

documentation.txt