Posts

Showing posts from September, 2017

ULTRASONIC SENSOR INTERFACING WITH PIC MICROCONTROLLER : DISTANCE MEASUREMENT

Image
Ultrasonic sensor interfacing with pic microcontroller and how to measure distance with HC-SR04 ultrasonic sensor ? Hi everyone, I hope every one of you are fine and doing well. In today’s tutorial, I am come up with another interesting sensor interfacing with pic microcontroller that is HC-SR04 ultrasonic sensor. It is very useful sensor for embedded systems projects. Before I start this tutorial, I recommend you to read about ultrasonic sensors and its working. In this tutorial I am using HC-SR04 ultrasonic sensor which will be used to measure distance. PIC16F887 microcontroller will be used for this project. 16X2 LCD is used to display measured value of distance on LCD.   So let’s start with introduction of HC-SR04 ultrasonic sensor and how it can be used to measure distance. HC-SR04 ultrasonic sensor: This is a contactless measurement sensor. It can measure distance up   to 2cm – 400cm.   Its accuracy is about three mili-meter which is very efficie...