Sharp GP2Y0A21YK0F Infrared Distance Sensor 10–80cm. For Arduino, Robotics & Automation.
Technical details
Brand: Sharp
Model Number: GP2Y0A21YK0F
Product Type: Infrared Distance Measuring Sensor
Sensing Technology: Infrared (IR) triangulation
Measurement Range: Approximately 10–80 cm
Output Type: Analog voltage
Operating Voltage: 4.5V–5.5V
Typical Supply Voltage: 5V DC
Interface: Analog output
Typical Response Time: Approximately 39 ms
Compatibility: Arduino and other microcontrollers with compatible analog inputs
Raspberry Pi Compatibility: Requires an external ADC for analog readings
Applications: Distance Measurement, Obstacle Detection, Robotics and Automation
Use and compatibility
The Sharp GP2Y0A21YK0F Distance Sensor is an infrared distance-measuring sensor designed to detect the distance between the sensor and an object within an approximate range of 10 cm to 80 cm. It uses infrared light and triangulation technology to provide an analog voltage output corresponding to the detected distance.
This sensor is suitable for Arduino projects, autonomous robots, obstacle-avoidance systems and electronic automation applications. Its analog output allows a compatible microcontroller to read sensor values and process them for distance estimation and object detection.
Unlike simple digital proximity sensors, the GP2Y0A21YK0F provides a varying analog output, making it useful for projects that need distance-related measurements. The relationship between output voltage and distance is nonlinear, so calibration or a suitable conversion method may be required for accurate readings.
Compatibility and setup
Check the model, operating voltage and connector or pin labels on your part before wiring it.
Will this work with my project?
Send Aryan your board model, supply voltage and what you are trying to build. Follow the exact part’s documentation before making connections.
Can I get a pinout, example code or a test video?
Ask Aryan for the resources available for this exact model. Ask about this part.