Let's Make Robots!

mplab ...ect

Ultrasonic range finder SRF04

Hi,

I am a beginner. 

I have got a PIC18F252 to run a line follower robot. I would like the chip to run an sfr04 ultrasonic range finder SRF04.  basically if the SRF04 detects an object infront of it, it then turns away.  I am programming in C and am stuck. 

Has anyone got a programme or could somone please point me in the right direction.

 Any help would be great

 Thanks