code for ultrasonic sensor HC-SR04

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
abdo alsawi
Posts: 1
Joined: 16 Jun 2013 20:53

code for ultrasonic sensor HC-SR04

#1 Post by abdo alsawi » 16 Jun 2013 21:00

Hello!

Can somebody post the mikro C code for Ultrasonic distance measurement using HC SR04 and display the result on LCD using PIC16F877A ?

Many many Thanks :D :D

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: code for ultrasonic sensor HC-SR04

#2 Post by marina.petrovic » 17 Jun 2013 11:47

Hi,

Pleas take a look at this example on LibStock Website:
http://www.libstock.com/projects/view/6 ... nic-sensor

This program displays the distance measured by the sensor HC SR04 on Display 2x16.

Also take a look at this example:
http://www.mikroe.com/forum/viewtopic.php?f=97&t=53891

Best regards,
Marina

Post Reply

Return to “mikroC PRO for PIC General”