Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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
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.
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.
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.
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.
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