Infrared Distance Measuring Proximity Sensor 100 -500cm - SHARP GP2Y0A710K0F
-
RM85.00
- Product Code: GP2Y0A710K0F
- Availability: In Stock
This extra-long-range SHARP distance sensor bounces IR off objects to determine how far away they are. It returns an analog voltage that can be used to determine how close the nearest object is. Comes with 6" long 6-JST interface wire. These sensors are good for detection between 100cm-500cm (1-5 meters / 3-15 feet). The long range makes them a good alternative to sonar sensors.
Please note: the wire colorings are not intuitive! Watch out before wiring! The datasheet has wiring details. Connect the two outer ground wires both to ground, the two 'VCC' wires both to 5VDC power, and read the analog signal from the Vo wire. The analog voltage out will range from 3V when an object is about 100cm away and 1.4V when the object is 500cm away. For a full graph, showing the distance to analog range, check the datasheet below.
These sensors tend to be a little noisy, we suggest soldering/connecting the included 220uF capacitor to the same place you connect the wires, to provide some filtering on the power supply. Connect the + pin of the capacitor to the Vcc wire connection, and the - pin of the capacitor to the GND wire connection.
Features:
Specifications:
/* created by lisper (leyapin@gmail.com) function test GP2Y0A41SK0F */ //connect gp2d120x to A0 #define pin A0 void setup(){ Serial.begin (9600); pinMode(pin, INPUT); } void loop(){ uint16_t value = analogRead (pin); double distance = get_IR (value); //Convert the analog voltage to the distance Serial.println (value); //Print the data to the arduino serial monitor Serial.print (distance); Serial.println (" cm"); Serial.println (); delay (500); //Delay 0.5s } //return distance (cm) double get_IR(uint16_t value){ if (value < 16) value = 16; return 2076.0 / (value - 11.0); }
View the result in serial monitor.
Tags: IR Infrared, Distance Measuring