View Full Version : VEX Ultrasonic Ping-Response sensor
Hello,
we are trying to study about rangefinder sensors and we would like to know how to connect it to the roboRio.
Can you post a link or info about which Vex sensor you are trying to use?
If you man the Parallax PING))) Ultrasonic Distance Sensor, this is ready to plug directly into an analog I/O port with nothing but a dual female 3-pin dupont (header) cable. I have personally used it on arduino, and for analog inputs, these seem to be 100% hardware compatible with the 'RIOs. IIRC, the analog read value just needs to be scaled linearly (mx+b) to get range.
Most rangefinder sensors that say they are 5V or 3.3V analog can be used with the analog I/O, though some have more non-linear conversions (we have used a Sharp sensor that had a v=1/r relationship between voltage and range).
Digital rangefinders may be simple binary (yes/no), which is definitely supported on the DIO port, or some sort of serial I/O interface, which would require more specific info to evaluate.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.