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

Project report on gsm based digital notice board
Project report on gsm based digital notice boardProject report on gsm based digital notice board
Project report on gsm based digital notice boardmanish katara
 
Agriculture field motor control system by using Global System for Mobile comm...
Agriculture field motor control system by using Global System for Mobile comm...Agriculture field motor control system by using Global System for Mobile comm...
Agriculture field motor control system by using Global System for Mobile comm...venu452
 
Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...iosrjce
 
Energy scavenging using vibrations from bluetooth controlled DC motor
Energy scavenging using vibrations from bluetooth controlled DC motorEnergy scavenging using vibrations from bluetooth controlled DC motor
Energy scavenging using vibrations from bluetooth controlled DC motorTELKOMNIKA JOURNAL
 
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...journalBEEI
 
multiple input control by sms using GSM technology
multiple input control by sms using GSM technologymultiple input control by sms using GSM technology
multiple input control by sms using GSM technologySachin Singh
 
GSM based e-Notice Board
GSM based e-Notice BoardGSM based e-Notice Board
GSM based e-Notice Boardvivekranu1
 
Application of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless SystemApplication of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless Systemijceronline
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)Aishwary Verma
 
Paper id 24201457
Paper id 24201457Paper id 24201457
Paper id 24201457IJRAT
 
Thesis on Solar Based Hecto Robotic Vehicle
Thesis on Solar Based Hecto Robotic VehicleThesis on Solar Based Hecto Robotic Vehicle
Thesis on Solar Based Hecto Robotic VehicleAkhil Reddy Rondla
 
Ieeepro techno solutions ieee embedded project - multi channel remote contr...
Ieeepro techno solutions   ieee embedded project - multi channel remote contr...Ieeepro techno solutions   ieee embedded project - multi channel remote contr...
Ieeepro techno solutions ieee embedded project - multi channel remote contr...srinivasanece7
 
Industrial automation using gsm (ppt)
Industrial automation using gsm (ppt)Industrial automation using gsm (ppt)
Industrial automation using gsm (ppt)Mahira Banu
 

What's hot (18)

Project report on gsm based digital notice board
Project report on gsm based digital notice boardProject report on gsm based digital notice board
Project report on gsm based digital notice board
 
GSM Based e-Notice Board
GSM Based e-Notice BoardGSM Based e-Notice Board
GSM Based e-Notice Board
 
Agriculture field motor control system by using Global System for Mobile comm...
Agriculture field motor control system by using Global System for Mobile comm...Agriculture field motor control system by using Global System for Mobile comm...
Agriculture field motor control system by using Global System for Mobile comm...
 
GSM CONTROL OF ELECTRICAL APPLIANCES
GSM CONTROL OF ELECTRICAL APPLIANCESGSM CONTROL OF ELECTRICAL APPLIANCES
GSM CONTROL OF ELECTRICAL APPLIANCES
 
G3602050055
G3602050055G3602050055
G3602050055
 
Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...Development of Distributed Mains Monitoring and Switching System for Indus Co...
Development of Distributed Mains Monitoring and Switching System for Indus Co...
 
Gsm based control system
Gsm based control systemGsm based control system
Gsm based control system
 
Energy scavenging using vibrations from bluetooth controlled DC motor
Energy scavenging using vibrations from bluetooth controlled DC motorEnergy scavenging using vibrations from bluetooth controlled DC motor
Energy scavenging using vibrations from bluetooth controlled DC motor
 
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...
Implementation of vehicle ventilation system using NodeMCU ESP8266 for remote...
 
multiple input control by sms using GSM technology
multiple input control by sms using GSM technologymultiple input control by sms using GSM technology
multiple input control by sms using GSM technology
 
GSM based e-Notice Board
GSM based e-Notice BoardGSM based e-Notice Board
GSM based e-Notice Board
 
Application of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless SystemApplication of Microcontroller in Transmitter Section of Wireless System
Application of Microcontroller in Transmitter Section of Wireless System
 
GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)GSM Based Fault Monitoring System (Project)
GSM Based Fault Monitoring System (Project)
 
Paper id 24201457
Paper id 24201457Paper id 24201457
Paper id 24201457
 
Thesis on Solar Based Hecto Robotic Vehicle
Thesis on Solar Based Hecto Robotic VehicleThesis on Solar Based Hecto Robotic Vehicle
Thesis on Solar Based Hecto Robotic Vehicle
 
Ieeepro techno solutions ieee embedded project - multi channel remote contr...
Ieeepro techno solutions   ieee embedded project - multi channel remote contr...Ieeepro techno solutions   ieee embedded project - multi channel remote contr...
Ieeepro techno solutions ieee embedded project - multi channel remote contr...
 
Industrial automation using gsm (ppt)
Industrial automation using gsm (ppt)Industrial automation using gsm (ppt)
Industrial automation using gsm (ppt)
 
