Sei sulla pagina 1di 6

Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)

IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

Smart Homes using Android


Parth Thakar1, Viraj Savaliya2, Mohit Pant3, Urmil Joshi4, Aditya Desai5 and Ameya Kadam6
1,2,3,4,5
U.G. Student, Department of Electronics and Telecommunication, Dwarkadas J. Sanghavi College of Engineering, Mumbai
4
Assistant Professor, Department of Electronics and Telecommunication, Dwarkadas J. Sanghavi College of Engineering
Email-virajlee58@gmail.com

Abstract: The main objective of this project is to that are being used. To control various appliances, several
develop a simple and cost efficient home automation types of Bluetooth modules are designed. The modules are
system with an Android application which would act as a based on several specifications based on which they perform
remote and make at most use of all the appliances that can the operations that are related to it. These Bluetooth modules,
be connected which would help to simplify daily life. The operate at 2.4 GHz frequency and work within a range of 45
idea of conserving electricity means to avoid wasting it and meters. With the help of this Bluetooth technology, we are
its minimum utilization. This means doing simple things designing a home automation system. The HC-05 Bluetooth
like turning off the electrical appliance when any person is module is used here. Some issues are needed to be considered
about to leave the room etc. The biggest motivation for the before designing, the user should be able to connect to that
people to conserve electricity is for the accumulated Bluetooth module from any device he would wish to. He
savings in their energy bills at the end of the year. Now a should also be able to change the host from one device to
days due to the Unplugging of fans and lights when it is not another and that module should work accordingly. If any fault
in use, most of the energies are wasted. This is happened occurs it should be able to detect it and the system should
mainly because most of the switches are located far away work immediately towards its solution when an instruction is
from the users. Modern houses are gradually shifting to given to improve the nature of wireless technology.
centralized control system, involving wireless controlled
switches. Basically, every single appliance in your house II. SYSTEM OVERVIEW
can be controlled using a remote device. Android based E-
home is an application of embedded system which ‘Android based E-Home’ provides an user friendly
integrates Android operating system, Arduino controller environment through the android app and also a cost efficient,
and the Bluetooth for the implementation of Smart Home. long range solution for the implementation of a smart home
Any Android device can act as a transmitting device. The using less complex circuits. As 70% of the world’s smart
user can control any appliance through a user friendly phones uses Android, it is the most widely used smart phone
mobile application built in Android platform. In order to OS, and hence there is no need for an extra hardware as the
avoid this situation, we have proposed a system using Android smart phone itself acts as a transmitter which in turn
Bluetooth and Android application which help users to contributes to ease of access and efficient operation of the
control the fans and lights within a certain distance from system and cost efficiency. In today’s world, wireless systems
them. Also nowadays all the new homes are shifting are preferred over manual systems. Wireless Home
towards LED lights so by using our designed app and automation system is a system that uses mobile devices to
system we can control the intensity of these lights and also control basic home functions and features via the internet and
apply it in other applications like fan, motor etc. through a mobile device. For reducing the total energy
consumed by some appliances, events can be programmed to
Keywords: Home Automation, Arduino UNO, Bluetooth, be triggered under specific conditions. The system can also
Android. suggest smart task scheduling in addition. Turning on the
lights when a person enters the room can be a demotic in
simple installations. Rooms can sense the presence of a person
I. INTRODUCTION inside and also know who that person is and perhaps set
Due to tremendous growth in the present day technologies, appropriate lighting, temperature, taking into account the day
humans are adapted to these technologies in numerous ways. of the week, the time of day, and other factors, in advanced
The process of transferring information from one point to installations.
another is known as Communication. Wireless communication
or wired serial communication are two its types. Among these The system has the following hardware components: A mobile
wireless communications have proved to be more popular and smart device running Android application which is a
has received huge appreciation from all parts of the world. To Bluetooth controller, an Arduino and a Bluetooth module hc-
provide security to the users, is the main reason behind this. 05 which will connect the respective android device with the
Bluetooth technology stands on the top among the different connected appliance. Distributed cloud platforms and services
wireless technologies as it is able to provide a communication of Google are used to support messaging between the
between devices and users in a simple and efficient manner. In components. Such a design of service and data distribution
our everyday life, there are many types of Bluetooth devices through public and free Google platform makes the system

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1251


Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)
IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

cost-effective. An energy- efficient, remotely controlled, and


highly scalable Smart Home with basic features that safeguard
x HC-05 (Bluetooth Module)
the residents' comfort and security, will be implemented by
this project.

