Infrared Obstacles Avoidance Sensor Module interfacing, In this tutorial you will learn what is Infrared Obstacles Avoidance Sensor Module? How to interface the Infrared Obstacles Avoidance Sensor Module with pic microcontroller. What is it pin configuration and how it works. You may also like to check following pic microcontroller tutorials:
- Introduction to PIC16F877A microcontroller
- LED Blinking with PIC16F877A microcontroller
- How to measure ac voltage with pic microcontroller
- How to program pic microcontroller
- How to Mikro C for pic compiler
What is Infrared Obstacles Avoidance Sensor Module?
Infrared obstacles avoidance sensor module is the combination of two infrared sensors. First one is an infrared transmitter and the second one infrared receiver. The infrared transmitter emits the infrared light through LED light. This infrared light has a certain frequency and when it is reflected back after the collision of any obstacle or object then this light is received by the infrared receiver. Then this infrared obstacles avoidance sensor tells the system, that someone is existing in this particular area. It can easily detect the object from 2 to 30 cm area and its detection angle is 35o. This infrared obstacles avoidance sensor module has been currently used in so many applications such as in robotic industry, automobile industry and security purposes, etc. It is easily available in the market or online shop. A simple obstacles avoidance sensor module is shown in figure 1.
Figure 1 Infrared Obstacles Avoidance Sensor Module
Pin Configuration of Infrared Obstacles Avoidance Sensor Module
Figure 2 Pin Configuration of 1 Infrared Obstacles Avoidance Sensor Module
According to figure 2, this infrared obstacles avoidance sensor module consists of three pins VCC, GND, and Vout. At VCC pin 3.3 to 5 Volts dc voltages are applied to turn on this sensor and ground pin is connected to input ground. Vout is the output pin of this sensor which is connected with any type of controller and its voltages go to low when an obstacle is in front of this sensor. Similarly, it also consists of other components such as IR emitter LED which emits the infrared light, IR receiver which received the light after the collision with any object, power LED which turns on when this sensor is powered up, distance adjuster, through this, the user can easily adjust the range or distance of sensor by increasing or decreasing the potentiometer resistance. The last one is an obstacle LED which turns on which obstacle is detected.
Working Principle of Infrared Obstacles Avoidance Sensor Module
The working principle of this infrared obstacles sensor module is very simple because it consists of one IR transmitter and one IR receiver, therefore, the main work is done both these sensors. When IR transmitter emits the infrared light during the presence of an object, then some portion of this infrared light, reflected back to the IR transmitter after the collision with the object. So, the reflected portion of the infrared light is received by the IR receiver.
This reflected portion has some light intensity and based on this intensity the output of this infrared obstacle avoidance sensor module is defined. In other words, this light intensity is inversely proportional to output voltages. Means, when intensity is increased then the resistance of this module, is increased then the output voltages are dropped. Similarly, when intensity is decreased then resistance is decreased so the output voltages are increased. These output voltages are received by the controller from Vout pin of this module.
How to Interface Infrared Obstacles Avoidance Sensor Module with Pic18F452 Microcontroller
Every infrared obstacle avoidance sensor module has digital output. For sensing this digital output, a device or controller is required. Different people use a different controller to sense this digital output such as Arduino or microcontroller etc. But here we will sense this digital output with pic microcontroller 18F452. Pic microcontroller has four ports and these ports could be used, in any configuration such as an input port or output port. So, the digital output of this infrared obstacles avoidance sensor module is directly connected to any port to this microcontroller. Which is the main intelligent controller and it senses the digital output so efficiently and intelligently.
It is programmed in c language with the help of mikro/c software and is powered up with 5 volts dc voltages. IF we use it security purpose then an LCD with intimation alarm could be installed, at the output of microcontroller. So, when anyone will pass through the restricted area then infrared obstacles avoidance sensor module will give the output signal to microcontroller then microcontroller will turn on the intimation alarm. Check this video for complete details:
Other sensors interfacing with pic microcontroller:
- Relay module interfacing with pic microcontroller
- Shock sensor interfacing with PIC16F877A
- Rotatory encoder interfacing with pic microcontroller
- Sound detection module interfacing with pic microcontroller
- AC load interfacing with pic microcontroller
- magnetic field strength determination using PIC18F46K22
- joystick module interfacing with pic microcontroller
- Mercury tilt switch interfacing with pic microcontroller
- flame sensor interfacing with pic microcontroller
- raindrop sensor connection with pic18f46k22
- Gas sensor with pic microcontroller
- Soil moisture sensor interfacing with pic microcontroller