Introduction: Infra Red Obstacle Detection

Picture of Infra Red Obstacle Detection

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

Picture of 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

Picture of 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

Comments

JonathanT114 (author)2016-12-04

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

Misael Saenz Flores (author)2015-02-17

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

Misael Saenz Flores (author)2015-02-17

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

About This Instructable

10,345views

56favorites

License:

Bio: 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 ... More »
More by Robotix_au:Memory Trainer in PythonLIGHT SABRE GAME in SratchButton LED Input/Output Circuit
Add instructable to: