Sharp GP2Y0A21YK IR Range Sensor (10-80cm)
20 or more $8.00
Introduction
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
Outline Dimensions :
Analog Output Voltage vs. Distance to Reflective Object :
Test Code : ( Just for referring )
int i;
int val;
int redpin=0;
void setup()
{
pinMode(redpin,OUTPUT);
Serial.begin(9600);
}
void loop()
{
i=analogRead(redpin);
val=(6762/(i-9))-4;
Serial.println(val);
}
Write a review
Your Name:Your Review: Note: HTML is not translated!
Rating: Bad Good
Enter the code in the box below: