Automatic Light Fence Circuit with Alarm

12,769 views

The light fence circuit is used to detect the presence of any person or object in a specific area. The Light Fence Circuit detection range is around 1.5 to 3 meters. Designing the circuit using LDR and Op-amp is fairly simple. This portable circuit will operate easily with a commonly accessible 9V battery, and the buzzer-generated warning sound is loud enough to detect a person, car, or object.

ne555-timer-ic

Hardware Required

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

S.noComponentValueQty
1.Resistor210, 1K, 5.7K, 100k, 1M1, 1, 1, 1, 1
2.Capacitor0.1uf, 10uf1, 1
3.LDR1
4.Op-amp ICLM7411
5.TransistorBC5571
6.ICNE555 timer1
7.Potentiometer100K1
8.Buzzer1
9.LED1
10.Breadboard1
11.Battery9V1

NE555 IC Pinout

555 timer ic pinout

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

Automatic Light Fence Circuit

Automatic Light Fence Circuit_Diagram-Schematic

Working Explanation

This circuit can run using a 9-volt battery. The op-amp IC is used as a voltage comparator in the circuit, and the 555 timer IC is put in an astable mode. A voltage divider circuit is generated by the LDR and the potentiometer. This divider circuit’s output can vary based on the amount of light falling on the LDR. The divider is attached to the Op-amp IC inverting plate. A 5.7K ohm resistor binds the non-inverting pin with the source, and the voltage value at the non-inverting is set.

To change the voltage according to the necessity you should substitute this resistor with a 10 K potentiometer. Whenever a human or entity approaches a forbidden place, the LDR detects the shadows and the circuit activates an alarm. The sensitivity of the device can be adjusted by using the potentiometer in series with the LDR

Application and Uses

  • The light fence circuit is used to detect the presence in a specific area of any person or entity