Skip to content

“Arduino project using HC-SR04 ultrasonic sensor to measure distance.”

Notifications You must be signed in to change notification settings

Veerendrajaddu/Arduino-Ultrasonic-Sensor-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Arduino Ultrasonic Sensor Project

Overview:

This project uses an Arduino Uno and an HC-SR04 ultrasonic sensor to measure distance. The distance is calculated based on the time taken for sound waves to return to the sensor.

Components:

  • Arduino Uno
  • HC-SR04 Ultrasonic Sensor
  • Jumper wires
  • Breadboard (optional)

Setup:

  • Connect the VCC of the HC-SR04 to Arduino 5V
  • Connect the GND of the HC-SR04 to Arduino GND
  • Connect the TRIG pin to Arduino pin 9
  • Connect the ECHO pin to Arduino pin 10

Code:

The code is written in Arduino IDE. It measures the distance and outputs the result on the Serial Monitor.

About

“Arduino project using HC-SR04 ultrasonic sensor to measure distance.”

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published