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

Arduino UNO-Based Ultrasonic Distance Measurement with LED Indicator and Piezo Buzzer Alert

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Ultrasonic Distance Measurement with LED Indicator and Piezo Buzzer Alert

Circuit Documentation

Summary of the Circuit

This circuit is designed around the Arduino UNO platform, interfaced with a piezo buzzer, an LED with a current-limiting resistor, and an HC-SR04 ultrasonic sensor. The Arduino UNO serves as the central processing unit, controlling the buzzer and LED, and reading distance measurements from the ultrasonic sensor. The Adafruit Proto Shield R3 is used as a convenient way to connect these peripherals to the Arduino UNO without the need for a breadboard or custom PCB.

Component List

Arduino UNO

Piezo Buzzer

Resistor (220 Ohms)

LED: Two Pin (green)

HC-SR04 Ultrasonic Sensor

Adafruit Proto Shield R3

Wiring Details

Arduino UNO

Piezo Buzzer

Resistor (220 Ohms)

LED: Two Pin (green)

HC-SR04 Ultrasonic Sensor

Adafruit Proto Shield R3

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:

}

The provided code is a template with empty setup() and loop() functions, which are the standard structure for Arduino sketches. The setup() function is intended to contain initialization code that runs once when the device is powered on or reset. The loop() function is intended to contain the main logic of the sketch, which runs repeatedly as long as the device is powered.

Additional Notes