SlideShare a Scribd company logo
IR Sensors
Mechanism And
Interfacing With A
Micro-Controllers
Presented By
Khairun Nesa
MCSE(13114004)
University of Asia Pacific
Submitted to:
Professor Abdul Hamid Sir
A sensor is a device which is used to sense the
surroundings of it & gives some useful information
about it.
This information is used based on our
requirement.
An electronic sensor gives the information by
giving some electronic signal.
This information is used to perform a given task
which needs interaction with the surroundings.
What is a Sensor?
WHAT IS AN IR
SENSOR
 An IR sensor is a device which detects
IR radiation falling on it.
 The band of light which is a thousand
times wider than that of a visible light is
defined as Infrared light.
 Physically, light with wavelength from
0.7 m to 0.1 mm is called Infraredμ
Light.As our eyes cannot see the light
with wavelength longer than 7 × 10-5
m, thus IR light is invisible to theμ
human.
 These types of radiations are invisible
to our eyes, that can be detected by an
infrared sensor.
Different Types of IR
Sensors and Their Applications
 IR sensors are classified into different types depending on the applications.
 RadiationThermometers: IR sensors are used in radiation thermometers
to measure the temperature depend upon the temperature
 Flame Monitors: These types of devices are used for detecting the light
emitted from the flames and to monitor how the flames are burning.The
Light emitted from flames extend from UV to IR region types.
 Proximity sensors (Used inTouch Screen phones and Edge Avoiding
Robots), Contrast sensors (Used in Line Following Robots)
 Gas Analyzers: IR sensors are used in gas analyzers which use absorption
characteristics of gases in the IR region. The temperature sensor is used
for industrial temperature control.
 PIR sensor is used for automatic door opening system.
IR Imaging Devices
IR image device is one of the major applications of IR waves, primarily by virtue of
its property that is not visible. It is used for thermal imagers, night vision devices,
etc.
For examples Water, rocks, soil, vegetation, an atmosphere, and
human tissue all features emit IR radiation.
http://www.elprocus.com/
IR Sensor Circuit
 An infrared sensor circuit is one of the basic and popular sensor module in an
electronic device. This sensor is analogous to human’s visionary senses, which
can be used to detect obstacles and it is one of the common applications in real
time. This circuit comprises of the following components
 LM358 IC 2 IR transmitter and receiver pair.
 Resistors of the range of kilo ohms.
 Variable resistors.
 LED (Light Emitting Diode).
 Photodiode
Infrared IR Sensor Circuit
Diagram and Working Principle
http://www.elprocus.com/
Infrared IR Sensor
Circuit Diagram and Working
Principle
IR Sensor Board
Infrared IR Sensor Circuit
Diagram and Working Mechanism
 An IR LED is a type of LED which emits light in
the frequency range of Infra-Red, hence the
name
 A photodiode is a type of diode which
detects light.We can think of it as having a
very high resistance when no light is falling
on it.
 Variable Resistor:
