Online ordering on this site has disabled, and this site is archived as Prices, promotions, and free shipping offers mentioned on this site are invalid. Please visit the new for shopping!

Sharp GP2Y0A21YK0F IR Distance Sensor 10-80 cm

  • 28995 Sharp GP2Y0A21YK0F IR Distance Sensor 10-80 cm
Product ID: 28995


The Sharp GP2Y0A21YK0F infrared distance measuring sensor uses a beam of infrared light to reflect off an object to measure its distance. Because it uses triangulation of the beam of light to calculate the distance, it is able to provide consistent and reliable readings which are less sensitive to temperature variation or the object’s reflectivity. The sensor outputs an analog voltage corresponding to the distance of the object, and can easily be read using an inexpensive analog to digital converter (ADC) chip.

The Sharp IR Sensor Stand kit (725-28995) provides a very convenient method of mounting the sensor, and the Sharp IR Sensor to Servo Cable (805-28995) makes it easy to wire up to a breadboard or microcontroller board.

Key Features:

  • Distance measurement range: 10 to 80 cm (3.9 to 31.5 inches)
  • Analog output voltage corresponds to distance
  • Operates on 5 V supply
  • 3-pin JST connector
  • Two mounting holes spaced 1.46 inches (37 mm) apart

Application Ideas:

  • Distance sensor for autonomous robots
  • Non-contact optical switch
  • Industrial automation and controls


  • Power requirements: 5 VDC, 30 mA (typ.)
  • Communication: Analog output voltage (typically 0.4 to 2.3 V range)
  • Overall Dimensions: 1.75 x 0.74 x 0.53 in (4.45 x 1.89 x 1.35 cm)
  • Operating temp range: +14 to +140 °F (-10 to +60 °C)

NOTE: This is NOT the same Sharp IR sensor used in the Boe-Bot Encoder Kit nor ActivitiyBot Encoder Kit.

Downloads & Documentation

Product Specific Downloads
Download Details More Info
Sharp GP2Y0A21YK0F Propeller Spin Example Code - 29.16 KB | updated: 21 Jan 2015 - 7:43 am
Sharp GP2Y0A21YK0F Propeller C Example Code - 2.52 KB | updated: 21 Jan 2015 - 7:37 am
Sharp GPY2Y0A21YK0F IR Distance Sensor Arduino Demo - 2.5 KB | updated: 11 Dec 2014 - 4:14 pm
Sharp GP2Y0A21YK0F IR Sensor Datasheet - 369.03 KB | updated: 19 Dec 2014 - 3:42 pm