The Sharp GP2Y0A02YK0F is an optical distance sensor. It is composed of an infrared LED along with position detector device (PSD) and an integrated processor in charge of calculating the distance.
The sensor continuously scans the objects in front of it and provides the output with an analog voltage reference, so we can use the analog inputs of Arduino to read the value of the distance.
The measuring range is from 20 to 150 cm, maintaining a high degree of accuracy throughout the range. The supply voltage is 4.5 to 5.5V with a current consumption of 33mA. The refresh interval between measurements is about 80ms.
The sensor is less sensitive to the color and reflectivity of the detected object, nor to the ambient temperature. However, it can be affected by ambient light if it receives a high degree of brightness directly, especially when used outdoors. They can also provide incorrect measurements when detecting transparent or very bright objects, especially glass and mirrors.
The Sharp sensor is more accurate at medium and long distances; however, it cannot operate in short distances (< 20cm).
Demo
Comments