23
SUBMITTED BY , M.ARUN KUMAR (05E111) T.S.HARISHANKAR (05E122) S.VEDAPRAKASH (05E166) III B.E EEE

Home automation and securty using wireless networks

Embed Size (px)

DESCRIPTION

6th sem project ppt

Citation preview

Page 1: Home automation and securty using wireless networks

SUBMITTED BY, M.ARUN KUMAR (05E111) T.S.HARISHANKAR (05E122) S.VEDAPRAKASH (05E166)

III B.E EEE

Page 2: Home automation and securty using wireless networks

why this project ? The present days many houses are secure less

and all appliances are operated manually. The objective of this project is to enable users to

remotely control their home appliances and systems using a cell phone-based interface via a simple SMS .

Over the last decade, this problem has been overcome by using the Internet and through power-line modems.

Page 3: Home automation and securty using wireless networks

DESCRIPTION TRANSMITTING END

ANY TYPE OF CELL PHONE THAT CAN SEND AND RECEIVE SMS.(GSM/CDMA)

RECEIVING END “GSM” CELLPHONE SUPPORTING BASIC AT

COMMANDS MICROCONTROLLER MAX 232 RS232 INTERFACE POWER SUPPLY VOLTAGE REGULATOR RELAYS KEYPAD AND LCD DISPLAY

Page 4: Home automation and securty using wireless networks

Wireless? Rf?

Short range Signal get weaken

Ir?Short rangeStraight path

Bluetooth?Short rangeNo authentication

Page 5: Home automation and securty using wireless networks

Wireless?

Wifi?Need of hot spotsInternet connectiona separate dedicated systemExpensive

Page 6: Home automation and securty using wireless networks

Wireless - GSM Global system of mobile communication Available in all parts of the world No distance limit Needs only a dedicated GSM cellphone

and a interface cable Minimum power consumption Not expensive

Because we use the SMS for communicating

Page 7: Home automation and securty using wireless networks

controller?

A PC?Expensive Power consumption is more

A Microprocessor?Needs External RAM,TIMER,ROM…..Serial Interfacing is difficult

A FPGA?ExpensiveProgramming is difficult

Page 8: Home automation and securty using wireless networks

A Microcontoller

It has in built RAM,ROM,TIMER…. Serial interfacing is easy Programming is easy Power consumption is minimum cheap Does not occupy much space

Page 9: Home automation and securty using wireless networks

SOFTWARE LABview?

Very expensive Need of external interfacing device ,DAC

and a PC.

PLCExpensive It has only 8 i/o ports

Page 10: Home automation and securty using wireless networks

KEIL

This software is used to program the microcontroller

This software uses “C”compiler. Easy programming Not expensive (freeware is available) Needs only a programmer (to burn a

ROM)

Page 11: Home automation and securty using wireless networks

PROJECT DESCRIPTION ATMEL MICROCONTROLLER SERIES:

89C51 Family TECHNOLOGY: CMOS FEATURES:

4K Bytes of In-System Reprogrammable Flash Memory Fully Static Operation: 0 Hz to 24 MHz Three-Level Program Memory Lock 128 x 8-Bit Internal RAM 32 Programmable I/O Lines Two 16-Bit Timer/Counters Six Interrupt Sources Programmable Serial Channel Low Power Idle and Power Down Modes

Page 12: Home automation and securty using wireless networks

MAX232 It is a dual driver/receiver. A capacitive voltage generator to supply RS-232

voltage levels from a single 5-V supply. Each receiver converts RS-232 inputs to 5-V

TTL/CMOS levels. Each driver converts TTL/CMOS input levels into

EIA-232 levels. This chip is used to do the level shifting & it is

required to send data serially to a cell phone which requires voltage levels as per RS232 standard.

Page 13: Home automation and securty using wireless networks

RS232 STANDARD RS232 is an interface cable used for serial

communication. 9-pin (DB9) connector cable. Voltage level: +12v(logic 0) -12v(logic1) the signal encoding used here is NRZ-L It uses only two levels.

Page 14: Home automation and securty using wireless networks

AT COMMANDS A GSM cellphone is a wireless modem The instructions used for controlling the mobile

phone or GSM/GPRS modem are called AT commands.

One use of the AT commands is to control the sending and receiving of SMS messages.

Page 15: Home automation and securty using wireless networks
Page 16: Home automation and securty using wireless networks

Important AT command ATD To dial a voice call from the modem. AT+CLIR For calling line Identification Restriction. AT+CNMI To set the mode of the mobile. AT+CMGR To read the message at particular

location. AT+CMGD To delete the received message AT+CMGS To send the message. AT+CMGF To change the message format to PDU

or Text mode. AT+CMGL To see all the list of messages.

Page 17: Home automation and securty using wireless networks

WORKING:STEP1: the command AT is sent through the microcontroller from SBUF register.

STEP2: “AT+CMGF=1” is sent to set the mobile phone in text mode.

STEP3: AT+CPMS=”ME” command selects the phone memory.

STEP4: AT+CNMI=1,2,0,0,0 this command will read the message in the first index of the phone memory and delete it after reading it.

STEP5: when a new message says “HEATER ON” is sent from our mobile this is delivered to the microcontroller directly in this text format. +CMGL:1,"RECREAD","+85291234567",,"06/11/11,00:30:29+32" HEATER ON.

STEP6: SBUF register will receive this message. Through our program the carriage return is sensed and the content of the message is received.

STEP7: this string received is compared with the already stored string. If this match occurs the corresponding subroutine is invoked and the corresponding port pin is made “1”.

STEP8: this port is connected to a relay and through this the HEATER is switched ON.

Page 18: Home automation and securty using wireless networks

SECURITY SYSTEMS The security system that is used includes an electronic

keypad that comprises of 8 keys numbering (0-7). In the residence absence, When a person enters/types

the home code . This code will be sent to the owner’s cell phone number through the microcontroller.

If the code is correct command “OPEN DOOR” is sent. The microcontroller will interpret this command and

opens the door. If the code is wrong the door will not be opened.

All the above authentication process is done by separate subroutine in our program. This subroutine is invoked when the keypad is activated.

Page 19: Home automation and securty using wireless networks

S.NO

APPARATUS COST

1. Microcontroller(AT 89C51) 60

2. MAX232 30

3. CELL PHONE(NOKIA 3220) 1500

4. SERIAL (F BUS) 160

5. PCB DESIGN 500

6. LCD DISPLAY 100

7. KEYPAD 50

8. POWER SUPPLY 80+3+12+2

TOTAL 2500

Page 20: Home automation and securty using wireless networks

FUTURE ENHANCEMENT CONTROL ENHANCEMENT:

Timer control:○ Immersion Heater:

A timer in microcontroller is used to set the time after it gets switched off.

○ Motor Pump After a period of time, the motor gets switched off & sends a

message like "motor is switched off, tank is filled. “

Parameter control:○ Temperature setting in a heater○ Setting temperature in air conditioners:

Sensing the temperature, convert into digital signals and using 8255 PPI send info to 89c51.

Page 21: Home automation and securty using wireless networks

SECURITY ENHANCEMENT Sensors:

○ When a moving object is sensed, all the hidden cameras would get switched ON.

Hidden Cameras:○ Taking photographs & sending via MMS.

Energy Meter:○ When speed of rotation exceeds, it will intimate certain devices to turn

OFF.

Sound Meter:○ When a sound is sensed, it would send message.

Page 22: Home automation and securty using wireless networks
Page 23: Home automation and securty using wireless networks