EmbeddedRelated.com
The 2026 Embedded Online Conference
GP2Y0A02YK0F

GP2Y0A02YK0F

Sharp
Longer-range analog IR sensor (typically used for 20-150 cm) if you need greater distance than the GP2Y0A21YK0F covers.
148 in stock

Overview

The GP2Y0A02YK0F is an integrated distance measuring sensor comprising a combination of a position sensitive detector (PSD), an infrared emitting diode (IRED), and a signal processing circuit. It utilizes the triangulation method to measure distances between 20 cm and 150 cm, making the output relatively insensitive to the reflectivity of the object or environmental temperature.

Why Choose This Part

The sensor provides a continuous analog output voltage corresponding to the detected distance, simplifying integration with standard ADC inputs. Because it uses triangulation rather than simple intensity, it is significantly less affected by the color or material of the target object.

Applications

Robotic Obstacle Avoidance
Enables autonomous robots to detect and navigate around obstacles at a distance of up to 1.5 meters.
Touch-less Switches
Implementation in sanitary equipment or illumination control to allow operation without physical contact.
Energy Saving Sensors
Detects user presence for wake-on-approach functionality in ATMs, copiers, and vending machines.
Amusement Equipment
Used in arcade game machines and interactive toys for player proximity detection.

Key Specifications

Output Type Analog
Current - Supply 50 mA
Sensing Distance 20 ~ 150cm
Voltage - Supply 4.5V ~ 5.5V
Operating Temperature -10degC ~ 60degC
Voltage - Output (Typ) @ Distance 400mV @ 150cm
Voltage - Output Difference (Typ) @ Distance 2.05V @ 20 ~ 150cm

Getting Started

Connect the three-pin JST connector to a 5V supply and an analog-to-digital converter (ADC) pin on your microcontroller. Since the output voltage is non-linear relative to distance (inverse proportional), use a look-up table or a linearization formula in your firmware to convert the 0.4V to 2.45V output range into centimeters.

Also Consider

GP2Y0A21YK0F Sharp Microelectronics - A shorter range version (10 cm to 80 cm) with a higher update frequency for closer proximity applications.
VL53L1X STMicroelectronics - A digital Time-of-Flight (ToF) sensor that offers higher precision and I2C communication in a much smaller form factor.
The 2026 Embedded Online Conference