I want to gain an overall understanding for the pinouts on the MaxSonar-EZ1 and so I read the datasheet. I am sorry to say that I'm still confused. I don't understand the need for TX, RX, AN, PW, and BW.
Pin BW-leave open or hold low for TX serial output,
Question, why do I read TX output?
Pin PW-outputs pulse width with representation for range, To calculate distance use the scale factor of 147uS per inch
Question: still not sure how to convert a PW by using the scale factor?
Pin TX: delivers asynchronous serial with an RS232 format that outputs a range 0-255 (range in inches)
Do I read the TX pin to get the rnage or the PW pin to get the range. If so how exactly do I parse/conver them?