Using a Sharp GP2Y0A51SK0F IR Distance Sensor with Arduino (2cm to 15cm)
In this tutorial, we learn how to use the Sharp Infrared Distance sensor GP2Y0A51SK0F and measure distances from 2 cm to 15 cm. We will display the distance as "cm" or "inch" on an LCD1602 or LCD2004 with an I2C module, which has only four wires. Wiring, code, and a demonstration are shown.
344-Arduino code for Sharp GP2Y0A51SK0F distance sensor
Language: C++
Copied!
Resources & references
-
ExternalSharp IR GP2Y0A51SK0F datasheet (PDF)global.sharp
-
Internal
Files📁
No files available.