Home Automation and Power Monitoring System
Home Automation and Power Monitoring System
Home Automation and Power Monitoring System
Monitoring System
Submitted by:
Kanwal Saif 2013-EE-057
Abdul Ahad 2013-EE-061
Wajeeha Sadaf 2013-EE-155
Saad Aleem 2013-EE-186
Bachelor of Science
in
Electrical Engineering.
Director
Undergraduate Studies
i
Declaration
We declare that the work contained in this thesis is our own, except where explicitly
stated otherwise. In addition this work has not been submitted to obtain another degree
or professional qualification.
Kanwal Saif
Signature:
Date:
Abdul Ahad
Signature:
Date:
Wajeeha Sadaf
Signature:
Date:
Saad Aleem
Signature:
Date:
ii
Acknowledgments
In the Name of Allah, the Most Merciful, the Most Compassionate all praise to Allah,
the Lord of the worlds. First and foremost, we must acknowledge our limitless thanks to
Allah, the Ever-Magnificent; the Ever-Lasting, for His help and bless. This work would
have never become truth, without His guidance.
Terminate this thesis also means a decisive and clearly stated finalizing step to a number
of activities that have been occupied our personal bandwidth for a long time. We
also want to thank those who have encouraged, assisted, and supported us during the
preparation and assembling our assignment for our B.Sc. Electrical Engineering task to
be done in a sophisticated way. Our project has been an enterprise for us throughout
our work and it remains a challenging and informative experience which allow us to
explore more knowledge about modern technology, throughout our journey we learned a
lot from it and this assignment opens a new door of intrusiveness in different dimensions,
this remarkable achievement and great advancement in our project would not have been
possible to do without the support and guidance that we received from many people.
We would like to say a very big thank you to our academic supervisor Dr. Muhammad
Asghar Saqib for all the support, appreciation and encouragement, he gave us, during
the whole duration of our work we spent on my project undertaking our field work.
Without his guidance and continuous support and feedback this project would not have
been achievable for us. During our tenure, he contributed to a rewarding experience in
our assignment activity by giving us intellectual freedom in our project, engaging us in
new ideas, and demanding a high quality of work in all my endeavours. Furthermore, he
shows a full interest in our project and remains active throughout the working session
and influence us to work on challenging topics regarding this project and shared insights.
iii
We dedicate this project to our families and friends. We are
specially grateful to our parents who encouraged us all the way and
built our confidence that we can complete this project in time.
iv
Contents
Acknowledgments iii
List of Figures ix
Abbreviations x
Abstract xi
1 Introduction 1
1.1 Project Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.2 Aims . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.3 Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.4 Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.5 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Literature Review 3
2.1 Automation System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 GSM Based Home Automation System . . . . . . . . . . . . . . . . . . . . 4
2.4 Bluetooth Based Home Automation System . . . . . . . . . . . . . . . . . 4
2.5 ZigBee Based Home Automation System . . . . . . . . . . . . . . . . . . . 5
2.6 Wi-Fi Based Home Automation System . . . . . . . . . . . . . . . . . . . 6
2.7 Power Monitoring System . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.8 Parts of the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.8.1 CT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.8.1.1 Primary Characteristics of CT . . . . . . . . . . . . . . . 7
2.8.1.2 CTs Secondary Rating . . . . . . . . . . . . . . . . . . . 7
2.8.1.3 Primary Rating of CTs . . . . . . . . . . . . . . . . . . . 7
2.8.1.4 Types of CTs . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.8.1.5 Toroidal CTs . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.8.1.6 Bushing CTs . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.8.1.7 Bar Type CTs . . . . . . . . . . . . . . . . . . . . . . . . 8
2.8.2 VT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.8.2.1 Construction of VTs . . . . . . . . . . . . . . . . . . . . . 9
2.8.2.2 Types of VTs . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.8.3 Relay Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.8.4 Ethernet Shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
v
Contents vi
2.8.5 Micro-controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.8.6 Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.9 Induction Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.9.1 3-phase Induction Motor . . . . . . . . . . . . . . . . . . . . . . . . 10
2.9.1.1 Types of Three Phase Induction Motor . . . . . . . . . . 10
2.9.1.2 Working Principle . . . . . . . . . . . . . . . . . . . . . . 11
2.9.2 Induction Generator . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.9.2.1 Principle of Operation . . . . . . . . . . . . . . . . . . . . 11
2.9.2.2 Induction Generator Applications . . . . . . . . . . . . . 11
A Wi-Fi Technology 37
A.1 Evolution of Wi-Fi Technology . . . . . . . . . . . . . . . . . . . . . . . . 37
A.2 What is Wi-Fi? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
A.3 How Wi-Fi Works? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
A.4 Available Wi-Fi Standards . . . . . . . . . . . . . . . . . . . . . . . . . . 38
A.5 How to Connect Wi-Fi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
References 43
List of Figures
ix
Abbreviations
x
Abstract
Home automation is concerned with the wireless control of different types of load re-
motely. The main control system implements wireless technology to provide remote
access from smart phone using an android application with user friendly GUI. Host
of communication method between the user and main control system is Wi-Fi. Power
monitoring of different types of load is also performed which allow the user to calculate
power consumption of each load and this is the key parameter which differentiate this
project from other home automation projects. Thus, the system intended to control and
provide power monitoring for electrical appliances and devices in house with relatively
low cost design, user-friendly interface, high efficiency and ease of installation.
Chapter 1
Introduction
With an immense increase in crime rate, enforce us to implement such a security system
that protect us against these situations. Home Automation system came up with this
idea to allow us to live a peaceful and easy life with complete comfort in a protective
zone. This is not only the advantage of this technology it also saves electricity. So we are
convinced to implement this technology in our house in-order to improve our lifestyle.
Home automation system is cheap, energy-saving technology both for the user and elec-
tricity.
Power monitoring with HASs further increases the reliability and security of the system
because power monitoring system completely allow the user to know about their electri-
cal load energy demand and how to lower their energy consumption with full facilities
means, Power monitoring system provides better understanding for how to control and
monitor each load electrical demand. What we can summarize about HAS and Power
monitoring system technology is that it is completely reliable, highly secure, easy to use
and economical which is the main target of our project.
1.1.2 Aims
IP and Bluetooth based home automation technologies have many limitations in them.
Using Bluetooth technology user can only control its home appliances within a narrow
1
Chapter 1. Introduction 2
range of communication which is not good at all because this technology is not applica-
ble for all situations.
IP based home automation system technology involves extra complexities in software
development and it is also expensive for the user. This project aims to fulfil user re-
quirements at a very low cost with user friendly android application.
1.1.3 Challenges
Home automation systems experience small problems in its proper implementation,
which involves, inflexibility, trouble in acquiring security and poor capability to con-
trol the operation. The purpose of our project is to design and implement a home
automation system using IoT that is capable of handling and automating most of the
house appliances over a simple web interface. By using Wi-Fi technology to interconnect
its scatter sensors to home automation server the recommended system has a significant
versatility. This will diminish the disposal price and gradually enhance the efficiency of
system, and system rearrangement.
1.1.4 Requirements
The control of device should be fully based on software. In this way users will have an
easy approach to their loads. This will allow user to access their electrical loads from a
standard user friendly platform like web portal or mobile devices.
1.1.5 Overview
Chapter 1 discusses the introduction of the project, its motivations, objectives, aims and
challenges. Chapter 2 gives the literature review of the project. In chapter 3, the problem
statement is explained and motivations behind the project are expressed. Chapter 4
gives the architecture and complete implementation of the solution. Both hardware and
software parts are explained in detail. Chapter 5 presents the main techniques of the
project. Chapter 6 gives the concluding remarks and future directions of the project.
Chapter 2
Literature Review
This section provides different technologies used for the establishment of Home Automa-
tion Systems with their specifications, advantages and limitations involved.
2.2 History
With a great enhancement in electronics and telecommunication technologies intensely
enlarge the utilization of these field sciences. These engineering sciences allow us to
design extremely useful Home Automation System technology for the betterment of life.
Home automation is not a newly invented technology for the first time automation sys-
tem technology was formulated by Nikola Tesla in 1785. He designed a remote-controlled
boat which can be controlled with the help of wireless networking system, radio waves
signals transmitted to the boat in order to establish a communication channel between
the remote control systems and boat wirelessly. In 1892 automated telephone switch-
board was developed with some improvement in wireless communication technology to
communicate over large distances. After six years further advancement was performed
in AS to implement this technology in large scale and first wireless-controlled floor mill
factory was established in 1898. These achievements was not the end of AS technology
that was just the beginning of this technology in wireless communication system because
the invention of computers in 1940 by George Stibitz proved that AS technology has
completely established its strong roots in the race of modern technology. He developed
Complex Number Calculator. In 1958 computer chip was developed by Robert Noyce
and Jack Kilby. They both use different semiconductor material for the device to be in-
tegrated on a single crystal chip. Mouse was another invention developed in 1964 which
3
Chapter 2. Literature Review 4
acts like a wireless sensor device. In earlies 1970 for the very first time Home automation
system technology idea was presented and conceived to be implemented to control the
household appliances remotely. That was the beginning of HAS technology.[1]
CT has two types of secondary rating according to IEEE and IEC standards.
1. 5A (IEEE Standard)
2. 1A (IEC Standard)
Primary ratings of CTs depends upon the design requirement and available in wide
range for example 100A, 150A, 200A etc.
A common current transformer construction is one in which the power system phase
wire passed through the hole in the center of a ring which is called a window this forms
a primary winding. A second insulated wire is then wound around the core and then
brought around the relay for measurement this is called the secondary winding.
A busing type CT is referred to as that is built into another power system device such
as the circuit breaker. Terminals are provided on these devices to permit connecting the
CT to a relay.
A Bar type CT has a solid bar that passes through the annular core to form the primary
winding of the CT. The primary phase wires of the power system are then connected
directly to these bars to complete the connections.
2.8.2 VT
Voltage transformer or Potential transformers are those instrument transformer which
converts the physical signal into electrical signal in terms of voltage.
Chapter 2. Literature Review 9
2.8.5 Micro-controller
There are many micro controllers available in the market with different architecture and
different specifications. Arduino Uno is the most used micro controller in the world
since it’s cheap and easy to program. Arduino has further various variants depending
on the internal hardware and software specifications. For our project, we decided to use
Arduino UNO. Arduino UNO is open source micro controller. It allows to upload any
program in supportive language, which then can interact with real world applications.
Common usage of Arduino includes reading sensors values and control things like motors,
lights, switches, in accordance with the incoming sensed values. Arduino is providing
users infinite possibilities. Arduino is based on ATmega328. It is provided with digital
and analog pins in which digital pins can be programmed to be ab output or input.
14 digital pins are provided out of which, 6 pins can be used for generating PWM as
output. Analog input pins are 6 in number. Arduino is built in with 16 MHz crystal
oscillator, USB connection, power jack, ICSP header and a reset button. Arduino Uno
distinguishes itself from other in a specific manner which is, it does not use the FTD
USB-to-serial driver chip but it engages Atmega8U2 programmed as a USB-to-serial
converter, instead. DC current per pin is usually rated at 40mA. 5 Volts and 3.3 Volts
pin is also provided, as a built in voltage source. For 3.3 volts pin, currents is 50mA. 32
kilobytes Flash memory is present in Arduino Uno.[5]
2.8.6 Router
Ethernet shield is connected with the router and it enables the user to enhance the data
flow rate. In this way user will have a faster communication channel with the home
appliance and can control them within few seconds.
An induction generator produces electrical power when its rotor is turn faster than the
synchronous speed. In generator operation the prime mover drives the rotor above the
synchronous speed. The stator flux induces current in the rotor, but since the opposing
rotor flux is cutting stator coil, an active current is produced in the stator.
12
Chapter 3. Motivation and Problem Statement 13
time management so there is need of present situation to monitor our houses. This
can be only achieved with the help of Home Automation and Power monitoring system
technology.
Implementation and
Experimentation
14
Chapter 4. Implementation and Experimentation 15
Arduino Ethernet Shield 2 enables Arduino board to connect with the internet. Ethernet
shield connects to Arduino board uses wire headers which extend through the shield.
This arrangement keeps the pin layout intact and enables another shield to be stacked
on top. Ethernet shield is built in with standard RJ45 Ethernet jack. Reset button on
the shield resets both connections, W5500 and the Arduino board. Shield contains a
number of LEDs which provides user with different information. [4]
4.1.5 Methodology
Home automation system is concerned with switching the required devices ON/OFF,
without using the mechanical switches. Switching is being controlled by software de-
signed switches or simply by the help of android application. This process will provide
user with the freedom that being anywhere in the world, he/she can operate the device
without physically approaching to the devices location. For this purpose, Arduino board
is used with integration of other few devices.
Arduino board is first programmed with the simple sketch which enables it to connect it
with the internet. For this purpose, an Ethernet shield is interfaced with Arduino and
shield itself is connected to Wi-Fi router with the help of RJ45 cable.
First step is to connect Ethernet shield with the Arduino board. First user will have
to get a shield that is compatible with the micro-controller. As the board used in this
project is Arduino UNO, Arduino Ethernet shield 2 is compatible with the respective
board. Connecting the Ethernet shield is as quite simple as connecting header pins.
Make sure that you are holding the both boards facing in the same direction. Then
just insert the header pins connected with the Ethernet shield into the ports available
in Arduino board. Arduino communicates with the Arduino Ethernet shield (both the
W5500 and SD card) using the SPI port. Digital pins used for the connections with
the Arduino Uno board are 10, 11, 12, and 13 on the Uno. Out of these pins, pin 10 is
used to select the W550. These pins cannot be used for general I/O. Connection can be
achieved either by using SD card or W5500. Both connection are made with the help of
SPI cable but at same time only one can be active. In order to do this with the SD card,
we have to set pin 4 as an output and write a digital HIGH to it and for the W5500, we
have to set digital pin 10 as a HIGH output. In our project we used the later method.
Next step is connecting the Ethernet shield with the router with internet connectivity.
Finally you have to upload a sketch on Arduino board. The sketch can decide whether
Ethernet shield is used as a web server to load an HTML page or functions as a chat
server. We use the Ethernet shield as a chat server and protocol we followed is MQTT.
4.1.8 Operation
Arduino IDE is used as a basic software to upload the sketches to Arduino UNO board.
The sketch enables the Arduino to connect to the internet using Ethernet shield. Once
it is connected to the internet, the Ethernet shield as set as a chat server, it will serve as
a message transmission carrier to the host server and from the host server to the board.
The host server we used is Teleduino. Teleduino makes your Ethernet enabled Arduino
or internet enabled Arduino board into a powerful and versatile tool for interacting
with load devices over the internet .Once your Teleduino is configured, it automatically
connects itself to the Teleduino server when powered on. The Teleduino server translates
instructions received from the internet into actions on the Teleduino device. This host
server allow user to sign in and for every board the user uses, they assign a specific key.
This key goes to the Arduino sketch and Ethernet shield and android application use
this key to communicate with the host server.
The android application will send the signal using internet connection to host server,
hence uploading the values to host server. Host server which is interfaced with the
Arduino board using MQTT protocol send the commands to Arduino board, which
is similar to uploading a sketch on Arduino. For example if the icon is pressed on
application, it will define the pin mode as output on the board and make it HIGH or
low depending upon the un energized state of relay connections. In our project it will
define the respective pin mode as output and set it as LOW. LOW signal will close the
output circuit and thus energizing the appliance. The respective icon in the application
would now be appeared as dark and would show is status as ON or live. When the load
has to be turned OFF, pressing the icon again will now set the output pin as HIGH and
this HIGH signal will make the output circuitry of relay open or breaks the current.
Chapter 4. Implementation and Experimentation 18
4.2.1 CT
CT we used is, YHDC SCT-013-000. CT ratio is 1:1800 . This current sensor has split
core construction. It has a clip type shaped which can be hanged to any wire and thus
can measure its corresponding current. It measure the original currents reduced by 1800
times and send that signal to Arduino board. It is connected in series with the circuit.
4.2.2 PT
We use the former type potential transformer. The rating of PT we used is 220/9 V.
4.2.3 Amplifier
Since the current transformer lowers the currents value by the factor of 1800, the current
which has been sensed, is very low. Hence in order for it to work with the Arduino board
with no ambiguity, an external amplifier circuit has been used to amplify the output of
CT with the gain of 100. For this purpose, 741 IC is used which is op-amp. For the
working of op-amp, 12 V battery is required to be supplied to +VCC and VCC. The
CT signal is applied to amplifier and after the amplifier, the voltage is applied to divider
Chapter 4. Implementation and Experimentation 19
circuit for offsetting it. Only CT signal requires the amplification to get the output of
about 1 V peak.
4.2.6 12 V DC Battery
12 V DC is required in various steps during our project such as to provide the DC
voltage to op-amp circuit and then for additional circuitry such as providing offset to
the signals. Hence built in DC source is used and it is converting 220 AC into 12 volts
DC supply. It is integrated as a part of PCB board.
4.2.7 Methodology
CT is connected in series with the electrical device and PT is applied in parallel ar-
rangement. The signal from CT is then applied to amplification circuit with the gain of
100. The signal after amplification is then applied to voltage divider circuit to get the
signal in the limit of Arduino board and creating required offset. After that the signal
is processed through the zero detection circuit to create corresponding square wave for
the detection of zero and then it is supplied to Arduino analog pin to get the value of
current. Two pins are used for two signals, one is analog and other is digital. For mea-
suring the current value, analog pin is supplied with the signal and for the calculation
of power factor, the square wave signal is provided to digital pin whose pin mode is
defined as input. Similarly for the PT the signal is large enough to be recognized by the
Arduino so amplification is not needed. Signal from PT is supplied to divider circuit to
Chapter 4. Implementation and Experimentation 20
get the value with in ranged limit (5 V max peak) and the provided offset. Same as that
of CT, two pins are used, one for calculating the value of voltage and other for power
factor measurement. For the sake of power factor calculation, Arduino is sketched with
interruption based program. Interruption is made on rising edge of square wave for each
signal on separate pins an then time interval between the 2 interrupts are measured and
then converted into real time and then into degrees and finally the cosine function is
applied.
4.3.1 Methodology
The control and monitoring of induction machine is divided into two arrangements. One
is for the switching of 3-phase induction machine and other is monitoring the power.
4.3.1.1 Switching
For the switching purpose, 3 relay unit board with higher rating is used such the rating
should be minimum of (100 A). The machine we are trying to automate is 3-phase
induction motor, with 5 hp (horse power) and 3.73 kW. Hence starting current would be
under 100 A. The basic problem in switching is to maintain the balanced condition in all
three phases. Hence all the three phases are connected to separate relay. But the input
signal coming from the digital pin of Arduino board is common. When the user requires
to operate the machine or turn it on, the single signal from Arduino Uno will make all
the relay board to complete the connection of all three phases, hence maintaining the
balanced condition.
4.3.1.2 Monitoring
For the monitoring purpose, we use the single phase only. As the induction machine will
operate under balanced condition only, and under unbalanced condition, the protection
system will cause the circuit breaker with main to trip. Hence under balanced condition,
Chapter 4. Implementation and Experimentation 21
the single phase measurement will be authentic. Current and voltage of other phases
can be calculated by using formulas and creating 120 phase shift between 3 phases.
CT signal is processed same as before, to the amplification circuit, then divider circuit
and creating offset and then carried it two the two separate pins on Arduino board. One
to the analog pin and other to the digital pin.
Chapter 5
22
Chapter 5. Main Techniques Used in the Project 23
(SCADA) , but uses other connected devices such as PLC,s and different PID con-
trollers to link with the process plant or machinery. SCADA computer system controls
the different links of workers which facilitates us with the application of checking and
commanding the processes. However, field sensors and actuators are connected with
different types of complex modules and devices so that real-time control logic or con-
troller calculations can be performed. The SCADA concept was created as a global way
of distant reach to a different type of local control devices, which could be from diver-
sified producers who can facilitate us with access through globally known automation
technique. Actually, large SCADA systems have earned a great deal of importance in
networked control systems but is using way too many means for interfacing with plant.
5.2.2 MQIsdp
A protocol that is used to connect SCADA devices to broker by the application of Web-
Sphere MQ telemetry. Whereas wide variety of devices such as mobile phones, distant
sensors, actuators and other telemetry devices leveraging WebSphere MQ. Is real time
accessed by telemetry.
The SCADA protocol and the MQ Integrator SCADA Device Protocol (MQIsdp) are
combined for what is now known as the MQ Telemetry Transport (MQTT). And Stan-
dard ports reserved with IANA for MQTT use is TCP/IP port 1883. Also,TCP/IP port
8883 is standardized, for using MQTT over SSL.
An application based on telemetry, on command from the user, send all data related to
your health to the related doctor.
After the brief overview of your data, telemetry alerts you about your physical condition.
In the figure,R1 and R2 value is adjusted according to the load. Greater the load, greater
the signal hence to limit it to -2.5 from 2.5 Volts,R1 value is increased to make it suitable
for Arduino analog pin.
By using that portion of code we have calculated the RMS value of current and voltage
using emon library as it is clearly seen that code has nullify the effects of divider circuit
and offsetting
Figure 5.7: Code for calculating rms value of current and voltage.
To measure power factor, first we have to detect the zero crossings of both the signals
coming from CT and PT .when these zero crossings are detected using the zero detection
circuit as shown in figure
Chapter 5. Main Techniques Used in the Project 28
Problem in this circuit is that it can only detect zeros of signals whose peak is 4V.whereas
our signal from CT when connected three loads has peak about 3V.Hence to eliminate
this problem an amplifier circuit is used with the gain of 10 using op-amp in non-inverting
configuration.
After the amplification, signal is given to zero detector circuit. Input of the whole circuit
from Ct and output is shown in figure as follows:
Both the signals from the above circuit is divided to set its level to 5V and the fed to
Arduino Uno digital pins. These signals are as follows
To increase the power consumption on the output side, more loads are connected. As
clear input power is also increased. So the current taken by the stator of motor also
increased.in order to switch on and off these three wires of three phase by soft switching,
high current rating relays are required. We have used 12 V and 100 A relays for switching
purposes as shown in figure
Now as this relay is operated with 12 Volt signal, a simple electronic circuit using BJT
having 12 V DC at collector, digital pin from Arduino at base and ground at emitter
through a resistor of suitable value is interfaced between Arduino and a relay for switch-
ing of all three phases separately but controlled by a single digital pin.
When no load is connected through the generator, steady rms current taken is 0.5A
power consumed at no load is 92 watt.
When single bulb is connected, steady rms current taken is 2.7 A and power consumed
at that load is 182 watt.
When three bulbs and a fan is connected with the generator, steady rms current taken
is 2.419 A and power consumed is 461 Watt.
5.6.1.1 History
Google’s Mark Friedman and MIT Professor Hal Abelson co-drove the improvement of
App Inventor while Hal was on holiday at Google in 2009. Other early Google design
givers were Sharon Perl, Liz Looney, and Ellen Spertus. Application Inventor keeps
running as a web benefit regulated by staff at MIT’s Center for Mobile Learning - a
coordinated effort of MIT’s Computer Science and Artificial Intelligence Laboratory
(CSAIL) and the MIT Media Lab.
5.6.1.2 Goals
TinyWebDB is an App Inventor part that enables you to store information steadily in
a database on the web. Since the information is put away on the web rather than a
specific telephone, TinyWebDB can be utilized to encourage correspondence amongst
telephones and applications (e.g., multi-player amusements).
Chapter 5. Main Techniques Used in the Project 32
TinyWebDB is for conversing with exceptional App Inventor web benefits that store
information in an indistinguishable organization from TinyDB.
It is not the same as the Web part, which is for speaking with any sort of API and
doesn’t have the StoreValue/GetValue charges. In the TinyWebDB arrangement, Get-
Value is again called from inside Screen.Initialize, yet take note of that it gives back no
information. The Tiny WebDB. Get Value shut doesn’t have anything turning out the
left that can be connected to an opening. Rather, the Get Value just sends a demand
to the web. In the end, the information will arrive, and after that the Got Value oc-
casion handler is activated. When it is, the Tag from WebDB gives you the tag of the
demand and the value From WebDB is the information that was asked for (the rundown
of notes). As should be obvious, the information is prepared in a comparable way to the
TinyDB arrangement.
Web Application Inventor has a part called Web which gives you the usefulness to send
and bring information from a server or a site through GET and POST asks. This part
can unravel both JSON and HTML organized information. We will compose an applica-
tion called iRead that will request that a client sort in a full or halfway book name and
inquiry Google’s database of books utilizing Books API and recover the most significant
book information. We will parse the Title and Author of the book, we will get the
picture URL of the book cover, lastly the book URL which can be propelled through a
program.
5.6.4 Notifier
The Notifier segment shows ready exchanges, messages, and brief alarms, and makes
Android log passages through the accompanying techniques:
Show Message Dialog: shows a message which the client must expel by squeezing a
catch.
Show Choose Dialog: shows a message two catches to give the client a chance to pick
one of two reactions, for instance, yes or no, after which the after choosing occasion is
raised.
Show Text Dialog: gives the client a chance to enter message in light of the message,
after which the After Text Input occasion is raised.
Show Alert: shows a transitory ready that leaves without anyone else’s input before
long.
Show Progress Dialog: shows a caution with a stacking spinner that can’t be expelled
by the client. It must be rejected by utilizing the Dismiss Progress Dialog piece.
Dismiss Progress Dialog: Dismisses the advance discourse shown by Show Progress
Dialog.
Log Error: logs a mistake message to the Android log.
Log Info: logs a data message to the Android log.
Log Warning: logs a notice message to the Android log.
You can likewise utilize the text style tag to indicate shading, for instance, ¡font color=”blue”¿.
A portion of the accessible shading names are water, dark, blue, fuchsia, green, dim,
lime, maroon, naval force, olive, purple, red, silver, greenish blue, white, and yellow Now
using above explained blocks, we implemented our application by which we can control
loads as well as monitor their power consumption. In this interface, as we click the
analog button, Label analog value change to show the power consumption of the loads.
Interface of app is as follow up till present.
Chapter 5. Main Techniques Used in the Project 34
35
Chapter 6. Conclusion and Future Direction 36
automatically detect any leak, smoke or CO in the house. Thus providing a high quality
life style for general public, especially for the elderly and disabled.
6.6 Conclusion
The thesis has demonstrated the working and implementation of home automation. The
various advantages and its applications in the industry have been discussed. Automa-
tion and centralized control has been achieved in the project. Resistive and inductive
loads are controlled and monitored through the Arduino based hardware. The Wi-Fi
technology and android app used in the project makes it convenient and efficient for
the user to control all the loads from a long distance. The project enables the user to
monitor the energy consumption based on the readings obtained through the current
and potential transformers used in the hardware. Moreover the control of the induction
motor of 3MW has also been achieved.
Appendix A
Wi-Fi Technology
37
Appendix A. Wi-Fi Technology 38
a new letter is headed to the end of the designation this normally equate to an increase
in potential bandwidth and security protocols with the standards.
Wireless network use a radio frequency wave that are transmitted in 2.4 GHz to 5 GHz
spectrum that are very similar to television or cell phone signals when computers are
connected to a wireless network its adapter will encode information into a radio signal
and then transmit it using an antenna that is normally built into screen of new laptops.
Wireless signals can also be received via an external antenna plugged into the USB slot
of computer the Wi-Fi router for the network that receives this information decodes it
and send to the internet through a wired high speed connection.
This appendix provides the snapshots of complete design. The appendix contains Ar-
duino Uno board, Ethernet Shield and Router. It also contains the PCB layout of
Arduino Uno board.
39
Appendix B. Hardware Board and Schematics 40
Mb/s).
RX: flashes when the shield receives data.
TX: flashes when the shield sends data.
COLL: flashes when network collisions are detected.[4]
B.4 Totolink
N100RE is a wireless router designed to enable the user to access the Internet by secured
Wi-Fi connection. The features of totolink N100RE are as follows:
Complies with IEEE 802.11n/g/b standards for 2.4 GHz Wireless LAN.
Up to 150 Mbps data rate for Wi-Fi network.
Supports DHCP/Static IP/PPPoE broadband functions.
Provides 64/128-bit WEP, WPA, WPA2 and WPA-Mixed security.
Connects to secure network easily and fast using WPS.
Supports IP, Port, MAC, URL filtering and Port Forwarding.
Multi-SSID allows user to create multiple SSIDs according to their needs.
Supports VLAN function for IPTV and other internet services.
Appendix B. Hardware Board and Schematics 42
[1] Mohid Rehan and M Salim Beg. EVOLUTION OF HOME AUTOMATION TECH-
NOLOGY, Uploaded Date: 1 September 2015.
[2] Rich Picking Armando Roy Delgado and Vic Grout. Remote-controlled home au-
tomation systems with different network technologies. URL https://www.glyndwr.
ac.uk/groutv/papers/p5.pdf.
[3] Wisam Nader. Real-time power monitoring, home automation and sustainability.
Technical report.
43