Infra Red Obstacle Detection

19,470

57

3

Introduction: Infra Red Obstacle Detection

About: I am robotics engineer and a teacher whose passion in life is breaking down the maths and academic jargon of programming and robotics into something that everyone can understand, primary school kids included.…

What is it?

A highly reliable means of detecting obstacles using reflected infra red light

How Does it Work?

The module has a in infra-red transmitter which lights up the surroundings and an infra red receiver which measures the amount of infra red that is reflected. If the reflected amount of light reaches above a certain threshold that means that light was reflected and so the signal pin is triggered. (goes from HIGH to LOW)

What can you use it for?

This sensor has several limitations: it cannot measure distance and it can malfunction in very bright light i.e. sunlight. However its amazingly responsive and close to 100% reliable so its a great solution to add to fast rovers and quad copters.

Step 1: Schematic

Connect the sensor so that A0 on the sensor plugs into A0 on the Arduino, GND Pin connects to A1 on the Arduino and (+) Pin connects to A2 on the Arduino.

You also Connect a 5mm LED to Pin11 on the Arduino

Step 2: Code and Circuit in Action

For a more detailed explanation to the code watch the video from: 3:25

To see the circuit in action watch from: 5:00

Be the First to Share

    Recommendations

    • Explore Science Challenge

      Explore Science Challenge
    • Box Challenge

      Box Challenge
    • Make it Real Student Design Challenge #3

      Make it Real Student Design Challenge #3

    3 Comments

    0
    JonathanT114
    JonathanT114

    4 years ago

    Hi, If i want to control a servo motor with an Infa Red obstacle detection, How could i do it? Pleas Help.. Thank You

    0
    Misael Saenz Flores
    Misael Saenz Flores

    6 years ago

    This sensor is digital, it is not necessary to read as analog, only delivers low and high, also uses a potentiometer for adjusting the distance

    0
    Misael Saenz Flores
    Misael Saenz Flores

    6 years ago

    This sensor is digital, it is not necessary to read as analog, only delivers low and high, also uses a potentiometer for adjusting the distance