ultrasonic sensor with pic16f876 ( I need ur help ) ^_^

Status
Not open for further replies.

rania1996

New Member
hi everyone I am using pic16f876 ,I will use ultrasonic sensor this is the data sheet of ultrasonic **broken link removed** ...
I wanna ask about the triggerpin and the echo pin ^_^
which bit I can use for send a signal and which one receives ??


and if you know how to use PWM with it plz tell me

thank you
rania
 
Last edited by a moderator:
I am not able to access the data sheet from the link you posted, so I don't know what ultrasonic module you are trying to use. I have used the utrasonic sensors from Parallax and found them very easy to use. With this module you use the same pin for trigger and echo. You start out with the PIC pin set up as an output (TRIS bit set to 0), pulse the triggerpin, then change the PIC pin to be an input (TRIS bit set to 1), then determine the time period required for the return of the echo pulse. I used the CAPTURE/COMPARE peripheral on the PIC to read the echo pulse timing. The PWM peripheral cannot be used to read the echo pulse timing, so I am not clear as to why you want to use it.
 
thanxx

ahaaa ^^"
thanx a lot .. got it ^___^

I use "ping)))" from parallax too

don't worry a bout the PWM .. I solved the problem
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…