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

Arduino UNO with HC-SR04 Ultrasonic Sensor Distance Measurement

View and Edit Project In Cirkit DesignerImage of Arduino UNO with HC-SR04 Ultrasonic Sensor Distance Measurement

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller board interfaced with an HC-SR04 Ultrasonic Sensor. The Arduino UNO is responsible for controlling the sensor and processing the distance measurements. The HC-SR04 sensor is used to measure distances by emitting ultrasonic waves and measuring the time it takes for the echo to return. The circuit is powered by the 5V output from the Arduino UNO, and the sensor's trigger and echo signals are connected to digital pins on the Arduino for control and data acquisition.

Component List

Arduino UNO

HC-SR04 Ultrasonic Sensor

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

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 include the logic for controlling the HC-SR04 Ultrasonic Sensor. The user is expected to fill in the setup and loop functions with the appropriate code to initialize the sensor and to read distance measurements in the loop function.