IR-Photo Diode Sensor

IR-Sensor imageThis Sensor module works on the principle of Reflection of Infrared Rays from the incident surface. A continuous beam of IR rays is emitted by the IR LED. Whenever a reflecting surface (white/obstacle) comes in front of the Receiver (photo diode), these rays are reflected back and captured. Whenever an absorbing surface (Black/No Obstacle) comes in front of the Receiver, these rays are absorbed by the surface and thus unable to be captured.



  1. Active Low on object detection
  2. 3 pin easy interface connector
  3. Indicator LED
  4. Potentiometer for changing the range of detection


  1. Line Follower sensor
  2. Obstacle Avoidance Robot
  3. Edge avoiding robot
  4. Anti-falling robot
  5. Light/Fire sensing


Basic Block Diagram:

Basic Block Diagram



IR LED is used in this circuit to transmit infrared light.

An Infrared light-emitting diode (IR LED) is a type of electronic device that emits infrared light not visible to the naked eye.

The wavelength and colour of the light produced depend on the material used in the diode. Infrared LEDs use material that produces light in the infrared part of the spectrum, that is, just below what the human eye can see. Different infrared LEDs may produce

infrared light of differing wavelengths, just like different LEDs produce light of different colours.

Since the human eye cannot see the infrared radiations, it is not possible for a person to identify whether the IR LED is working or not, unlike a common LED. To overcome this problem, the camera on a cell phone can be used. The camera can show us the IR rays being emanated from the IR LED in a circuit.



Here Photo diode is used to capture reflected light of IR LED.

A semiconductor diode that, when exposed to light, generates a potential difference or changes its electrical resistance.

A Photo diode is a reverse biased silicon or germanium pn junction in which reverse current increases when the junction is exposed to light.

When no light is incident on the pn junction of photo diode, the reverse current is extremely small. This is called DARK CURRENT.

When light is incident on the pn junction of the photo diode there is a transfer of energy from the incident light (photons) to the atoms in the junction .this will create more free electrons (and more holes) these additional free electrons will increase the reverse current.This electrical energy can be recorded as voltage drop fluctuations by using a series resistor in the outer circuit and taking voltage readings across it.


Analog to Digital Converter:

It is clear that the output of the Photo diode is an analog voltage. If you want to use this sensor as an analog output sensor then there is no need to use any comparator. We can give this analog value directly to Microcontroller’s ADC pin.

analog ir module

Some Microcontrollers do not have ADC peripheral (For example 8051) and also sometimes we want to feed pre-processed data to microcontroller (Hardware/Software trade off). So if you want digital output from this sensor, we can use Comparator for that.




V0 = High when V+ > V-

V0 = Low when V+ < V-





LM-358 (Op-Amp IC):

The LM-358 IC consists of two independent operational amplifiers which were designed specifically to operate from a single power supply over a wide range of voltages.

Here Op-amp is used as comparator.

Pin configuration of LM-358 is giving as follows-



One Light Emitting Diode is used in this circuit for indicating the output logic of this IR sensor.

More Images:

cover - Copy


IR-Photo Diode Sensor - Copy


       1.  Bottom Copper Layer-                    2.   Silk Screen Layer –                   3.   Bottom & Silk screen layer-







Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


About Piyush Gupta

M.Tech in Embedded System Technology
This entry was posted in What is this and tagged , , , . Bookmark the permalink.

14 Responses to IR-Photo Diode Sensor

  1. Pingback: Line Follower Using 2051 | For electronics

  2. tony says:

    Can you tell me a solution for how to exclude background light from falling on IR photo diode. apart from fixing a black tape around the photodiode

  3. Pingback: TSOP based IR Sensor | For electronics

  4. manjunathan says:

    How to increase the current,when less intense of ir light in the ir photo diode

    • sorry for late reply, I was quite busy from last few months….
      well about your question—
      If you want to increase current from IR LED then you should decrease the resistance which is connected in series with that LED.

  5. can i use 7805 voltage regulator to get 5v from 9v battery? shall i use the ground terminal of battery to ground the other components of the circuit?

  6. AYUSH TIWARI says:

    thanks for giving such a lucid description of ir emitter & receiver.Sir i live in raebareli where this photodiode is not available so please can you tell me where i can get it and what is the reasonable price for the emitter and receiver.Thank you once again.

    • Piyush Gupta says:

      Hello Ayush, Thanks for your complement.
      About your question- you can go to Naka, Lucknow. There are many shops from where you can buy these types of components. You can buy online also. You will get a pair of a IR Transmitter & Receiver in approx Rs 20.

  7. premal says:

    how to make analog ir sensor modul

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s