Thesis
Thesis
1.1 Introduction:
` The development of Internet of Things (IoT), smart
power meters and smart electrical appliances are used by the
consumers to closely monitor the energy consumed and to determine
their consumption. This is made probable to capture and analyse sensor
data in real time. The proposed system uses IoT infrastructure to
monitor, smartly measure and schedule the consumption of electricity
resources in real time. Energy management platform is a great example
of using Internet of Things for energy monitoring and management. This
solution transforms the way people and companies use and control
electricity, electrical devices, loads and power storage. It consists of a
smart hardware, software and data tools. Once equipped with this
system, a house, office building or any other facility turns into a smart
space with a rich set of features and capabilities for power consumption
monitoring and control.
The energy consumption can be monitored by using
an electric device called an energy meter. The cost and the regular
usage of power consumption are informed to the user to overcome high
bill usage. The energy meter shows the amount of units consumed and
transfers the data to both the customer and to the electrical board so
this helps in reducing man-power. The user can check their power usage
from anywhere and at any time interval. The IoT is used to turn on/turn
off the household appliances using relay and Arduino interfacing. The
objective of this system is to monitor the amount of electricity
consumed.
The concept of the Internet of Things was invented by
and coined by Peter T. Lewis in September 1985 in a speech he
delivered at a U.S. Federal Communications Commission (FCC)
supported session at the Congressional Black Caucus 15th Legislative
Conference. Internet of Things (IoT) is the inter-networking of physical
1
devices, vehicles (also referred to as "connected devices" and "smart
devices"), buildings, and other items embedded with electronics,
software, sensors, actuators, and network connectivity that enable these
objects to collect and exchange data. In 2013 the Global Standards
Initiative on Internet of Things (IoT-GSI) defined the IoT as "the
infrastructure of the information society".
The IoT allows objects to be sensed or controlled
remotely across existing network infrastructure, creating opportunities
for more direct integration of the physical world into computer-based
systems, and resulting in improved efficiency, accuracy and economic
benefit in addition to reduced human intervention. When IoT is
augmented with sensors and actuators, the technology becomes an
instance of the more general class of cyber-physical systems, which also
encompasses technologies such as smart grids, smart homes, intelligent
transportation and smart cities. "Things" in the IoT sense, can refer to a
wide variety of devices such as heart monitoring plants, biochip
transponders on farm animals, electric clams in coastal waters,
automobiles with built-in sensors, DNA analysis devices for
environmental/food/pathogen monitoring or field operation devices that
assist fire fighters in search and rescue operations. Legal scholars
suggest looking at "Things" as an "inextricable mixture of hardware,
software, data and service".
Current market examples include home automation
such as the control and automation of lighting, heating (like smart
thermostat), ventilation, air conditioning systems, and appliances such
as washer/dryers, robotic vacuums, air purifiers, ovens or
refrigerators/freezers that use Wi-Fi for remote monitoring. The
platforms which supports IoT to store and retrieve data from things
using any protocol over the Internet or via a Local Area Network are:
Freeboard, XOBXOB, Adafruit IO, Thing Speak, Lab of Things, Konekt,
KaaIoT Platform, Temboo, The Things, IBM Cloud, Open Sensors, Smart
Living, Google Cloud Platform, Jump Wire.
2
1.2 Objective:
The main objective of the project is to monitoring the
energy and controlling the electrical appliances by using
microcontrollers and Arduino. The experimental study is carried out by
performing load test using different domestic loads and observed.
3
2. OVERVIEW OF THE PROJECT
2.1 Overview:
Awareness of electricity consumption in the home or
building is a first step towards saving energy. The combination of
alternative energy and pervasive technologies for monitoring and
controlling energy consumption is a powerful vehicle for reducing
energy demand. With effective feedback about energy consumption and
control of household appliances, users can be motivated and
encouraged to change their behaviour on energy use such as turning off
lights or reducing heat. These small changes in behaviour can lead to
significant energy savings. The proposed system can monitor and
measure electricity usage in real-time. With the proposed system, users
can remotely control real-time electricity usage through web and other
mobile devices such as smart phones or smart pads.
In this project, a power consumption and monitoring
system of the area that continuously monitor the consumption of
consumer is proposed. If this consumption is beyond the limit of the
meter in that case it cut off the power supply of the whole area. This
work proposes a real-time electricity bill for quantifying the energy used
in domestic facilities. The presented prototype is extremely compact
and satisfies safety measures to be used by anyone in a domestic
installation. As a reinforcement measure for avoiding large consumption
bills, the system is programmed to send messages to the user,
remembering if the estimated consumption is large.
2.2 Advantages:
The advantages of energy consumption monitoring and controlling are:
Managing all of your home devices from at any place.
4
Maximizing home security.
2.3 Disadvantages:
The disadvantages of energy consumption monitoring and controlling are:
Significant installation costs.
Security issues.
2.4 Applications:
1.Lighting
2.Bathrooms
IoT technologies in the bathroom can make your home routine more
entertaining and convenient. Smart mirrors can connect to other devices
5
like laptops and smartphones, recognize the faces of family members in
front of them, and display the information those people find interesting,
such as news articles, weather forecasts, or specific websites. Special
sensors can monitor movement in the bathroom, and turn off the water
automatically if no one is there.
3.Kitchen
With artificial intelligence technology, IoT devices can make the cooking
process safer and easier. Smart sensors can ensure that everything is OK
in your kitchen: they can check for smoke and carbon monoxide, or that
the temperature and humidity levels are right.
4.Security Systems
When you leave your home, do you always check that the doors and
windows are closed, and that the TV, computer, and electrical appliances
are off Smart security systems will do that for you with the help of special
sensors.
5.Safety Sensors
Safety sensors are smart devices that can identify when there is
something wrong at your home. They can notify users of potential threats
immediately and even take necessary action to prevent them. All they
need is a smartphone connected to the Internet and sensors installed at
their home.
6.Temperature Control
7.Home Routine
6
make, order you a meal, schedule an appointment, and book you a flight
or a hotel.
3.LITERATURE SURVEY
7
system used energy meter with microcontroller to monitor electricity
usage and transmits energy consumed details and cost to server. Users
check hourly or daily usage of electricity and their cost online using
simple web applications.
In the paper, “IoT-Based Electricity Bill for Domestic Applications”, Emilio
Barocio Espejo et.al discussed this bill is a low-cost tool that takes
advantage of the IoT technology for generating an easy reading real-
time bill allowing the customers to constantly review and administrate
their energy consumption. Using low-cost sensors and the electronic
board Particle® Photon, an energy meter is proposed.
In the paper, “Automatic Energy Control and Monitoring System For
Building”, Hnin Nu Thaung et.al discussed how the system enables users
to save energy by monitoring and controlling appliances through
terminals. This paper gives an overview of sensor technology and
wireless networks in the development of an intelligent energy
management system for buildings. This technology has ample potential
to change the way we live and work. ZigBee is used as a communication
medium in building intelligent energy management system.
8
4.METHODOLOGY
4.1 Introduction:
The smart energy meter monitoring system of the
block diagram consists of Arduino, energy meter, Wi-Fi module and IoT,
Relay and transformer. Energy meter used here is clamp energy meter.
A 230V AC mains is the input given to the transformer and AC mains is
converted to low voltage. Energy meter measures the live current,
voltage and power in terms of KW-h. Microcontroller reads these
parameters and send it to the cloud. NodeMCU is a Wi-Fi device which
has a microcontroller in it. This connects the local router through IoT.
The status of these parameters can be obtained through mobile or
laptop. Wi-Fi is used for data communication. Wi-Fi is configured with
Arduino.
The Data from the Energy meter is sent to Arduino
and to Wi-Fi module and it reaches the user’s mobile phone. In this
system the user can switch on/off the mains or home appliances from
their Android smart phone app. The Wi-Fi module trans and receives the
data from cloud and sends to Arduino and the Arduino controls the relay
to switch on and off the circuit of the home.
4.2 Real -time home automation monitoring:
In home network the various electrical and electronics
appliances are connected through internet to the home server. The
measured data from the devices has to be stored and the storage
function is carried out by server for analysis purpose. The gadgets may
be a wearable for aged or elderly people where the device monitors the
persons residing at home. The actuators are bridged to these devices
with the support of technology such as Zigbee, Z-wave etc. to send
signals to the web server to execute required actions.
Thus, actuators send instructions based on its location
of server using either Zigbee or Bluetooth. The electronic devices are
9
made to perform specific task when even the user presence is
unavailable at home location by accessing the home server using
different data network. Thus, context aware based system engrosses
main parts namely application unit taken.
Central controller-based
This system meliorates the security of homes by
providing a secured control mode. But it is very complicated because it
must provide answers to the questions who can decide and who can
have a control and who can access control information.
10
farm animals, electric clams in coastal waters, automobiles with built in
sensors, DNA analysis devices for environmental/food/pathogen
monitoring or field operation devices that assist fire fighters in search
and rescue operations. Legal scholars suggest to look at
1."Things" as an "inextricable mixture of hardware, software, data and
service".
2 These devices collect useful data with the help of various existing
technologies and then autonomously flow the data between other
devices. Current market examples include home automation such as the
control and automation of lighting, heating (like smart thermostat),
ventilation, air conditioning systems, and appliances such as
washer/dryers, robotic vacuums, air purifiers, ovens or
refrigerators/freezers that use Wi-Fi for remote monitoring. The
platforms which support IoT to store and retrieve data from things using
any protocol over the Internet or via a Local Area
Network are: Freeboard, XOBXOB, Adafruit IO, Thing Speak, Lab of
Things, Konekt, KaaIoT Platform, Temboo, The Things, IBM Cloud, Open
Sensors, Smart Living, Google Cloud Platform, Jump Wire.
11
figure 4.4 these capabilities have both generic and specific capabilities
that can cut across multiple layers.The application layer contains IoT
applications which require certain support capabilities from the
underlying layer to function. The service and application support layer
consist of generic support capabilities which can be used by IoT
applications, examples of such capabilities could be data processing or
storage.The specific support capabilities are those other than the
generic capabilities which are required to create support for diversified
applications. The network layer is divided into networking and transport
capabilities. The networking capabilities provide relevant control
functions for network connectivity, while the transport capabilities focus
on the ransport of IoT service and application specific data.
12
4.5 Basic Building Blocks of IoT
To develop an IoT application, we need several key
building blocks. Figure 4.5 shows the different components involved in
an IoT application. The connected device – The actual physical device
we want to control and manage. It needs to be connected somehow,
either wired or wireless. The local user -This is the user who wants to
interact directly with the device to either control it, or receive
information regarding its operation.The router – This is the part that
connects the device to the Internet. The connection can be via ADSL,
cable, cellular, etc.
13
4.6 Internet of Things Communication Modes
From an operational perspective, it is useful to think
about how IoT devices connect and communicate in terms of their
technical communication models. Device-to-Device Communications The
device-to-device communication model represents two or more devices
that directly connect and communicate between one another, rather
than through an intermediary application server. These devices
communicate over many types of networks, including IP networks or the
Internet. Often, however these devices use protocols like Bluetooth,40
Z-Wave,41 or ZigBee42 to establish direct device-to-device
communications.
14
5.HARDWARE DESCRIPTION
5.1 INTRODUCTION:
For the measurement of the energy consumed, IoT-
Based Measurement System is proposed by designing a non-intrusive
system with compact characteristics and easy installation. Block
Diagram for Real Time Monitoring System is shown in figure 5.1.
15
present. The transistor is used for switching on and off loads. A rectifier
is used to convert AC to DC voltage to give the supply to the Arduino.
Voltage regulator is used to maintain constant voltage of 12V and
capacitive filter is used to reduce ripples in the DC output supply of the
rectifier. then these DC supply used as supply to the Arduino.
16
Fig 5.3: Transformer
When it comes to the operation voltage, the step-up
transformer application can be roughly divided into two groups: LV
(voltages up to 1 KV) and HV application (voltages above 1 KV).
17
to control a circuit by an independent low-power signal, or where several
circuits must be controlled by one signal. Relays were first used in long-
distance telegraph circuits as signal repeaters: they refresh the signal
coming in from one circuit by transmitting it on another circuit. Relays
were used extensively in telephone exchanges and early computers to
perform logical operations.
The traditional form of a relay uses an electromagnet to
close or open the contacts, but other operating principles have been
invented, such as in solid-state relays which use semiconductor
properties for control without relying on moving parts. Relays with
calibrated operating characteristics and sometimes multiple operating
coils are used to protect electrical circuits from overload or faults; in
modern electric power systems these functions are performed by digital
instruments still called protective relays.
18
usage during peak high-cost periods and off-peak, lower-cost, periods.
Also, in some area’s meters have relays for demand response load
shedding during peak load periods.
19
The bridge rectifier circuit used for converting AC to DC is as shown in
the figure 5.6. The input signal is applied across terminals A and B and
the output DC signal is obtained across the load resistor RL connected
between terminals C and D.
20
During the negative half-cycle, terminal B becomes positive
while the terminal A becomes negative. This causes diodes D2 and D4 to
become forward biased and diode D1 and D3 to be reverse biased.The
current flow during the negative half cycle is shown in the figure 5.8
21
Certain vacuum tubes have advantages over transistors at very high
operating frequencies or high operating voltages. Many types of
transistors are made to standardized specifications by multiple
manufacturers.
22
Before we dive into their significance, let's take a moment to familiarize
ourselves with terminology that is used to describe diodes.
Electrons - Negatively-charged carriers of current
Holes - Positively-charged carriers of current
Current - Result of the flow of charged carriers - both holes and
electrons
Doping - Addition of impurities into a semiconductor to form regions
rich in electrons or holes - either electron donors (like Phosphorous) or
electron acceptors (like Boron) are added into the semiconductor.
n-region - Negatively-charged area of the semiconductor into which
electron donor atoms are added so that there is an extra electron that is
free to float away per donor atom
p-region - Positively-charged area of the semiconductor into which
electronic acceptor atoms are added so that there is an extra space or
hole created per acceptor atom
PN JUNCTION - Region where the p- and n-regions meet allowing
electrons and holes diffuse across
Top: PN junction of a diode; Bottom: symbol for a diode
Top: PN junction of a diode; bottom: symbol for a diode
Biasing - Process of adding an outside voltage source to make the
diode behave a certain way
Forward-biased - Connecting a voltage source such that its positive
terminal connects to the p-region and negative terminal to the n-region
of the diode; voltage is greater at the tail end compared to the pointed
end of the diode symbol
Reverse-biased - Connecting a voltage source such that its positive
terminal connects to the n-region and negative terminal to the p-region
of the diode; voltage is higher at the pointed end when compared to the
tail end of the diode symbol
23
5.8 Arduino:
Arduino is an open-source electronics platform based on
easy-to-use hardware and software. Arduino boards are able to read
inputs - light on a sensor, a finger on a button, or a Twitter message -
and turn it into an output - activating a motor, turning on an LED,
publishing something online. You can tell your board what to do by
sending a set of instructions to the microcontroller on the board. To do
so you use the Arduino programming language (based on Wiring), and
the Arduino Software (IDE), based on Processing.
5.9 Wi-Fi-module:
The ESP8266 Wi-Fi Module is a self-contained SOC with
integrated TCP/IP protocol stack that can give any microcontroller
access to your Wi-Fi network. The ESP8266 is capable of either hosting
an application or offloading all Wi-Fi networking functions from another
24
application processor. Each ESP8266 module comes pre-programmed
with an AT command set firmware, meaning, you can simply hook this
up to your Arduino device and get about as much Wi-Fi-ability as a Wi-Fi
Shield offers (and that's just out of the box)! The ESP8266 module is an
extremely cost-effective board with a huge, and ever growing,
community.
25
comes with on-board logic level converter and 3.3V LDO regulator for
easy interfacing to Arduino boards.
Features:
802.11 b/g/n
Wi-Fi Direct (P2P), soft-AP
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching
network
Integrated PLLs, regulators, DCXO and power management units
+19.5dBm output power in 802.11b mode
Power down leakage current of <10uA
Integrated low power 32-bit CPU could be used as application
processor
SDIO 1.1 / 2.0, SPI, UART
STBC, 1×1 MIMO, 2×1 MIMO
A-MPDU & A-MSDU aggregation & 0.4ms guard interval
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)
Default baud rate: 115200
26
Current sensors are based on either open or closed
loop hall effect technology. A closed-loop sensor has a coil that is
actively driven to produce a magnetic field that opposes the field
produced by the current being sensed. The hall sensor is used as a null-
detecting device, and the output signal is proportional to the current
being driven into the coil, which is proportional to the current being
measured. In an open loop current sensor, the magnetic flux created by
the primary current is concentrated in a magnetic circuit and measured
using a hall device. The output from the hall device is the signal
conditioned to provide an exact (instantaneous) representation of the
primary current.
27
Imagine you manage an underground mine and need
to ensure a certain level of airflow reaches the miners working below.
Your engineers have determined that a 17amp flow will generate
enough breathable air for the miners. You attach a current sensor to a
controller on the wall of the mine to measure the amount of air flow. If
the air flow sits at 17amp, your digital switch will stay on or your
analogy will maintain a steady number. If the air flow goes below
17amp, an alarm will sound.
28
machines; they minimize variations in voltage in order to protect the
equipment using the electricity. In power-distribution systems the
regulators are either in the substations or on the feeder lines
themselves. Two types of regulators are used: step regulators, in which
switches regulate the current supply, and induction regulators, in which
an induction motor supplies a secondary, continually adjusted voltage to
even out current variations in the feeder line.
29
waveform referred to as a sawtooth wave. The sawtooth wave is a
convenient linear approximation to the actual waveform, which is
exponential for both charge and discharge. The crests of the sawtooth
waves will be more rounded when the DC resistance of the transformer
secondary is higher.
30
circuit is a high-frequency capacitive filter. Here, the flow of current will
be in the least resistance direction.
31
6. SOFTWARE DESCRIPTION
32
website, buy all the components as per the design specification,
assemble all the components, and make your own board.
33
6.2 HARDWARE AND SOFTWARE:
Arduino boards are generally based on microcontrollers from
Atmel Corporation like 8, 16 or 32 bit AVR architecture based
microcontrollers. The important feature of the Arduino boards is the
standard connectors. Using these connectors, we can connect the
Arduino board to other devices like LEDs or add-on modules called
Shields.
34
problem and swap in with a new one. Arduino UNO comes with different
features and capabilities. As mentioned earlier, the microcontroller used
in UNO is ATmega328P, which is an 8-bit microcontroller based on the
AVR architecture.
35
Pins 10, 11, 12 and 13 (SS, MOSI, MISO AND SCK respectively) are
used for SPI communication.
Pin 13 has a built-in LED connected to it. When the pin is HIGH, the
LED is turned on and when the pin is LOW, it is turned off.
36
The UNO board has on-board voltage regulators for 5V
and 3.3V, which can be used as power supply for small external devices
like LEDs. This is a brief introduction to Arduino and Arduino UNO board.
In the next tutorial, we’ll see the installation and setup of the Arduino
IDE.
37
ACS712 is available in market in three ratings.
ACS712ELCTR-05B-T
ACS712ELCTR-20A-T
ACS712ELCTR-30A-T
38
Flash Memory: 32 KB of which 0.5 KB used by bootloader
SRAM: 2 KB (ATmega328)
EEPROM: 1 KB (ATmega328)
Clock Speed: 16 MHz
The figure 6.7 shows pin out diagram of Aurdino. Pins 10,
11, 12 and 13 (SS, MOSI, MISO AND SCK respectively) are used for SPI
communication. Pin 13 has a built-in LED connected to it. When the pin
is HIGH, the LED is turned on and when the pin is LOW, it is turned off.
39
7. RESULTS AND DISCUSSIONS
7.1 Equivalent Circuit model:
GN D
V2
VSINE
2
C1
BRIDGE
TRAN-2P2S
1nF
Q1 L2
R2 12V
VCC BC547
10k RL1
GND 12V
D0
D1
D2
NODE MCU D3
R1 Q2
BC547
VCC OUT D4
10k L1
12V
ACS712 RL2
12V
GND AC AC
V1
VSINE
40
the relay controls. The transistor is quick switching device to operate the
relay. The relay is used to control the load device.
7.2 Hardware Developed
The figure 7.2 shows the developed system for monitoring power.
Under initial conditions the reference value of system is set as 230W. Hence
power consumption of that particular area will be in the range of (0-230KW)
but not more than the final limit. On placing the 3 bulbs means power
consumption of 3 houses will be calculate. The bulbs are placed in a single
board.
41
Fig 7.3: Two lighting loads
The figure 7.4 shows the output of two lighting loads for
4hr.The units consumed by two lighting loads is 2 kw/ hr.
42
Fig 7.5: One lighting load and One suction motor
The figure 7.6 shows the output of One lighting load
and One Suction Motor for 2hr. The units consumed of two lighting loads
is 10 kw/ hr.
Fig 7.6: Output of One lighting load and One suction motor
7.3 Energy Conservation
The information regarding energy meter status was
received and displayed in the mobile application used for measuring the
43
energy consumption. As the utilization of current increases the power
consumed is also increased.
So, from the data received on the mobile application
by the authorized person can perform the following operations regarding
the power consumption:
1.Switching off the unnecessary loads in order to avoid the
unnecessary consumption.
2. Can monitor & control the power consumption from a remote
place.
3.Can analyse the daily energy consumption.
44
10. Bed lamps 2 15W 0.03 0.03 0
45
CONCLUSION
46
FUTURE SCOPE
47
REFERENCES
48
7. ZigBee Sensor Networks Woong Hee Kim, Sunyoung Lee,
Jongwoon Hwang. Real-time Energy Monitoring and Controlling
System. International Symposium on Intelligent Systems
Techniques for Ad hoc and Wireless Sensor Networks (IST-AWSN).
12. Hnin Nu Thaung, Zaw Myo Tun, Hla Myo Tun. JUNE 2016.
Automatic Energy Control And Monitoring System For Building.
INTERNATIONAL JOURNAL OF SCIENTIFIC & TECHNOLOGY
RESEARCH VOLUME 5, ISSUE 06.
49
13. Engineering and D. Systems, “Monitoring and reducing the
consumption of home electric appliances December
2013,”Monitoring and reducing the consumption of home electric
appliances, p. 53, 2013
16. Baig, F., Mahmood, A., Javaid, N., Razzaq, S., N, K., &
Saleem, Z. (2013). Smart Home Energy Management System for
Monitoring and Scheduling of Home Appliances Using Zigbee .
Journal of Basic and Applied Scientific Research , 880 - 891.
50