Batch A7-Iot Based Power Consumption Alert System (FINAL) ..
Batch A7-Iot Based Power Consumption Alert System (FINAL) ..
ALERT SYSTEM
A PROJECT REPORT
(15EC81C)
Submitted by
M.AASHIKA (1711001)
S. ABINAYA SUNDARI (1711005)
C.ISWARYA (1711031)
of
BACHELOR OF ENGINEERING
in
ELECTRONICS AND COMMUNICATION ENGINEERING
K.R.Nagar, Kovilpatti-628503
April 2021
i
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
ii
ACKNOWLEDGMENT
First and foremost, we express our wholehearted gratitude to the Almighty for His
wisdom and courage to take over this work.
We wish to express our sincere thanks to the Director,
Dr.S.SHANMUGAVEL, B.Sc., D.M.I.T., Ph.D., who helped us in carrying our
work successfully.
We would like to express our sincere thanks to our principal
Dr.K.KALIDASA MURUGAVEL, M.E., Ph.D., for providing us this opportunity
to do this work.
Our heartfelt acknowledgment goes to the Professor and Head of the
Department of Electronics and Communication Engineering,
Dr.A.SHENBAGAVALLI, M.E., Ph.D., for her valuable and consistent
encouragement for carrying out the work.
Our gratitude is no less for our Project Co-
ordinator,
Dr.K.J.PRASANNA VENKATESAN, M.E, Ph.D., Asst. Prof (SG), and
Dr.A.SARAVANA SELVAN, M.E., Asst. Prof(SG) Electronics and
Communication Engineering Department for his encouragement.
We express our deepest gratitude to our
Supervisor,
Mr. M. SATHISHKUMAR, M.E., Asst. prof in Department of Electronics and
Communication Engineering, for rendering excellent guidance and for being
extremely kind and approachable, being a great source of support and
encouragement throughout work.
We hereby acknowledge the efforts of all Staff members, Technicians of the
Electronics and Communication Engineering department, our Parents, and our
Friends whose help was instrumental in the completion of our work.
iii
ABSTRACT
The project is aimed to design a circuit that helps the consumer to monitor the
electrical energy consumption and protect them from the extra charges incurred
due to minor changes in slab categories since even small changes can affect the
bill at a high rate. In the project, electricity usage is updated periodically that is
read from the energy meter are digitized and processed, and then sent to
ARDUINO. The threshold energy value is fixed in the Arduino for which the
consumption level increase is notified to the user through SMS. The problem of
overload can also be monitored. Daily consumption costs will be updated to the
user through SMS and website where the report is given to the user periodically.
In this way, the consumer can be made aware of the power consumed and can
hence make the consumer use the power accordingly. It not only benefits the
power consumption and subsequently can reduce the unusual power usage.
iv
TABLE OF CONTENTS:
ABSTRACT iv
LIST OF FIGURES vii
LIST OF TABLES viii
LIST OF ABBREVIATIONS ix
1 INTRODUCTION
1.1 OBJECTIVE 1
1.2 EXISTING SYSTEM 2
1.2.1 ADVANTAGES 2
2 LITERATURE SURVEY
2.1 RECENT SURVEY 3
2.2 RELATED WORKS 6
2.3 CURRENT TECHNOLOGY 7
3 PROBLEM STATEMENT
3.1 PROBLEM STATEMENT 8
v
5.6 FILTERS 18
5.7 REGULATORS 20
5.7.1 FEATURES & DESCRIPTION OF
REGULATORS
5.8 LIGHT EMITTING DIODES 21
5.9 RESISTOR 21
5.10 RELAY 22
5.11 LIQUID CRYSTAL DISPLAY 22
5.12 GSM MODULE 23
5.12.1 THE GSM NETWORK 25
5.12.2 GSM ARDUINO INTERFACE 26
5.12.3 LED BLINKING STATUS 26
5.13 NODE MCU ESP8266 27
5.13.1 FEATURES OF ESP8266 28
5.13.2 SPECIFICATION OF ESP8266 29
5.14 CURRENT SENSOR 30
6 SOFTWARE UNIT
6.1 EMBEDDED C 32
6.2 ARDUINO SOFTWARE(IDE) 32
6.2.1 TOOLS 31
6.2.2 BOARDS 32
7
APPLICATION AND EXECUTION
7.1 APPLICATIONS 33
7.2 EXECUTION IN ARDUINO AND WIFI 36
MODULE
8 RESULTS 37
9 CONCLUSION 40
REFERENCES 41
vi
LIST OF FIGURES
FIGURE
NO FIGURES PAGE NO
4.1 BLOCK DIAGRAM 9
5.1 POWER SUPPLY UNIT 12
5.2 DIODE BRIDGE RECTIFIER 13
5.3 SCHEMATIC OF A DIODE BRIDGE
RECTIFIER 13
5.4 ARDUINO PIN DIAGRAM 15
5.5 STEP-DOWN TRANSFORMER 17
5.6 BRIDGE RECTIFIER 18
5.7 FILTER CIRCUIT 19
5.8 BASIC 16x2 CHARACTERS LCD- BLACK
ON GREEN 5V 22
5.9 PIN DIAGRAM 23
5.10 SCHEMATIC DIAGRAM OF 2 LINES 16
CHARACTER LCD 23
5.11 GSM 24
5.12 GSM NETWORK 26
5.13 GSM ARDUINO INTERFACING 26
5.14 NODE MCU 30
5.15 CURRENT SENSOR 31
5.16 HARDWARE KIT 31
8.1 MESSAGE NOTIFICATION VIA GSM 37
8.2 LCD DISPLAY 38
8.3 LCD DISPLAY OVERLOAD 38
8.4 DISPLAYING USING IOT 39
vii
LIST OF ABBREVIATIONS:
viii
SS Switching System
BSS Base Station System
OSS Operation and Support System
NET National Ebility Test
VCC Voltage Common Collector
RST Reset
RDX Receiver to the Module
TDX Transmitter to the Module
GND Ground
BRT Bias Resistor Transistor
ROM Read-Only Memory
RAM Random Access Memory
CPU Central Processing Unit
HTTP Hyper Transfer Protocol
ix
CHAPTER 1
INTRODUCTION
1.1 OBJECTIVES:
1
1.2 EXISTING SYSTEM:
1.2.1 ADVANTAGES:
2
CHAPTER 2
LITERATURE SURVEY
3
Sonali S Wagh, Shaila P. Kharde focused on the paper titled Intelligent
Energy Meter Using GSM Modem with Arduino in the paper International
Journal of Innovative Research in Science, Engineering and Technology. In this
paper, the proposed system consists of a digital energy meter, an Arduino
(microcontroller), and a GSM modem [2017]. After switching power on the
Arduino and the GSM modem, turn on and connects the energy meter to load via
relay. Then read the EEPROM and display the current data. Arduino checks the
impulse from the energy meter i.e. If impulse occurs to increase the data and
display current data. GSM modem checks the new SMS. If there is a new SMS
and read it. If the SMS is "DATA", send data to the specific number. If the SMS
is "LINE CUT", turn OFF the relay, so the load will disconnect. Again, the SMS
is "LINE OK" and then turn ON the relay so the load will connect. If there is any
other SMS in any other formats, then delete the SMS. If Arduino found any flaw
or tampering into energy meter then Arduino replies with a buzzer or it turns OFF
the relay similarly it informs via SMS to a service provider
G. L. Prashanthi, K. V. Prasad, researched to record the power
consumed by a model organization such as a household consumer from a
commonly located point. Recording the power means measuring the power
consumed exactly by the user at a given time. The energy used by the user is
measured and the records are sent to the controlling substation whenever needed
by the person at the nearest substation. Communication between the household
meters and the substation is done with the means of wireless communication.
The scope of this study is limited to the detection of power theft and not
identifying the exact location.
4
Anusha, [2014] had done the project model to reduces the manual
manipulation work and theft. The use of GSM in the system provides numerous
advantages of a wireless network system. The government saves money by the
control of theft in energy meter and also more beneficial for customer side and
the government side. The metering IC ensures the accurate and reliable
measurement of power consumed.
5
2.2 Related works:
Meter reading may have many errors due to the manual system. The
government employee who took a meter reading from the EB (Electronic board)
he takes approximately quite 150 meters photo every day. Then data of those
photos will be get checked and put these data one to 2 times, just in case if the
house is closed. Some meters are also not reachable. The second option to take a
reading is by taking an average of preceding bills if the home is closed for more
than 2 months. Such problems are due to human involvement and to avoid this,
the billing process AMR (Automatic meter reading) is employed. For future
scope, we will also update the tariff within the energy meter by writing a
program. This process will be flexible for both users and therefore the company.
6
2.3 Current technology:
7
CHAPTER 3
PROBLEM STATEMENT
8
CHAPTER 4
9
4.2 DESCRIPTION:
• An AC source is given to the current sensor and from this, the load is
connected to the ARDUINO board via a relay switch.
• The ARDUINO in turn is connected to the Wi-Fi module and the GSM
module. The ESP8266 is interfaced with the cloud storage using a cloud SPI
protocol (thingspeak).
• This can be updated and viewed on the webpage. The GSM module is used
to send and receive messages via a mobile network to give daily alerts.
• A relay switch is connected with the load, current sensor, and ARDUINO.
• In event of the power consumption threshold breached, the current sensor
detected power consumption is more than the set limit, an indication of
power consumption exceed, sensor node will be displayed by the LCD.
• The power consumption is also sent to IoT and a notification event is sent to
alert the owner about the power consumption threshold breached and store
into the IOT platform and also display in the LCD like a meter to the
consumer.’
• Then the Arduino UNO controller starts to compare the incoming values
with the threshold values.
• When there is at least one parameter’s value exceed the saved value, then the
Arduino UNO controller takes action and SMS notification are sent to the
consumer.
10
4.3 HARDWARE REQUIREMENTS
Arduino IDE
Embedded C
11
CHAPTER 5
12
When used in its most common application, for conversion of alternating
current (AC) input into direct current (DC) output, it is known as a Bridge
Rectifier.
13
5.3 ARDUINO UNO:
"Uno" means one in Italian and is named to mark the upcoming release of
Arduino 1.0. The Uno and version 1.0 will be the reference versions of
Arduino, moving forward. The Uno is the latest in a series of USB Arduino
boards, and the reference model for the Arduino platform; for a comparison
with previous versions.
Arduino’s processor uses the Harvard architecture where the program code
and program data have separate memory. It consists of two memories-
Program memory and data memory. The code is stored in the flash program
memory, whereas the data is stored in the data memory. The Atmega328 has
32 KB of flash memory for storing code (of which 0.5 KB is used for the
bootloader), 2 KB SRAM and 1 KB of EEPROM and operates with a clock
speed of 16MHz.
14
FIG 5.4 Arduino pin diagram
15
5.3.2 STEPS TO PROGRAM AN ARDUINO:
3. Chose the proper board from the tools menu and the serial port numbers.
4. Click on the upload button or chose upload from the tools menu. Thus
the code is uploaded by the bootloader onto the microcontroller.
16
5.4 TRANSFORMER:
Basic power supply the input power transformer has its primary winding
connected to the mains (line) supply. A secondary winding, electro-
magnetically coupled but electrically isolated from the primary is used to
obtain an AC voltage of suitable amplitude, and after further processing
by the PSU, to drive the electronics circuit it is to supply.
The transformer stage must be able to supply the current needed. If too
small a transformer is used, likely, the power supply's ability to maintain
the full output voltage at full output current will be impaired. With too
small a transformer, the losses will increase dramatically as a full load is
placed on the transformer.
17
5.5 RECTIFIER:
In the bridge rectifier the diodes may be of various types like 1N4001,
1N4003, 1N4004, 1N4005, IN4007, etc… can be used. But here it is
1N4007 because it can withstand up to 1000V.
5.6 FILTERS:
To obtain a dc voltage of 0 Hz, we have to use a low pass filter. so
that a capacitive filter circuit is used where a capacitor is connected at
the rectifier output& a dc is obtained across it. The filtered waveform
is essentially a dc voltage with negligible ripples & it is ultimately fed
to the load.
18
A typical power supply filter circuit can be best understood by
dividing the circuit into two parts, the reservoir capacitor, and the low
pass filter. Each of these parts contributes to removing the remaining
AC pulses but in different ways. The electrolytic capacitor is used as a
reservoir capacitor, so-called because it acts as temporary storage for
the power supply output current.
Once the input wave passes Vpk the rectifier anode falls below the
capacitor voltage, the rectifier becomes reverse biased and conduction
stops. The load circuit is now supplied by the reservoir capacitor
alone.
19
5.7 REGULATORS:
The output voltage from the capacitor is more filtered & finally
regulated. The voltage regulator is a device, which maintains the output voltage
constant irrespective of the change in supply variations, load variations &
temperature changes. Here we use a fixed voltage regulator namely LM7805. The
IC LM7805 is a +5v regulator which is used for the microcontroller.
• Output Current up to 1A
20
5.8 LIGHT EMITTING DIODES (LED):
• Light Emitting Diodes (LED) have recently become available that are
white and bright, so bright that they seriously compete with incandescent
lamps in lighting applications. They are still pretty expensive as compared
to a GOW lamp but draw much less current and project a fairly well-
focused beam.
• When run within their ratings, they are more reliable than lamps as well.
Red LEDs are now being used in automotive and truck tail lights and red
traffic signal lights. You will be able to detect them because they look like
an array of point sources and they go on and off instantly as compared to
conventional incandescent lamps.
5.9 RESISTOR:
21
5.10 RELAY
22
Fig 5.9: Pin Diagram
23
GSM SIM 800 is a quad-band GSM modem that functions at 850, 800,
1800 and 1800 MHz frequencies. This modem also supports features like
transferring voice data, integrated support for GPRS and TCP/IP stack.
24
The TTL serial interface is in charge not only of communicating all the
data relative to the SMS already received and those that come in during
TCP/IP sessions in GPRS (the data-rate is determined by GPRS class 10:
max. 85,6 kbps), but also of receiving the circuit commands (in our case,
coming from the PIC governing the remote control) that can be either AT
standard or AT-enhanced SIMCom type.The module is supplied with
continuous energy (between 3.4 and 4.5 V) .
25
FIG 5.12: GSM Network.
26
5.12.3 LED BLINKING STATUS:
At the backside of the module, you can find the pin details printed
on it will be using 5 Pins to connect with Arduino for basic operation. They
are
27
5.13 NODE MCU ESP8266:
28
5.13.2 Specifications of Esp8266 D1 Mini Node MCU Wifi Development:
Microcontroller ESP-8266EX
Operating Voltage 3.3 V
Digital I/O Pins 11
Analog Input Pins 1(Max input: 3.2V
Clock Speed 80MHz/160MHz
Flash 4M bytes
Length 34.2mm
Width 25.6mm
The most basic way to use the ESP8266 module is to use serial
commands, as the chip is a WiFi/Serial transceiver. Arduino ESP8266 project,
which is a modified version of the Arduino IDE that is to install on your
computer. This makes it very convenient to use the ESP8266 chip by using the
well-known Arduino IDE. The board is based on the highly popular ESP8266
WiFi Module chip with the ESP-12 SMD footprint. This WiFi development board
already embeds in its board all the necessary components for the ESP8266 (ESP-
12E) to program and upload code. It has a built-in USB to serial chip upload
codes, 3.3V regulator, and logic level converter circuit so you can immediately
upload codes and connect your circuits.
29
FIG 5.14: Node MCU
30
The current sensor module is used as a sensor to sense the current
flowing through the electrical appliances. This sensor has three optimized range
of the input which is ±5A, ±20A, and ±30A... The current sensor consists of a
magnet. This sensor has three pins which are V¬¬CC, GND, and OUT. The 5V
supply is used to ON the sensor.
31
CHAPTER 6
SOFTWARE UNIT
6.1 EMBEDDED C:
32
6.2 ARDUINO SOFTWARE (IDE):
6.2.1 TOOLS:
• Auto Format
• Archive Sketch
• Fix Encoding & Reload
• Serial Monitor
• Board
• Port
• Programmer
6.2.2 BOARDS:
The board selection has two effects: it sets the parameters (e.g. CPU
speed and baud rate) used when compiling and uploading sketches; and sets and
the file and fuse settings used by the burn boot loader command, Some
preferences can be set in the preferences dialog (found under the Arduino menu
on the Mac, or File on Windows and Linux). The rest can be found in the
preferences file, whose location is shown in the preference dialog.
33
Since version 1.0.1, the Arduino Software (IDE) has been translated
into 30+ different languages. By default, the IDE loads in the language
selected by the operating system.
To change the language manually, start the Arduino Software (IDE)
and open the Preferences window. Next to the Editor Language,
there is a dropdown menu of currently supported languages. Select
preferred language from the menu, and restart the software to use the
selected language. If the operating system language is not supported,
the Arduino Software (IDE) will default to English.
It can return the software to its default setting of selecting its language
based on the operating system by selecting System Default from the
Editor Language drop-down. This setting will take effect when
restarting the Arduino Software (IDE).
Similarly, after changing the operating system's settings, must restart
the Arduino Software (IDE) to update it to the new default language.
Arduino Software (IDE) includes the built in support for the boards in
the following list, all based on the AVR Core.
The Boards included in the standard installation allows to add support
for the growing number of new boards based on different cores like
Arduino Due, Arduino Zero, Edison, Galileo and so on.
34
CHAPTER 7
APPLICATION AND EXECUTION
7.1 APPLICATIONS:
.
With remote monitoring of the meter reading and sending SMS, whenever
there are abnormal readings, in the customer electricity meter, the developed
system may able to help Utilities to reduce the incidences of household
electricity theft.
This system design mainly concentrates on Automation of the customer
billing system has been achieved as the meter keeps track of the consumer's
load on a timely basis
This system successfully alerts the consumer when the energy consumption
exceeds the threshold limit via IoT. As a result, The billing system for power
consumption can be added to enable the consumer to estimate the current bill
for their usage.
This design, therefore, removes the manual reading of meters with its
attached consequences of the time-consuming system and bill manipulation
which affects the company while adding higher bills to the consumer.
The ESP 8266 Wi-Fi module is used to connect the ARDUINO with a Wi-Fi
network. It is placed over a baseboard. The Rx and Tx pins of the ESP8266
are connected to the digital input of ARDUINO.
35
The protocol being used for communication is the Message Queue
Telemetry Transport (MQTT). It runs over the TCP and also supports
publish/subscribe architecture. MQTT was released by IBM and targets
lightweight M2M communication.
It is used for a constrained Internet of Things devices and low-bandwidth
with high-latency or unreliable networks. Because MQTT specializes in low
bandwidth, high-latency environments, it is an ideal protocol for machine-to-
machine (M2M) communication.
The GSM module is connected to the ARDUINO board and serves as a
medium to send SMS regarding the overload values consumption.
The GSM module is interfaced with ARDUINO through the UART port.
Serial communication takes place between these two components.
ARDUINO can be programmed either by using C programming.
Cloud storage The values that are collected by the Wi-Fi module are then
sent to an open-source Internet of Things application and SPI which can be
used to store and retrieve data from things using HTTP via the internet. The
SPI being used here is “Thingspeak”.
This SPI allows the creation of separate channels through which the data
could be collected and stored. A link is generated using this protocol and the
readings are stored as a database. Once the link is opened, the recorded
values are displayed and can be viewed at any time
36
CHAPTER 8
RESULTS
37
The visualization of the data is informative and well organized that
can be easily monitored and also the power which is consumed is
detected and values are displayed in LCD as follows
39
CHAPTER 9
CONCLUSION
This study also helps to analyze the approach towards which the system must
be developed by which development effort is reduced. The proposed system is
beneficial only if it can be turned into information systems, That will meet the
organization's requirements.
This system has been designed to favor all new changes Doing this will not
affect the system’s performance or its accuracy. This is the final step in the
system life cycle. Here we implement the tested error-free system into a real-
life environment and make necessary changes, which runs in an online fashion
Also, with the help of this project, we can make the consumer use the power
accordingly., hence save electricity for both present and future use. The system
only requires a one-time installation cost and then can be used for a lifetime
without any inconvenience.
40
REFERENCES
41