TOP

Sharp GP2Y0A21 IR Distance Sensor for Arduino (10~80cm)

$12.00
SKU: SEN0014
The IR distance sensor measures 10-80cm and offers better performance than other IR options. It connects easily to microcontrollers for projects.
Purchase this product and earn 120 reward points, which are tied to VIP membership program. Learn More >

Introduction

Sharp GP2Y0A21 IR Distance Sensor (10–80cm) provides reliable short‑range distance measurement using optical triangulation technology. This infrared ranging module delivers more stable readings than many basic IR proximity sensors while remaining more economical than typical ultrasonic alternatives. The analog output voltage varies with detected distance, allowing straightforward integration with microcontroller analog inputs for continuous measurement or comparator circuits for threshold detection. Such characteristics make this compact distance‑sensing component a practical solution for robotics, automation experiments, and embedded control systems that require consistent distance feedback within a 10–80 cm detection window.


Reliable Infrared Triangulation Measurement

Sharp optical distance sensing technology combines an infrared emitter, position‑sensitive detector, and signal processing circuit to calculate distance through triangulation rather than simple reflected intensity. This approach significantly improves measurement stability compared with conventional reflective IR sensors. The result is a dependable analog voltage output that changes consistently across the 10 cm to 80 cm detection range. Such predictable signal behavior allows this infrared ranging module to deliver repeatable distance readings even when object color or ambient lighting conditions vary moderately.


Simple Analog Integration with Microcontrollers

This analog distance detection module interfaces easily with popular development platforms such as Arduino. The sensor outputs a continuous voltage corresponding to measured distance, enabling direct connection to an analog‑to‑digital converter for precise ranging tasks. Alternatively, comparator circuits can convert the signal into threshold triggers for obstacle detection or automation logic. Such flexible signal output makes this compact ranging sensor suitable for rapid prototyping, educational electronics development, and embedded control systems.


Convenient JST Connector and Flexible Wiring

This infrared proximity measurement unit features a 3‑pin JST connector designed for quick and reliable wiring. The connector mates with standard 3‑pin JST cables, simplifying integration into breadboard or robotics setups. Power, ground, and analog signal pins are arranged sequentially for straightforward identification when wiring directly to controllers. All Sharp sensors supplied by DFRobot include the matching JST cable, ensuring immediate usability without additional accessories or complicated assembly.


Practical applications include robotics obstacle avoidance, smart appliance control, and interactive electronics prototypes. Educational makers and engineers can explore projects such as the smart cooling fan demonstration described in How to Build A Smart Cooling Fan with Arduino?. This compact optical distance sensing module supports experimentation across robotics platforms, automation systems, and STEM Education projects that require dependable short‑range distance detection.

Features

  • Infrared triangulation technology for stable distance measurement
  • Detection range from 10 cm to 80 cm
  • Continuous analog voltage output corresponding to measured distance
  • Compatible with common microcontroller analog inputs
  • 3‑pin JST connector for quick wiring
  • Suitable for robotics, automation, and education projects
  • Applications

  • Robotics obstacle avoidance
  • Distance measurement for automation systems
  • Interactive electronic installations
  • Smart appliance control projects
  • STEM education experiments and demonstrations
  • Specification

    Electrical Parameters

  • Operating voltage: 4.5 V to 5.5 V
  • Average current consumption: 30 mA (typical)
  • Distance measuring range: 10 cm to 80 cm (4" to 32")
  • Output type: analog voltage
  • Output voltage differential over distance range: 1.9 V (typical)
  • Response time: 38 ± 10 ms
  • Physical Dimensions

  • Package size: 29.5×13.0×13.5 mm (1.16×0.5×0.53")
  • Weight: 3.5 g (0.12 oz)
  • Shipping List

  • Sharp GP2Y0A21 IR Distance Sensor (10–80cm) x1
  • 3‑pin JST Cable x1
  • Documents

    Sharp GP2Y0A21 IR Distance Sensor for Arduino (10~80cm)
    $0.00