IR Proximity Sensor.

34,650

55

25

Introduction: IR Proximity Sensor.

About: I am a Programmer, Hacker, Maker and Technology enthusiast.

In this project I'm going to explain how to make a simple IR proximity sensor using IR LEDs , LM358 Dual Op-Amp and some basic electronic components you can find at any local electronics shop.

Step 1: What Is IR Proximity Sensor?

IR stands for Infrared which is a light with wavelength which is not visible to human eyes but cameras can see it.
It is used in many applications such as TV remote and Night-vision cameras.

In a Proximity Sensor an IR LED and a Photodiode is used to find a obstacles . The IR LED transmits light in forward direction when an obstacle is ahead the light reflects and the Photodiode is activated by this method Obstacle is detected.

There are many IR modules available online which are cheap they cost about ₹200 or about $2-3 .
Which can be used in an obstacle avoiding robot or line follower robot.

In this Instructable I'm going to show you how to make a simple IR Proximity module which will cost about ₹50-60
or about $1.

Step 2: Components Needed.

  1. LM358 IC
    Link for US
    Link for Europe
  2. Two 100ohm resistors.
    Link for US
    Link for Europe
  3. One 15k ohm resistor. (any value between 100-150 ohm will work and any value between 10-15k ohm will also work)
  4. Two IR LEDs. (One IR LED and one Photodiode can also be used but as I found it difficult to get my hands on a Photodiode I used IR LED instead) check these LED & Sensors which you can use.
    Link for US
    Link for Europe
  5. Two white LEDs.
    Link for US
    Link for Europe
  6. Breadboard.
    Link for US
    Link for Europe
  7. 10k ohm variable resistor (Optional)

These parts are available at UTsource.net

Once all components are gathered we can move to the next step...

Step 3: Making Connections.

Follow the circuit diagram and make the connections, refer to the pic to make it easier to replicate the design on a breadboard.

First insert the IC in the breadboard.
Next connect Pin no. 4 of the IC to Ground and Pin no. 8 to +5v .

Now connect Pin no. 2 to Ground .

(if you need to set the sensitivity of the Receiver then you can add a 10k ohm variable resistor to it. Connect the left terminal to Ground and Right Terminal to +5V and connect the central Terminal to pin no. 2 of the IC, Now you can vary the sensitivity using the variable resistor)

Now take the white LED and connect it's +ve terminal/Anode (longer lead)
to pin no. 1 of the IC. and connect a 100/150ohm resistor to the -ve terminal/Cathode (short lead)
and connect the other end of the resistor to Ground.

Now get the IR LED and connect it's Anode/+ve terminal to +5v and Cathode/-ve terminal to Ground via 100/150ohm resistor.

Now connect the second IR LED in reverse bias. Connect its Cathode/-ve terminal to +5v and connect it's Anode/+ve terminal to Ground via 15k ohm resistor.

Once the receiver IR LED is connected
connect a wire from pin no.3 of the IC and Anode of the receiver IR LED .

with this the connections are done and the Circuit is ready to be powered up by a 6v battery.

when you power up the circuit the LED would be off but as you take your hand over the IR LEDs the white LED should glow.

If it doesn't then recheck all your connections and try again.

Step 4: Uses.

The Sensor can be used for many projects .
once completed and tested you can solder it to a PCB and make a small module like the ones sold online.

It can be used for obstacle avoidance robot or line follower robot .
Or even for applications like motion detection etc.

I have made it for a linefollower robot and will be posting it's tutorial too.

Hope this was useful and informative.
If you have any questions feel free to ask.

Thank you...

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    25 Discussions

    0
    tkle2
    tkle2

    1 year ago on Step 3

    What circuit elements are Rx and Tx refering to?

    0
    Harsh Dethe
    Harsh Dethe

    Reply 1 year ago

    Receiver and transmitter, the IR LED in forward bias is transmitter (Tx) and the one in reverse bias is receiver (Rx)

    0
    saim68
    saim68

    1 year ago

    How did u find those particular resistance values range??

    0
    Harsh Dethe
    Harsh Dethe

    Reply 1 year ago

    Colour code.

    0
    jimMaskell
    jimMaskell

    Question 1 year ago on Step 2

    Are the values of the resistors very important? I only have acces to 220R, 100k and 1k resistors.

    0
    Harsh Dethe
    Harsh Dethe

    Reply 1 year ago

    Yes values of resistors is important. Because different resistors will change the intensity and sensitivity of the sensor

    0
    saim68
    saim68

    Reply 1 year ago

    How did u know those were the perfect resistor values

    0
    JohnW51
    JohnW51

    Question 1 year ago on Step 3

    Where can I buy a circuit board like the one shown in this project?

    0
    Harsh Dethe
    Harsh Dethe

    Answer 1 year ago

    All the links are provided in the articles.

    0
    saoudsindhi
    saoudsindhi

    Question 1 year ago on Step 4

    how IR sensor use for distance measure.?

    0
    Harsh Dethe
    Harsh Dethe

    Reply 1 year ago

    IR LED emits light which is reflected from a surface in front of it, The reflected light is sensed by an IR receiver or photodiode. Measuring the intensity of the light reflected back, You can write an algorithm to measure distance.

    0
    LaszloS42
    LaszloS42

    2 years ago

    Hi I just assembled this on a breadboard and the led is always on, added a resistor to it but it still stays on, is there anything else i may have missed because it is hooked up exactly as yours is.

    0
    Harsh Dethe
    Harsh Dethe

    Reply 2 years ago

    if you have made it as in the diagram with same components I've used then you must try switching the receiver LED around. I would suggest first use your cellphone camera to check the LEDs the transmitter one should light up and the receiver one shouldn't.

    0
    MukulB8
    MukulB8

    2 years ago

    can you please make one on PCB

    0
    Harsh Dethe
    Harsh Dethe

    Reply 2 years ago

    It is not very difficult once you make it work on Breadboard. I'll try to write an Instructable on how to design circuit on PCB .

    0
    MukulB8
    MukulB8

    2 years ago

    can i use tv sensor istead of photodiode?

    0
    Harsh Dethe
    Harsh Dethe

    Reply 2 years ago

    you mean IR transistor? if so you'll need a little different set up. using 2 IR LEDs is much more easy and cheap

    0
    MukulB8
    MukulB8

    Reply 2 years ago

    ok thanks i try to make with two IR leds

    0
    jayparale08
    jayparale08

    3 years ago

    When i connect the circuit to supply my led is on plz help where i am wrong

    0
    Harsh Dethe
    Harsh Dethe

    Reply 3 years ago

    add a 220ohm resistor in series with the led