SRF05 Ultrasonic Range finder

Hi,I try to get value ftom Devantech SRF05 Ultrasonic Range finder
I rear little in PIC18F6520 Datesheet and find some information about Capture Mode and think if it is good for this project.
Someone use this sensor befor (i Used serch…) and can see me The code i c?
I use in mcc18 compiler in mplab

thanks and sorry on my english spelling.

I’m not sure what you’re looking for, exactly, but I think you’re looking for code to operate a SRF05 rangefinder on a FRC Robot Controller… I’m a bit confused by the PIC18F6520 reference… The FRC Robot Controller (provided by IFI), since 2006 has contained a PIC18F8722, and before that, a PIC18F8520, I think you may be referring to one of these. As for that specific sensor, I believe you need to set up serial communications with it. You can use the TTL serial port on the Robot Controller, and perhaps Kevin Watson’s code to start with, but you may need to use a RS232->TTL conversion chip or similar to interface the two.

There is code at

to generate the trigger pulse and measure the echo pulse which is returned same as the method for using the SRF05.

It is intended to run on the current version of the RC.

Thanks its good to my mission :]