table of contents

10
“DESIGN AND IMPLEMENTATION OF HOME AUTOMATION SYSTEM USING GSM TO CONTROL ELECTRICAL APPLIANCES” SESSION: 2012-2016 Supervised By ENGR. HASHMAT KHAN Prepared By BILAL SU/12-01-071-024 HAROON KHAN SU/12-01-071-030 IZAZ ALI SU/12-01-071-044 I

Upload: khurshid-ahmad

Post on 18-Feb-2017

18 views

Category:

Engineering


0 download

TRANSCRIPT

Page 1: Table of contents

“DESIGN AND IMPLEMENTATION OF HOME AUTOMATION SYSTEM USING GSM TO CONTROL ELECTRICAL APPLIANCES”

SESSION: 2012-2016

Supervised By

ENGR. HASHMAT KHAN

Prepared By

BILAL

SU/12-01-071-024

HAROON KHAN

SU/12-01-071-030

IZAZ ALI

SU/12-01-071-044

DEPARTMENT OF ELECTRICAL ENGINEERING SARHAD UNIVERSITY OF INFORMATION TECHNOLOGY PESHAWAR

I

Page 2: Table of contents

Certificate of Approval

We accept the work contained in this report titled, “DESIGN AND IMPLEMENTATION OF HOME AUTOMATION SYSTEM USING GSM TO CONTROL ELECTRICAL APPLIANCES” as a confirmation to the required standard for the partial fulfillment of the degree of Bachelor of Electrical Engineering.

__________________ __________________

Chairman, EED Supervisor

__________________ __________________

Internal Examiner External Examiner

II

Page 3: Table of contents

Declaration of Authorship We declare that this thesis titled, “DESIGN AND IMPLEMENTATION OF HOME AUTOMATION SYSTEM USING GSM TO CONTROL ELECTRICAL APPLIANCES” and the work presented in it are our own. We confirm that:

This work was done wholly or mainly while in candidature for Bachelor of Electrical Engineering degree at this University.

Where any part of this thesis has previously been submitted for a degree or any other qualification at this University or any other institution, this has been clearly stated.

Where we have consulted the published work of others, this is always clearly attributed. Where we have quoted from the work of others, the source is always given. With the exception of such quotations, this thesis is entirely our own work. We have acknowledged all main sources of help.

Project Members:

1) IZAZ ALI2) BILAL3) HAROON KHAN

III

Page 4: Table of contents

ACKNOWLEDGMENTThe satisfaction and euphoria that accompany the successful completion of any project would be incomplete without a mention of people who made it possible and whose constant guidance and encouragement crown all the efforts. This project was special because it was our final year project and we took a great interest while completing it. It was not only a technical project but also the initiation of us, (the fresher), into the practical world.

We extend our sincere vote of thanks to ENGR. HASHMAT KHAN for his guidance and support throughout the completion of this Project.

We would also like to thank Department of Electrical Engineering for taking genuine interest in any queries we put up and promptly replying back. All their support and encouragement has carried us all through the project.

Above all we are highly grateful to our parents whose continuous support throughout our education carrier helped us in achieving our academic goals.

IV

Page 5: Table of contents

ABSTRACTWith advancement of technology things are becoming simpler and easier for us. Automatic systems are being preferred over manual system. This project puts forth the system which enables users to control their home appliances using their cellular phone. It shows developing a sysrem and working of the device to wirelessly control the home appliances based on GSM networking and AT89c52 microcontroller. Initially an authenticated signal is sent from the user’s cellular phone via Global System for Mobile Communication (GSM) network to equipment. This signal or code consists of the information about the function or action to be taken place i.e. what appliance should be turned off or turned on? The receiver phone receives the SMS message that is send from the user’s phone and then sends it to the GSM modem which in turn sends the output digital signal to the microcontroller. Then the microcontroller, based on the received signal, controls the different relays and triggers the required appliance.

V

Page 6: Table of contents

TABLE OF CONTENTSACKNOWLEDGMENT.................................................................................................................4

LIST OF SYMBOLS.......................................................................................................................2

ABSTRACT....................................................................................................................................3

CHAPTER 1: INTRODUCTION....................................................................................................1

1.1 Introduction..........................................................................................................................1

1.2 Home automation.................................................................................................................1

1.4 Aims and Objectives……………………………………………………………..............3

1.5 General Objectives of the Project ……………………………………………………………..4

1.6 Motivation..........................................................................................................................4

CHAPTER 2: BACKGROUND AND LITERATURE REVIEW.................................................5

2.1 History and Background.......................................................................................................5

2.2 GSM Technology..................................................................................................................52.3 DTMF (Dual Tone Multi Frequency)…………………………………………………………..6CHAPTER 3: METHODOLOGY...................................................................................................7

3.1 Home Appliance Control System (HACS)...........................................................................7

3.2. Methodology.........................................................................................................................7

3.3. Circuit Design and Procedure...............................................................................................7

3.4. Working Explanation............................................................................................................8

3.5. GSM Module........................................................................................................................9

CHAPTER 4: HARDWARE COMPONENTS.............................................................................10

4.1. Equipment Required........................................................................................................10

4.2 Electrical Power supply...................................................................................................11

4.3 Transformer.....................................................................................................................12

4.4 Bridge Rectifier...............................................................................................................12

4.7. Voltage Regulator............................................................................................................12

4.7 Power supply components..............................................................................................12

4.8 Diode (1N400x series)....................................................................................................13

4.9 Optocoupler (4N25)........................................................................................................13

4.10 GSM Module (SIM 900A)..............................................................................................134.11 General Features……………………………………………………………………………...14

4.12 Interfaces………………………………………………………………………………………14

4.13 AT89c52..........................................................................................................................144.14 Programming…………………………………………………………………………………..15

4.15 Technical Specification………………………………………………………………………..15

VI

Page 7: Table of contents

4.16 Communication…………………………………………………………………………………...15

4.17 DTMF Decoder...............................................................................................................15

4.18 ULN2003........................................................................................................................17

4.19 Relays..............................................................................................................................17

CHAPTER 5: INTERFACING AND SIMULATION..................................................................18

5.1. Circuit Diagram..............................................................................................................185.2 Circuit description……..……………………………………………………………………18

5.3 Interfacing of LCD with Controller................................................................................18

5.3. Power supply components..............................................................................................19

5.4. Components of relay circuit............................................................................................19

5.5. Operation of relay circuit................................................................................................20

5.6. Interfacing of GSM SIM900A with Controller..............................................................20

CHAPTER 7: Conclusion and future recommenadation...............................................................21

CHAPTER 8: APPENDIX...........................................................................................................23

REFERENCES..............................................................................................................................29

VII

Page 8: Table of contents

LIST OF FIGURES

Figure 1.1: Home Automation System

Figure 3.1: Framework

Figure 3.2: Block Diagram of project

Figure 4.5: LCD

Figure 4.6: transformer

Figure 4.7: Bridge Rectifier

Figure 4.8: Power supply

Figure 4.9: Diode symbol

Figure 4.10: Opto-coupler

Figure 4.11: GSM module with Labels

Figure 4.12: DTMF decoder

Figure 4.13: Relay driver

Figure 5.1: Operation of Relay

VIII

Page 9: Table of contents

LIST OF TABLES

Table 1: DMFT

Table 2: AT Commands instruction for user

Table 3: LCD Pin Configuration

Table 4: GSM Features

IX