Hi,
I'm trying to interface two srf04 ultrasonic sensors to a PIC16F872. I'm wondering if any of you have already done this as I'm having problems writing the code in assembly and cannot find sample code on the net.
I have just done to build and program for SRF04 and 08 with PIC16F876. That is quite easy. You can use command output_low and output_high and delay_us(10) to make a output trigger pulse to activate module and write down some simple code lines to measure the time of flight. You should use interrupt routine which is set up for period of time of interrupt routine to calculate the echo. Actually, it is quite simple so you can do it by your self.
If you have any stuck, let email to me and I can help you.
Email to: dungnt@mip.sdu.dk
Good luck