need help on sonar programming

Status
Not open for further replies.

donvaun

Newbie level 4
Joined
Mar 21, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,311
sonar programming

i would like to know how to program a sonar range finder for obstacle avoidance using pic16f877...

im using maxbotix ez100 sonar... i connect the analog input from it directly to pin A0 of pic..

im still a beginer and dont know much...

how do i start..
 

I am also doing this type of project these days...
I am using CCS as the programing C language.
when you trigger the sonar set the timer1 to 0..and use the CCP in capture mode..When you receive the sonar signal back ..you can take it as a interrupt for CCP1 and ...then the CCP1 value relates to the distance..
If you want more details tell me...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…