Figure 3.
Figure 1.

We used an Arduino Uno microcontroller to communicate x HC-05 is a Bluetooth serial port protocol module
with an Android application, user interface, as the central which is very easy to use and function which uses
controller. The user can select the appliance to be controlled transparent serial wireless setup connection. Master /
through the app on the mobile device wherein the user can Slave configuration can be used by HC-05 Bluetooth
toggle various functionalities of that appliance. module which is an effective solution for all types of
wireless communication. It has number of hardware
Components used in the systems are: features in it such as having sensitivity of around -
80dBm in which radio frequency can transmit power
up to +4dBm, has integrated antenna as well as an
x Arduino UNO edge connector. It also has programmable input and
output control with UART interface. The default
baud rate is about 9600 and provides auto connect to
last device on power as default and also the pin code
for auto pairing is “1234”.
x 5V Relay with Optocouplar

Figure 2.

Arduino is an easy-to-use hardware and software


based on open-source electronics platform. Inputs
like - light on a sensor, a finger on a button, or online
can be read by the Arduino boards. By sending a set
of instructions to the microcontroller on the board,
you can tell your board what to do. The Arduino
Software (IDE), based on Processing and the Arduino
programming language (based on Wiring), help us to
do send instructions. For intensity based applications
we use analog pins while if the number of appliances Figure 4.
are more we can use Arduino mega which has total of
54 pins

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1252


Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)
IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

A relay is an electrically operated device. It has a controlled For the mechanical part of an electromechanical switch a
system (also called output circuit or output contactor) and a stepper motor is used. When the electrical (Bluetooth app
control system (also called input circuit or input contactor). switch) sends a signal to turn ON / OFF to this switch the
Automatic control circuit uses a relay frequently. It is an motor will rotate in clockwise direction for switching ON and
automatic switch with a low-current signal for controlling a anti-clockwise for switching OFF. The number of steps to be
high-current circuit, in simple terms. Long-term reliability, rotated by the motor in a particular direction is assigned to it
lower inertia of the moving, small volume and stability are in the code designed for system. The main purpose to use a
few of its advantages. Automation technology, power stepper motor is so that we can vary the steps to be rotated as
protection, remote control, sport, reconnaissance and per requirement of the appliance connected to it. This makes it
communication, as well as in devices of electro mechanics and easy to use and flexible for multiple uses. Also in case for
power electronics, a relay is widely used. Generally speaking, more force required for the mechanical task to be performed, a
a relay consists of an induction part which reflects input stepper motor of more torque can be used instead of the
variable like power, current, voltage, temperature, resistance, smaller version of it shown in figure 5.
pressure, frequency, speed and light etc. The actuator module
(output) of relay can energize or de-energize the connection of III. HARDWARE DESIGN
controlled circuit. For coupling and isolating input current, as
well as actuating the output, there is an intermediary part The hardware of the system was designed in such a way
between input part and output part. The controlled output that can make the circuit compact and as efficient as possible.
circuit of relay will be energized or de-energized, when the A simple architecture that uses to construct this home
rated value of input (temperature, current, voltage, etc.) is automation system is shown below. There can be multiple
above the critical value. We can use multiple relays as per the output components used in this system say for an example
requirement of the appliances by the user which are to be Tube light, fan, Charger, Television, blinds etc. In the
automated. proposed system we have used a LED, Fan, Motorized blinds
and a Door lock as the appliance connected.
x Sensors ¾ LED
It turns ON/OFF by sending a command through the app. Also
For security purposes an IR Sensor has been installed at the its intensity can be varied.
door of the house. This sensor basically detects if something
has passed over it. If any object cuts the path of IR then it will ¾ Fan
detect that movement and report it to the system. By using this It can be turned ON/OFF by sending the respective command
sensor we can show that whether the door is closed or open. and also its speed can be varied through the app.
To sense whether it is closed or open we will need 2 IR
sensors near the door. ¾ Blinds
It is connected by a stepper motor and can be controlled to
pull down or pull up the blinds.

x Motors ¾ Door Lock


