Sharp GP2Y0A21YK IR Range Sensor (10-80cm)

Sharp GP2Y0A21YK IR Range Sensor (10-80cm)
Sharp GP2Y0A21YK IR Range Sensor (10-80cm) Sharp GP2Y0A21YK IR Range Sensor (10-80cm)
Brand: Sharp
Product Code: G4EE019DD487AD
Reward Points: 17
Availability: 1849
Price: $9.50

5 or more $9.00
20 or more $8.00
   - OR -   


Description: Infrared proximity sensor made by Sharp. Part # GP2Y0A21YK has an analog output that varies from 3.1V at 10cm to 0.4V at 80cm. The sensor has a Japanese Solderless Terminal (JST) Connector. We recommend purchasing the related pigtail below or soldering wires directly to the back of the module.

Specifications :


1、Measuring Detecting distance : 10 to 80 cm

2、The maximum allowable Angle : > 40 °

3、The power supply voltage : 4.5 to 5.5 V

4、The average power consumption : 35 mA

5、Peak power consumption : about 200 mA

6、The frequency of updates/cycle : 25 Hz/40 ms

7、Analog output noise : < 200 mV

8、Less influence on the color of reflective objects, reflectivity

9、Line-up of distance output/distance judgement type :

    Distance output type (analog voltage) : GP2Y0A21YK

    Distance judgement type : GP2Y0D21YK

    Judgement distance : 24cm

    (Adjustable within the range of 10 to 80cm [Optionally available])

10、External control circuit is unnecessary

11、Low cost


Arduino take six channel 10 ADC with itself, so we can directly connect the GP2Y0A21YK0F sensor with Arduino analog interface, and read the feedback value of this sensor.
According to the official manual, it is known that the output of the GP2Y0A21YK0F is 0.4 V ~ 2.4 V analog signals, corresponding 10 ~ 80 cmkjtance, output  is inversely proportional to distance, and nonlinear .

Outline Dimensions :


Analog Output Voltage vs. Distance to Reflective Object :


Test Code : ( Just for referring )

int i;
int val;
int redpin=0;
void setup()
void loop()

Write a review

Your Name:

Your Review: Note: HTML is not translated!

Rating: Bad            Good

Enter the code in the box below:

Powered By Tinyos
Tinysine (Tinyos) Electronics © 2024