Blynk 2.0 Based Smart Electricity Monitoring Meter
Blynk 2.0 Based Smart Electricity Monitoring Meter
Blynk 2.0 Based Smart Electricity Monitoring Meter
https://doi.org/10.22214/ijraset.2023.48792
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
Abstract: Electricity is one of the basic needs of this society. Currently we have to go nearby the conventional meter and note the
electricity consumption which is a tedious task when bill payer is in distant place. Thus, to automate this process IOT takes place
which can save time by automating remote data collection.
This paper gives the development of a cost-effective NodeMcu based smart electricity which includes the Internet of Things (IoT)
technology. The NodeMcu board is employed element to coordinate the activities of the device and a Blynk server acting as a
central server receiving all the data sent by the created system. Other components like AC voltage sensor (ZMPT101B), AC
current sensor (SCT-013-030), LCD display which helps the user to read the values instantly from system and other RLC
elements are used to measure the required quantities. Also, this paper has open source IOT server called Blynk 2.0 which is an
analytic platform which can access the cloud and enables the user to live monitor the status of the meter using both Website and
application.
The result of this paper is a functional system for electricity consumption monitoring system and detection of unknown overload
consumption based on Internet of Things.
Keywords: ESP-32S, Electricity, Blynk 2.0, IOT, App view, web view, Serial monitor view.
I. INTRODUCTION
Currently, the drawback of the conventional system is that consumer must go nearby the Electricity meter which was installed at
home by EB department to calculate the power usage that he has consumed regularly. Electricity is now more than necessary. The
demand of electricity in our country is increasing continuously. With increasing electricity demand, power monitoring from distant
place by consumer is still not installed by TNEB.
It has become important to improve the system performance and to avoid Theft, Electricity should be monitored efficiently and
distantly. This Advanced measuring infrastructure can overcome the billing irregularities and requirements for more employees.
This prototype calls for reduction of the massive labour force and consumer complaints in overload consumption. The use of the
main observer meter at the secondary distribution terminals are some of the technological ways to detect technical faults. However,
these technical approaches can be effectively implemented only if proper communication is ensured between the central control
station and the appropriate consumer points.
This model is proposed to reduce the complex problems like heavy power consumption, revenue loss and power tapping that
prevails while the power is being not monitored in the consuming side.
This system provided along with such type of sensors and whenever the overloading consuming attempt is happened immediately, it
could be detected over internet with the help blynk cloud. Consequently, by the above proposed design of the system we can
effectively and successfully minimize the problems that come under power consumption without any manual interference. In this
work, I've created a web-based smart electricity metre using the ESP32S and tracked data on the Blynk Web cloud and application
that automates the traditional technique of reading electricity.
We can use the Internet of Things, which automates distant data collection and saves time. In recent years, smart electricity metres
have won widespread praise from all over the world. Voltage and current sensors are required so that the current and voltage may be
measured and the power consumption and total power utilised are known.
SCT-013 is the top current sensor on the market. We can measure all the necessary parameters needed for an electricity metre using
the SCT-013 current sensor and ZMPT101B voltage sensor.
We will interface the Current Sensor and Voltage Sensor with ESP32S which has inbuilt Wi-Fi Module & Send the data to Blynk
Application. The Blynk 2.0 Application Dashboard will display the values of Voltage, Current, Power & total units consumed in
kWh.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1312
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
II. METHODOLOGY
The methodology includes with topology, components specifications
A. Topology
The proposed model includes the sensors called Current sensor, voltage sensor and the main microcontroller called ESP32S, then
for the displaying purpose Liquid crystal Display 16 cross 2 which uses I2C protocol for transferring data from the microcontroller
to the LCD.
B. Components Specification
1) NODE-MCU ESP32-S
The ESP32S (Fig-2) is employed as a bifunction element to coordinate the activities of the system and a mobile acting as central
server receiving all the data sent by the created system. Ai Thinkers ESP32S Wi-Fi and Bluetooth SoC Module has a highly
competitive package size and ultralow power technology. Esp32S can be widely used in various networking and automation,
industrial wireless control. Esp32S is packaged in SMD, through the standard SMT equipment to achieve rapid production of
products with high reliability of the connections, especially for Automation, large scale, low-cost production modern methods.
2) Current Sensor
A non-invasive AC current sensor with a split core type clamp metre, the SCT 013 (Fig. 2) can measure AC current up to 100
Amperes. Alternating current can be measured using current transformers. They are incredibly helpful for calculating the total
electricity consumption of a building. There is no need to perform any high voltage electrical work in order to clip these current
sensors directly to live or neutral wire. Current Level Sensing: 0 to 30A AC. Level of the output signal: DC 0 to 1 V.to 1 V.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1313
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
3) Voltage Sensor
The ZMPT101B (Fig-4) AC Single Phase voltage sensor is based on very high precision voltage transformer, which used to
measure the accurate AC voltage with voltage transformer. This is an innovative and efficient method to measure the AC voltage
using ESP32S.The Modules can measure voltage within and up to 250V AC voltage and analog output can be adjusted with the help
of multi trim potentiometer. By turning we could adjust and calibrate the ADC output. Operating temperature is between 40º Celsius
to 70º Celsius. Supply voltage is 5 volts to 30 volts.
C. Hardware Setup
The circuit is made as per the schematics as shown in Figure 5. The output pin which is taken from Current sensor is connected to
the 34th pin of the ESP-32S development board and the output pin of the voltage sensor is connected to 35th pin of the Esp-32S.
Voltage sensor is connected parallel to the load. Current sensor is which non-invasive clamp type, so the load wire is clamped in the
sensor. Few resistors and capacitor are connected across the sensors for safety purpose. SDA and SCL of LCD is connected to 21st
and 22nd pin of the ESP-32S. Figure-5 is the schematic made with the help of Fritzing software. The sample load used here is Bulb.
Node MCU module is given power by data cable of B-type which is connected to the laptop or 5V DC supply. Figure-6 shows the
view of the hardware setup.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1314
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
D. Software Setup
An application called Arduino (Fig-7.1), an open-source hardware and software company, project and user community which
designs and manufactures single-board microcontrollers for building digital devices is used to boot the program to the ESP32S
module in this paper.
Also Blynk 2.0 (Fig-7.2) platform is the unified and easiest way that provide powerful web dashboard with drag and drop UI editor
to manage devices, users and data and also provides Blynk IOT mobile application which provides user friendly addable widget.
Figure(7.3) shows the topology of the blynk 2.0 operations.
The minimum and maximum values are declared initially. Also the S.I units of the parameters have mentioned. Then the template is
saved.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1315
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
In web dashboard tab, four widgets are created using label widget for respective (Fig-8.1.2) data streams. According to user
requirement, it can be created.
In Label Setting tab(Fig-8.3), the data stream is to be selected to particular virtual pin as it was assigned in data stream settings.The
widget background color can be changed according value that was fixed in range of values.
After completing web dashboard, firmware configuration (Fig-8.4) will be automatically given by blynk 2.0 and it should added in
main firmware.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1316
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
First of all, Latest Blynk IOT mobile application should be installed.The same login creditials should entered. Then the template
will be displayed which was created in web dashboard, by entering into it, the required widgets are added from widget box (Fig-8.5).
Widget box option will enabled only when developer option at the right top of the display is clicked. Then, a mobile dashboard view
tentatively made. Then the parameters should be assigned to respective datastreams.(Fig-8.6).
Then the Widget names (Fig-8.7) and font size of the display names should be assigned for individual datastreams. For mixed Zebra
view the multiple parameters should be selected for our conveinance(Fig- 8.8).
To get your hardware online and connect it to Blynk Cloud, we would need a device Authentication Token. Once we download the
app you will be able to generate Auth Token for every device.
We should make sure that device is powered on and waiting for connection. Then Tapping Ready, we could choose our device and
tap its name. Once the app is connected to the device, the next step is to send to the device the Wi-Fi credentials for it to use. By
Tapping choose Wi-Fi network and select the network your mobile device is connected to: We need to type selected Wi-Fi
password; Then there's an option to Remember this network for other devices by enabling it helps to save time if you need to add
multiple devices. Then By clicking continue, device will be connected.
On successful connection (Fig-8.8), mobile will connect to the device and transfer the credentials, consequently, the device will try
to connect to the internet and subsequently to the Cloud.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1317
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
Then the ESP-32S library should be installed from boards managers in tools.
D. Libraries
1) Emon Library
This library is called as Open Energy Monitor which is used for many purposes like energy use monitoring, on site solar PV,
Realtime monitoring of EV charging. The main objective of Open Energy Monitor system is that can be used as a simple home
energy monitoring system for understanding energy consumption. By Viewing and exploring real-time power and daily energy
consumption in kWh. There are multiple libraries like emonPi, emonTx, emonTh, emonCMS etc. As these libraries are open-source
libraries can be downloaded from GitHub, Arduino reference etc.
2) Blynk Library
This library is created by Blynk corporation which provides a digital dashboard where we could build a graphic interface for the
paper by simply dragging and dropping available widgets. We can use Blynk's platform quickly which can support both Arduino
and NodeMcu over Wi-Fi, Ethernet, or an ESP8266 chip. This library can download from open-source forum and can be manually
added from Arduino library manager. While adding manually the esp32 chip must be selected. However, as we see the Cloud Blynk
server has imposed limitations which are due to the topology of the server: depending on your geographical location, the server may
be in a different continent, which makes communications between the app, the devices, and the server slow due to the amount of
time it takes packets to travel across the Internet.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1318
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
4) WIFI Library
The Library supports Wired Equivalent Privacy (WEP) and WPA2 Personal encryption, but not WPA2 Enterprise. Also note, if the
Service Set Identifier (SSID) is not broadcast, the shield cannot connect. This Library is optional for this project. The Wi-Fi library
is very similar to the Ethernet library, and many of the function callings are the same.
ESP8266 is all about Wi-Fi. The thing is to connect the new ESP8266 module to a Wi-Fi network to start sending and receiving
data, this is a starting place to start communication. This Library will refer through several classes and properties of
the ESP8266WiFi library.
E. Flowchart
This flowchart (Fig-10) explains about the workflow of the project mentioned in the paper. In the beginning the microcontroller
ESP32S is initialized which initialize the inbuilt Wi-Fi module. Then LCD 16*2 is initialized. Then the sensors are ready to read the
values and the values are printed using different outputs like serial monitor. The Values are transmitted to the Blynk cloud. Then if
continuous values are sensed, they will be printed in the LCD and blynk output portals like web and mobile dashboard.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1319
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
B. Output Views
1) LCD View
In this Paper, the program is written to print the measured instantaneous voltage, current, power,kWh on the LCD through I2C
protocol for every 3 seconds.
3) Mobile View
As I have created four widget named voltage, current, power, kWh, in mobile blynk 2.0 IOT platform to monitor the instantaneous
value. It displays the similar value like in LCD, serial monitor.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1320
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
4) Web View
Created a template name called smart electricity meter (Fig-13) where we have created DataStream in blynk 2.0 to monitor the
reading simultaneously in webpage which is connected to hardware Esp32S with blynk via Wi-Fi.
Figure 14 shows after connecting with Wi-Fi, the blynk become offline to online then webpage display the value of voltage, current,
power and kwh in webpage. The template name, blynk device name, authentication token will be provided, to be copied and pasted
to the beginning of the entire program. It is also possible to view much information like metadata, events etc. Also, the device status
like ON time could be viewed. Template description could be added.
Figure 15 shows the final web dashboard view in online status.
V. CONCLUSION
In present electricity billing system, workers from EB visit each consumer's home to take the readings for consumption and get back
to the office. This project will eliminate this requirement of manpower and will be able to generate the bills more conveniently and
from distant place. The consumers also consume lot of energy, therefore using Internet of things the system will enable users to
track their consumption on daily basis which will help them reduce their consumption and they will be understand value of energy
consumed is reached.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1321
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
VII. RECOMMENDATION
This study only developed a system that to monitor the electricity, recommendation is made on any study that will develop the
system using other IOT platform. This is necessary because can also be programmed to detect the load consumption using this meter;
This prototype has made to monitor for 24*7.
REFERENCES
[1] Matanov, Nikolay and Atanas Zahov. “Remote Electricity Metering Systems.” 2019 11th Electrical Engineering Faculty Conference (BulEF) (2019) Doi:
10.1109/BulEF48056.2019.9030800.
[2] Vivek Kumar Jaiswal, Hritik Kumar Singh, Kuldeep Singh. Arduino GSM based Power Theft Detection and Energy Metering System.
DOI:10.1109/ICCES48766.2020.9138085
[3] Shokoya, Olatunde & Raji, Atanda. (2020). Electricity theft mitigation in the Nigerian power sector. International Journal of Engineering & Technology. 8.
10.14419/ijet.v8i4.29391.
[4] N Mohammad, A Barua and M Arafat, “A smart prepaid energy metering system to control electricity theft”, in proceedings of International Conference on
Power, Energy and Control (ICPEC), vol.562, no.565, pp.6-8, Feb.2013.
[5] Kalavani.R, Gowthami.M, M. Savitha, Karthick.N, “GSM based electricity theft identification in distribution systems”, International Journal of Engineering
Trends and Technology (IJETT), vol-8, issue :10, pg- 512 – 516, February 2014.
[6] R. E. Ogu and G. A. Chukwudebe. Development of a Cost-Effective Electricity Theft Detection and Prevention System based on IoT Technology, 2017 IEEE
3rd International Conference on Electro-Technology for National Development (NIGERCON)
[7] A. R. and K. V., "IoT Based Smart Energy Theft Detection and Monitoring System for Smart Home," 2020 International Conference on System, Computation,
Automation and Networking (ICSCAN), 2020, pp. 1-6, doi: 10.1109/ICSCAN49426.2020.9262411.
[8] Darshan Iyer N, Dr. KA Radhakrishna Rao M Tech. student, Dept. of ECE, PES College of Engineering, Mandya, Karnataka, India”, “IoT Based Energy Meter
Reading, Theft Detection and Disconnection using PLC modem and Power optimization”, Vol. 4, Issue 7, July 2015.
[9] A.S. Metering, S. Visalatchi and K. K. Sandeep, "Smart energy metering and power theft control using arduino & GSM," 2017 2nd International Conference
for Convergence in Technology (I2CT), 2017, pp. 858-961, doi: 10.1109/I2CT.2017.8226251.
[10] Nuredin Ali SalemAhmed; Hala Shaari; Adel Saad Emhemmed Design, Modeling and implementation of Smart grid using PROTEUS and Arduino Doi:
10.1109/MI-STA52233.2021.9464482
[11] Alahakoon, D., & Yu, X. (2015). Smart electricity meter data intelligence for future energy systems: A survey. IEEE Transactions on Industrial
Informatics, 12(1), 425-436.
[12] Pawar, S., & Momin, B. F. (2017, July). Smart electricity meter data analytics: A brief review. In 2017 IEEE Region 10 Symposium (TENSYMP) (pp. 1-5).
IEEE.
[13] Sheth, M., & Rupani, P. (2019, April). Smart gardening automation using IoT with BLYNK app. In 2019 3rd International Conference on Trends in Electronics
and Informatics (ICOEI) (pp. 266-270). IEEE.
[14] M. Sheth and P. Rupani, "Smart Gardening Automation using IoT with BLYNK App," 2019 3rd International Conference on Trends in Electronics and
Informatics (ICOEI), 2019, pp. 266-270, doi: 10.1109/ICOEI.2019.8862591.
[15] I.Ifedobi. “Practical solutions to Nigeria’s electricity crisis”. Retrieved from Vanguarg: http://www.vanguardngr.com/2016/07/practicalsoutions- nigerias-
electricity-crisis/. (2016).
[16] M. Singh and E. V. Sanduja, “Minimizing Electricity Theft by Internet of- Things”, International Journal of Advanced Research in Computer and
Communication Engineering, Vol. 4(8), pp.326-329, (2015).
[17] I. N. Darshan and K. A. R. Radhakrishna, “IoT Based Electricity Energy Meter Reading, Theft Detection and Disconnection using PLC modem and Power
optimization”, International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, Vol. 4(7), pp.6482-6491, (2015).
[18] S. V. Anushree and T. Shanthi, “IoT Based Smart Energy Meter Monitoring and Theft Detection Using ATMEGA”, International Journal of Innovative
Research in Computer and Communication Engineering, Vol. 4(11), Pp.19801-19805. (2016).
[19] S. Sridhar, H. Bharath, V. Vishvesh, K. V. Gowtham and H. Girish, “IoT Based-Transformer power theft detection and protection”, International Journal of
Engineering Research, Vol. 5 (4), pp: 992-1128, (2016).
[20] P. D. Talwar and S. B. Kulkarni, “IoT Based Energy Meter Reading”, International Journal of Recent Trends in Engineering and Research, Vol.2(6), (2016).
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1322
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue I Jan 2023- Available at www.ijraset.com
[21] L. K. Lekha, G. Jegan and M. D. Ranganathan, “IoT Based HouseholdAppliances Control and Tampering Detection of Electricity Energy Meter”, ARPN
Journal of Engineering and Applied Sciences, Vol. 11(11), pp7376-7379, (2016).
[22] G.L. Prashanthi, K.V. Prasad, “Wireless power meter monitoring with power theft detection and intimation system using GSM,” International journal of
engineering science and computing, Volume9, pp. 330-348, 2016.
[23] J.L. Parra and E.A.S. Calderon, “Use of shunts detecting equipment for the identification of illegal power outlets,” International Journal of Innovative research
in Science, Engineering and Technology, pp. 1–4, 2013.
[24] S.K.A. Zaidi, H. Mansoor, S.R. Ashraf, and A.Hassan, “Design and implementation of low cost electronic prepaid energy meter,” IOSR Journal of Electronics
and Communication Engineering, Volume: 02, pp. 548–552, 2014.
[25] Pradeep Mittall, “Wireless Electricity billing system,” International Research Journal of Engineering and Technology (IRJET) Volume: 02, pp.21-34, 2015.
[26] M.Jamil, F.Munir, A.A.Khan, and A.Mirza 2014, “Telemetering & billing system for spatially distributed electrical power clients,” Electrical power system
research pp. 35–40, 2014.
[27] Sreelakshmi Ravari Veettil , Nibin Thomas,” Automatic Energy Meter Reading System Using Zigbee and GSM” IJESC, pp.1212-1215, April – 2015.
[28] Suri Revidi , M. Vedachary , A. Kishore Reddy , “GSM & Zigbee Based Automatic Energy Meter Reading System with Instant Billing,” International Journal
of Scientific Engineering.
[29] Dineshkumar.K, “Development of ARM Processor based Electricity Theft Control System using GSM Network”, 2015 International Conference on Circuit,
Power and Computing Technologies [ICCPCT]
[30] Md. Masudur Rahman; Noor-E-Jannat; Mohd. Ohidul Islam; Md. Serazus Salakin, “Arduino and GSM Based Smart Energy Meter for Advanced Metering and
Billing System” 2nd Int'l Conf. on Electrical Engineering and Information & Communication Technology (ICEEICT) 2015 Jahangimagar University, Dhaka-I
342, Bangladesh, 21-23 May 2015.
[31] “Blynk Documentation.” [Online]. Available: https://docs.blynk.io/e n/legacy-platform/legacy-articles/what-do-i-need-to-blynk. [Accessed: Jan. 22, 2022]
[32] “EMON Library,” Github. [Online]. Available: https:\\github.com/openenergymonitor/EmonLib. [Accessed: Jan. 22, 2022]
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 1323