The door can be locked or unlocked through the app. The
motor is connected to the throw bolts of the lock and basically
rotates the throw bolts to lock or unlock the door.
The block diagram which is shown in Figure 6 displays the
architecture of the proposed system. The android device is
used on the respective user’s phone on which an android app
is developed. A signal is sent on the Bluetooth module via the
developed android app which is connected to it via Bluetooth.
The signal is then being processed by the microcontroller. In
this case it is Arduino UNO which consists of Atmega 328
chip. In the further stage the micro controller which is
connected to the relay sends the respected signal to it. The
relay in this case acts as a switch and as soon as a high signal
arrives it turns ON and similarly if a low signal arrives it gets
switched OFF. We are using a 5V relay which has an
optocouplar included in it and according to our required
appliances we can use n such channels. The relay is connected
Figure 5. to multiple appliances and depending on the no. of appliances
relay should be included. Depending on the input coded
through the microcontroller and the signal passed via the

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1253


Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)
IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

android device the relay will switch ON and switch OFF the
appliance. Multiplexing of the devices is possible as well. The
block diagram shown in figure 7. explains the working of the
designed system. It shows the case when we take the status of
mechanical switch into the consideration. Similarly if we
consider the case when we check the status of Bluetooth App
switch first the block diagram in Figure 7. will change ARDUINO
accordingly.
The figure 7. Is a typical flowchart which shows the working
of the entire system. The arduino is connected to the Bluetooth
application developed using android. It relates the application BLUETOOTH
of the software with the mechanical switches present at the APP
place. For example if we consider initially the mechanical
switch is off and the application switch is also off then the
following appliance will be switched off only but if the
mechanical switch is switched off and the application is turned
on by the user then the appliance will turn on and similarly it
will happen in the other case that is if the mechanical switch is ON MECH OFF
kept on with the application switch on the following appliance S/W
will remain in On status but if the application switch is turned STATUS
off keeping the appliance switch on then the appliance will
turn off.
APP APP
S/W ON S/W OFF

BLUE MICRO
CONTR SUPPLY
TOOTH
MOD OLLER APPLIANCE APPLIANCE
ULE REMAINS REMAINS
ON OFF

APP APP
S/W OFF S/W ON
ANDRO APPLI
ID RELAY ANCES
DEVICE

APPLIANCE APPLIANCE
TURNS TURNS
OFF ON

Figure 6. Figure 7.

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1254


Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)
IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

IV. SOFTWARE DESIGN respective on/off states. The shared preferences file is edited
In order to operate the Arduino, a separate android app has each time the app is started and each time the user moves out
been developed in order to provide the user with a sleek, of the appliance screen in any manner. The intensity of let’s
modern and easy to use interface so that the user won’t have to say LEDs in this case can be changed from low to high
go through the nitty-gritty details on how the Arduino circuit according to the users requirement.
actually works. In order to develop the Android app, the The app gets paired with the HC-05 device through a
Android Studio IDE was used and the code has been written in Bluetooth adapter. A socket connection is thereby established
pure Java while the design elements have been written in pure and the MAC address of the HC-05 device is obtained which
XML. The app basically acts as a remote control which sends is used by the app to send signals to the Arduino. The signals
signals to the Arduino circuit via Bluetooth. The app has been are put in an Output Stream object and sent via the signal. The
designed keeping a minimal approach in mind such that the Arduino has been coded in such a manner that for different
user can easily figure out how the remote control actually integer values, the relays will be activated / deactivated.
works. Suppose if the user switches on one of the lights, then the
On starting up the app, the user is greeted with a splash screen Output Stream will send a ‘1’ over the signal which is
in which the logo of the app along with the name has been received by the Arduino. The code in the Arduino is such that
displayed after which the user is taken to the main screen. for an input 1, the first relay circuit is activated and so on.
Recycler view and card view navigation allows smooth Hence, for each appliance, we are transmitting certain integer
scrolling all over the main screen. Here in each card, the values over the signal as a means to indicate to the Arduino
number of appliances as well as the name of the appliance, the operation that is to be performed.
which is basically its type, is displayed. On clicking any of the
cards, the user is taken to the appliance screen. The appliance
screen is a simple page with a number of toggle buttons
corresponding to the various relays of the Arduino as well as
the intensity part in whichever appliance it is required.

Figure 9.

Thus, we have a smooth and a polished app with an easy to


