- This topic has 1 reply, 2 voices, and was last updated 8 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › required code for timer
please help me to write the program for ultrasonic range finder or give me using HC-SR04
and need to mention the distance of an obstacle on lcd, i have lcd driver file for PIC microcontroller.
as soon as possible do needful
thankx
It's very easy if you are using arduino. Just seach around and you will find code. If you are programming AVR controller or 8051 in C refer datasheet of sensor. YOu need to give signal to sensor to start sending ultrasonic pulse and it returns square wave output. calculate it's time using Timer/Counter and use formula to get distance. YOu will find formula in datasheet of sensor.