A variale resistor is a 3 pin device which is used
to vary resistance. In this circuit, we use it to calibrate
the IR sensor according to the environment.We giveVcc
and GND to the terminals which are close together and
connect the center terminal to the threshold of the IC
HARDWARE DESCRIPTION
 IC Op-Amp LM358M (as a voltage comparator :LM358M is a general
purpose Dual Operational Amplifier (Op-Amp). So basically, we use it
to compare two voltages, one is fixed and the other varies with an
environmental parameter.This IC is an 8 pin IC. Check the illustration
above for the pin layout. Output (pin 1) is where we get the 5/0Volts,
Threshold (pin 2) is the fixed voltage, Input (pin 3) is where we
supply our environment controlled voltage, and pin 4 & 8 are used to
power up the IC.The best part about this IC is that it is a Dual Op-
Amp, so you can make two completely separate IR sensors using the
same IC! All you need to do is mirror all the connections on the
lower three terminals of the other half of the IC (Refer to the pin
diagram of the IC).
ared IR Sensor Circuit Diagram and Working Mec
IR Sensor Circuit Breaker Diagram
http://www.elprocus.com/
Working
Principle of IR Sensor
 When the IR receiver does not receive a signal
 The potential at the inverting input goes higher than that non-inverting
input of the comparator IC (LM339).
 Thus the output of the comparator goes low, but the LED does not glow.
 When the IR receiver module receives signal to the potential at the
inverting input goes low.
http://www.elprocus.com/
Working Principle of IR
Sensor
 Thus the output of the comparator (LM 339) goes high and the LED
starts glowing.
 Resistor R1 (10), R2 (10k ) and R3 (150) are used to ensure that
minimum 10 mA current passes through the IR LED Devices like
Photodiode and normal LEDs respectively.
 ResistorVR2 (preset=5k ) is used to adjust the output terminals.
 ResistorVR1 (preset=10k ) is used to set the sensitivity of the circuit
Diagram.
Photo Infrared sensor
interfacing with Arduino Uno R3Circuit diagram below shows the interfacing of this sensor with Arduino Uno R3.
Output of infrared sensors is connected with pin number 1 of Arduino Uno R3.To use
this sensor with Arduino and to write its code, you need to know how to use switch
with Arduino. Because this sensor output is acting as a switch.When IR receiver detect
infrared radiations, output will be high, otherwise output will be low.This is basically a
functionality similar to push button and switch.So I recommend you to first learn that
how to interface push button with Arduino Uno R3.To know about it check following
article :
Code of infrared sensor module
interfacing with Arduino
const int IR_INPUT=2; //Digital output reads pin for IR
SENSOR
void setup()
{
pinMode(13, OUTPUT); // ON Board LED to show output
pinMode(IR_Sensor,INPUT);
}
void loop()
{
if(digitalRead(IR_Sensor)==HIGH) // if no obstacle LED off
{
digitalWrite(13, LOW); // LED off when no obstacle
}
else
{
digitalWrite(13, HIGH); // LED on when there is a obstacle
}
}
Ir sensor mechanism and  interfacing with  a micro controllers.PPT

More Related Content

PPTX
Light sensors seminar
PPTX
Alcohol detector
PDF
DOCX
Li-Fi Audio Transmission Project Documentation/Report
PPTX
Common mode rejection ratio (cmrr) and the operational amplifier
PPTX
AUTOMATIC BELL FOR COLLEGE
PPTX
Automatic street light using ldr
PPTX
Buzzer
Light sensors seminar
Alcohol detector
Li-Fi Audio Transmission Project Documentation/Report
Common mode rejection ratio (cmrr) and the operational amplifier
AUTOMATIC BELL FOR COLLEGE
Automatic street light using ldr
Buzzer

What's hot (20)

PPTX
Smart street light system
PDF
IR proximity sensor report file.
PPTX
Pin diode
PPTX
automatic light control at night ppt by Shubhan raj
PPTX
solar mobile charger
PDF
Project Report Distance measurement system
PPT
Analog to digital converters, adc
PPTX
Tinker cad intro
PPTX
Wireless charging technology ppt
DOCX
Project report on the Digital clock using RTC and microcontroller 8051
PDF
Laser light security system
DOCX
Li Fi technology abstract document
PPTX
Arduino Workshop
PPTX
Ppt on automatic street light control using ir sensors
PPT
Embedded System Presentation
PPTX
Electronics project presentation
PPT
automatic room light controller
PPTX
Sensor technology
PPT
Automatic control of street light using LDR
DOCX
Wireless charging abstract
Smart street light system
IR proximity sensor report file.
Pin diode
automatic light control at night ppt by Shubhan raj
solar mobile charger
Project Report Distance measurement system
Analog to digital converters, adc
Tinker cad intro
Wireless charging technology ppt
Project report on the Digital clock using RTC and microcontroller 8051
Laser light security system
Li Fi technology abstract document
Arduino Workshop
Ppt on automatic street light control using ir sensors
Embedded System Presentation
Electronics project presentation
automatic room light controller
Sensor technology
Automatic control of street light using LDR
Wireless charging abstract
Ad

Similar to Ir sensor mechanism and interfacing with a micro controllers.PPT (20)

PPTX
Infrared IR Sensor Circuit Diagram and Working Principle
PPTX
Fire Detection & Path Deviation Robot
DOCX
ir sensor.docx
PPTX
Infrared_Sensors.pptx
PPTX
1683985319.pptx means ir sensor basic electronics subject
PPTX
different sensors used in embedded system.pptx
PPT
1693579833307_Sensors.ppt
PPTX
INFRARED SENSOR WORKING PRINCIPLE AND CIRCUIT
DOCX
infrared sensor notes sensors & transducers
PPTX
Sensors in IOT
PPTX
How to make ir sensor using bread board
PPTX
sensors.pptx
PPTX
A sensor is a device that detects and responds to some type of input from the...
PDF
Ir sensor
PPTX
Sensors - Aniket.pptx
PPTX
Sensors.pptx
PPTX
Sensor.pptx
PPTX
PPTX
PIR sensors day
PDF
Characteristics of Different Sensors used for Distance Measurement
Infrared IR Sensor Circuit Diagram and Working Principle
Fire Detection & Path Deviation Robot
ir sensor.docx
Infrared_Sensors.pptx
1683985319.pptx means ir sensor basic electronics subject
different sensors used in embedded system.pptx
1693579833307_Sensors.ppt
INFRARED SENSOR WORKING PRINCIPLE AND CIRCUIT
infrared sensor notes sensors & transducers
Sensors in IOT
How to make ir sensor using bread board
sensors.pptx
A sensor is a device that detects and responds to some type of input from the...
Ir sensor
Sensors - Aniket.pptx
Sensors.pptx
Sensor.pptx
PIR sensors day
Characteristics of Different Sensors used for Distance Measurement
Ad

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Digital Logic Computer Design lecture notes
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPT
introduction to datamining and warehousing
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
OOP with Java - Java Introduction (Basics)
bas. eng. economics group 4 presentation 1.pptx
CH1 Production IntroductoryConcepts.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Digital Logic Computer Design lecture notes
R24 SURVEYING LAB MANUAL for civil enggi
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Model Code of Practice - Construction Work - 21102022 .pdf
Current and future trends in Computer Vision.pptx
Lecture Notes Electrical Wiring System Components
Operating System & Kernel Study Guide-1 - converted.pdf
Geodesy 1.pptx...............................................
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Embodied AI: Ushering in the Next Era of Intelligent Systems
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
introduction to datamining and warehousing

Ir sensor mechanism and interfacing with a micro controllers.PPT

  • 1. IR Sensors Mechanism And Interfacing With A Micro-Controllers Presented By Khairun Nesa MCSE(13114004) University of Asia Pacific Submitted to: Professor Abdul Hamid Sir
  • 2. A sensor is a device which is used to sense the surroundings of it & gives some useful information about it. This information is used based on our requirement. An electronic sensor gives the information by giving some electronic signal. This information is used to perform a given task which needs interaction with the surroundings. What is a Sensor?
  • 3. WHAT IS AN IR SENSOR  An IR sensor is a device which detects IR radiation falling on it.  The band of light which is a thousand times wider than that of a visible light is defined as Infrared light.  Physically, light with wavelength from 0.7 m to 0.1 mm is called Infraredμ Light.As our eyes cannot see the light with wavelength longer than 7 × 10-5 m, thus IR light is invisible to theμ human.  These types of radiations are invisible to our eyes, that can be detected by an infrared sensor.
  • 4. Different Types of IR Sensors and Their Applications  IR sensors are classified into different types depending on the applications.  RadiationThermometers: IR sensors are used in radiation thermometers to measure the temperature depend upon the temperature  Flame Monitors: These types of devices are used for detecting the light emitted from the flames and to monitor how the flames are burning.The Light emitted from flames extend from UV to IR region types.  Proximity sensors (Used inTouch Screen phones and Edge Avoiding Robots), Contrast sensors (Used in Line Following Robots)  Gas Analyzers: IR sensors are used in gas analyzers which use absorption characteristics of gases in the IR region. The temperature sensor is used for industrial temperature control.  PIR sensor is used for automatic door opening system.
  • 5. IR Imaging Devices IR image device is one of the major applications of IR waves, primarily by virtue of its property that is not visible. It is used for thermal imagers, night vision devices, etc. For examples Water, rocks, soil, vegetation, an atmosphere, and human tissue all features emit IR radiation.
  • 6. http://www.elprocus.com/ IR Sensor Circuit  An infrared sensor circuit is one of the basic and popular sensor module in an electronic device. This sensor is analogous to human’s visionary senses, which can be used to detect obstacles and it is one of the common applications in real time. This circuit comprises of the following components  LM358 IC 2 IR transmitter and receiver pair.  Resistors of the range of kilo ohms.  Variable resistors.  LED (Light Emitting Diode).  Photodiode Infrared IR Sensor Circuit Diagram and Working Principle
  • 7. http://www.elprocus.com/ Infrared IR Sensor Circuit Diagram and Working Principle IR Sensor Board
  • 8. Infrared IR Sensor Circuit Diagram and Working Mechanism  An IR LED is a type of LED which emits light in the frequency range of Infra-Red, hence the name  A photodiode is a type of diode which detects light.We can think of it as having a very high resistance when no light is falling on it.  Variable Resistor: A variale resistor is a 3 pin device which is used to vary resistance. In this circuit, we use it to calibrate the IR sensor according to the environment.We giveVcc and GND to the terminals which are close together and connect the center terminal to the threshold of the IC HARDWARE DESCRIPTION
  • 9.  IC Op-Amp LM358M (as a voltage comparator :LM358M is a general purpose Dual Operational Amplifier (Op-Amp). So basically, we use it to compare two voltages, one is fixed and the other varies with an environmental parameter.This IC is an 8 pin IC. Check the illustration above for the pin layout. Output (pin 1) is where we get the 5/0Volts, Threshold (pin 2) is the fixed voltage, Input (pin 3) is where we supply our environment controlled voltage, and pin 4 & 8 are used to power up the IC.The best part about this IC is that it is a Dual Op- Amp, so you can make two completely separate IR sensors using the same IC! All you need to do is mirror all the connections on the lower three terminals of the other half of the IC (Refer to the pin diagram of the IC). ared IR Sensor Circuit Diagram and Working Mec
  • 10. IR Sensor Circuit Breaker Diagram
  • 11. http://www.elprocus.com/ Working Principle of IR Sensor  When the IR receiver does not receive a signal  The potential at the inverting input goes higher than that non-inverting input of the comparator IC (LM339).  Thus the output of the comparator goes low, but the LED does not glow.  When the IR receiver module receives signal to the potential at the inverting input goes low.
  • 12. http://www.elprocus.com/ Working Principle of IR Sensor  Thus the output of the comparator (LM 339) goes high and the LED starts glowing.  Resistor R1 (10), R2 (10k ) and R3 (150) are used to ensure that minimum 10 mA current passes through the IR LED Devices like Photodiode and normal LEDs respectively.  ResistorVR2 (preset=5k ) is used to adjust the output terminals.  ResistorVR1 (preset=10k ) is used to set the sensitivity of the circuit Diagram.
  • 13. Photo Infrared sensor interfacing with Arduino Uno R3Circuit diagram below shows the interfacing of this sensor with Arduino Uno R3. Output of infrared sensors is connected with pin number 1 of Arduino Uno R3.To use this sensor with Arduino and to write its code, you need to know how to use switch with Arduino. Because this sensor output is acting as a switch.When IR receiver detect infrared radiations, output will be high, otherwise output will be low.This is basically a functionality similar to push button and switch.So I recommend you to first learn that how to interface push button with Arduino Uno R3.To know about it check following article :
  • 14. Code of infrared sensor module interfacing with Arduino const int IR_INPUT=2; //Digital output reads pin for IR SENSOR void setup() { pinMode(13, OUTPUT); // ON Board LED to show output pinMode(IR_Sensor,INPUT); } void loop() { if(digitalRead(IR_Sensor)==HIGH) // if no obstacle LED off { digitalWrite(13, LOW); // LED off when no obstacle } else { digitalWrite(13, HIGH); // LED on when there is a obstacle } }