I am new to ultrasonic range finding and was looking to use the SRF04 http://www.robot-electronics.co.uk/htm/srf04tech.htm along with a PIC μc. As I understand from the documentation with the SRF04, the ouput is a pulse where the width corresponds to distance.
The area I need help in is how to time this with my μc. Can I start a timer when the output goes high and set the interrupt for when signal goes back low? What is the easiest way to do this? I am using C.
The area I need help in is how to time this with my μc. Can I start a timer when the output goes high and set the interrupt for when signal goes back low? What is the easiest way to do this? I am using C.