Sie sind auf Seite 1von 32

SECURITY ALARM

SYSTEM
Group no. 3
Aim of Security System

Aim of the project is to investigate a


cost effective solution that will
enable home security against
intrusion in the absence of home
owner.
Security systems
Electronic alarms designed to alert the
user to a specific danger.

Sensors are connected to a control unit via


low-voltage wiring or a narrowband RF
signal which is used to interact with a
response device.
Concept of Security Alarm
System
 Most security sensors provide a “normally closed” (or N.C.)
output: that is, when they have not been tripped their output
is closed-circuit, and when it has been tripped it goes open-
circuit.

 The reasoning behind using normally closed outputs is that it


allows an alarm panel to verify the integrity of the connection
to the sensor. If an intruder cuts the wire going to a motion
detector, the central alarm panel sees this action as the same
as the detector being triggered, and will sound the alarm.
Need of Security Alarm
Systems-
Home security has been a major issue
where crime is increasing and everybody
wants to take proper measures to prevent
intrusion .

There is a need to automate home so that


user can take advantage of the
technological advancement .
SECURITY SENSOR

A sensor is a device that


measures(senses) a physical quantity and
converts it into a signal which can be read
by an observer or by an instrument.

A security sensor senses any intruder’s


presence an generate signal that triggers
alarm to inform the user.
Different modules

Central Unit.

PIR Motion Detectors.

Door/Window Magnetic sensors.

GSM Module
Flow Chart
BLOCK DIAGRAM
Magnetic sensor
Keyboard
(Connected to the door )

MCU

(Arduino Mega Board 1280)

PIR sensor(for human

-zer
Buz
detection)

LED
Central Unit

The control panel(central unit) can be called as


the “brain" of the security system, and operates
as the
central computer.

Various sensors are connected to the control


panel from locations throughout the home.

If sensors detect a problem, control panel cause


an appropriate alarm output.
Central Unit Used
ARDUINO ATMEGA 1280
PROGRAM FOR PASSWORD

include <Password.h>
#define LED 13
Password password = Password( "1234" );
int c,i,j;
char check;
char pass[4];
void setup()
{ Serial.begin(9600);
pinMode(LED,OUTPUT);
c=0;
}
void loop()
{ for(i=0;i<4;i++)
{ while(Serial.available()==0);
j=Serial.read();
password.append(j);
Serial.print(j,BYTE);
}
if(password.evaluate())
{ digitalWrite(LED,HIGH);
Serial.println("correct password");
delay(5000);
}
else
{ delay(5000);
c++;
password.reset();
Serial.println("incorrect password");
}
while(c==4)
{ Serial.println("limit exceeded");
exit(0);
}
}
PIR motion sensor
The Passive Infrared
Detector works
through detecting
the human bodies
infrared spectrum.

The sensor receives


infrared rays given
off by the human
body and generate
high output signal.
SPECIFICATIONS OF PIR SENSOR
 Single bit output
 Pin defination-
+ - connect to V supply
- - connect to ground
out – gives 1 bit output
 Range of approximately 20 feet.
 Warm-up time 10-60 seconds.
 Dimensions-
32.2 * 24.3 * 25.4 mm
PROGRAM FOR PIR SENSOR
int ledPin = 13; // choose the pin for the LED
int inputPin = 24; // choose the input pin (for PIR sensor)
int pirState = LOW; // we start, assuming no motion
detected
int val = 0; // variable for reading the pin status
void setup()
{
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare sensor as input
Serial.begin(9600);
}
void loop()
{
val = digitalRead(inputPin); // read input value
if (val == HIGH)
{
digitalWrite(ledPin, HIGH); // turn LED ON
if (pirState == LOW)
{ // we have just turned on
Serial.println("Motion detected!");
// We only want to print on the output change,
not state
pirState = HIGH;
}
}
else
{
digitalWrite(ledPin, LOW); // turn LED OFF
if (pirState == HIGH)
{ // we have just turned off
Serial.println("Motion ended!");
// We only want to print on the output
change, not state
pirState = LOW;
}
}
}
Door/Window Magnetic Sensor
 This is usually accomplished with
a non-contact switching
system using a sintered alnico
magnet and a reed switch.
 The presence of the magnetic