ABHAY PPT
ABHAY PPTABHAY PPT
ABHAY PPT
 

Viewers also liked (20)

H012125765
H012125765H012125765
H012125765
 
H017365863
H017365863H017365863
H017365863
 
E1804012536
E1804012536E1804012536
E1804012536
 
K0111199101
K0111199101K0111199101
K0111199101
 
F018123136
F018123136F018123136
F018123136
 
H017545662
H017545662H017545662
H017545662
 
K010418290
K010418290K010418290
K010418290
 
H013154651
H013154651H013154651
H013154651
 
B017140612
B017140612B017140612
B017140612
 
H1802054851
H1802054851H1802054851
H1802054851
 
I017156167
I017156167I017156167
I017156167
 
C017631521
C017631521C017631521
C017631521
 
G012465564
G012465564G012465564
G012465564
 
B013120712
B013120712B013120712
B013120712
 
C010131619
C010131619C010131619
C010131619
 
I010514852
I010514852I010514852
I010514852
 
A New Speech Enhancement Technique to Reduce Residual Noise Using Perceptual ...
A New Speech Enhancement Technique to Reduce Residual Noise Using Perceptual ...A New Speech Enhancement Technique to Reduce Residual Noise Using Perceptual ...
A New Speech Enhancement Technique to Reduce Residual Noise Using Perceptual ...
 
O0124399103
O0124399103O0124399103
O0124399103
 
B012620814
B012620814B012620814
B012620814
 
I1302024147
I1302024147I1302024147
I1302024147
 

Similar to D017651519

Anti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 finalAnti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 finalAshu0711
 
Gsm based wireless notice board Rajneesh
Gsm based wireless notice board RajneeshGsm based wireless notice board Rajneesh
Gsm based wireless notice board RajneeshRAJNEESH KUMAR SALGOTRA
 
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
 
Ijmsr 2016-01
Ijmsr 2016-01Ijmsr 2016-01
Ijmsr 2016-01ijmsr
 
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 rinzindorjej
 
Project ppt
Project pptProject ppt
Project pptAshu0711
 
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.pdfAdmiralkabman
 
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...srinivasanece7
 
home autimation using GSM
home autimation using GSMhome autimation using GSM
home autimation using GSMramraj meena
 
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...ijsrd.com
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET Journal
 
Gsm energy meter
Gsm energy meterGsm energy meter
Gsm energy meterikm104
 
Microcontroller based smart home with security using gsm technology
Microcontroller based smart home with security using gsm technologyMicrocontroller based smart home with security using gsm technology
Microcontroller based smart home with security using gsm technologyeSAT Journals
 
Mini p gsm based display
Mini p gsm based displayMini p gsm based display
Mini p gsm based displayAshu0711
 
Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDijsrd.com
 

Similar to D017651519 (20)

Anti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 finalAnti theftsystemforvechicles1 final
Anti theftsystemforvechicles1 final
 
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...
 
Ijmsr 2016-01
Ijmsr 2016-01Ijmsr 2016-01
Ijmsr 2016-01
 
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
 
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
 
01362503
0136250301362503
01362503
 
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...
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
 
Gsm energy meter
Gsm energy meterGsm energy meter
Gsm energy meter
 
Pawan..bsnl
Pawan..bsnlPawan..bsnl
Pawan..bsnl
 
Microcontroller based smart home with security using gsm technology
Microcontroller based smart home with security using gsm technologyMicrocontroller based smart home with security using gsm technology
Microcontroller based smart home with security using gsm technology
 
Mini p gsm based display
Mini p gsm based displayMini p gsm based display
Mini p gsm based display
 
Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LED
 

More from IOSR Journals (20)

A011140104
A011140104A011140104
A011140104
 
M0111397100
M0111397100M0111397100
M0111397100
 
L011138596
L011138596L011138596
L011138596
 
K011138084
K011138084K011138084
K011138084
 
J011137479
J011137479J011137479
J011137479
 
I011136673
I011136673I011136673
I011136673
 
G011134454
G011134454G011134454
G011134454
 
H011135565
H011135565H011135565
H011135565
 
F011134043
F011134043F011134043
F011134043
 
E011133639
E011133639E011133639
E011133639
 
D011132635
D011132635D011132635
D011132635
 
C011131925
C011131925C011131925
C011131925
 
B011130918
B011130918B011130918
B011130918
 
A011130108
A011130108A011130108
A011130108
 
I011125160
I011125160I011125160
I011125160
 
H011124050
H011124050H011124050
H011124050
 
G011123539
G011123539G011123539
G011123539
 
F011123134
F011123134F011123134
F011123134
 
E011122530
E011122530E011122530
E011122530
 
D011121524
D011121524D011121524
D011121524
 

Recently uploaded

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

Recently uploaded (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

D017651519

  • 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