Showing posts with label HC-SR04. Show all posts
Showing posts with label HC-SR04. Show all posts

Sunday, June 12, 2016

Ultrasonic Distance Measurement with Arduino

We can use ultrasonic sensors to measure distance with Arduino. There are several types of ultrasonic sensors available in the electronic market. In this example, I am using the famous HC-SR04 type ultrasonic sensor. This sensor is cheap, easy to connect to Arduino and highly used in robotic projects to identify obstacles. I will also use a LCD screen to display the distance in both Inches and Centimeters.