Infra Red Obstacle Detection

by Robotix_au in Circuits > Arduino

20617 Views, 58 Favorites, 0 Comments

Infra Red Obstacle Detection

Sensor Image.PNG

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.

Schematic

Infra Red Obstacle Detector.PNG

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

Code and Circuit in Action

Code pic.PNG
Infra Red Obstacle Detector

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

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

Downloads