The Sharp distance sensors are a popular choice for many projects that require accurate distance measurements. This IR sensor is more economical than sonar rangefinders, yet it provides much better performance than other IR alternatives.
Interfacing to most microcontrollers is straightforward: the single analog output can be connected to an analog-to-digital converter for taking distance measurements, or the output can be connected to a comparator for threshold detection. The detection range of this version is approximately 10 to 80 cm.
The GP2Y0A02 uses a 3-pin JST PH connector that works with our 3-pin JST PH cables for Sharp distance sensors (not included); the top picture on the right shows a shorter-range Sharp analog distance sensor with one of these cables.
These cables have 3-pin JST connectors on one end and are available with pre-crimped male pins, pre-crimped female pins, and with unterminated wires on the other end.
Package Includes :
1 x Sharp Distance Measuring Sensor.
1 x Connecting Cable.