|
Re: VEX Ultrasonic Ping-Response sensor
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.
__________________
If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
|