New Arduino Sharp GP2Y0A21 IR Infrared Range Sensor + Cable


$8.07

  • Model: 291199156624
  • Units in Stock: 100

Always Free Shipping

New Arduino Sharp GP2Y0A21 IR Infrared Range Sensor + Cable

Read the distance of the object in front of your robot. The Sharp GP2Y0A21 IR Range Sensor takes a continuous distance reading and reports the distance as an analog voltage with a distance range of 10cm (~4") to 80cm (~30").

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

Code:
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);
}
Package included?
1X GP2Y0A21 Infrared Range Sensor
1X CABLE
We can also wholesale if you need a large quantity of item please contact us.