From: Lee W. <lee...@go...> - 2008-03-19 17:04:57
|
Hi there, I am currently using a standalone Robostix board with a Senscomp 6500-SMT ultrasonic range module. I'm using Port C to set a pin high, which triggers a pulse from the ultrasonic module, and (at the moment) using the ADC port to receive a return echo signal. My question is, how do I setup a timer such that I can measure the time elapsed between the trigger and the echo? I've tried using the timer TCNT2 without any success and I have very limited experience with this setup so any help or advice would be much appreciated. Thank you kindly, |