Making of IR Sensor Module

As per the reader’s request, here is the making of the IR Sensor Module. An IR Sensor module is a sensor that transmits and receives infra-red rays when a surface or object is detected. It is a multipurpose sensor, which can be used in line following robot, obstacle avoiding robot, edge avoiding robot, etc.

Components required:

  • Breadboard – 1 no
  • IC LM358 – 1 no
  • IC 7805 – 1 no
  • IR Transmitter – 1 no
  • IR Receiver – 1 no
  • 10µf Capacitors – 2 nos
  • 9V Battery – 1 no
  • Battery Snap – 1 no
  • 10K Trimpot – 1 no
  • LED – 2 nos
  • 10K Resistor – 2 nos
  • 1K Resistor – 2 nos
  • Breadboard Wires

Circuit Diagram:

Circuit of ir sensor module

Step by Step Instructions:

1)      5V Power Supply:

  • Take the breadboard and connect the battery holder in horizontal position.
  • Insert the positive and negative wire of battery snap in holder.
  • Attach IC 7805 (Voltage Regulator), and place one 10 µF capacitor in IN & GND connection of IC 7805 and other in GND & OUT connection.
  • Take the positive supply from the battery holder via breadboard wire and place it in IN of IC 7805, and also connect its negative supply in the last row of the breadboard.
  • Place the GND of IC 7805 in the last row of the breadboard, and transfer its OUT to the first row of the breadboard.
  • As a result of these connections, +5V power is obtained in the first row of the breadboard.
  • To check the power flow path, an LED is given a positive supply via 10K resistor.

2)      IC LM358:

  • Take an IC LM358 and place it in the breadboard.
  • Provide +5V to the 8th pin and GND to the 4th pin of LM358.
  • Connect the LED’s +ve with the 1st pin of LM358 via 1K resistor and –ve to the GND.

3)      IR Transmitter:

  • Place the IR transmitter in the breadboard and provide +5V to its cathode.
  • A GND connection is given to its anode via the 10K resistor.

4)      IR Receiver:

  • Place the IR receiver in the breadboard and provide +5V to its anode.
  • A GND connection is given to its cathode via the 10K resistor.
  • Connect the IR receiver’s cathode with the 3rd pin of LM358 using breadboard connection.

5)      Trim pot:

  • Place a 10K trimpot in the breadboard, and provide +5V to its 1st pin and GND to its 3rd pin.
  • Connect its 2nd pin with the 2nd pin of LM358.


Once the connection is finished, make sure the connections are given as per the circuit diagram. Now, show your hand towards the IR transmitter and receiver. In this case, an LED connected to the 1st pin of LM358 must glow as the IR transmitter emits IR rays and IR receiver receives the reflected ray.

The Op-Amp (IC LM358) compares the two inputs and provides the output which is higher.

If the LED fails to glow, then there is a problem in the circuit.


Overall, I feel the making of IR Sensor Module would help my reader’s in developing the robots. This IR Sensor Module is recommended to be designed in PCB for better and reliable uses.

If you have any doubt, please feel free to drop a mail at

The below video brings you the working of the IR Sensor Module in the breadboard:

You can leave a response, or trackback from your own site.