Professional Documents
Culture Documents
net/publication/269310262
CITATIONS READS
123 7,095
3 authors:
8 PUBLICATIONS 146 CITATIONS
University of Texas at Dallas
6 PUBLICATIONS 207 CITATIONS
SEE PROFILE
SEE PROFILE
Lovely Goyal
Delhi Technological University
9 PUBLICATIONS 149 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Anant Vaibhav on 30 March 2015.
Abstract- Home automation is becoming more and more popular developed a Java based home automation system. The use of
day by day due to its numerous advantages. This can be achieved Java technology, which incorporates built-in network security
by local networking or by remote control. This paper aims at
features, produces a secure solution. However, the system
designing a basic home automation application on Raspberry Pi
requires an intrusive and expensive wired installation and the
through reading the subject of E-mail and the algorithm for the
same has been developed in python environment which is the
use of a high end Pc. Baudel et at (1993) proposed a novel
default programming environment provided by Raspberry Pi.
control network, using hand gestures. The controller uses a
Results show the efficient implementation of proposed algorithm glove to relay hand gestures to the system. Ardam et at (1998)
for home automation. LEDs were used to indicate the switching introduced a phone based remote controller for home and office
action. automation. The system differs in that all communications
occur over a fixed telephone line and not over the Internet. The
Key Words -Raspberry Pi, E-mail, Home Automation, Python. system can be accessed using any telephone that supports dual
tone multiple frequency (DTMF).
I. INTRODUCTION The research available into home automation in public
domain lies predominantly in the academic arena, with little
Home automation refers to the application of computer and industrial research being available in open literature. The
information technology for control of home appliances and adoption of home automation technologies into commercial
domestic features. Its application varies from simple remote systems has been limited, and where available consumer uptake
control of lighting to complex computer/micro-controller based has been slow. The aforementioned systems offer little in the
networks involving varying degrees of intelligence and way of interoperability. Attempts have been made to provide
automation. Home automation results in convenience, energy network interoperability and remote access to home automation
efficiency, and safety benefits leading to improved quality of systems through the development of home gateways. Kushirio
life. et at (1998) proposed a home energy management focused
home gateway, which connects the home network with the
The popularity of network enabled home automation has
Internet. The system was installed in twenty houses in the Tokyo
been increasing greatly in recent years due to simplicity and
area. Saito et at (2000) defined a home gateway as the point of
much higher affordability. Moreover, with the rapid expansion
ingress between a personal area network and a public access
of the Internet, there is the potential for the remote control and
network. Yoon et at (2008) implements a home gateway that
monitoring of such network enabled appliances. However, the
accepts mobile phone signals and activates or deactivates an
new and exciting opportunities to increase the connectivity of
LED representing a home device. Ok et at (2006) proposed a
devices within the home for the purpose of home automation
home gateway based on the OSGI (Open Service Gateway
through internet are yet to be explored.
Initiative), which allows service providers to access home
Several definitions are available in the literature for home
automation systems for administration and maintenance
Automation. Bromley et at (2003) describes home automation
services. These systems have made a significant contribution to
as the "introduction of technology within the home to enhance
the development of a home gateway. However, the existing
the quality of life of its occupants, through the provision of
network infrastructure within the home environment has not
different services such as telehealth, multimedia entertainment
been taken into consideration when selecting the networks for
and energy conservation". There has been significant research
integration with the respective home gateways.
into the field of home automation with many other
communication protocols like bluetooth, hand gestures, DTMF The paper proposes a Raspberry Pi based home automation
etc. The XlO industry standard, developed in 1975 for system through e-mails.
communication between electronic devices, is the oldest
standard identified from the author's review, providing limited
control over household devices through the home's power lines.
Sriskanthan et at (2002) introduced a Bluetooth based home
automation system, consisting of a primary controller and a
number of Bluetooth sub-controllers. AI-Ali et at (2004)
978-1-4799-2995-5/14/$31.00©20 14 IEEE
277
This paper presents a basic application of Raspberry Pi in
home automation control through internet (E-mail) where
subject of the received e-mail is read by the developed algorithm
fed into raspberry Pi and system responds to the corresponding
instructions. The presented system is interactive, efficient and
flexible according to the consumer needs. It immediately replies
the status of work done by raspberry Pi to the consumer. The
proposed system has been tested practically using LEDs as
switching signal indicators, which can be seen in the presented
results. The project can be extended for more applications apart
from switching of home devices like surveillance, power
Fig. I. Raspberry Pi board. monitoring, fauIt monitoring, power control, security etc.
LED (Switch (l
includes but is not limited to education tools, especially the use
3 4 GND
of GPIO (General Purpose Input/Output) which allows
I
I I)
� LED3(Switch3)
automated data acquisition and producing simple digital control GPI04
LED2(Switch2) r-
systems in a school laboratory setting. The most distinctive 5 6
feature of the Raspberry Pi when used for educational purposes
is the GPIO module, which allows interfacing with general
I GPIOl7
7 8
I GPIOl8
I
purpose electronics (Ali etal-2013).
9 10
11 12
Raspberry Pi �
Quick start � 13 14
15 16
Fig. 2. Description of raspberry Pi Board. Fig. 4. Pin layout of raspberry Pi GPIO used in system.
278
The GPIO pins for input and output have been defined to if(len(x)<>O):
control different devices. The Raspberry Pi board has GPIO pin GPIO.setmode(GPIO.BOARD)
layout as shown in fig. 4. Out of the 26 pins, 3 pins have been #s ignal to devices
used to control three devices in this project which have been if(x[O] == 'ONI'):
represented by 3 LEDs for testing the switching signal. For Reply('Turning ON swithch I' , y[O])
practical purposes a relay driver circuit and relays can be GPIO.setup(7,GPIO.OUT)
interfaced with Raspberry Pi and appliances, respectively, for GPIO.output(7,GPI0.HIGH) #Turn ON LEDI
their controlling. if(x[O] == 'ON2'):
Reply('Turning ON switch 2', y[O])
GPIO.setup(II,GPIO.OUT)
GPIO.setup(7,GPIO.OUT)
GPIO.output(7,GPI0.LOW) #Turn OFF LEDI
if(x[O] == 'OFF2'):
Reply('Turning OFF swithch 2', y[O])
GPIO.setup(II,GPIO.OUT)
Implement GPIO.output(II,GPIO.LOW) #Turn OFF LED2
the funct ion
if(x[O] == 'OFF3'):
correspondi
ng to the Reply('Turning OFF swithch 3', y[O])
read subject
GPIO.setup( 12,GPIO.OUT)
and reply
the status to GPIO.output(12,GPI0.LOW) #Turn OFF LED3
the senrer time.sleep(O.S) #call delay
279
·O N l ' w a s s e n t t o r a s p b e r r y P i a c c o u n t
('raspanantsarthak@gmail.com' in this case) from the consumer
account (,anant.vaib@gmail.com' in this case). The algorithm, Go gle
read the subject 'ONI' and turned ON the device 1 represented
by LEDI and instantly replied to sender by an email - Gmail- .... •
'Turning ON switch l' under the subject- 'Home automation
activated'. The code also includes exception handling in case of *NH+* � GoDaddy - Find New Custo mers Online - Rs. 10
controlled by sending e-mails under the subject- 'ON2' & 'ON3' � Circles raspanantsarthak@gmail.com
to turn ON the switch2 & Switch3 and correspondingly - 'OFF2' to anantvaib ....
& 'OFF3" to turn them OFF. So, the results show that home - ..... - Turning OFF swithch 1
automation has been successfully implemented with efficiency Search, chat or SMS
1
technology, Raspberry Pi proves to be a smart, economic and Turning ON swithch
server provided by G-mail. [3 ] Ardam H. and Coskun I., "A remote controller for home and
office appliances by telephone", IEEE Transactions on
Consumer Electronics,vol. 44,no. 4,pp. 1291-1297,1998.
gle
[4 ] Baudel T. and Beaudouin-Lafon M., "Charade: remote control
Go of objects using free-hand gestures", Communications of the
ACM,voI. 36,no. 7,pp. 28-35,1993.
[ 5] Bromley K., Perry M., and Webb G. "Trends in Smart Home
Systems, Connectivity and Services",
Gmail T o More ..
www.nextwave.org.uk,2003.
[6] Kushiro N. , Suzuki S., Nakata M., Takahara H. and Inoue M.,
Soc "Integrated home gateway controller for home energy
C Primary I
.-
.
management system", IEEE International Conference on
Consumer Electronics,pp. 386-387,2003.
Inbox [7] Ok S. and Park H. , "Implementation of initial provisioning
Anant vaibhav (2) ON1 function for home gateway based on open service gateway
Starred
initiative platform", T he 8th International Conference on
Advanced Communication Technology,pp. 1517-1520,2006.
Important Anant vaibhav OFF1
[8 ] Saito T., Tomoda I., Takabatake Y., Ami J. and Teramoto K.,
"Home Gateway Architecture And Its Implementation", IEEE
Sent Mail
Anant vaibhav ON2 International Conference on Consumer Electronics, pp. 194-
195,2000.
[9 ] Sriskanthan N. ,Tan F. and Karande A. ,"Bluetooth based home
Fig. 8. Screen shot of "lNBOX" received on raspberry Pi automation system", Microprocessors and Microsystems,Vol.
26,no. 6,pp. 281-289, 2002.
www.raspberrypi.orgjarchives/tagjraspberry-pi-user-guide
[ 10 ] YoonD. ,BaeD.,Ko H. and Kim H., "Implementation of Home
Gateway and GUI for Control the Home Appliance", T he 9th
International Conference on Advanced Communication
Technology,pp. 1583-1586,2007.
280
View publication stats