Sharp IR Sensor — 0A41SK

4–30cm Infrared IR Distance Measuring Sensor —Ardu_Serie # 82

J3
Jungletronics
2 min readAug 26, 2019

--

The Sharp distance sensors are a popular choice for many projects that require accurate distance measurements.

Fig. 1–IR distance sensor for 4–30 cm range

The lower minimum detection distance makes this sensor great for detecting very close objects.

The distance is indicated by an analog voltage, making this sensor very easy to use.

How it Works:

IR Sensors work by using a specific light sensor to detect a select light wavelength in the Infra-Red (IR) spectrum. By using an LED which produces light at the same wavelength as what the sensor is looking for, you can look at the intensity of the received light.

Installing SharpIR library

Fig 2. You can download this LIB zip from guillaume-rico/SharpIR repo :)

In the fig 2 you can choose which one is your IRSharp sensor model.

I have two of them:

Fig 3. I’m owner of 2 IRSharp Sensor

/* Model :
GP2Y0A02YK0F → 20150
GP2YA41SK0F → 430

Download the Lib

See Fig 2.

Fritzing Schematic

Fig 4. Fritz schema for the code below:)

Here is the code

Here is the Lab

Fig 5. The experiment. Pitbot front eye!

Credits & References

Datasheet found on: https://www.pololu.com/file/0J713/GP2Y0A41SK0F.pdf

Library SharpIR by guillaume-rico/SharpIR hosted in Github Repo

Sharp GP2Y0A41SK0F Analog Distance Sensor 4–30cm by pololu.com

GP2Y0A02YK0F GP2Y0A02YK0F Distance Measuring Sensor Unit Measuring distance: 20 to 150 cm Analog output type by www.sparkfun.com

GP2Y0A41SK0F 0A41SK 4–30cm Infrared IR Distance Measuring Sensor by www.aliexpress.com

https://www.arduinolibraries.info/libraries/sharp-ir from Arduino Library List

Pololu all IrSensor page: https://www.pololu.com/search?query=Sharp+GP2Y0A02YK0F+analog+distance+sensor+20-150cm

How to use a SHARP GP2Y0A710K0F IR Distance Sensor with Arduino by Makerguides.com

--

--

J3
Jungletronics

😎 Gilberto Oliveira Jr | 🖥️ Computer Engineer | 🐍 Python | 🧩 C | 💎 Rails | 🤖 AI & IoT | ✍️