Print Friendly, PDF & Email

Introduction:

IR sensors are used when we need to detect if any object is crossing or coming at the restricted areas because they can only detect the bounced back ray from the object. But there are cases when we need to know that from how far the object is coming i.e. distance of the object. Here Sharp IR sensors are used. The Sharp sensor has a special detector that not only determines if there is light, but they can also measure how far the object is and gives us an analog value for it.

Detector and IR LEDs have fixed orientation and distance with respect to each other. So nearer and farther object will definetly affect the angle in which the lights from IR LEDs hitting the receiver. So after receiving lights distance can be easily calculated.

Usage:

Where ever distance needs to be calculated Sharp IR sensors can be of a very good use.

Common applications of Sharp IR sensors are Robotics, Security areas etc.

Application:

http://luckylarry.co.uk/arduino-projects/arduino-using-a-sharp-ir-sensor-for-distance-calculation/

Project for Reference:

Code:

Output at Serial Monitor: