Product | Sensors | IR Sensor | Sharp IR Sensor - GP2Y0A21YK0F
Sharp IR Sensor - GP2Y0A21YK0F
Sharp IR Sensor - GP2Y0A21YK0F
More than 100
US$19.98 Loading ...


Arduino Sharp IR Sensor - GP2Y0A21YK0F

Arduino Sharp IR Sensor - GP2Y0A21YK0F is the updated version of Arduino Sharp IR Sensor - GP2D12

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.

And compare with GP2D12, GP2Y0A21YK0F have more stable function and performance、lower power consumption.
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()

Now you can watch the distance value in the window of Arduino 0021


Item come with cable


Write a review
*Review title
Please enter subject.
*Your review
Please enter review.
(Click star icon to comment)
Display name
*Enter security code


Please enter code
Loading ...