Arduino-Based Shadow Alarm

by Jovian_Dsouza in Circuits > Arduino

21128 Views, 44 Favorites, 0 Comments

Arduino-Based Shadow Alarm

home.jpg

Shadow alarms are usually used for protection against theft. A shadow alarm is a device that sounds an alarm when a shadow falls on it.Described here is a simple circuit of an arduino based shadow alarm.This compact shadow alarm unit is capable of sensing a moving shadow in a restricted area, and can be easily installed on wall, window or door to protect your valuables from theft.Constant lighting is required in the confined area to detect the moving shadow.

Get the Parts

20141217_151958.jpg
freeduino.jpg

T1, T2 - BC547

D1,D2 - 1N4007

LED - 5mm light emitting diode

R1,R4 - 1k resistor

R2,R3 - 470 ohm resistor

VR1 - 4.7k preset

LDR - Light dependent resistor

C1 - 470uf, 25v electrolytic capacitor

C2 - 100uf, 16v electrolytic capacitor

Batt.1 - 9v battery

CON1 - 7 pin male header

CON2 - 1 pin male header

Arduino Uno

Wires

Note: I have used Freeduino instead of Arduino Uno but I have also tested with Arduino Uno .

Make the Alarm System

brd.jpg
sch.jpg
IMG_20150103_162448.jpg

1) Take a dotted PCB having 16 x 11 holes

2) Write numbers and alphabets on the PCB as shown in the above figure

3) Place the components on the PCB as shown in the above figure

4) Solder the components

5) Solder the wires

Prepare the Shadow Sensor

20141227_154420.jpg
20141227_154437.jpg

1) Cut a female to female header pin wire into two

2) Take a LDR and solder the wires as shown in the above figure

Programming

programming.jpg

1) Download shadow_alarm.ino from here

2) Connect arduino to your PC

3) Click on upload

Downloads

Connections

arducon.jpg

1) Connect the 1st pin of the shadow alarm circuit to Vin of the arduino.

2) Connect the 2nd pin of the shadow alarm circuit to pin 10 of the arduino.

3) Connect the 3rd pin of the shadow alarm circuit to the LDR and other pin of LDR to Gnd.

4) Connect the 4th pin of the shadow alarm circuit to 5v of the arduino.

5) Connect the 5th pin of the shadow alarm circuit to pin 8 of the arduino.

6) Connect the 6th pin of the shadow alarm circuit to pin 2 of the arduino.

7) Connect the 7th pin of the shadow alarm circuit to Gnd of the arduino.

Setup

set.jpg

setup the system as shown above