Phi Robotics GP2Y0A21YK0F User manual

  • Hello! I have analyzed the product manual for the IR Sensor GP2Y0A21YK0F. This manual details the sensor's features, such as its 10 to 80 cm distance range and analog voltage output. I am ready to answer your questions about its capabilities and usage.
  • What is the measuring range of the sensor?
    What type of output does the sensor provide?
    What is the operating voltage of the sensor?
    What is the update period of this sensor?
    What is the current consumption of the sensor?
Version 1.1
Sharp IR Sensor
GP2Y0A21YK0F
Phi Robotics Research Pvt. Ltd.
www.phi-robotics.com
Product Manual
Table of Contents
1 Introduction ................................................................................................................................................... 2
2 Features ......................................................................................................................................................... 2
3 Specifications ................................................................................................................................................. 2
4 Hardware Connections ................................................................................................................................... 2
5 Pseudo Code ................................................................................................................................................... 3
6 Reference ....................................................................................................................................................... 3
1 Introduction
Sharp GP2Y0A21YK0F IR sensor is distance measuring unit, can be used for obstacle detection for robots. It
has measuring range of 10 to 80 cm. The sensor gives output voltage proportional to the distance measured.
The sensor adopts triangulation method hence cannot be easily influenced by variety of reflectivity of object
or ambient temperature and provides reliable readings. The module can be used in obstacle detection for
robots, sensor for energy saving, amusement equipment (like arcade game machine) and many such
applications. Its high obstacle detection range makes this sensor an excellent alternative to sonar in some
applications.
2 Features
Composed of an integrated combination of PSD (position sensitive detector), IR LED (Infrared light
emitting diode) and signal processing circuit
Small compact size and easy to use
3 Specifications
Operating voltage: 5V
Distance measuring range: 10 to 80 cm
Current consumption: Typ. 30mA
Output type: analog voltage
Update period: 38 ± 10 ms
4 Hardware Connections
Figure 1 - GP2Y0A21YK0F pin layout
Sharp GP2Y0A21YK0F IR sensor has a 3 pin JST connector. The connector power supply pins and an analog
output voltage pin (Vo). Output voltage can be read by microcontroller ADC. Figure 1 shows pin layout for the
sensor. Obstacle distance can be calculated from output voltage using following equation.
  

5 Pseudo Code
6 Reference
GP2Y0A21YK0F Datasheet: http://www.sharpsma.com/webfm_send/1489
Phi Robotics Research Pvt. Ltd.
www.phi-robotics.com
/