Smart GSM Based Home Automation
Smart GSM Based Home Automation
Smart GSM Based Home Automation
Rozita Teymourzadeh, CEng, Member IEEE/IET, Salah Addin Ahmed, Kok Wai Chan, and Mok Vee Hoong
Faculty of Engineering, Technology & Built Environment
UCSI University
Kuala Lumpur, Malaysia
rozita@ucsiuniversity.edu.my
Abstract — This research work investigates the potential of system for home appliances. However, a few limitations for
‘Full Home Control’, which is the aim of the Home Automation the system include not being able to control multiple
Systems in near future. The analysis and implementation of the appliances concurrently and the home automations system
home automation technology using Global System for Mobile could not verify the status of the appliances. ElKamchouchi
Communication (GSM) modem to control home appliances such
and ElShafee [6] presented the design and prototype
as light, conditional system, and security system via Short
Message Service (SMS) text messages is presented in this paper. implementation of basic home automation system based on
The proposed research work is focused on functionality of the SMS technology using AT89C55 Atmel microcontroller. The
GSM protocol, which allows the user to control the target system microcontroller acts as the bridge between the GSM network
away from residential using the frequency bandwidths. The and sensors of the home automation system. Further
concept of serial communication and AT-commands has been researches have been conducted to analyze the performance of
applied towards development of the smart GSM-based home other home automation control system [14-16]. Internet and
automation system. Home owners will be able to receive feedback wireless communications have also been utilized in parallel
status of any home appliances under control whether switched on with GSM for home automations [17].
or off remotely from their mobile phones. PIC16F887
Among the cellular technologies, GSM network is
microcontroller with the integration of GSM provides the smart
automated house system with the desired baud rate of 9600 bps.
preferred for the communication between the home appliances
The proposed prototype of GSM based home automation system and the user due to its wide spread coverage [8,9] which makes
was implemented and tested with maximum of four loads and the whole system online for almost all the time. Another
shows the accuracy of ≥98%. advantage of using the GSM network in home automation is its
high security infrastructure, which provides maximum
Keywords — Home automation; Global System for Mobile reliability whereby other people cannot monitor the
Communication (GSM); Short Message Service (SMS); PIC information sent or received. Hence, this research work
microcontroller; RS232 standard implements SMS based control for home appliances using the
GSM architecture without accessing the local network.
I. INTRODUCTION
In recent years, there has been a growing interest among II. SYSTEM REALIZATION
consumers in the smart home concept [1]. Smart homes The design of our proposed smart GSM-based home
contain multiple, connected devices such as home automation system is given in Fig. 1. The architecture consists
entertainment consoles, security systems, lighting, access of mobile phone and GSM modem. In the proposed system
control systems and surveillance. Intelligent home automation design, incoming SMS message is sent from the user phone to
system is incorporated into smart homes to provide comfort, the GSM modem as a text message via cellular network. The
convenience, and security to home owners [2-4]. Home GSM modem then sends the commands in text mode to the
automation system represents and reports the status of the PIC microcontroller using an RS232 interface. The RS232
connected devices in an intuitive, user-friendly interface voltage levels are at ±12V whereas both the microcontroller
allowing the user to interact and control various devices with input and output operates at 0V to +5V. Since RS232 is not
the touch of a few buttons. Some of the major communication compatible with microcontroller, MAX232 is utilized to
technologies used by today’s home automation system [5-7] enable the communication between both the GSM modem and
include Bluetooth, WiMAX and Wireless LAN (Wi-Fi), PIC microcontroller by converting RS232 level signals to TTL
Zigbee, and Global System for Mobile Communication level signal. Outgoing message from the system containing the
(GSM). home appliances status is delivered to the mobile phone
All GSM is one of the most widely used cellular through GSM modem.
technologies in the world [8,9]. With the increase in the
number of GSM subscribers, research and development [10-
12] is heavily supported in further investigating the GSM
implementation. In 2009, Das, Sanaullah, et. al. [13]
developed a cell phone based remote management and control
Fig. 1. Stage Realization.
The 8-bit PIC16F887 microcontroller generally consists of Fig. 2. Simulation of the proposed GSM based home automation system.
timers, Analog to Digital Converters (ADCs), and Universal
Synchronous Asynchronous Receiver Transmitter (USART). III. IMPLEMENTATION
In the proposed research work, the microcontroller receives As shown in Fig. 3, waveform is generated in the digital
instructions and decodes them to give device address and oscilloscope when the command is transmitted from
command, then sends corresponding signals to the driver of PIC16F887 to GSM modem. This command will execute the
the power circuit. In addition, the microcontroller ensures dual deletion of the first message from the SIM card memory. The
independent operation action to turn on the device or switch it program reaches to a sleep state waiting for the new incoming
off. A feedback status of any devices under control whether text messages and then compares the text message with the
switched on or off will be provided by the microcontroller. stored commands. If both the received text message and the
The RS-232 interface standard defines the electrical and stored commands match, then, it will execute the intended
mechanical details of the interface between Data Terminal command, which is turning on or off the output terminal.
Equipment (DTE) and Data Communications Equipment
(DCE), which employ serial binary data interchange. The
current version of the standard refers to DCE as Data Circuit
terminating Equipment. Physically, interfacing between the
PIC16F887 and GSM modem was implemented using RS232
standard installed on Max232.
Since the system design has not included a battery, an
external power supply is connected to the system to drive
sufficient amount of current through the circuit connections.
Relays had been connected to the output loads for a stable
electrical control because these relays can provide feeding for
different voltage level loads. Hence, the output selection
becomes easier at any voltage. Fig. 3. AT+CMGD=1 command to delete SMS message.
Fig. 2 demonstrates the simulation of the proposed GSM A simulation result was performed to observe the response
based home automation system being implemented in several while communicating with the GSM modem. The AT
stages. The PIC16F887 was simulated with the GSM modem command was sent from PIC16F887 to the GSM modem as the
by connecting it to the physical ports on the PC. MAX232 was program starts up, then the response is received from the GSM
placed to ensure proper transmission of data between the two modem after very short period of time that does not exceed 500
terminals. Virtual terminal monitors the text sent from, and to microseconds which is fast enough to detect the incoming
the PIC16F887 while checking the transmission process and message from the modem. The display was used to show when
testing the algorithm. The waveform of the transmitted and the PIC is transmitting the signal.
received messages is monitored from the oscilloscope. While From Fig. 4, the PIC16F887 serves as a transmitter initially
simulating the GSM modem, the “COMPIM” clock physically and then, it receives the response from modem. The duration
tests the response of the GSM modem by connecting it to a between the text sent and response received is less than 500
physical port on PC. microseconds. Hence, the delay time is ignored because the
data sent are limited to certain commands that do not exceed 4
or 5 characters. However, if the amount of data transferred is
very huge, the response delay time is very critical and must be
studied and analyzed in detail. Furthermore, the delay that must
be controlled for this project is for GSM communication that is
mostly governed by the SMS protocol and does not exceed 2 or
3 seconds as had been tested practically.
Fig. 4. Waveform of transceiver text message.