use UI which is used to communicate with the Arduino device
Via Bluetooth. The Smart home system proposed above and
the smart home app, both of them are developed and been
Figure 8. tested successfully which had a fruitful result. The
demonstration of the appliances makes the system feasible,
Whenever the user toggles the given appliance from one state easy to use and efficient. Features such as low cost, automatic
to the next, the toggle button changes its colour to pink, which control through the self-developed app which can be changed
is the thematic colour of our app, indicating that the appliance according to personal usage which makes it unique.
is currently working. The states of the toggle button are stored Also security plays an important role in a smart home. For the
in a shared preferences file such that even when the user quits purpose of security, an electromechanical door lock can be
the app and restarts it, the toggle buttons will stay in their used which can controlled manually as well as by Bluetooth

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1255


Proceedings of the 2nd International Conference on Trends in Electronics and Informatics (ICOEI 2018)
IEEE Conference Record: # 42666; IEEE Xplore ISBN:978-1-5386-3570-4

switch. The motor connected to the lock rotates to lock or Running many such models at a time aids to the security of the
unlock the door when a command is given via android app. residents. Also, there are various type of appliances in a house,
The sensor connected near the door will detect whether the the code can be changed accordingly to access the various
door is open or closed. features of it. As home automation technology is evolving,
there are several factors which can play a crucial role. Factors
like the Internet of Things, open source automation, Wi-fi
module, Z wave, Zigbee, Xteon, Insteon and Li-Fi can modify
or enhance the working of the concept of automated homes.

VII. REFERENCES

1. M. R. Kamarudin, M. A. F., and M. Yusof, "Low


Cost Smart HomeAutomation via Microsoft Speech
Recognition," International Journal of Engineering
& Computer Science, vol. 13, pp. 6-11, June 2013.
2. N. Sriskanthan and Tan Karande, “Bluetooth Based
Home Automation Systems,” Journal of
Microprocessors and Microsystems, 2002, Vol. 26,
pp. 281-289
3. H. Brooke Stauffer “Smart Enabling System for
Home automation”, 1991, IEEE Transactions on
Consumer Electronics, Vol. 37(2), pp. 29-35.
4. Vaishnavi S. Gunge, Pratibha S. Yalagi, “Smart
Home Automation: A Literature Review”, IJCA,
RTDM 2016
5. Bluetooth Remote Home Automation System Using
Android Application.
Figure 10. http://www.theijes.com/papers/v2-i1/X021014 901
53. pdf
V. CONCLUSION 6. Arduino Home Automation Projects by Marco
The system will facilitate users to pair any sort of Android Schwartz
devices with Bluetooth Sensor integrated on board with the 7. Rajeev Piyare and Tazil M. (2011) “Bluetooth Based
respective appliances present in the room of the house, office Home Automation System using Cell Phone,” 2011
or any place where it can be applied. The designed system is IEEE International Symposium on Consumer
useful for the physically disabled people, people having a bed Electron-ics, pp.192-195
rest and also old people for whom getting up from the chair or 8. Salma Nasrin, P J Radcliffe, "Novel protocol enables
bed just to switch on the appliance is not possible, so can be DIY home automation", Telecommunication
useful for the purpose since it is reliable and fast. Networks and Applications Conference (ATNAC)
2014 Australasian, pp. 212-216, 2014.
VI. FUTURE SCOPE AND SCALABILITY 9. E.M.C Wong, “A Phone-Based Remote Controller
for Home and Office Automation,” IEEE
Home automation has been through a lot of changes within Transactions on Consumer Electronics, vol. 40, no.
all these years. It is not only for the people who are famous or 1, pp.28-34, Feb. 1994.
who are wealthy but nowadays they have become pretty 10. Various Electric Motors and comparison
affordable and is being adopted by households with different https://www.slideshare.net/etawahup/various-
types income level, be it low or high doesn’t matter. The electric-motors-and-comparison
scalability of these can extended at the user end to varoius 11. Zigbee Technology and its application in wireless
type of inputs. The user can send the command by gestures, home automation system.
voice, buttons, eyes, etc. The transmitter end i.e. the user end
12. A. Alheraish, “Design and Implementation of Home
has to be designed or coded accordingly to detect a gesture
Automation System,” IEEE Transactions on Consumer
drawn, eye movement, button pressed, voices received, etc. Electronics, vol. 50 , no. 4, pp.1087-1092, Nov. 2004
For a further advanced version of smart home, sensors like
temperature, smoke, PIR, IR, etc can be installed in the 13. Different Types of Sensors with their Applications
houses. The project of a smart home is not restricted to a https://www.edgefx.in/different-types-of-sensors-
single model in it, multiple models can be taken into picture. with-applications

978-1-5386-3570-4/18/$31.00 ©2018 IEEE 1256

Potrebbero piacerti anche