• Arduino Sharp IR Sensor GP2Y0A21YK0F Measuring Detecting Distance 10 to 80cm
  • Arduino Sharp IR Sensor GP2Y0A21YK0F Measuring Detecting Distance 10 to 80cm

Arduino Sharp IR Sensor GP2Y0A21YK0F Measuring Detecting Distance 10 to 80cm

Availability: In stock, usually dispatched in 1 business day

  • Price:$14.26
  • Price in reward points: 143 Reward Points: 1
  • Quantity 3+ units 10+ units 30+ units 50+ units More
    Price /Unit $13.97 $13.69 $13.26 $12.69 Contact US
Quantity:

Arduino Sharp IR Sensor GP2Y0A21YK0F Measuring Detecting Distance 10 to 80cm
Descriptions:
- Arduino Sharp IR Sensor - GP2Y0A21YK0F is the updated version of Arduino Sharp IR Sensor - GP2D12
- And compare with GP2D12, GP2Y0A21YK0F have more stable function and performance,lower power consumption.

Specifications :
- Measuring Detecting distance is 10 to 80 cm
- The maximum allowable Angle : > 40 °
- The power supply voltage : 4.5 to 5.5 V
- The average power consumption : 35 mA
- Peak power consumption : about 200 mA
- The frequency of updates/cycle : 25 Hz/40 ms
- Analog output noise : < 200 mV
- Less influence on the color of reflective objects, reflectivity
- Line-up of distance output/distance judgement type :
-  Distance output type (analog voltage) : GP2Y0A21YK
- Distance judgement type : GP2Y0D21YK
- Judgement distance is  24cm
- Adjustable within the range of 10 to 80cm [Optionally available])
- External control circuit is unnecessary
- 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()
{
  pinMode(redpin,OUTPUT);
  Serial.begin(9600);
}
void loop()
{
  i=analogRead(redpin);
  val=(6762/(i-9))-4;
  Serial.println(val);
}


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

 Package include
-  1 x Sharp GP2Y0A02YK0F Distance Sensor

Write a review

Note: We will keep it confidential.
Note: HTML is not translated!
 
Captcha