-17%
,

Sharp Distance Measuring Sensor 10-80cm GP2Y0A21YK0F

Availability:

Only 3 left in stock


– Accurate infrared distance sensing using triangulation and position-sensitive detector
– Detection range: 10 cm to 80 cm
– Analog voltage output proportional to distance (easy to read with ADC)
– Operating voltage: 4.5 V to 5.5 V; low power for battery systems
– Compact, lightweight design for easy integration into robots and embedded builds
– Reliable readings less affected by ambient light and surface color
– Ideal for robotics, obstacle detection, automation, and DIY projects

WhatsAppChat on WhatsApp

 1,200  1,450

Only 3 left in stock

Sharp GP2Y0A21YK0F Distance Sensor overview

The Sharp GP2Y0A21YK0F Distance Sensor is a high-performance infrared proximity sensor that delivers stable, repeatable distance measurements from 10 cm to 80 cm. Using triangulation with a position-sensitive detector (PSD), this sensor provides an analog voltage output that corresponds to the distance to an object, making it ideal for robotics, automation, interactive displays, and educational projects.

How the GP2Y0A21YK0F works

This infrared distance sensor emits IR light and measures the reflected beam’s angle on a PSD to determine distance. Because it relies on triangulation rather than simple intensity, it offers more consistent measurements across varying ambient light and object colors than basic IR reflectance sensors.

Key features

  • Detection range: 10 cm to 80 cm
  • Analog voltage output proportional to measured distance (suitable for microcontroller ADC inputs)
  • Operating voltage: 4.5 V to 5.5 V DC
  • Low power consumption, suitable for battery-powered systems
  • Compact and lightweight for easy mounting and integration
  • Reliable performance less affected by ambient light and surface color

Technical specifications

  • Model: GP2Y0A21YK0F
  • Detection range: 10 cm to 80 cm
  • Output: Analog voltage (Vo) proportional to distance
  • Supply voltage: 4.5 V to 5.5 V DC
  • Current consumption: low (varies by measurement frequency)
  • Interface: 3-pin (Vcc, GND, Vo)
  • Dimensions: compact, lightweight package for embedded use

Wiring and interfacing

  • Vcc: 4.5 V to 5.5 V DC (do not exceed supply range)
  • GND: Common ground with your microcontroller or system
  • Vo: Analog output; connect to an ADC pin on your microcontroller (Arduino, ESP32, Raspberry Pi ADC module, etc.)

For best results, add basic smoothing (moving average or low-pass filter) on the ADC readings and sample at a moderate interval to avoid noise. If you need to measure objects at the extreme ends of the range, calibrate with known distances to convert voltage to distance more accurately in your application.

Applications

  • Obstacle detection and avoidance for mobile robots
  • Distance measurement and object detection in automation systems
  • Interactive exhibits, kiosks, and displays
  • Security and surveillance proximity sensing
  • Educational labs, research, and DIY electronics projects

Tips for best performance

  • Keep sensor lens clean and free of dust or smudges.
  • Avoid pointing the sensor at very shiny or highly absorbent surfaces without calibration; triangulation helps but extreme surfaces can affect readings.
  • Use decoupling capacitors on the supply lines to reduce electrical noise.
  • Implement software filtering to smooth out transient spikes in analog readings.
  • Test and calibrate in the environment where the sensor will operate for optimal accuracy.

Why choose the Sharp GP2Y0A21YK0F for robotics and automation

The GP2Y0A21YK0F combines a practical detection range (10 cm to 80 cm), a simple analog interface, and robust triangulation-based sensing to provide reliable distance data for embedded systems. Its low power and compact footprint make it particularly suitable for mobile robots, battery-operated devices, and space-constrained installations.

Note: Images are for illustration purposes only.

Reviews

There are no reviews yet

Only logged in customers who have purchased this product may leave a review.

Vendor Information

  • Store Name: College Road Electronics
  • Vendor: College Road Electronics
  • Address: Microwave Electronics, Basement Azhar Shaheed Plaza, DAV College Road
    Rawalpindi
    Punjab
    46000
  • 4.80 rating from 391 reviews
28
    28
    Your Cart
    USB AVR programmer with cable for programming Atmel AVR microcontrollers.
    USB AVR Programmer with Cable
    1 X  540 =  540
    PIC Programming Adapter Module Board
    PIC Programming Adapter Module Board
    1 X  490 =  490
    MAX7219 4-in-1 dot matrix LED display module for scrolling text and graphics.
    MAX7219 Dot Matrix 4x1 LED Display Module
    1 X  1,150 =  1,150
    T-M46 Traffic Light DIY Learning Kit
    T-M46 Traffic Light DIY Learning Kit
    1 X  1,200 =  1,200
    Flame sensor module for detecting fire or flame in electronics projects
    IR Infrared Flame Sensor Module
    1 X  140 =  140
    DV20 USB Camera 2MP Full HD 1080P Webcam
    DV20 USB Camera 2MP Full HD 1080P Webcam
    1 X  2,700 =  2,700
    7474 dual D-type flip-flop IC in DIP package, digital IC for storing and transferring binary data in sequential circuits.
    7474 Dual D-Type Flip-Flop IC (DIP)
    1 X  60 =  60
    T-M105 Creeping Robot DIY Learning Kit
    T-M105 Creeping Robot DIY Learning Kit
    1 X  1,900 =  1,900
    ZOP Power 3S 11.1V 1300mAh 25C LiPo Battery
    ZOP Power 3S 11.1V 1300mAh 25C LiPo Battery
    1 X  3,300 =  3,300
    BC548 NPN transistor, 30V 0.1A, general-purpose low-power transistor for switching and amplification in electronics projects.
    BC548 NPN Transistor (30V 0.1A)
    1 X  7 =  7
    SMA Female to IPEX WiFi Connector Cable
    SMA Female to IPEX WiFi Connector Cable
    1 X  250 =  250
    24V 1A AC-DC power supply adapter with standard DC output plug
    AC-DC Power Supply Adapter 24V 1A
    1 X  450 =  450
    WhatsApp
    Call