I wanted to rotate a Maxbotix Maxsonar EZ1 at fixed rate on a turntable and can only use the pulse-width modulated range signal from the board. Does someone know how to make the Serializer board measure the time between the rising edge and the trailing edge of the pulse width so I can determine the distance?
The pulse width signal from the sonar is exactly the rising edge (of the echo pin) to the falling edge(of the echo pin) , which represents the distance. Is there something else you want to do?
Ringo
Thank you for the reply. I may be reading this wrong, but I see in the user guide where you can "ping" the sonar's transmitter pin and get a reply back from the unit's receiver pin (I think that is how it's done) and I do see that the echo pin or PW pin on the sonar is has a "on" time that represents a distance from the sonar, but can the Serializer board see the rising edge, start a timer, see the falling edge and then put out a useful signal or a bit of data I can use? I want to be able to do this all the time - for every pulse from the sonar. I will have no way of "pinging" the sonar since the only signal I can transmit from the rotating base is the pulse width varying signal using a IR led and receiver.
OK, it's a new day and I realize that I can use the TX output instead of the PW signal just by holding the BW port on the sonar low. Now, I believe I have a system that can work for me. Thanks!