Ultrasonic sensors are great tools to measure distance without actual contact. In this project we have used an Ultrasonic Sensor to determine the distance of an obstacle from the sensor that is read by LCD screen. Basic principal of ultrasonic distance measurement is based on ECHO. When sound waves are transmitted in environment then waves are return back to origin as ECHO after striking on the obstacle.

Hardware Required:

Arduino Board
Ultrasonic Sensor HC-SR04
LCD Display
10k ohm potentiometer
Breadboard and wires
Schematic Diagram
Main Code
Ultrasonic sensor and LCD reading of distance with no obstacle
Ultrasonic sensor and LCD reading of distance with obstacle