Automatic Light Fence Circuit with Alarm

4,988 views

In this tutorial, we demonstrate a project of an “Automatic Light Fence Circuit with an Alarm.” We all have a question in our mind, that where we use these Light Fence Circuits. So, to recognize the presence of any human or element in a specific zone, a light fence circuit is used. 

The distinguishing scope of the Light Fence Circuit is about 1.5 to 3 meters. It’s very easy to make the circuit utilizing LDR and Op-amp. This compact circuit can work easily with a regularly accessible 9V battery. The caution sound produced from the bell is sufficiently uproarious to recognize the presence of a car, element, or human.

ne555-timer-ic

Hardware Component

The following components are required to make an Automatic Light Fence Circuit

S.noComponent ValueQty
1.Op-amp ICLM7411
2.TransistorBC5571
3.Potentiometer100 K1
4. ICNE555 timer1
5.Resistor1K,5.7K,100K,1M,210 ohm1
6.Capacitor0.1uF, 10uF1, 1
7.Buzzer1
8.LED1
9.Battery9 V1
10.Breadboard1

NE555 IC Pinout

555 timer ic pinout

For a detailed description of pinout, dimension features, and specifications download the datasheet of NE555 IC

LM741 Pinout

LM741-Pinout

For a detailed description of pinout, dimension features, and specifications download the datasheet of LM741

Automatic Light Fence Circuit

automatic-night-light-fence-alarm-electronic-project

Working Explanation

This is the voltage comparator for the op-amp IC when the 555 timer IC is in an astable mode. The LDR and the potentiometer generate a voltage divider circuit. Based on the intensity of the LDR, the output of this divider circuit varies. The divider is attached to the op-amp IC inverting pin. A 5.7 K resistor connects the non-inverting pin, and thus the non-inverting voltage value is set. The voltage can be changed as needed by replacing this resistance with a 10 K potentiometer. 

By using the serially attached VR1 potentiometer with the LDR, we can change the system sensitivity. When the non-inverting input’s voltage exceeds or is equal to the reference tension, the output (at pin 6) of the op-amp IC output is HIGH. Read more on how op-amp works through the different circuits on the op-amp basis.

As you can see in the schematic, the Op-amp IC goes low, and the PNP transistor T1 begins conducting when the LDR detects some operation. So the LED continues to shine with the IC of the 555 timers. In Astable mode, the 555 timer IC is provided, while R3, R5, and C1 have a preset delay. 

So when someone or object comes into the forbidden place, the LDR detects his shadows and activates the warning.

Applications and Uses

Any element or person in a specific zone is to be identified using a light fence circuit.