DIY IR Proximity Sensor

1,251

19

1

Posted

Introduction: DIY IR Proximity Sensor

Hello guys

In this post I will show how to make a simple IR proximity sensor

IR Proximity have one IR LED & one Photodiode

LM358 IC is used in this project

Basically IR LED will transmitte Infrared light when this light fall on reflecting surface (white surface) it will fall back on Photodiode so in proportion of IR light fall on Photodiode the internal resistance of photodiode change
LM358 get input from this photodiode and gives output

To complete this project I ordered Electronics components from WWW.LCSC.COM

LCSC.COM is the place to buy electronics components for your projects, so consider to visit LCSC.COM for you future electronics component requirement.

$4 OFF in first parts order - www.lcsc.com

Step 1: VIDEO

Step 2: Component Required

Step 3: CIRCUIT DRAWING

To figure out which terminal is anode and which terminal is cathode

reffer image.

The LED diode bigger leg is Anode(+) and shorter leg is cathode(-)

IR LED anode is connected with 5V DC and cathode is connected with 200 ohm resistor and GND is connected to the other end of resistor

Cathode of Photodiode is connected with 5V DC and Anode is connected with PIN 3 of LM358 IC & 10K OHm resistor, GND is connected the other end of resistor

50K OHM potentiometer two adjecent legs connected with 5V & GND and middle led is connected with PIN 2 of LM358 IC

5V connected with PIN 8 of LM358 IC

GND is connected with PIN 4 LM358 IC

A output load (LED) is connected with PIN 1 with 330 OHM resistor in series.

So IR LED will transmitte Infrared light when this light fall on reflecting surface (white surface) it will fall back on Photodiode so in proportion of IR light fall on Photodiode the internal resistance of photodiode change
LM358 get input from this photodiode at PIN 3 and compare with threshold signal coming from potentiometer at PIN 2 and glow the LED

Potentiometer is used to adjust the sensing range of sensor

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    really nice, could you please take a photo of your calculations ?
    with the hysteresis comparator, it would be nice to find the distance according to the value of the potentiometer