Beruflich Dokumente
Kultur Dokumente
SYSTEM
Group no. 3
Aim of Security System
Central Unit.
GSM Module
Flow Chart
BLOCK DIAGRAM
Magnetic sensor
Keyboard
(Connected to the door )
MCU
-zer
Buz
detection)
LED
Central Unit
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.
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