Post Top Ad

Thursday, February 8, 2024

on video Proximity Sensor Circuit | Simple Electronic Project


 Proximity Sensor Circuit | Simple Electronic Project

A tutorial on How to make an InfraRed (IR) proximity sensor circuit along with detailed explanation on how the circuit works. The sensitivity or range of detection can also be controlled by adjusting the potentiometer.


Components Required

1.LM 358 IC

2.1 InfraRed LED PhotoDiode pair

3.Resistors: 470, 270R, 10K

4.Potentiometer: 10K

5.pcb or breadboard

6.9v battery and clip

7. led

8.buzzer

9.ic base


Explanation of Circuit's Working:

The sensing component in this circuit is IR photo-diode. More the amount of InfraRed light falling on the IR photodiode, more is the current flowing through it. (Energy from IR waves is absorbed by electrons at p-n junction of IR photodiode, which causes current to flow)


This current when flows through the 10k resistor, causes potential difference (voltage) to develop. The magnitude of this voltage is given by Ohm's law, V=IR. As the value of resistor is constant, the voltage across the resistor is directly proportional to the magnitude of current flow, which in turn is directly proportional to the amount of Infra-Red waves incident on the IR photodiode.


So, when any object is brought closer to the IR LED, Photo-Diode pair, the amount of IR rays from IR LED which reflects and falls on the IR photodiode increases and therefore voltage at the resistor increases (from the deduction in previous para) .


We compare this voltage change (nearer the object, more is the voltage at 10K resistor / IR photodiode) with a fixed reference voltage (Created using a potentiometer).

Here, LM358 IC (A comparator/OpAmp) is used for comparing the sensor and reference voltages. The positive terminal of photodiode (This is the point where the voltage changes proportion to object distance) is connected to non-inverting input of OpAmp and the reference voltage is connected to inverting input of OpAmp.


The OpAmp functions in a way that whenever the voltage at non-inverting input is more than the voltage at inverting input, the output turns ON.


When no object is near the IR proximity sensor, we need LED to be turned off. So we adjust the potentiometer so as to make the voltage at inverting input more than non-inverting.


When any object approaches the IR proximity sensor, the voltage at photodiode increases and at some point the voltage at non-inverting input becomes more than inverting input, which causes OpAmp to turn on the LED.


In the same manner, when the object moves farther from the IR proximity sensor, the voltage at non-inverting input reduces and at some point becomes less than inverting input, which causes OpAmp to turn off the LED.

Troubleshooting Guide

1.Double-check all connections by referring to the circuit diagram.

2.Check if the LED's are working properly. (Digital cameras can detect InfraRed light, so you can check if the InfraRed LED is working by using any digital camera)

3.The IR photo-diode used in this video is white and the IR LED is black. But it can also be the other way in your case. You can determine which one is LED/Photo-diode by connecting both the diode, photo-diode pair seperately to the power supply (via a 220 resistor) and see which one glows using a digital camera.

4.At one extreme position of the potentiometer's knob, the LED should be off and at the other extreme position, the LED should be on. Now you can start turning the potentiometer's knob to form the extreme position where the LED is on, until the LED just turns off. Now the IR proximity sensor should work properly.


 Proximity Sensor Circuit | Simple Electronic Project

A tutorial on How to make an InfraRed (IR) proximity sensor circuit along with detailed explanation on how the circuit works. The sensitivity or range of detection can also be controlled by adjusting the potentiometer.


Components Required

1.LM 358 IC

2.1 InfraRed LED PhotoDiode pair

3.Resistors: 470, 270R, 10K

4.Potentiometer: 10K

5.pcb or breadboard

6.9v battery and clip

7. led

8.buzzer

9.ic base


Explanation of Circuit's Working:

The sensing component in this circuit is IR photo-diode. More the amount of InfraRed light falling on the IR photodiode, more is the current flowing through it. (Energy from IR waves is absorbed by electrons at p-n junction of IR photodiode, which causes current to flow)


This current when flows through the 10k resistor, causes potential difference (voltage) to develop. The magnitude of this voltage is given by Ohm's law, V=IR. As the value of resistor is constant, the voltage across the resistor is directly proportional to the magnitude of current flow, which in turn is directly proportional to the amount of Infra-Red waves incident on the IR photodiode.


So, when any object is brought closer to the IR LED, Photo-Diode pair, the amount of IR rays from IR LED which reflects and falls on the IR photodiode increases and therefore voltage at the resistor increases (from the deduction in previous para) .


We compare this voltage change (nearer the object, more is the voltage at 10K resistor / IR photodiode) with a fixed reference voltage (Created using a potentiometer).

Here, LM358 IC (A comparator/OpAmp) is used for comparing the sensor and reference voltages. The positive terminal of photodiode (This is the point where the voltage changes proportion to object distance) is connected to non-inverting input of OpAmp and the reference voltage is connected to inverting input of OpAmp.


The OpAmp functions in a way that whenever the voltage at non-inverting input is more than the voltage at inverting input, the output turns ON.


When no object is near the IR proximity sensor, we need LED to be turned off. So we adjust the potentiometer so as to make the voltage at inverting input more than non-inverting.


When any object approaches the IR proximity sensor, the voltage at photodiode increases and at some point the voltage at non-inverting input becomes more than inverting input, which causes OpAmp to turn on the LED.


In the same manner, when the object moves farther from the IR proximity sensor, the voltage at non-inverting input reduces and at some point becomes less than inverting input, which causes OpAmp to turn off the LED.

Troubleshooting Guide

1.Double-check all connections by referring to the circuit diagram.

2.Check if the LED's are working properly. (Digital cameras can detect InfraRed light, so you can check if the InfraRed LED is working by using any digital camera)

3.The IR photo-diode used in this video is white and the IR LED is black. But it can also be the other way in your case. You can determine which one is LED/Photo-diode by connecting both the diode, photo-diode pair seperately to the power supply (via a 220 resistor) and see which one glows using a digital camera.

4.At one extreme position of the potentiometer's knob, the LED should be off and at the other extreme position, the LED should be on. Now you can start turning the potentiometer's knob to form the extreme position where the LED is on, until the LED just turns off. Now the IR proximity sensor should work properly.

No comments:

Post a Comment

Post Top Ad

Pages