58521223 xbee based home security

21

Upload: piyushji125

Post on 27-Oct-2015

16 views

Category:

Documents


1 download

DESCRIPTION

security system

TRANSCRIPT

Page 1: 58521223 Xbee Based Home Security
Page 2: 58521223 Xbee Based Home Security

OBJECTIVE The objective of the project is to

design a home security system which detects presence of intruders, occurrence of fire as well as power failure and alerts the user through the use of short messaging service (SMS) of mobile phones.

Page 3: 58521223 Xbee Based Home Security

BLOCK DIAGRAM

Microcontroller

LCD 16*2

Xbee Tx

FireSensor

SmokeSensor

LPG Detector

Line Detector

Leval Sensor

ADC

0808

Page 4: 58521223 Xbee Based Home Security

Microcontroller

LCD 16*2

Xbee Rx

Alarm System

Page 5: 58521223 Xbee Based Home Security

The Zigbee based security system utilizes different modules which act concurrently in order to monitor the domestic situation and alert the resident in case of emergency. A number of different sensor modules are utilized to monitor intruders, fire as well as power failure. The micro-controller module processes the information that it receives from the sensor modules and decides the action to be taken. The LCD, buzzer and Zigbee modules alert the user regarding the emergency situation. The output of these three modules depends on the micro-controller module.

Page 6: 58521223 Xbee Based Home Security

MODULES

Page 7: 58521223 Xbee Based Home Security

SENSOR MODULEThe sensor module consists of a group of

sensor for monitoring different parameters. FIRE SENSOR UNIT ELECTRIC FAILURE

DETECTOR UNIT INTRUDER UNIT

Page 8: 58521223 Xbee Based Home Security

DISPLAY MODULE The display module is used to display

the electrical information so that it can be easily understood by the user. A 16*2 Liquid Crystal Display is used as the display module in the system. It provides status updates to the user so that the user is aware whether the system is in “monitoring” state or it has detected some emergency situation

Page 9: 58521223 Xbee Based Home Security

Zigbee MODULEZigbee MODEM- it transmit the signal on

receiving a microcontroller command to the specified zigbee Reciever.

LINE DRIVER- it converts the TTL logic into RS 232 logic. The PC connectors are used to get and send the information through PCs’ ports.

Page 10: 58521223 Xbee Based Home Security

CONTROLLER MODULEMicrocontroller is used to monitor all the

operations in the system.It is a 40 pin IC. It takes the information and

performs operation according to present information.

In 40 pin AT89C51, there are four ports designated as P1, P2, P3 and P0. All these ports are 8-bit bi-directional ports, i.e., they can be used as both input and output ports. These ports are also bit addressable and so their bits can also be accessed individually.

Page 11: 58521223 Xbee Based Home Security

OPERATIONThe system is connected to a power supply sytemAs soon as the connection are completed, the

Zigbee modem sends a Signal to the user stating “System On”.

At the same time, the LCD displays a welcome screen stating” xbee based Security System”

After that, the LCD displays a status message "Monitoring”. During this time, the system is monitoring the status of all the sensors but has not yet encountered an emergency condition

When any sensor detects an emergency state, for example, if there is an occurrence of fire, the thermistor sends a signal to the MCU

Page 12: 58521223 Xbee Based Home Security

POWER SUPPLYA power supply can by broken down into a series of blocks, each of which performs a particular function. In this project, we are generating a 5V power supply .

Page 13: 58521223 Xbee Based Home Security

SENSOR MODULEFIRE ALARM In this fire alarm circuit, a thermistor works as

the heat sensor. When temperature increases, its resistance decreases, and vice versa. At normal temperature, the resistance of the thermistor is approximately 10 kilo-ohms, which reduces to a few ohms as the temperature increases beyond 100°C. When thermistor becomes hot, it provides a low-resistance path to extend positive voltage to the base of transistor via diode and resistor.

Diode provides a high-resistance (10-kilo-ohm) path when the thermistor connected to the positive supply cools down. It also stops the conduction of transistor. The circuit works off a 6V-12V regulated power supply. LED is used to indicate that power to the circuit is switched on.

Page 14: 58521223 Xbee Based Home Security

POWER FAILURE DETECTION The power failure alarm circuit that produces

an alarm whenever the mains supply fails . In this circuit, when power failure occurs, a pulse is sent to the P2.0 of the microcontroller unit which in turn perform the task of turning on the buzzer and at the same time displaying message on LCD. In Addition to this, a signal is sent to GSM modem to send a message to a remote mobile that power failure has occurred.

Page 15: 58521223 Xbee Based Home Security

LCDThe 44780 standard requires 3 control lines as

well as either 4 or 8 I/O lines for the data bus. The user may select whether the LCD is to operate with a 4-bit data bus or an 8-bit data bus. If a 4-bit data bus is used the LCD will require a total of 7 data lines (3 control lines plus the 4 lines for the data bus). If an 8-bit data bus is used the LCD will require a total of 11 data lines (3 control lines plus the 8 lines for the data bus).

The three control lines are referred to as EN, RS, and RW

Page 16: 58521223 Xbee Based Home Security

LCD and MICROCONTROLLER INTERFACINGWe have used an 8-bit data bus and is using 11of the 8051's I/O pins to interface with the LCD.

Page 17: 58521223 Xbee Based Home Security

Zigbee MODULEThe Zigbee modem is a highly flexible plug and

play quad band Zigbee modem for direct and easy integration to RS232. Supports features like Voice, Data/Fax, SMS, GPRS and integrated TCP/IP stack. Here sms feature of Zigbee modem is used.

INTERFACES:-RS-232 through D-TYPE 9 pin connector, Serial

port baud rate adjustable 1200 to115200 bps (9600 default)

Power supply through DC socket SMA antenna connector Push switch type SIM holder LED status of Zigbee / GPRS module

Page 18: 58521223 Xbee Based Home Security

CONNECTING Zigbee MODEMInsert SIM card: Press the yellow pin to remove

the tray from the SIM cardholder. After properly fixing the SIM card in the tray, insert the tray in the slot provided.

Connect Antenna: Screw the RF antenna on the RF cable output provided.

Connect RS232 Cable: (Cable provided for RS232 communication) Default baud rate is 9600 with 8-N-1, no hardware handshaking. Cable provided has pins 7 and 8 shorted that will set to no hardware handshaking. In you need hardware handshaking the pins 7-8 can be taken for signaling.

Page 19: 58521223 Xbee Based Home Security

MAX232 INTERFACE

Page 20: 58521223 Xbee Based Home Security

8051 ARCHITECTURE

Page 21: 58521223 Xbee Based Home Security

FUTURE SCOPEThe idea can be implemented to monitor all

the devices inside the house .Using network interface all the houses in a

city can be linked to a common database of the local authorities and any breach can be detected and appropriate action taken accordingly.

The project can be extended to monitor the power efficiency of each device and calculate the energy requirement in a house.