SlideShare a Scribd company logo
IOSR Journal of Computer Engineering (IOSR-JCE)
e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 6, Ver. V (Nov – Dec. 2015), PP 15-19
www.iosrjournals.org
DOI: 10.9790/0661-17651519 www.iosrjournals.org 15 | Page
Home Automation Using Mobile Communication
B. SRINIVASA RAO
Department of Computer Science Engineering, Gokaraju Rangaraju Institute of Engineering and Technology,
Bachupally, Hyderabad, Telangana, India-500090
Mail: bsrgriet2015@gmail.com
Abstract: In the present paper we have designed and implemented a typical and simple Home Automation
System using GSM (Global System for Mobile Communication) technology that controls electrical devices at
home from a remote location by a simple mobile phone. This is achieved by sending an SMS to receiver present
at home which is in turn connected to a hardware kit. The SMS received by the receiver is transmitted to the
microcontroller which reads the message and controls the appropriate device. This operation is performed by
program written in assembly language code that is stored in the flash memory which is in-built into the
microcontroller. The practical implementation of the present prototype has been successful to control some
electrical devices using an embedded circuit via SMS.
Keywords: Home Automation, GSM, Embedded System, Mobile Communication and Remote Control.
I. INTRODUCTION
The concept of smart home is an emerging issue to the modern technology dependent society. Remote
control technologies are widely used to control household electronic appliances without walking up to them.
Controlling household appliances through computer can also be a possible solution. However, it cannot fulfil the
current demand which is to control them from remote places. The advantages of cellular communications like
GSM technology is a potential solution for such remote controlling activities. [1]. Home automation systems are
a result of an attempt to enhance the standards of living around and inside the house and were made possible by
the breakthrough in the area of integrated circuits and microprocessors. These systems provide the consumers
with increased security and safety, economic benefit through energy control, and convenience by giving them
control over every piece of domestic electrical equipment in the house [2]. Literature revels that the main
objective for using GSM(Global System for Mobile Communication) network for the communication between
the home and the users(and vice versa) is its wide spread coverage which makes the whole system online for
almost all the time[3]. Home security system is needed for occupants' convenience and safety. At the same time
it is required design and implementation of a low cost, low power consumption, and GSM/GPRS (global system
for mobile communication /general packet radio service) based wireless home security system. The system is a
wireless home network which contains a GSM/GPRS gateway and three kinds of wireless security sensor nodes
that are door security nodes, infrared security nodes and fire alarm nodes. The nodes are easy installing. The
system can response rapidly to alarm incidents and has a friendly user interface including a LCD (liquid crystal
display) and a capacitive sensor keyboard. The wireless communication protocol between the gateway and the
nodes is also suitable for other home appliances. Furthermore, some more methods are taken to ensure the
security of system information [4]. With state of the art technology it is possible to achieve home automation
with remote control and monitoring via GSM phones with low cost, less power consumption and good
performance [5]. In the present paper we have designed and developed a typical and simple Home Automation
System (HAS) using GSM technology that controls electrical devices at home from a remote location by a
simple mobile phone.
II. Global System for Mobile Communication(GSM)
The Global System for Mobile Communications (GSM) is the most popular standard for mobile phones
in the world. The key advantage of GSM systems has been higher digital voice quality and low cost alternatives
to making calls such as text messaging. The advantage for network operators has been the ability to deploy
equipment from different vendors because the open standard allows easy inter-operability. The architecture of
the GSM network is briefly described. A GSM network is composed of several functional entities, whose
functions and interfaces are specified. Figure 1 shows the layout of a generic GSM network. The GSM network
can be divided into three broad parts. The subscriber carries the Mobile Station. The Base Station Subsystem
controls the radio link with the Mobile Station. The Network Subsystem, the main part of which is the Mobile
services Switching Centre (MSC), performs the switching of calls between the mobile users, and between
mobile and fixed network users. The MSC also handles the mobility management operations. Not shown is the
Operations and Maintenance Centre, which oversees the proper operation and setup of the network. The Mobile
Home Automation Using Mobile Communication
DOI: 10.9790/0661-17651519 www.iosrjournals.org 16 | Page
Station and the Base Station Subsystem communicate across the Urn interface, also known as the air interface or
radio link. The Base Station Subsystem communicates with the Mobile services Switching Centre across the A
interface. The architecture of GSM is shown in Fig.1
Fig.1. Architecture of GSM
III. Home Automation Using The GSM
(PROTO-TYPE DESIGN)
The design of the Home Automation proto-type using GSM is shown in fig.2. The aim is to control
electrical devices at home, from a remote location by a simple mobile phone. This is achieved by sending an
SMS to a receiver present at home which is in turn connected to a hardware kit. The SMS then received by the
receiver is transmitted to the microcontroller (present in the kit) using a serial port. The microcontroller then
reads the message received and controls the appropriate device. To achieve this, Microcontroller (AT90S8515)
is coded with a program (written in assembly language). This program is stored in the flash memory which is in-
built into the micro controller. The microcontroller also has I/O ports which are used to control the state of the
output devices. The devices are connected to the microcontroller through relay circuits so that the mother board
is protected from strong reverse currents in case high voltage appliances are used. The following components
constitute the hardware kit used for home automation: A G.S.M. cell phone, A G.S.M. modem
(transmitter/receiver), An AT90S8515 microcontroller, Relay Circuits, Reset Circuit, Power Circuit, Max 232
Chip, Serial port and a Serial Bus.
The Microcontroller AT90S8515: The AT90S8515 is a low-power CMOS 8-bit microcontroller based
on the A VR RISC architecture. By executing powerful instructions in a single clock cycle, the A T90S8515
achieves throughputs approaching 1 MIPS per MHz, allowing the sys- tern designer to optimize power
consumption versus processing speed.
Fig.2. Block diagram of home automation
Home Automation Using Mobile Communication
DOI: 10.9790/0661-17651519 www.iosrjournals.org 17 | Page
Fig.3. Photograph of practical implementation of the proto-type
IV. Coding
The algorithm for Home Automation using G.S.M Programming the Hardware Kit) is given below:
Step 1: The Pins of port c are defined as the I/O ports. As only 3 devices are being used in our case just the pins
0, 1, 2 are cleared.
Step 2: The USART is initialized to work in both transmission and reception modes. This is done by Moving
$86 in UCSRC and setting the baudrate at customary value of 12 ($OC) and setting the bits TXEN and
RXEN of UCSRB. Also baud rate is doubled for better performance. (By setting the bit U2X of
UCSRA)
Step 3: The stack pointer is set to the end of SRAM locations, just in case it is required.
Step 4: The AT Commands are written into the flash memory which are to be retrieved later.
Step 5: The first AT command (AT+CMGF=I) is retrieved from flash memory and transmitted to the G.S.M.
modem. This code enables the microcontroller to detect the G.S.M. modem.
Step 6: The Microcontroller Awaits for a confirmation code (OK) to proceed further. If an error code(OR) is
received, Start over from Step 1
Step 7: The second AT command (AT+CNMI=2, 2, 0, 0, and 0) is retrieved from flash memory and transmitted
to the G.S.M. modem. This code enables the microcontroller to set the baud rate of the G.S.M. modem.
Step 8: The Microcontroller Awaits for a confirmation code (OK) to proceed further. If an error code(OR) is
received, Start over from Step 1
Step 9: The third AT command (AT+CMGR=I) is retrieved from flash memory and transmitted to the G.S.M.
modem. This code enables the microcontroller to continuously interact with the G.S.M. modem.
Step 10: Retrieve Data from the Modem.
Step 11: If a confirmation code (+CMT) is received by it (which signifies an sms received by the modem), the
microcontroller can receive the SMS from the Modem. Else goto Step 10
Step 12: Read the next Byte of the message.
Step 13: If this byte is equal to $13 (ASCII value of ENTER key) then proceed to next step Else goto Step 12.
Step 14: Initialize SRAM. i.e. set the X pair register to $0100 (which is an address Location in SRAM.
Step 15: Read the next byte from the SMS message and write it into next byte SRAM.
Step 16: Check if this byte is equal to $13 (ASCII value of ENTER key)
Step 17: If it is equal go to Step 18 Else go to step 15
Step 18: The SRAM pointer (X pair register) is set back to its original value
Step 19: The first byte is stored in a register named dvc, which signifies the code of the device to be controlled.
Step 20: The second byte is stored in a register named status, which signifies whether the specified device is to
be turned on(1) or off(O). And the SRAM pointer is reset again
Step 21: If dvc not equal to '1' (or ASCII $31) Goto Step 25
Step 22: If Status equals '1' (or ASCII $31) Set pin 0 of port C, goto Step 12.
Step 23: If Status equals '0' (or ASCII $30) Clear pin 0 of port C, go to Step 12.
Step 24: Goto Step 10
Step 25: If dvc not equal to '2' (or ASCII $32) Goto Step 29
Step 26: If Status equals '1' (or ASCII $31) Set pin 1 of port C, go to Step 12
Step 27: If Status equals '0' (or ASCII $30) Clear pin 1 of port C, go to Step 12
Home Automation Using Mobile Communication
DOI: 10.9790/0661-17651519 www.iosrjournals.org 18 | Page
Step 28: Goto Step 10
Step 29: If dvc not equal to '3' (or ASCII $33) Goto Step 33
Step 30: If Status equals '1 ' (or ASCII $31) Set pin 2 of port C, goto Step 12
Step 31: If Status equals '0' (or ASCII $30) Clear pin 2 of port C, goto Step 12
Step 32: Goto Step 10
Step 33: If dvc not equal to '4 ' (or ASCII $32) Goto Step 10
Step 34: If Status equals ' 1 ' (or ASCII $31) Set pins 0,1,2 of port C, go to Step l2
Step 35: If Status equals '0' (or ASCII $30) Clear pins 0,1,2 of port C, goto Step 12
Step 36: Go to Step 10
Step 37: End process.
V. Testing The Code
We have so far discussed the basic design and working of the proposed Home Automation System
using GSM. But any project is not complete without exhaustive testing and debugging, and ours is not any
different. The input here in our project, is the SMS that is received by the GSM modem (which was sent by a
remote user using a cell phone). The SMS, that is received, is then stored in the SRAM via USART. This is
done by the calling a sub-routine "read-msg". Assuming that the SMS sent has only two characters, the first one
is stored in a register called 'dvc' and the second one in another register called 'status'. If the SMS sent has more
than 2 bytes of data, then only the last two bytes are taken into consideration while implementing the code. Now
depending on the SMS sent, the microcontroller controls the appropriate device by reading the values present in
dvc and status registers.
 if the dvc register is 1, the first device is controlled
 if the dvc register is 2, the second device is controlled
 if the dvc register is 3, the third device is controlled
 if the dvc register is 4, the all the devices are controlled
Irrespective of the device, if the status register is 0, the device/devices is/are made to turn OFF. And
turn on if the status register is 1. Hence in this way, an SMS that is sent, is stored in intermediate memory
locations (registers) and in turn are used to control the actual devices. The practical implementation is shown in
Fig.3. The table in the following page depicts the I/O States for various inputs that are given and a result that is
achieved.
Input
Value
(SMS
Sent)
Intermediate Values Output Values
Device
Register
(dvc)
Status
Register
(status)
Device
1
Device
2
Device
3
10 1 0 Off NC NC
11 1 1 On NC NC
20 2 0 NC Off NC
21 2 1 NC On NC
30 3 0 NC NC Off
31 3 1 NC NC On
40 4 0 Off Off Off
41 4 1 On On On
00 0 0 NC NC NC
110 1 0 Off NC NC
011 1 1 On NC NC
1011 1 1 On NC NC
1110 1 0 Off NC NC
NOTE: NC indicates that the devices remain in the state that it existed in before the SMS was sent. i.e. NO
CHANGE
VI. Conclusion
In the present work, we have operated the designed home automation system to control electrical
devices using an embedded circuit located remotely, via an SMS. This however is only a prototype into the
technology that has far reaching consequences. Integrating with newer technologies would enable us to have far
greater improvements in control and automation technology than what we possess now. In future we would like
to extend this work for more additional and minute control features of the home appliances by including the new
evolving technologies.
Home Automation Using Mobile Communication
DOI: 10.9790/0661-17651519 www.iosrjournals.org 19 | Page
Acknowledgements
Thanks are due to Mr.Subin, Mr. Pavan, Mr. Raghu and Mr. M.V.Rao. The encouragement of Prof. P.S.Raju,
Dr. Jandhyala N. Murthy and Dr. K.S.N. Raju is highly acknowledged. Thanks are also due to the Management
of GRIET.
References
1. Shamim Akhter , Md. Abdur Rahman , Md. Ashrafur Rahaman, Razwan Kader, GSM-SMS technology for controlling home
appliances remotely International Journal of Computer Aided Engineering and Technology Issue: Volume 1, Number 3 /
2009 Pages: 388 – 400
2. C. Douligeris, J. Khawand, C. Khawand, “Communications and Control for a Home Automation System”
3. Alheraish ; “Design and Implementation of Home Automation System”
4. A low cost GSM/GPRS based wireless home security system Yanbo Zhao Zhaohui Ye
Dept. of Autom., Tsinghua Univ., Beijing Consumer Electronics, IEEE Transactions volume: 54 Issue: 2 On page(s): 567 – 572
5. MobileHomeAutomationAMIABABIDI@1998http://www.lababidi.com/mobile Automation
6. "EMBEDDED SYSTEM DESIGN" GIV ARGIS by FRANK V AHID and TONY
7. "MOBILE CELLULAR TELECOMMUNICATIONS" - Analog and Digital Systems - by- William C.Y. Lee
8. www.gprs-modem.co.uk.html,
9. www.kropla.com/mobilephones.htm,
10. www.wikipedia.org

More Related Content

DOC
HOME AUTOMATION USING ANDROID PHONE OVER BLUETOOTH
DOCX
Gujarat technological universit1
DOCX
Home automation using android phone
PPTX
Paper presentation of mini project
DOCX
Home Appliances Controlling using Android Mobile via Bluetooth
DOCX
Project final filewith front
PPTX
Presentation on bluetooth controlled electronic home appliances
PPTX
home automation using ARM7 controller
HOME AUTOMATION USING ANDROID PHONE OVER BLUETOOTH
Gujarat technological universit1
Home automation using android phone
Paper presentation of mini project
Home Appliances Controlling using Android Mobile via Bluetooth
Project final filewith front
Presentation on bluetooth controlled electronic home appliances
home automation using ARM7 controller

What's hot (20)

PDF
My Final Year Project - Individual Control Home Automation System
PDF
Smart Home Automation
DOCX
android app based home automation
PPTX
Home automation under wi fi through android apps from any smart phone
PPTX
Home automisation finalppt
PDF
Raspberry Pi controlled Home Automation
PPTX
Home automation using FPGA controller
PDF
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
PDF
Final year report on remote control of home appliances via bluetooth
PDF
Home security automation
PPTX
Android Based Home Automation Control
PDF
Project report on home automation using Arduino
PPTX
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
PPTX
Home Automation by Android Application based Remote Control
PPTX
Smart Home System Using Android Application
PPTX
ANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILE
PPTX
Home automation using android mobiles
PPTX
Home automation voice control
PDF
Bluetooth based home automation system
DOCX
A minor project report HOME AUTOMATION USING MOBILE PHONES
My Final Year Project - Individual Control Home Automation System
Smart Home Automation
android app based home automation
Home automation under wi fi through android apps from any smart phone
Home automisation finalppt
Raspberry Pi controlled Home Automation
Home automation using FPGA controller
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
Final year report on remote control of home appliances via bluetooth
Home security automation
Android Based Home Automation Control
Project report on home automation using Arduino
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
Home Automation by Android Application based Remote Control
Smart Home System Using Android Application
ANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILE
Home automation using android mobiles
Home automation voice control
Bluetooth based home automation system
A minor project report HOME AUTOMATION USING MOBILE PHONES
Ad

Similar to Home Automation Using Mobile Communication (20)

PDF
IRJET- GSM based Home Automation
PDF
IRJET - Home Automation using GSM
PDF
HOME APPLIANCE CONTROL FOR USERS WITH MOTOR DISABILITIES USING SMART PHONE
PDF
Iirdem implementation of smart homes and industrial automation system with se...
PDF
IRJET-Intelligent Control of Electronic Appliances using Remote GSM
PDF
Ijmsr 2016-01
PPTX
Gsm based home automation
PPTX
HOME APPLIANCE CONTROL SYSTEM USING GSM TECHNOLOGY
PDF
Advanced Computational Intelligence: An International Journal (ACII)
PDF
HOME AUTOMATION AND SECURITY SYSTEM
PDF
Home Automation and Security System
PDF
HOME AUTOMATION AND SECURITY SYSTEM
PPT
Yuva Home automation project
PDF
GSM Based Home Automation System using Arduino
PDF
Home automation system using gsm
PPTX
Group-3
PDF
Home Automation System using Arduino and GSM
PDF
Gsm based control system
DOCX
Design and implementation of home automation system u...
PDF
Home Security System Using Gsm Modem
IRJET- GSM based Home Automation
IRJET - Home Automation using GSM
HOME APPLIANCE CONTROL FOR USERS WITH MOTOR DISABILITIES USING SMART PHONE
Iirdem implementation of smart homes and industrial automation system with se...
IRJET-Intelligent Control of Electronic Appliances using Remote GSM
Ijmsr 2016-01
Gsm based home automation
HOME APPLIANCE CONTROL SYSTEM USING GSM TECHNOLOGY
Advanced Computational Intelligence: An International Journal (ACII)
HOME AUTOMATION AND SECURITY SYSTEM
Home Automation and Security System
HOME AUTOMATION AND SECURITY SYSTEM
Yuva Home automation project
GSM Based Home Automation System using Arduino
Home automation system using gsm
Group-3
Home Automation System using Arduino and GSM
Gsm based control system
Design and implementation of home automation system u...
Home Security System Using Gsm Modem
Ad

More from iosrjce (20)

PDF
An Examination of Effectuation Dimension as Financing Practice of Small and M...
PDF
Does Goods and Services Tax (GST) Leads to Indian Economic Development?
PDF
Childhood Factors that influence success in later life
PDF
Emotional Intelligence and Work Performance Relationship: A Study on Sales Pe...
PDF
Customer’s Acceptance of Internet Banking in Dubai
PDF
A Study of Employee Satisfaction relating to Job Security & Working Hours amo...
PDF
Consumer Perspectives on Brand Preference: A Choice Based Model Approach
PDF
Student`S Approach towards Social Network Sites
PDF
Broadcast Management in Nigeria: The systems approach as an imperative
PDF
A Study on Retailer’s Perception on Soya Products with Special Reference to T...
PDF
A Study Factors Influence on Organisation Citizenship Behaviour in Corporate ...
PDF
Consumers’ Behaviour on Sony Xperia: A Case Study on Bangladesh
PDF
Design of a Balanced Scorecard on Nonprofit Organizations (Study on Yayasan P...
PDF
Public Sector Reforms and Outsourcing Services in Nigeria: An Empirical Evalu...
PDF
Media Innovations and its Impact on Brand awareness & Consideration
PDF
Customer experience in supermarkets and hypermarkets – A comparative study
PDF
Social Media and Small Businesses: A Combinational Strategic Approach under t...
PDF
Secretarial Performance and the Gender Question (A Study of Selected Tertiary...
PDF
Implementation of Quality Management principles at Zimbabwe Open University (...
PDF
Organizational Conflicts Management In Selected Organizaions In Lagos State, ...
An Examination of Effectuation Dimension as Financing Practice of Small and M...
Does Goods and Services Tax (GST) Leads to Indian Economic Development?
Childhood Factors that influence success in later life
Emotional Intelligence and Work Performance Relationship: A Study on Sales Pe...
Customer’s Acceptance of Internet Banking in Dubai
A Study of Employee Satisfaction relating to Job Security & Working Hours amo...
Consumer Perspectives on Brand Preference: A Choice Based Model Approach
Student`S Approach towards Social Network Sites
Broadcast Management in Nigeria: The systems approach as an imperative
A Study on Retailer’s Perception on Soya Products with Special Reference to T...
A Study Factors Influence on Organisation Citizenship Behaviour in Corporate ...
Consumers’ Behaviour on Sony Xperia: A Case Study on Bangladesh
Design of a Balanced Scorecard on Nonprofit Organizations (Study on Yayasan P...
Public Sector Reforms and Outsourcing Services in Nigeria: An Empirical Evalu...
Media Innovations and its Impact on Brand awareness & Consideration
Customer experience in supermarkets and hypermarkets – A comparative study
Social Media and Small Businesses: A Combinational Strategic Approach under t...
Secretarial Performance and the Gender Question (A Study of Selected Tertiary...
Implementation of Quality Management principles at Zimbabwe Open University (...
Organizational Conflicts Management In Selected Organizaions In Lagos State, ...

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Lecture Notes Electrical Wiring System Components
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
additive manufacturing of ss316l using mig welding
PPT
Project quality management in manufacturing
PDF
composite construction of structures.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
Digital Logic Computer Design lecture notes
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
DOCX
573137875-Attendance-Management-System-original
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Lecture Notes Electrical Wiring System Components
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
additive manufacturing of ss316l using mig welding
Project quality management in manufacturing
composite construction of structures.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
OOP with Java - Java Introduction (Basics)
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Operating System & Kernel Study Guide-1 - converted.pdf
Sustainable Sites - Green Building Construction
Digital Logic Computer Design lecture notes
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
573137875-Attendance-Management-System-original
Model Code of Practice - Construction Work - 21102022 .pdf
CYBER-CRIMES AND SECURITY A guide to understanding
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx

Home Automation Using Mobile Communication

  • 1. IOSR Journal of Computer Engineering (IOSR-JCE) e-ISSN: 2278-0661,p-ISSN: 2278-8727, Volume 17, Issue 6, Ver. V (Nov – Dec. 2015), PP 15-19 www.iosrjournals.org DOI: 10.9790/0661-17651519 www.iosrjournals.org 15 | Page Home Automation Using Mobile Communication B. SRINIVASA RAO Department of Computer Science Engineering, Gokaraju Rangaraju Institute of Engineering and Technology, Bachupally, Hyderabad, Telangana, India-500090 Mail: bsrgriet2015@gmail.com Abstract: In the present paper we have designed and implemented a typical and simple Home Automation System using GSM (Global System for Mobile Communication) technology that controls electrical devices at home from a remote location by a simple mobile phone. This is achieved by sending an SMS to receiver present at home which is in turn connected to a hardware kit. The SMS received by the receiver is transmitted to the microcontroller which reads the message and controls the appropriate device. This operation is performed by program written in assembly language code that is stored in the flash memory which is in-built into the microcontroller. The practical implementation of the present prototype has been successful to control some electrical devices using an embedded circuit via SMS. Keywords: Home Automation, GSM, Embedded System, Mobile Communication and Remote Control. I. INTRODUCTION The concept of smart home is an emerging issue to the modern technology dependent society. Remote control technologies are widely used to control household electronic appliances without walking up to them. Controlling household appliances through computer can also be a possible solution. However, it cannot fulfil the current demand which is to control them from remote places. The advantages of cellular communications like GSM technology is a potential solution for such remote controlling activities. [1]. Home automation systems are a result of an attempt to enhance the standards of living around and inside the house and were made possible by the breakthrough in the area of integrated circuits and microprocessors. These systems provide the consumers with increased security and safety, economic benefit through energy control, and convenience by giving them control over every piece of domestic electrical equipment in the house [2]. Literature revels that the main objective for using GSM(Global System for Mobile Communication) network for the communication between the home and the users(and vice versa) is its wide spread coverage which makes the whole system online for almost all the time[3]. Home security system is needed for occupants' convenience and safety. At the same time it is required design and implementation of a low cost, low power consumption, and GSM/GPRS (global system for mobile communication /general packet radio service) based wireless home security system. The system is a wireless home network which contains a GSM/GPRS gateway and three kinds of wireless security sensor nodes that are door security nodes, infrared security nodes and fire alarm nodes. The nodes are easy installing. The system can response rapidly to alarm incidents and has a friendly user interface including a LCD (liquid crystal display) and a capacitive sensor keyboard. The wireless communication protocol between the gateway and the nodes is also suitable for other home appliances. Furthermore, some more methods are taken to ensure the security of system information [4]. With state of the art technology it is possible to achieve home automation with remote control and monitoring via GSM phones with low cost, less power consumption and good performance [5]. In the present paper we have designed and developed a typical and simple Home Automation System (HAS) using GSM technology that controls electrical devices at home from a remote location by a simple mobile phone. II. Global System for Mobile Communication(GSM) The Global System for Mobile Communications (GSM) is the most popular standard for mobile phones in the world. The key advantage of GSM systems has been higher digital voice quality and low cost alternatives to making calls such as text messaging. The advantage for network operators has been the ability to deploy equipment from different vendors because the open standard allows easy inter-operability. The architecture of the GSM network is briefly described. A GSM network is composed of several functional entities, whose functions and interfaces are specified. Figure 1 shows the layout of a generic GSM network. The GSM network can be divided into three broad parts. The subscriber carries the Mobile Station. The Base Station Subsystem controls the radio link with the Mobile Station. The Network Subsystem, the main part of which is the Mobile services Switching Centre (MSC), performs the switching of calls between the mobile users, and between mobile and fixed network users. The MSC also handles the mobility management operations. Not shown is the Operations and Maintenance Centre, which oversees the proper operation and setup of the network. The Mobile
  • 2. Home Automation Using Mobile Communication DOI: 10.9790/0661-17651519 www.iosrjournals.org 16 | Page Station and the Base Station Subsystem communicate across the Urn interface, also known as the air interface or radio link. The Base Station Subsystem communicates with the Mobile services Switching Centre across the A interface. The architecture of GSM is shown in Fig.1 Fig.1. Architecture of GSM III. Home Automation Using The GSM (PROTO-TYPE DESIGN) The design of the Home Automation proto-type using GSM is shown in fig.2. The aim is to control electrical devices at home, from a remote location by a simple mobile phone. This is achieved by sending an SMS to a receiver present at home which is in turn connected to a hardware kit. The SMS then received by the receiver is transmitted to the microcontroller (present in the kit) using a serial port. The microcontroller then reads the message received and controls the appropriate device. To achieve this, Microcontroller (AT90S8515) is coded with a program (written in assembly language). This program is stored in the flash memory which is in- built into the micro controller. The microcontroller also has I/O ports which are used to control the state of the output devices. The devices are connected to the microcontroller through relay circuits so that the mother board is protected from strong reverse currents in case high voltage appliances are used. The following components constitute the hardware kit used for home automation: A G.S.M. cell phone, A G.S.M. modem (transmitter/receiver), An AT90S8515 microcontroller, Relay Circuits, Reset Circuit, Power Circuit, Max 232 Chip, Serial port and a Serial Bus. The Microcontroller AT90S8515: The AT90S8515 is a low-power CMOS 8-bit microcontroller based on the A VR RISC architecture. By executing powerful instructions in a single clock cycle, the A T90S8515 achieves throughputs approaching 1 MIPS per MHz, allowing the sys- tern designer to optimize power consumption versus processing speed. Fig.2. Block diagram of home automation
  • 3. Home Automation Using Mobile Communication DOI: 10.9790/0661-17651519 www.iosrjournals.org 17 | Page Fig.3. Photograph of practical implementation of the proto-type IV. Coding The algorithm for Home Automation using G.S.M Programming the Hardware Kit) is given below: Step 1: The Pins of port c are defined as the I/O ports. As only 3 devices are being used in our case just the pins 0, 1, 2 are cleared. Step 2: The USART is initialized to work in both transmission and reception modes. This is done by Moving $86 in UCSRC and setting the baudrate at customary value of 12 ($OC) and setting the bits TXEN and RXEN of UCSRB. Also baud rate is doubled for better performance. (By setting the bit U2X of UCSRA) Step 3: The stack pointer is set to the end of SRAM locations, just in case it is required. Step 4: The AT Commands are written into the flash memory which are to be retrieved later. Step 5: The first AT command (AT+CMGF=I) is retrieved from flash memory and transmitted to the G.S.M. modem. This code enables the microcontroller to detect the G.S.M. modem. Step 6: The Microcontroller Awaits for a confirmation code (OK) to proceed further. If an error code(OR) is received, Start over from Step 1 Step 7: The second AT command (AT+CNMI=2, 2, 0, 0, and 0) is retrieved from flash memory and transmitted to the G.S.M. modem. This code enables the microcontroller to set the baud rate of the G.S.M. modem. Step 8: The Microcontroller Awaits for a confirmation code (OK) to proceed further. If an error code(OR) is received, Start over from Step 1 Step 9: The third AT command (AT+CMGR=I) is retrieved from flash memory and transmitted to the G.S.M. modem. This code enables the microcontroller to continuously interact with the G.S.M. modem. Step 10: Retrieve Data from the Modem. Step 11: If a confirmation code (+CMT) is received by it (which signifies an sms received by the modem), the microcontroller can receive the SMS from the Modem. Else goto Step 10 Step 12: Read the next Byte of the message. Step 13: If this byte is equal to $13 (ASCII value of ENTER key) then proceed to next step Else goto Step 12. Step 14: Initialize SRAM. i.e. set the X pair register to $0100 (which is an address Location in SRAM. Step 15: Read the next byte from the SMS message and write it into next byte SRAM. Step 16: Check if this byte is equal to $13 (ASCII value of ENTER key) Step 17: If it is equal go to Step 18 Else go to step 15 Step 18: The SRAM pointer (X pair register) is set back to its original value Step 19: The first byte is stored in a register named dvc, which signifies the code of the device to be controlled. Step 20: The second byte is stored in a register named status, which signifies whether the specified device is to be turned on(1) or off(O). And the SRAM pointer is reset again Step 21: If dvc not equal to '1' (or ASCII $31) Goto Step 25 Step 22: If Status equals '1' (or ASCII $31) Set pin 0 of port C, goto Step 12. Step 23: If Status equals '0' (or ASCII $30) Clear pin 0 of port C, go to Step 12. Step 24: Goto Step 10 Step 25: If dvc not equal to '2' (or ASCII $32) Goto Step 29 Step 26: If Status equals '1' (or ASCII $31) Set pin 1 of port C, go to Step 12 Step 27: If Status equals '0' (or ASCII $30) Clear pin 1 of port C, go to Step 12
  • 4. Home Automation Using Mobile Communication DOI: 10.9790/0661-17651519 www.iosrjournals.org 18 | Page Step 28: Goto Step 10 Step 29: If dvc not equal to '3' (or ASCII $33) Goto Step 33 Step 30: If Status equals '1 ' (or ASCII $31) Set pin 2 of port C, goto Step 12 Step 31: If Status equals '0' (or ASCII $30) Clear pin 2 of port C, goto Step 12 Step 32: Goto Step 10 Step 33: If dvc not equal to '4 ' (or ASCII $32) Goto Step 10 Step 34: If Status equals ' 1 ' (or ASCII $31) Set pins 0,1,2 of port C, go to Step l2 Step 35: If Status equals '0' (or ASCII $30) Clear pins 0,1,2 of port C, goto Step 12 Step 36: Go to Step 10 Step 37: End process. V. Testing The Code We have so far discussed the basic design and working of the proposed Home Automation System using GSM. But any project is not complete without exhaustive testing and debugging, and ours is not any different. The input here in our project, is the SMS that is received by the GSM modem (which was sent by a remote user using a cell phone). The SMS, that is received, is then stored in the SRAM via USART. This is done by the calling a sub-routine "read-msg". Assuming that the SMS sent has only two characters, the first one is stored in a register called 'dvc' and the second one in another register called 'status'. If the SMS sent has more than 2 bytes of data, then only the last two bytes are taken into consideration while implementing the code. Now depending on the SMS sent, the microcontroller controls the appropriate device by reading the values present in dvc and status registers.  if the dvc register is 1, the first device is controlled  if the dvc register is 2, the second device is controlled  if the dvc register is 3, the third device is controlled  if the dvc register is 4, the all the devices are controlled Irrespective of the device, if the status register is 0, the device/devices is/are made to turn OFF. And turn on if the status register is 1. Hence in this way, an SMS that is sent, is stored in intermediate memory locations (registers) and in turn are used to control the actual devices. The practical implementation is shown in Fig.3. The table in the following page depicts the I/O States for various inputs that are given and a result that is achieved. Input Value (SMS Sent) Intermediate Values Output Values Device Register (dvc) Status Register (status) Device 1 Device 2 Device 3 10 1 0 Off NC NC 11 1 1 On NC NC 20 2 0 NC Off NC 21 2 1 NC On NC 30 3 0 NC NC Off 31 3 1 NC NC On 40 4 0 Off Off Off 41 4 1 On On On 00 0 0 NC NC NC 110 1 0 Off NC NC 011 1 1 On NC NC 1011 1 1 On NC NC 1110 1 0 Off NC NC NOTE: NC indicates that the devices remain in the state that it existed in before the SMS was sent. i.e. NO CHANGE VI. Conclusion In the present work, we have operated the designed home automation system to control electrical devices using an embedded circuit located remotely, via an SMS. This however is only a prototype into the technology that has far reaching consequences. Integrating with newer technologies would enable us to have far greater improvements in control and automation technology than what we possess now. In future we would like to extend this work for more additional and minute control features of the home appliances by including the new evolving technologies.
  • 5. Home Automation Using Mobile Communication DOI: 10.9790/0661-17651519 www.iosrjournals.org 19 | Page Acknowledgements Thanks are due to Mr.Subin, Mr. Pavan, Mr. Raghu and Mr. M.V.Rao. The encouragement of Prof. P.S.Raju, Dr. Jandhyala N. Murthy and Dr. K.S.N. Raju is highly acknowledged. Thanks are also due to the Management of GRIET. References 1. Shamim Akhter , Md. Abdur Rahman , Md. Ashrafur Rahaman, Razwan Kader, GSM-SMS technology for controlling home appliances remotely International Journal of Computer Aided Engineering and Technology Issue: Volume 1, Number 3 / 2009 Pages: 388 – 400 2. C. Douligeris, J. Khawand, C. Khawand, “Communications and Control for a Home Automation System” 3. Alheraish ; “Design and Implementation of Home Automation System” 4. A low cost GSM/GPRS based wireless home security system Yanbo Zhao Zhaohui Ye Dept. of Autom., Tsinghua Univ., Beijing Consumer Electronics, IEEE Transactions volume: 54 Issue: 2 On page(s): 567 – 572 5. MobileHomeAutomationAMIABABIDI@1998http://www.lababidi.com/mobile Automation 6. "EMBEDDED SYSTEM DESIGN" GIV ARGIS by FRANK V AHID and TONY 7. "MOBILE CELLULAR TELECOMMUNICATIONS" - Analog and Digital Systems - by- William C.Y. Lee 8. www.gprs-modem.co.uk.html, 9. www.kropla.com/mobilephones.htm, 10. www.wikipedia.org