The IR Range Sensor: Introduction

Project Info
Author: Chris
Difficulty: Easy
Time Invested: 2 Hours

Take a look at the above
tutorials before continuing
to read this tutorial.
           LEDs has been around for a long time. They are important in basic electronics as they come from the basic diode. LEDs have the capability to emit light and to receive it and turn it into a voltage-electricity. Infrared transmitter and receivers use this property that outputs a unique voltage for how far away an object is from the transmitter/reciever pair.
           It is recommended that you have the PIC & P40 olimex dev board to follow along with this tutorial.

GP2D120 (4cm-30cm) IR Sensor

P-40 Olimex Development Board

Purpose & Overview of this tutorial
           The purpose of this tutorial is to learn how the infrared sensor works and how to use it to find the distance of objects near or far away from it.
           Knowing the distance you are away from an object is very important in fields such as robotics or even for tasks just as simple as driving. IR transmitter and receiver leds have been around for a long time so the technology is already seen in mainstream society (i.e. water facets in bathrooms/toilets/hand dryers).