Anti-theft Entrance Guard Alarm System Based on Arduino

By on September 9, 2015

Web site:

http://www.instructables.com/id/Anti-theft-Entrance-Guard-Alarm-System-Based-on-Ar/

Project Summary:

ICStation team introduce you this Anti-theft Entrance Guard Alarm System based on ICStation MEGA. This system works under 5V DC power supply, it can realize infrared entrance guard monitoring and uses the active buzzer to finish alarm. This system is very Convenient and practical and can be made very easily.

Full Project:

Functions:
1). When turn on the power supply, the DIP LED lights, the system works normally. 2).When some object enters the infrared area, the buzzer alarms, the DIP LED stops lighting. 3). When press the reset button on the ICStation MEGA board, the buzzer stops alarming, the DIP LED lights again and this system continues monitoring.

Code for reference:
http://www.icstation.com/newsletter/eMarketing/Anti-theft_System_Code.zip

Step 1: Connect the 5v power supply and the GND of the ICStation Mega2560 to the Bread Board.

The red line is for the power supply, the black is for the GND.

Step 2: Connect the Infrared Receiving LED and the 1K Resistor to the Breadboard and the ICStation MEGA.

Step 3: Connect the Infrared Emitting LED to the Breadboard and the ICStation MEGA.

Step 4: Connect the DIP LED and the buzzer to the Breadboard and the ICStation MEGA.

Step 5: Experiment phenomenon.

Turn on the power supply, the DIP LED lights and when some object enters the infrared area, the DIP LED stops lighting and the buzzer alarms. When press the reset button on the ICStation MEGA, the buzzer stops alarming and the DIP LED lights again, this system works normally again.

Step 6: Video to show effect.

 

Circuit diagram:

Bill of Materials:

1.1× ICStation ATMEGA2560 Mega2560 R3 Board Compatible Arduino

2.1×USB Cable A-B Male to Female USB A to UAB B 3m for Arduino

3.1×1K ohm 1/4W 1% Accuracy Metal Film Resistor

4.1×5mm Infrared Emitting LED

5. 1×5mm Infrared Receiving LED

6. 1×Active Buzzer Module for Arduino

7.1×5mm DIP Round White Red Superbright Bulb Light LED

8. 1×5V power supply

9.1× 830 Point Solderless PCB Bread Board MB-102 Test DIY

Firmware:

void setup()
{
pinMode( 8 , OUTPUT);
Serial.begin(9600);
pinMode( 9 , OUTPUT);
}

void loop()
{
Serial.print( analogRead(A0) );
Serial.println("");
digitalWrite( 8 , HIGH );
delay( 50 );
digitalWrite( 8 , LOW );
delay( 50 );
digitalWrite( 9 , HIGH );
if (( ( analogRead(A0) ) == ( 1023 ) ))
{
digitalWrite( 9 , LOW );
delay( 10000 );
}
}

PCB:

About

Leave a Reply

Your email address will not be published.