25
Anand Engineering College, Agra ________________________________ _______ Department of Electronics & Communication Engineering A Synopsis on HOME APPLIANCE CONTROL AND SECURITY THROUGH SMS Under the Supervision of Guide: Mr.Sumit Tripathi Co-Guide: Mr. Rishab Verma Submitted by Name of students

Synopsis on sms based home appliances control

Embed Size (px)

DESCRIPTION

EC final Year Project Synopsis On SMS BASED HOME APPLIANCES CONTROL.

Citation preview

Page 1: Synopsis on sms based home appliances control

Anand Engineering College, Agra_______________________________________

Department of Electronics & Communication Engineering

A

Synopsis on

HOME APPLIANCE CONTROL AND SECURITYTHROUGH SMS

Under the Supervision of

Guide: Mr.Sumit Tripathi Co-Guide: Mr. Rishab Verma

Submitted by

Name of students

1 Ved Prakash Singh (0700131109)2 .Sandeep Mahor (0600131093)

3 Tarun Kr. Matriaya (0700131202)

==================================================================================

Gautam Buddha Technical University, Lucknow

Page 2: Synopsis on sms based home appliances control

(Session 2011-12)

TABLE OF CONTENTS

Sr. No. List Of Contents Page No.

1 Acknowledgement 3

2 Abstract 4

3 Introduction 5

4 Description 7

4.1 Methodology 7

4.2 Hardware Used 8

4.3 Software Used 8

4.4 AT-Command Set 9

4.5 A Brief Intro of 8051 Microcontroller 10

4.6 Characteristics of HACS 16

4.7 Strengths &Constraints of HACS 16

5 Conclusion and Future Work 17

6 Reference 18

1

Page 3: Synopsis on sms based home appliances control

LIST OF FIGURES

Sr. No List of Figures Page No.

1 Model of HACS System 6

2 Pin Diagram of 8051/8031 Microcontroller 12

3 Functional block Diagram 14

4 Circuit Diagram 15

2

Page 4: Synopsis on sms based home appliances control

ACKNOWLEDGEMENT

It gives us a great sense of pleasure to present the synopsis of the B.Tech.

Project undertaken during B.Tech. Final Year. We owe a special debt of

gratitude to Mr. R.S Tomar, Project Guide Mr. Sumit Tripathi and Project Co-

Guide Mr .Rishab Verma, Department of Electronics and Communication

Engineering, A.E.C for his constant support and guidance throughout the

course of our work. His thoroughness and perseverance have been a constant

source of inspiration for us. It is only his cognizant efforts that our endeavors

have seen light of the day.

We also take the opportunity to acknowledge the contribution of Mr.Rahul

Agrawal, Head, Department of Electronics and Communication Engineering,

A.E.C for his full support and assistance and all faculty members of the

department for their kind assistance and cooperation during the development of

our project. Last but not the least, we acknowledge our friends for their

contribution in the completion of the project.

3

Page 5: Synopsis on sms based home appliances control

ABSTRACT

This paper mainly focuses on the controlling of home appliances remotely and providing security when the user is away from the place. The system is SMS based and uses wireless technology to revolutionize the standards of living. This system provides ideal solution to the problems faced by home owners in daily life. The system is wireless therefore more adaptable and cost-effective. The HACS system provides security against intrusion as well as automates various home appliances using SMS. The system uses GSM technology thus providing ubiquitous access to the system for security and automated appliance control.

Keywords: Short Message Service (SMS), Global System for Mobile communication (GSM),Radio Frequency (RF), AT Commands, ubiquitous access and Automation.

The aim of the paper is to investigate a cost effective solution that will provide controlling of home appliances remotely and will also enable home security against intrusion in the absence of home owner. The motivation is to facilitate the users to automate their homes having ubiquitous access. The system provides availability due to development of a low cost system. The home appliances control system with an affordable cost was thought to be built that should be mobile providing remote access to the appliances and allowing home security. Home security has been a major issue where crime is increasing and everybody wants to take proper measures to prevent intrusion. In addition there was a need to automate home so that user can take advantage of the technological advancement in such a way that a person getting off the office does not get melted with the hot climate. Therefore this paper proposes a system that allows user to be control home appliances ubiquitously and also provide security on detection of intrusion via SMS using GSM technology

4

Page 6: Synopsis on sms based home appliances control

INTRODUCTION

Home Appliance Control System (HACS)

Home appliance control system is based on GSM network technology for transmission of SMS from sender to receiver. SMS sending and receiving is used for ubiquitous access of appliances and allowing breach control at home. The system proposes two sub-systems. Appliance control subsystem enables the user to controlhome appliances remotely whereas the security alert subsystem provides the remote security monitoring. The system is capable enough to instruct user via SMS from a specific cell number to change the condition of the home appliance according to the user’s needs and requirements. The second aspect is that of security alert which is achieved in a way that on the detection of intrusion the system allows automatic generation of SMS thus alerting the user against security risk. HACS system consists of the following components

