Arduino-Based Shadow Alarm

Introduction: Arduino-Based Shadow Alarm

About: Hi, my name is Jovian and I like hacking, breaking and building things .Doing projects that are interesting is something I love since my childhood. I like to think outside of the box and make amazing tutorial…

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.

Step 1: Get the Parts

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


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

Step 2: Make the Alarm System

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

Step 3: Prepare the Shadow Sensor

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

Step 4: Programming

1) Download shadow_alarm.ino from here

2) Connect arduino to your PC

3) Click on upload

Step 5: Connections

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.

Step 6: Setup

setup the system as shown above

Protected Contest

Participated in the
Protected Contest

Be the First to Share


    • STEM Contest

      STEM Contest
    • Role Playing Game Challenge

      Role Playing Game Challenge
    • CNC Contest

      CNC Contest



    4 months ago on Step 6

    Nice project ! But I don't understand the last step !


    3 years ago

    Great writing! Shifting can this work? Thanks for the reply!


    6 years ago