Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Based Ultrasonic Distance Measurement with Buzzer Alert

Image of Arduino UNO Based Ultrasonic Distance Measurement with Buzzer Alert

Circuit Documentation

Summary of the Circuit

This circuit consists of an Arduino UNO microcontroller, an HC-SR04 Ultrasonic Distance Sensor, and a buzzer. The Arduino UNO is used as the central processing unit to control the operation of the ultrasonic sensor and the buzzer. The HC-SR04 sensor is used to measure distances by emitting ultrasonic waves and receiving the reflected signal. The buzzer is used to provide an audible alert or feedback based on the sensor readings. The circuit is powered by the 5V output from the Arduino UNO, and the ground connections are shared among all components to complete the circuit.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

  • Description: A sensor for measuring distance using ultrasonic sound waves.
  • Pins: VCC, TRIG, ECHO, GND.

Buzzer

  • Description: An electromechanical component that produces sound.
  • Pins: PIN, GND.

Wiring Details

Arduino UNO

  • 5V connected to HC-SR04 VCC.
  • GND connected to HC-SR04 GND and Buzzer GND.
  • D11 connected to Buzzer PIN.
  • D10 connected to HC-SR04 ECHO.
  • D9 connected to HC-SR04 TRIG.

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

  • VCC connected to Arduino UNO 5V.
  • TRIG connected to Arduino UNO D9.
  • ECHO connected to Arduino UNO D10.
  • GND connected to Arduino UNO GND.

Buzzer

  • PIN connected to Arduino UNO D11.
  • GND connected to Arduino UNO GND.

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 Notes (documentation.txt)

No additional documentation provided for the code.