PC: This unit contains the software components such as the HACS System through which the appliances are controlled and home security is monitored.

GSM Modem: It is a hardware component that allows the capability to send and receive SMS to and from the system. The communication with the system takes place via RS232 serial port. Cell phone can be attached at the place of GSM hardware but it limits the hardware functionality such as sending or receiving of SMS.

Mobile Device: Cellular phone containing SIM card has a specific number through which communication takes place. The device communicates with the GSM Modem via radio frequency. Mobile user transmits SMS using GSM technology.

5

Page 7: Synopsis on sms based home appliances control

6

Page 8: Synopsis on sms based home appliances control

DESCRIPTION

The working of HACS model (shown in Figure 1) is explained:- PC: PC being the main module has HACS system installed on it. The two subsystems; one being appliances control is responsible for ubiquitous access of appliances and the second subsystem being security alert is responsible for security intrusion detection. Both subsystems work on GSM technology for transmission of instructions from sender to receiver. GSM Modem: GSM modem is a plug and play device and is attached to the PC which then communicates with the PC via RS232 port. GSM modem is a bridge responsible for enabling/ disabling of SMS capability.Cell Phone: Mobile device communicates with the GSM Modem via radio waves. The mode of communication is wireless and mechanism works on the GSM technology. Cell phone has a SIM card and a GSM subscription. This cell phone number is configured on the system. User transmits instructions via SMS and the system takes action against those instructions.

Methodology

The methodology followed in the HACS is given as:-

GSM hardware tests are run in order to check the hardware support. The system will call GSM modem and it will get activated.After activation the Modem will check for hardware support. If the hardware is missing or some other hardware problem there will be error, resulting in communication failure and the application will be terminated.If hardware responds then the serial port will be opened for communication and GSM hardware will allow transmission of SMS. The system will then connect and after connection establishment the system will be able to detect intrusion and will alert user about the breach and similarly the system will update status of appliances by receiving SMS from the pre-defined cell number.SMS will be silently ignored if cell number is unauthorized.

7

Page 9: Synopsis on sms based home appliances control

HARDWARE USED

1. AT command supporting GSM mobile phone.2. 89S52 Microcontroller3. Max 232 IC.4. Relays5. Relay driver IC ULN 28036. Voltage regulator 7805.7. Diode IN40078. GSM Phone

SOFTWARE USED 1. Keil u-Vision 3.0

Keil Software is used provide you with software development tools for 8051 based microcontrollers. With the Keil tools, you can generate embedded applications for virtually every 8051 derivative. The supported microcontrollers are listed in the µ-vision.

8

Page 10: Synopsis on sms based home appliances control

AT-Command set

The following section describes the AT-Command set. The commands can be tried out by connecting a GSM modem to one of the PC’s COM ports. Type in the test-command, adding CR + LF (Carriage return + Line feed = \r\n) before executing. Table gives an overview of the implemented AT-Commands in this application. The use of the commands is described in the later sections.

AT-Command set overview

Command Description

AT Check if serial interface and GSM modem is working.

ATE0 Turn echo off, less traffic on serial line.

AT+CNMI Display of new incoming SMS. AT+CPMS Selection of SMS memory.

AT+CMGF SMS string format, how they are compressed.

AT+CMGR Read new message from a given memory location.

AT+CMGS Send message to a given recipient. AT+CMGD Delete message.

9

Page 11: Synopsis on sms based home appliances control

A BRIEF INTRODUCTION TO 8051 MICROCONTROLLER: 

When we have to learn about a new computer we have to familiarize about the machine capability we are using, and we can do it by studying the internal hardware design (devices architecture), and also to know about the size, number and the size of the registers.

         A microcontroller is a single chip that contains the processor (the CPU), non-volatile memory for the program (ROM or flash), volatile memory for input and output (RAM), a clock and an I/O control unit. Also called a "computer on a chip," billions of microcontroller units (MCUs) are embedded each year in a myriad of products from toys to appliances to automobiles. For example, a single vehicle can use 70 or more microcontrollers. The following picture describes a general block diagram of microcontroller.

89s52: The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K bytes of in-system programmable Flash memory. The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard 80C51 instruction set and pinout. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory pro-grammer. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the Atmel AT89S52 is a powerful microcontroller, which provides a highly flexible and cost-effective solution to many, embedded control applications. The AT89S52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry. In addition, the AT89S52 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the

10

Page 12: Synopsis on sms based home appliances control

RAM con-tents but freezes the oscillator, disabling all other chip functions until the next interrupt. The hardware is driven by a set of program instructions, or software. Once familiar with hardware and software, the user can then apply the microcontroller to the problems easily.