field passing through the
conductors of the switch causes
them to pull together, closing the
circuit.
Door/Window Magnetic Sensor
 When the magnet is moved
away from the switch, the
circuit opens. Closed circuit
indicates the closed
door/window and
 releases the reed switch when
the door/window is opened
and triggers an alarm at the
same time.
SPECIFICATIONS FOR REED
SWITCH(MAGNETIC SENSOR)
Circuit

Arduino (1x)
Reed Switch (1x)
10K Resistor (1x)
Breadboard (1x)
LED (1x)
Magnet(1x)
Wires (MISC.)
Circuit
 first connect a LED to pin 13 and Ground on the
breadboard.
 Now connect Arduino 5 volt and ground to its own
buses. Then insert your reed switch onto your
bread.
 Now connect a 10K resistor from 5 volts to the
reed switch .
 connect Digital Pin 2 of the Arduino board where
you connected your 10K resistor to the reed
switch. Finally, connect the other pin of the reed
switch to ground
PROGRAM FOR MAGNETIC
SENSOR
int ledPin = 13;
int inputPin = 2;
int val = 0;
void setup()
{ pinMode(ledPin, OUTPUT);
pinMode(inputPin, INPUT);
}
void loop()
{ val = digitalRead(inputPin);
if (val == LOW)
{ digitalWrite(ledPin, LOW);
}
else
{ digitalWrite(ledPin, HIGH);
}
}
GSM module (FUTURE
REFERENCE)
 A GSM modem is a
wireless modem that
works with GSM
networks.
A GSM modem can be an
external unit or a
PCMCIA card (also called
PC Card). An external
GSM modem is
connected to a PC
through a serial cable, a
USB cable, Bluetooth or
Infrared.It requires a SIM
card from a wireless
carrier in order to
operate
GSM & GPRS module
 PC use AT commands to
control a GSM and GPRS
modem. With the
extended AT commands,
you can do things like:
 Read, write and delete
and SMS.
 Monitor the signal
strength.
 Monitor the charging
status and level of the
battery.
 Read, write and search
phone book.
GSM & GPRS module
 If SMS over GPRS is used, an
SMS transmission speed of
about 30 SMS messages per
minute may be achieved. This is
much faster than SMS over GSM.
A GPRS modem is required to
send and receive SMS via GPRS.
Some wireless carriers do not
support the sending and
receiving of SMS via GPRS. A
GPRS modem is typically
required for MMSA GSM modem
can be an external modem
device, such as the Siemens
MC35 or Wavecom FASTRACK
external modems. Insert a GSM
SIM card into this modem, and
connect the modem to an
available serial port on your
computer
Command Description

 AT+CMGD- DELETE SMS MESSAGE


 AT+CMGF- SELECT SMS MESSAGE FORMAT
 AT+CMGL- LIST SMS MESSAGES FROM PREFERRED STORE
 AT+CMGR-READ SMS MESSAGE
 AT+CMGS- SEND SMS MESSAGE
 AT+CMGW- WRITE SMS MESSAGE TO MEMORY
 AT+CMSS- SEND SMS MESSAGE FROM STORAGE
 AT+CMGC- SEND SMS COMMAND
 AT+CNMI- NEW SMS MESSAGE INDICATIONS
Security system diagram
Detecting Motion
The motion detector emits If somebody disturbs the
radio energy into a room and reflection pattern, the motion
monitors the reflection detector sends an alarm signal
pattern. to the control box.
Sounding the Alarm

 There are several things a security system might do when it


detects an intruder. It will activate:
 a siren or other loud alarm noise
 flashing outdoor lights
 a telephone auto-dialer

 The siren and lights serve three functions:


 They alert occupants and neighbors that someone has broken into
the house.
 They signal to police which house has been broken into.

 The telephone auto-dialer can:


 Dial the police directly, and play a pre-recorded message giving
the address of the house and any other relevant information. This
message will usually play over and over until someone respond.
 Dial the security company that installed the equipment. The
security company then relays this information to the police.
Group Members
Sunny adak
Divyajyoti jain
Anamika yadav
Archit agarwal
Vaibhav aggarwal
Kritika khanna
Harsh singh
Aanchal vohra
Manisha solanki
Mohit vaid
THANK YOU

Das könnte Ihnen auch gefallen