SlideShare a Scribd company logo
1 of 5
Download to read offline
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

What's hot

android app based home automation
android app based home automationandroid app based home automation
android app based home automation
Ashikur Rahman
 
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSMSMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
Anurag Segekar
 

What's hot (20)

My Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation SystemMy Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation System
 
Smart Home Automation
Smart Home AutomationSmart Home Automation
Smart Home Automation
 
android app based home automation
android app based home automationandroid app based home automation
android app based home automation
 
Home automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phoneHome automation under wi fi through android apps from any smart phone
Home automation under wi fi through android apps from any smart phone
 
Home automisation finalppt
Home automisation finalpptHome automisation finalppt
Home automisation finalppt
 
Raspberry Pi controlled Home Automation
Raspberry Pi controlled Home AutomationRaspberry Pi controlled Home Automation
Raspberry Pi controlled Home Automation
 
Home automation using FPGA controller
Home automation  using FPGA controller Home automation  using FPGA controller
Home automation using FPGA controller
 
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE
 
Final year report on remote control of home appliances via bluetooth
Final year report on remote control of home appliances via bluetoothFinal year report on remote control of home appliances via bluetooth
Final year report on remote control of home appliances via bluetooth
 
Home security automation
Home security automationHome security automation
Home security automation
 
Android Based Home Automation Control
Android Based Home Automation ControlAndroid Based Home Automation Control
Android Based Home Automation Control
 
Project report on home automation using Arduino
Project report on home automation using Arduino Project report on home automation using Arduino
Project report on home automation using Arduino
 
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSMSMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
SMART HOME AUTOMATION USING ANDROID, BLUETOOTH & GSM
 
Home Automation by Android Application based Remote Control
Home Automation by Android Application based Remote ControlHome Automation by Android Application based Remote Control
Home Automation by Android Application based Remote Control
 
Smart Home System Using Android Application
Smart Home System Using Android ApplicationSmart Home System Using Android Application
Smart Home System Using Android Application
 
ANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILE
ANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILEANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILE
ANDROID BASED HOME APPLIANCE CONTROL USING APP IN MOBILE
 
Home automation using android mobiles
Home automation using android mobilesHome automation using android mobiles
Home automation using android mobiles
 
Home automation voice control
Home automation voice controlHome automation voice control
Home automation voice control
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation system
 
A minor project report HOME AUTOMATION USING MOBILE PHONES
A minor project report HOME AUTOMATION  USING  MOBILE PHONESA minor project report HOME AUTOMATION  USING  MOBILE PHONES
A minor project report HOME AUTOMATION USING MOBILE PHONES
 

Similar to Home Automation Using Mobile Communication

IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD Editor
 
Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...
Iaetsd Iaetsd
 
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
Admiralkabman
 
Wireless electronic notice board using gsm technolgy
Wireless electronic notice board using gsm technolgyWireless electronic notice board using gsm technolgy
Wireless electronic notice board using gsm technolgy
dhanshri_deshmukh
 
Paper id 24201457
Paper id 24201457Paper id 24201457
Paper id 24201457
IJRAT
 

Similar to Home Automation Using Mobile Communication (20)

Anti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 finalAnti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 final
 
Home Security System Using Gsm Modem
Home Security System Using Gsm ModemHome Security System Using Gsm Modem
Home Security System Using Gsm Modem
 
Gsm based wireless notice board Rajneesh
Gsm based wireless notice board RajneeshGsm based wireless notice board Rajneesh
Gsm based wireless notice board Rajneesh
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
GSM BASED e-NOTICE BOARD SRS
GSM BASED e-NOTICE BOARD SRSGSM BASED e-NOTICE BOARD SRS
GSM BASED e-NOTICE BOARD SRS
 
Ijmsr 2016-01
Ijmsr 2016-01Ijmsr 2016-01
Ijmsr 2016-01
 
Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...Iirdem implementation of smart homes and industrial automation system with se...
Iirdem implementation of smart homes and industrial automation system with se...
 
Design and Implementation of A GSM-Based Scrolling Message Display Board
Design and Implementation of A GSM-Based Scrolling Message Display Board Design and Implementation of A GSM-Based Scrolling Message Display Board
Design and Implementation of A GSM-Based Scrolling Message Display Board
 
Project ppt
Project pptProject ppt
Project ppt
 
Mg3620962101
Mg3620962101Mg3620962101
Mg3620962101
 
GSM Report_2013
GSM Report_2013GSM Report_2013
GSM Report_2013
 
GSM Report_2013
GSM Report_2013GSM Report_2013
GSM Report_2013
 
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
337387524-136445446-SMS-BASED-VOTING-MACHINE-Project-Report-pdf.pdf
 
Wireless electronic notice board using gsm technolgy
Wireless electronic notice board using gsm technolgyWireless electronic notice board using gsm technolgy
Wireless electronic notice board using gsm technolgy
 
01362503
0136250301362503
01362503
 
Paper id 24201457
Paper id 24201457Paper id 24201457
Paper id 24201457
 
Ieeepro techno solutions 2013 ieee embedded project prepaid electricity bil...
Ieeepro techno solutions   2013 ieee embedded project prepaid electricity bil...Ieeepro techno solutions   2013 ieee embedded project prepaid electricity bil...
Ieeepro techno solutions 2013 ieee embedded project prepaid electricity bil...
 
B1803050722
B1803050722B1803050722
B1803050722
 
home autimation using GSM
home autimation using GSMhome autimation using GSM
home autimation using GSM
 
Design and Implementation of Vehicle Gaseous Fuel Leakage Detection System us...
Design and Implementation of Vehicle Gaseous Fuel Leakage Detection System us...Design and Implementation of Vehicle Gaseous Fuel Leakage Detection System us...
Design and Implementation of Vehicle Gaseous Fuel Leakage Detection System us...
 

More from iosrjce

More from iosrjce (20)

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

Recently uploaded

+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 

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