The pin diagram of the 8051 shows all of the input/output pins unique to microcontrollers:

The following are some of the capabilities of 8051 microcontroller.

Internal ROM and RAM I/O ports with programmable pins Timers and counters Serial data communication

11

Page 13: Synopsis on sms based home appliances control

Figure.2 Pin diagram of 8051/8031 microcontroller

12

Page 14: Synopsis on sms based home appliances control

The 8051 architecture consists of these specific features:

16 bit PC &data pointer (DPTR) 8 bit program status word (PSW) 8 bit stack pointer (SP) Internal ROM 4k Internal RAM of 128 bytes. 4 register banks, each containing 8 registers 80 bits of general purpose data memory 32 input/output pins arranged as four 8 bit ports: P0-P3 Two 16 bit timer/counters: T0-T1 Two external and three internal interrupt sources Oscillator and

clock circuits.

13

Page 15: Synopsis on sms based home appliances control

The functional block diagram of the control system is:-

Fig. Functional block diagram for Implementation of HACS through SMS

14

Page 16: Synopsis on sms based home appliances control

CIRCUIT used in HACS

15

Page 17: Synopsis on sms based home appliances control

Characteristics of HACS

The proposed system characteristics involve remote controlling of appliances, intrusion detection, system security and auto-configuration such that system automatically adjusts the system settings on running hardware support check. The system has useful features such as displaying of battery level, charging status and signal strength of the mobile thus making system reliable.

Strengths of HACS

HACS system has many advantages such as remote controlling of home appliances, availability and ease of users. The user can get alerts anywhere through the GSM technology thus making the system location independent. The system contains low cost components easily available which cuts down the overall system cost. Moreover system alerts user about breach via SMS providing home security also it allows secure access due to pre-configured number. The ease of deployment is due to wireless mode of communication. GSM technology provides the benefit that the system is accessible in remote areas as well. The system reliability increases due to the useful features such as battery level checking, charging status and signal strength indicating the system about threats. The system integration is simple and is also scalable and extensible. The auto-configuration capability allows the system auto enabling/disabling of certain features.

Constraints of HACSThe system functionality is based on GSM technology so the technological constraints must be kept in mind. The system is vulnerable to power failure but this disruption can be avoided by attaching the voltage source thus allowing users to avail the great advantage of this system

16

Page 18: Synopsis on sms based home appliances control

CONCLUSION & FUTURE WORK

In the paper low cost, secure, ubiquitously accessible, auto-configurable, remotely controlled solution for automation of homes has been introduced. The approach discussed in the paper is novel and has achieved the target to control home appliances remotely using the SMS-based system satisfying user needs and requirements. GSM technology capable solution has proved to be controlled remotely, provide home security and is cost-effective as compared to the previously existing systems. Hence we can conclude that the required goals and objectives of HACS have been achieved. The basic level of home appliance control and remote monitoring has been implemented. The system is extensible and more levels can be further developed using automatic motion/glass breaking detectors so the solution can be integrated with these and other detection systems. In case of remote monitoring other appliances can also be monitored such that if the level of temperature rises above certain level then it should generate SMS or sensors can also be applied that can detect gas, smoke or fire in case of emergency the system will automatically generate SMS. In future the system will be small box combining the PC and GSM modem. This hardware can be imported from Taiwan and Singapore. The hardware will be self contained and cannot be prone to electric failure. This appliance will have its own encapsulated UPS and charging system.

17

Page 19: Synopsis on sms based home appliances control

REFERENCES

.Alkar, A. Z., & Buhur, U. (2005). An Internet Based Wireless Home

Automation System for MultifunctionalDevices. IEEE Consumer Electronics, 51(4), 1169-1174.

.Ciubotaru-Petrescu, B., Chiciudean, D., Cioarga, R., & Stanescu, D. (2006).

Wireless Solutions for Telemetryin Civil Equipment and Infrastructure Monitoring. 3rd Romanian-Hungarian Joint Symposiumon Applied Computational Intelligence (SACI) May 25-26, 2006.

.Conte, G., & Scaradozzi, D. (2003). Viewing home automat ion systems as

multiple agents systems. RoboCUP2003, Padova, Italy. Retrieved from http://www.robosiri.it/ROBOCUP_2003/ROBOCUPSITOSIRI/articles/pdf/Conte.pdf

.Delgado, A. R., Picking, R., & Grout, V. (2006) Remote-controlled home

automation systems with different network technologies. Proceedings of the 6th International Network Conference (INC 2006), University of Plymouth, 11-14 July 2006, pp. 357-366.

.Jawarkar, N. P., Ahmed, V., Ladhake, S. A. & Thakare, R. D. (2008).

Micro-controller based RemoteMonitoring using Mobile through Spoken Commands. Journal Of Networks, 3(2), 58-63.

18