Originally Posted by tzaiger2018
My team wants to use the HERLV_MaxSonar. We want to Wire it though a PWM wire. If annyone knows how to wire one of these though PMW, it would be greatly appreciated. Thank you.
Here's a link to the datasheet for the MaxBotix HRLV Series: https://www.maxbotix.com/documents/H..._Datasheet.pdf
The pinout is in there. Typically, you'd use what most teams call a PWM cable (three pin with black, red, and white wires). I'm guessing that's what you're asking about?
Black is ground, red is +5V, and white is the signal.
There are several ways to read the distance, but I'd recommend using Pulse-Out to a DIO pin. You'd measure the pulse-width and convert the PW to distance using the conversion detailed in the datasheet. The other easy way would be to use an analog input, either ways works pretty well.