- Out-of-Stock
The GP2Y0A02 is the longest-range optical distance sensor we carry, featuring a detection range of 8" to 60". The high maximum detection distance makes this sensor a viable alternative to sonar in some applications. The distance is indicated by an analog voltage, making this sensor very easy to use.
![]() |
| 3-pin JST cable connected to a Sharp analog distance sensor. |
|---|
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 20 cm to 150 cm (8" to 60"); a plot of distance versus output voltage is shown below.
The GP2Y0A02 uses a 3-pin JST connector that works with our 3-pin JST cables for Sharp distance sensors (not included) as shown in the top picture on the right. It is also simple to solder three wires to the sensor where the connector pins are mounted (see the lower picture to the right). When looking at the back, the three connections from left to right are power, ground, and the output signal.
![]() |
![]() |
The relationship between the sensor’s output voltage and the inverse of the measured distance is approximately linear over the sensor’s usable range. The GP2Y0A02YK data sheet (703k pdf) contains a plot of analog output voltage as a function of the inverse of distance to a reflective object. You can use this plot to convert the sensor output voltage to an approximate distance by constructing a best-fit line that relates the inverse of the output voltage (V) to distance (cm).
We carry two shorter-range versions of this sensor as well: the Sharp GP2D120XJ00F analog distance sensor (4 – 30 cm) and the Sharp GP2Y0A21YK0F analog distance sensor (10 – 80 cm). These analog distance sensors all have identical pin-outs and very similar packages, making it easy to swap one version for another should your application requirements change. We also sell a digital Sharp distance sensor, which has a very low minimum detection distance, quicker response time, lower current draw, and a much smaller package.
![]() |
| A variety of Sharp distance sensors. |
|---|
Note: The manufacturer recommends you insert a bypass capacitor of 10 uF or more between Vcc and GND near this sensor to stabilize your power supply line.
![]() |
3-Pin Female JST PH-Style Cable for Sharp Distance Sensors (30cm) |
![]() |
Sharp GP2Y0A21YK0F Analog Distance Sensor 10-80cm |
![]() |
Sharp GP2D120XJ00F Analog Distance Sensor 4-30cm |
Manufacturer
Responsible person
Stainless steel cable ties with dimensions of 4.6 x 700 mm are an essential tool for professionals in the automotive, industrial and installation industries. Their high quality of workmanship, reliability and ease of installation make them an excellent choice for anyone who needs a solid and durable solution for fastening cables and pipes. Yato YT-70571
No product available!
The STHOR 66310 screwdriver bit set, made of CRV steel, contains functional tips (flat, PH, PZ, Torx, hexagonal, square) and is ideal for tightening and loosening screws in hard-to-reach places, especially recommended for car services and automotive enthusiasts. Sthor-66310
No product available!
Professional set of Yato YT-04621 impact screwdriver tips, made of AISI S2 acid-resistant steel, intended for work in hard-to-reach places, ideal for car services and automotive enthusiasts, contains 22 tips and an adapter, packed in cases with clear markings. YT-04621
No product available!
SUNON DC Axial Fan is a high-quality device that combines quiet operation, low power consumption and efficiency, ideal for use in advanced electronic and mechanical systems. Sunon HA40101V4-A99-A
No product available!
Piergiacomi miniature cutting pliers combine advanced technology and high functionality, which makes them an irreplaceable tool in every professional workshop. Thanks to its ergonomic design and additional functions, this tool ensures comfort and high work efficiency, while minimizing the risk of damage to the processed material. PG-TRR58G
No product available!
The 3296Y 50k precision potentiometer is a three-turn, 50kΩ resistor control element ideal for precise voltage and current control in electronic systems. It features high accuracy, stability, and vertical through-hole mounting for easy use in PCB designs.
No product available!
The XY2500R-D(5.08)-3PIN is a durable 3-pin right-angle pluggable terminal block from XINYA, designed for PCB THT mounting, offering 15 A / 300 V rating and UL-compliant flame resistance – ideal for reliable power connections
No product available!
The UGO 5.1 sound card provides easy and convenient expansion of your computer\'s audio functions, offering high-quality surround sound and compatibility with various operating systems. UGo UKD-1085
No product available!
The XL4015E1 converter is a step-down (buck) circuit that converts an input voltage of 8-36V to a regulated output of 1.25-32V, with a maximum current of up to 5A. It is characterized by high efficiency (up to 96%) and protection against short circuit and overheating, although it does not have protection against reverse polarity of the power supply.
No product available!
The STM32H563RGT6 is a high-performance ARM Cortex-M33 microcontroller with advanced communication interfaces and security features, making it ideal for embedded and IoT applications.
No product available!
High-quality OV5640 camera with a 5 MP sensor, 120° wide-angle lens, and support circuitry, ready to work with Pico or Pico W. Adafruit 5949
No product available!
The ARJM11C7-114-BA-EW2 Ethernet connector is a magnetic RJ45 module that is ideal for LAN applications. It supports data rates up to 100 Base-T with PoE (Power over Ethernet), providing a stable and efficient connection. With built-in magnetics, it effectively suppresses electromagnetic interference (EMI), making it an excellent choice for various network devices such as network cards, switches, routers, and servers
No product available!
Odroid H4 minicomputer with Core N97 processor. With fast DDR5-4800 memory and advanced Intel UHD Graphics, it supports multitasking and high image quality. It is a reliable solution for a variety of applications, both domestic and industrial. Odroid H4
No product available!
Odroid H4 minicomputer with Core N97 processor. With fast DDR5-4800 memory and advanced Intel UHD Graphics, it supports multitasking and high image quality. It is a reliable solution for a variety of applications, both domestic and industrial. Odroid H4 Plus
No product available!
A minicomputer with advanced capabilities, ideal for various home and industrial applications. It is equipped with a Core™ i3 N305 processor with 6 MB cache. It supports fast DDR5-4800 memory, and the advanced Intel UHD Graphics guarantees high image quality. Odroid H4 ULTRA
No product available!
The Vorel 60750 screwdriver set, made of durable CrV 6150 steel, with ergonomic, non-slip handles, includes a ratchet screwdriver, 23 standard screwdrivers, 8 precision screwdrivers, 2 double-sided screwdrivers, 60 bits and 6 sockets, offering versatility of use and the ability to reach hard-to-reach places . Vorel-60750
No product available!