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

Arduino UNO Based Ultrasonic Distance Measurement with LED Indicator

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

Circuit Documentation

Summary

The circuit consists of an Arduino UNO microcontroller, an HC-SR04 Ultrasonic Sensor, and a red two-pin LED. The Arduino UNO is used as the central processing unit, controlling the LED and interfacing with the ultrasonic sensor to measure distances. The HC-SR04 sensor is powered by the Arduino and is responsible for sending ultrasonic waves and receiving the echo to determine the distance to an object. The LED serves as an indicator, which can be controlled by the Arduino to signal events or statuses based on the program logic.

Component List

Arduino UNO

HC-SR04 Ultrasonic Sensor

LED: Two Pin (red)

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

LED: Two Pin (red)

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:

}

Note: The provided code is a template and does not contain any functional logic to control the HC-SR04 Ultrasonic Sensor or the LED. The user is expected to fill in the setup and loop functions with the desired behavior.

Additional Files