View Single Post
  #3   Spotlight this post!  
Unread 17-10-2016, 22:29
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,511
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
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.
Reply With Quote