ABSTRACT
This paper presents the development of GSM-based home appliance control for smart
home system. The main aim of the prototype development is to reduce electricity
wastage. GSM module is used for receiving short message service (SMS) from user’s
mobile phone that automatically enable the controller to take any further action such
as to switch ON and OFF the home appliances such as light, air-conditioner etc. The
system is integrated with microcontroller and GSM network interface using embedded
C language. MikroC software was utilized to accomplish the integration. The system
is activated when user sends the SMS to controller at home. Upon receiving the SMS
command, the microcontroller unit then automatically controls the electrical home
appliances by switching ON or OFF the device according to the user direction. In
other words, it reads message from the mobile phone and responds to control the
devices according to the received message. The prototype has been successfully
developed and it could provide an effective mechanism in utilizing the energy source
efficiently
CONTENTS
1. Abstract - - - - - - - - - - - - - - - - - - - - - 1
2. Introduction - - - - - - - - - - - - - - - - - - - - ..2
2.1 Literature Survey - - - - - - - - - .. - - - - - - - - ..2
2.2 Motivation - - - - - - - - - - - .. - - - - - - - - 3
2.3 Objective - - - - - - - - - - - - - - - - - - . … - 3
2.4 Work Plan …………… ……. ………………………. ……………………………4
3. Hardware
3.1 Block Diagram and Description - - . - - - - …………… - - - - - 5
3.2 Hardware Parts and Description - - - - - - - - - - - - - - ..6
3.2.1 Microcontroller 8051 ………………………………………………………….6
3.2.2 Microcontroller PIC16F877A …………………………………………………7
3.2.3 Wavecom Fastrack M1306B …………………………………………………..9
3.2.4 RS232 to USB Converter …………………………………………………… - 9
3.2.5 MAX232(ILX232) ……………………………………………………………10
3.2.6 Relay Driver ULN2803A ……………………………………………………..11
3.2.7 Relay …………………………………………………………………………. 12
3.3 Circuit Diagram - - - - - - . - - - - - - - - .. ………… - ..13
3.4 Flowchart …………………………………………………………….. ………… - ..15
4. Software
4.1 Software Part and Description - - - - - - - - - - - - - - .16
4.1.1. AT Command - - - - - - - - - - - - - - - - - .16
4.1.2. MikroeC PIC Programming Tool - - - - - - - - - - - - 18
4.1.3. Embedded C - - - - - - - - - - - - - - - - - 23
4.1.4. Labscenter Proteus VSM 7.10 - - - - - - - - - - - - ..24
4.1.5. SUNROM WinPic Programmer - - - - - - - - - - - - - - - - - 28
4.2Algorithm - - - - - - - - - - - - - - - - - - - - - - - - ……….…..30
4.3 Coding - - - - - - - - - - - - - - - - - - - - - - - - - - - - 31
5. Results and Discussions - - - - - - - - - - - - - - - - - .36
5.1 Simulation Results - - - - - - - - - - - - - - - - - 36
5.2 Hardware Results ……………………………………….…………………………..37
5.3 Discussion………………………………………………….………………………..39
5.4 Conclusion - - - - - - - - - - - - - - - - - - - 39
6. Bibliography …………………………………………….………………………………..40
7. Annexure
7.1 Appendix II: Datasheets - - - - - - - - - - - - - - - - 41
PIC16F877A
MAX232
ULN2803
M1206B
.