Professional Documents
Culture Documents
Final Electric Consumption Measuring KV (1)
Final Electric Consumption Measuring KV (1)
SOCIETY’S
P.C.JABIN SCIENCE COLLEGE,
AUTONOMUS,
(Affiliated to KARNATAK UNIVERSITY, DHARWAD)
HUBBALLI -580031
Affiliated to
Karnataka University, Dharwad.
K.L.E. SOCIETY’S
P.C.JABIN SCIENCE COLLEGE,
AUTONOMUS,
(Affiliated to KARNATAK UNIVERSITY, DHARWAD)
HUBBALLI -580031
2021-22
CERTIFICATE
This is to certify that the project entitled Electric Consumption Measuring is a bonified work carried
out by the student team Mr.Karthik Kalburgi - Reg No 219015 and Mr.Vikas Chavadi - Reg No 219052,
in partial fulfillment of the award of degree of Bachelor of Computer Application during the year 2021
– 2022. The project report has been approved as it satisfies the academic requirement with respect to
the project work prescribed for the award of BCA Degree.
Guide Principal
External Examination:
2.
DECLARATION
We here by declared that the project report entitled Electric Consumption Measuring, submitted in
fulfillment of requirement of BCA VI Sem Project work for the award of Degree in Bachelor of
Computer Application of KARNATAK UNIVERSITY, Dharwad during the academic year 2021-22.
We further declare that this project report is the result of our original work and has not been submitted
to any other organization or institute for the award of any degree or diploma.
Date:
Place: Hubballi
Sign
Vikas Chavadi
Karthik Kalburgi
ACKNOWLEDGEMENT
It’s our pleasure to thank all the individuals who have directly or indirectly helped and motivated
We thank Prof Sunil Vernekar (Principal), KLE Society’s BCA, P C Jabin Science
College, HUBBALLI for having given us all encouragement and motivation for making this
We thank our guide Prof Your Vishwanath Patil, KLE Society’s BCA, P C Jabin
Science College, HUBBALLI for giving us valuable suggestions and guidance for our project
Our gratitude also goes to all Teaching and Non-Teaching staff of KLE Society’s
BCA, P C Jabin Science College, HUBBALLI who have helped us in completing this project
work.
Finally, we would like to thank our family and friends for their constant motivation and
Sign
Vikas Chavadi
Karthik Kalburgi
ABSTRACT
A framework is developed which enables the consumers to monitor and know how much
power and current is consumed by devices in order to carryout efficient power usage. It shows
the power consumption of individual devices so that the user may keep track of how much
energy is being used. The user can better monitor it with the help of automation. The user is
merely a click away from acquiring the required information without having to physically
visit the area. By conserving time and energy, this helps to reduce the user’s workload.
In this project , we have created effectively and efficiently software application which makes
easy to operate for users of “Electric Consumption Measuring”.
Dedicated
To
Society
CONTENTS
1. Introduction
The Electric Consumption Measuring model is about measuring the amount of current
and power consumed by an appliance or a node .Node can be a room, home, apartment,
office or an institute .Current consumption is measured using a current sensor .While
to calculate power, the output of sensor has to undergo various processes, Once the
current and power consumed values are known, then the respective values will be
communicated to cloud using Wi-Fi module with the help of updated values, one can
ensure the power consumption values which measures as it is potable and can be viewed
using the graphs at the front end display of the cloud. The benefits of this proposed
model is emphasizing smart viewing of the power consumption of a particular appliance
or a certain node. At a personal level, the installation of security is impossible hence
this proposed model can be implemented to avoid illegal activities. The important
aspect of this model is to ensure accuracy so as to maintain the data set generated and
to store in the cloud as it involves the calibration One can easily understand the
fluctuations occurring in the power consumption using the graphs
In the existing system all the readings work was done manually. The manual work
processes were time consuming where the results were not accurate.
The existing system is fully manual which may result to human errors.
The basic or major drawbacks in the existing system could handle by experts.
The existing system couldn’t handle high-voltages.
The existing system produces unclassified data.
The existing system totally typical and untidy.
Proposed system
The project proposes the use of sensors and analytics to design power monitoring
system. To this end, the proposed design will be implemented at the university. This
project proposes an IoT based solution for monitoring power consumed by individual
devices using sensors, sending it via ESP32 to a centralized server, visualizing data via
a web interface and also using cloud.
1) The main purpose of this system is that it provides us with the accurate results
2) This system provides real time readings (ampere)
3) It provides us with the appropriate Voltage readings
4) It provides us the platform where it provides us the access to the graph which
can be easily understandable by the User
5) It provides us the accurate results in the form of MS-Excel format
6) It provides proper details to the User at the single click
7) No need of maintain Bills (Receipt) because it can store the data for a long
period of time
8) The data of the power supply will be generated every 10 seconds
OBJECTIVE :
FEASIBILITY:
The feasibility study of any application is mainly intended to study and analyze the
proposed system and to decide whether the application under consideration will be
viable or not after implementation. That is, it determines the usability of the project
after deployment. To come to result a set of queries is answered keeping the efficiency
of the software and its impact on the domain for which it was developed. Feasibility
study includes consideration of all the possible ways to provide a solution to the given
problem. The proposed solution should satisfy all the user requirements and should be
flexible enough so that future changes can be easily done based on the future upcoming
requirements.
Technical Feasibility:
According to feasibility analysis procedure the technical feasibility of the system is
analyzed and the technical requirements such as software, facilities, procedure, inputs
are identified. The hardware and software needed are all available, it not difficult to get
them. Brief we can say the necessary resources needed for the development and
maintenance of the application are available. It is also one of the important phases of
the system development activities. The application offers greater levels of user
friendliness combined with greater processing speed. Therefore, the cost of
maintenance can be reduced. Since, processing speed is very high and the work is
reduced in the maintenance point of view management convince. As per the feasibility
study, all our software resources are open and free, and hardware requirements like ESP
32 Wi-fi Module, Hall effect sensor, MCP 3008, Bridge rectifier are easily available
and affordable.
Organizational Feasibility:
objective of the organization and its strategic plan for an information system. This may
include information about the Organizational feasibility focuses on how well a
proposed information system supposes the founders, their professional background and
the skills they possess necessary to get the company off the ground and keep it
operational. It also determines whether the new system will have enough support from
participants to be successfully implemented and whether participants can operate the
system
Hardware Requirements:
Bridge rectifier
MCP 3008
ESP 32
Software Requirements:
ThingsSpeak Website
Arduino IDE
While the true power measuring is a common approach in the field of tool monitoring.
Evaluation of the true power values which are acting in the axis motors helps to obtain
detailed knowledge of the characteristics of a machining process. Hall sensors vary their
output voltage in response to a magnetic field. The power measurement technology in
connection with an amplifier and a measuring unit is able to detect very small values of
different cutting processes.
True power monitoring via hall effect sensors is an easy to implement method for
achieving reliable, high sensitivity monitoring of small tools and adaptive cycle. True
power control is the solution for those machines without digital data signals or in
addition for dedicated spindle and motor axis values.
Bridge rectifier:
Bridge rectifier:
Bridge rectifier: The rectifier circuit is used to convert the AC (Alternating Current)
into DC (Direct Current). Rectifiers are mainly classified into three types namely half-
wave, full-wave, and bridge rectifier. The main function of all these rectifiers is the
same as the conversion of current but they not efficiently convert the current from AC
to DC. The center tapped full wave rectifier as well as bridge rectifier converts
efficiently. A bridge rectifier circuit is a common part of the electronic power supplies.
Many electronic circuits require a rectified DC power supply for powering the various
electronic basic components from available AC mains supply. We can find this rectifier
in a wide variety of electronic AC power devices like home appliances, motor
controllers, modulation process, welding applications, etc. This article discusses an
overview of a bridge rectifier and its working.
The input AC signal is applied across two terminals A and B and the output DC signal
is obtained across the load resistor RL which is connected between the terminals C and
D.
The four diodes D1, D2, D3, D4 are arranged in series with only two diodes
allowing electric current during each half cycle. For example, diodes D1 and D3 are
considered as one pair which allows electric current during the positive half cycle
whereas diodes D2 and D4 are considered as another pair which allows electric current
during the negative half cycle of the input AC signal.
When input AC signal is applied across the bridge rectifier, during the positive half
cycle diodes D1 and D3 are forward biased and allows electric current while the diodes
D2 and D4 are reverse biased and blocks electric current. On the other hand, during the
negative half cycle diodes D2 and D4 are forward biased and allows electric current
while diodes D1 and D3 are reverse biased and blocks electric current.
During the positive half cycle, the terminal A becomes positive while the terminal B
becomes negative. This causes the diodes D1 and D3 forward biased and at the same
time, it causes the diodes D2 and D4 reverse biased.
The current flow direction during the positive half cycle is shown in the figure A (I.e.
A to D to C to B).
The DC output signal of the bridge rectifier is smoother than the half wave rectifier. In
other words, the bridge rectifier has fewer ripples as compared to the half wave rectifier.
However, the ripple factor of the bridge rectifier is same as the center tapped full wave
rectifier.
The rectifier efficiency of the bridge rectifier is very high as compared to the half wave
rectifier. However, the rectifier efficiency of bridge rectifier and center tapped full wave
rectifier is same.
However, in the bridge rectifier, the electric current is allowed during both
positive and negative half cycles of the input AC signal. So, the output DC power is
almost equal to the input AC power.
MCP 3008:
MCP 3008:
MCP 3008:
The MCP3008 is a low cost 8-channel 10-bit analog to digital converter. The precision
of this ADC is similar to that of an Arduino Uno, and with 8 channels you can read
quite a few analog signals from the Pi. This chip is a great option if you just need to
read simple analog signals, like from a temperature or light sensor.
The sampling rate is 200ksps for 5V and 75ksps for 2.7V respectively.
Applications of MCP3008:
Data acquisition
Robotics
Smart sensors
Sensor Interface
Process Control
Data Acquisition
ESP 32:
ESP 32:
ESP32-DevKit-Board-Layout
ESP32-Block-Diagram
KLES BCA, P C JABIN SCIENCE COLLEGE, HUBBALLI 16
Electric Consumption Measuring
ESP32:
ESP32 is the name of the chip that was developed by Espresso if Systems. This provides
Wi-Fi (and in some models) dual-mode Bluetooth connectivity to embedded devices.
While ESP32 is technically just the chip, modules and development boards that contain
this chip are often also referred to as “ESP32” by the manufacturer.
The ESP32 is designed for data collection and communication. This internet of things-
based unit consists of many components for better performance of the system. The
ground level most components are sensors for sensing the current and sends it to next
levels for processing. The power tracking system is well managed and functioned by
using internet of things. The current sensed is processed in such a way that
representation of it becomes much easier in the higher levels. This is achieved by the
optimization of the respective programming languages by Arduino and MCP3008 and
communication takes at different set of intervals by ESP32. This is much simplest way
of storing and processing of information. The storage and representation of information
is done in free source. The IOT based power tracking system using ESP32: The project
possesses a system that senses current and calculates power in kW. Sensors like current
sensors are used to monitor power and it is sent to cloud data using ESP32 and it will
be monitored by the end user.
ESP32 can perform as a complete standalone system or as a slave device to a host MCU,
reducing communication stack overhead on the main application processor. ESP32 can
interface with other systems to provide Wi-Fi and Bluetooth functionality through its
interfaces.
The ESP32 chip has a Ten silica xtensa LX6 microprocessor in both dual-core and
single-core variations, with a clock rate of over 240 MHz There are now several
different chip models available.
ESP32-D2WD
ESP32-S0WD
Models are available with combined Wi-Fi and Bluetooth connectivity, or just Wi-Fi
connectivity.
While this reputation is not unmerited, the low-cost device can also be used in a number
of different production systems, and its capabilities and resources have grown
impressively over the past four years.
Security.
Power management.
For many of those years the ESP32 seemed to have the reputation that it was a low-cost
maker module for hobbyist and developers interested in one-off projects
There is no doubt that the ESP32 is a worthy competitor to many Wi-Fi/MCU, often
beating it both on performance as well as in price segment. But, depending on what
mode it is in, the ESP32 can be a relatively power-hungry device.
When your Electric consumption measuring project is powered by a plug in the switch,
you don’t care too much about power consumption. But if you’re going to power your
project from a battery, every mA counts.
The solution here is to take advantage of one of its sleep modes to reduce the ESP32’s
power usage. This is actually a great strategy for dramatically increasing the battery life
of a project that doesn’t need to be active all the time.
ESP32 sleep mode is defined as a power-saving mode that the ESP32 can enter when
not in use, saving all data in RAM. At this time, power to any unnecessary peripherals
is cut off while the RAM receives enough power to be able to retain its data.
Memory:
Internal memory:
For data storage and main CPU during RTC Boot from the deep-sleep mode.
Effuse: 1 Kibit
Of which 256 bits are used for the system (MAC address and chip configuration)
and the remaining 768 bits are reserved for customer applications, including
Flash-Encryption and Chip-ID.
Embedded flash:
External flash & SRAM: ESP32 supports up to four 16 MIB external QSPI
flashes and SRAMs with hardware encryption based on AES to protect
developers' programs and data. ESP32 can access the external QSPI flash and
SRAM through high-speed caches.
Up to 16 MIB of external flash are memory-mapped onto the CPU code space,
supporting 8-bit, 16-bit and 32-bit access. Code execution is supported.
Up to 8 MIB of external flash/SRAM memory are mapped onto the CPU data
space, supporting 8-bit, 16-bit and 32-bit access. Data-read is supported on the
flash and SRAM. Data-write is supported on the SRAM.
Security:
Processors:
Software Requirements:
Thing Speak is IoT Cloud platform where you can send sensor data to the cloud. You
can also analyse and visualize your data with MATLAB or other software, including
making your own applications.
The Thing Speak service is operated by MathWorks. In order to sign up for Thing
Speak, you must create a new MathWorks Account or log in to your existing
MathWorks Account.
Thing Speak is free for small non-commercial projects.
Thing Speak includes a Web Service (REST API) that lets you collect and store
sensor data in the cloud and develop Internet of Things applications. It works with
Arduino, Raspberry Pi and MATLAB (premade libraries and APIs exists) But it
should work with all kind of Programming Languages, since it uses a REST API and
HTTP.
Thing Speak is often used for prototyping and proof of concept IoT systems that require
analytics.
Thing Speak allows you to aggregate, visualize and analyse live data streams in the cloud.
Some of the key capabilities of Thing Speak include the ability to:
Easily configure devices to send data to Thing Speak using popular IoT protocols.
Visualize your sensor data in real-time.
Aggregate data on-demand from third-party sources.
Use the power of MATLAB to make sense of your IoT data.
Run your IoT analytics automatically based on schedules or events.
Prototype and build IoT systems without setting up servers or developing web
software.
Automatically act on your data and communicate using third-party services like
Twilio or Twitter.
Thing Speak is an open-source software which allows users to communicate with
internet enabled devices. It facilitates data access, retrieval and logging of data by
providing an API to both the devices and social network websites
Reason of Use:
As we will be able to monitor the power usage in real time which reduces the problem of
over usage.
Reason of Use
The system is very easy to install anywhere, all it needs is to plug the device that needs to be
monitored.
IV Project Description
Arati Kurde et al Defined “IOT Based Smart Power Metering” In India, plug load
devices in building sectors are consuming close to 40 percent of the total electricity
consumption. Though the share of plug load in building energy is increasing, very few
studies exist on the plug level energy usage and consumption. In order to address the
growing energy use of miscellaneous and electronic load (e.g. water heater), some
measures need to be taken. Hence identifying needs, this project focuses on designing
the devices that have built-in capability to measure and report the energy use or receive
control input over the network. This study will help in creating energy awareness
devices. Current sensor measures the current flowing through device then controller
performs necessary calculations on the data and puts that data on the internet. By
measuring current and voltage, it can analyze energy consumption, make the world
smarter place and make better decisions using Internet of Things.
Authors:
This is a way to collect and analyze data, define problems, and decompose system
functionality. Its role in that component. System analysis is performed to analyze the
system or its components Determine your goals
The project proposes the use of sensors and analytics to design power monitoring
system. To this end, the proposed design will be implemented at the university. This
project proposes an IoT based solution for monitoring power consumed by individual
devices using sensors, sending it via ESP32 to a centralized server, visualizing data via
a web interface and also using cloud.
Final design
Final design
Since we wanted to have a system which is compatible, so we have used ESP32
which has in-built Wi-Fi. Hence our final project contains ESP32, along with current
sensors, and linear ADC to eliminate the error due to non-linearity. Thingspeak is
used for front end demonstration and cloud storage.
Algorithm
Step 1: Start
Step 2: If the appliances are connected then current sensor senses the current.
Step 3: The sensed input is given to bridge rectifier to convert the ac component Tod
component. current=(Val*3.3)/511; power=current*230;
Step 5: The data stored can be expressed using various mathematical modules by the
user.
Step 6: The data stored in thingspeak can be viewed by the user which is in excel.csv
Step 7: Stop;
Flowchart
A Power Monitoring System is a network of meters connected to internet to provide
real time data on the Power system. The meters feed an on line software system that
allows the owners and the service providers to identify electrical equipment is hooked
to meter. The meter is essentially a monitoring tool that is connected to internet. Like a
computer the tool monitors the power, even events up to one millisecond can be
captured.
From the load, the AC signal is sent to current sensor which senses the current .The
sensed input is given to bridge rectifier to convert AC component to DC component As
the DC component is analog , it is converted to digital form using MCP3008 and as to
sent the datatoESP32 then end to the things peak cloud via Wi-Fi module .
The data stored can be expressed using various mathematical modules by the user. The
data stored in thingspeak can be viewed by the user which is excel.csv
Flowchart:
VI . Source Code
#include <WiFi.h>
#include <mcp3008.h>
const char *ssid = "Oneplus 7T"; // replace with your wifi ssid
and wpa2 key
WiFiClient client;
#define TIME_TO_SLEEP 5
void setup()
Serial.begin(115200);
delay(10);
KLES BCA, P C JABIN SCIENCE COLLEGE, HUBBALLI 32
Electric Consumption Measuring
Serial.println("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
delay(500);
Serial.print(".");
Serial.println("");
Serial.println("WiFi connected");
void loop()
val1 += mcp.analogRead(0);
delay(1);
val1 /= 10;
delay(1000);
val2 += mcp.analogRead(1);
delay(1);
val2 /= 10;
delay(1000);
val3 += mcp.analogRead(2);
delay(1);
val3 /= 10;
delay(1000);
val4 += mcp.analogRead(3);
delay(1);
val4 /= 10;
Serial.println(val4);
Serial.println("Temperature: "+String(Cel));
val5 += mcp.analogRead(4);
delay(1);
val5 /= 10;
Serial.println(val5);
Serial.println("LDR: "+String(LDR_val));
postStr += "&field1=";
KLES BCA, P C JABIN SCIENCE COLLEGE, HUBBALLI 35
Electric Consumption Measuring
postStr += String(Current_1);
postStr += "&field2=";
postStr += String(Power_1);
postStr += "&field3=";
postStr += String(Current_2);
postStr += "&field4=";
postStr += String(Power_2);
postStr += "&field5=";
postStr += String(Current_3);
postStr += "&field6=";
postStr += String(Power_3);
postStr += "&field7=";
postStr += String(Cel);
postStr += "&field8=";
postStr += String(LDR_val);
postStr += "\r\n\r\n";
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("Content-Type: application/x-www-form-urlencoded\n");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);
Serial.println(postStr);
Serial.println(client.readStringUntil('\n'));
client.stop();
Serial.println("Waiting...");
delay(5000);
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
" Seconds");
Serial.flush();
esp_deep_sleep_start();
ThingsSpeak Website:
1) The bottom floor contains number of devices such as current sensors and sockets for
AC supply for the appliances.
current sensed from AC current and an integrated chip to convert analog components
to digital.
4) The top layer contains information stored which is shared and accessible for
knowledge.
To make sure the system was working properly before being implemented into the real-
life situations, some of the test performed as follows:
1.In the first step we will use Arduino IDE where the code will be written in the Arduino
IDE and then we will save the code when the process is finished
Arduino IDE
2. In the next step we will upload the saved code in the ESP-32 Wi-fi module The ESP-
32 provides platform for wireless connectivity while it can store the memory up to
320KIB RAM and 448 KIB ROM. The ESP-32 wi-fi module will be connected to one
working device
The ESP-32 has another component attached to it which is called as Bridge Rectifier
The main purpose of Bridge Rectifier is to convert Alternative current to Direct current
(AC to DC).
ESP-32 Module
3. In the next step using Hall Effect Sensor (Energy Meter Sensor) while the
work of Hall Effect Sensor is to sense the current and fetch the data .
4. In the next step we will be using Thingspeak website where all the data which is
stored in the ESP-32 wi-fi module will be sent to the Thingspeak cloud where the power
consumed by an particular device will be represented in the graphical format and the
Thingspeak website will provide us the readings in the MS-Excel format.
Thingspeak Website
MS-Excel Format
Test Case 1:
Expected Result:-
Actual Results:-
Stress Test:-
Expected Results:-
Error Result:-
No Errors found
Accuracy :-
Test Case-2:
Expected Result:
Actual Result:
Stress Test:
Expected Result:
The system should allow continuous data entries without being exhausted.
Error Result:
No errors found.
Accuracy:
X. Advantages of Project
It saves cost:
The benefits of the power monitoring system have a deep impact on the bottom line of
your business. By reducing energy consumption and monitoring the equipment of your
facility, it saves huge costs. It notifies you about the impending.
Maintenance:
The data gathered from the power monitoring system can be used to notify you when
face any machinery breakdown or shutdown. Scope of wastage of electricity.
Conservation of power:
Using power management system, we will be able to overcome the scope of wastage
of electricity.
User friendly:
Power management system is user-friendly which is very important. so that any
individual can make use of this technology.
Ease of installation:
The system is very easy to install anywhere, all it needs is to plug the device that needs
to be monitored.
Conclusion
Future Enhancement
An important research problem is the selection of a relevant subset of test cases from
the initial test suite that would minimize both the regression testing time and effort
without loss the thoroughness of regression testing An important research problem is
the selection of a relevant subset of test cases from the initial test suite that would
minimize both the regression testing time and effort without loss the thoroughness of
regression testing minimize both the regression testing time and effort without loss the
thoroughness of regression testing.
• The implementation is done for three devices and in future it can be extended to further
• The approach that is used in optimizing this system can be used for other products too
to
• This can be scaled up to any place which uses electricity and electricity-based devices
Bibliography:
[1] G. Eason, B. Noble, and I.N. Sneddon, “On certain integrals of Lipschitz-Hankel
type involving products of Bessel functions,” Phil. Trans. Roy. Soc. London, vol.
A247, pp. 529-551, April 1955. (references)
[2] J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol. 2.
Oxford: Clarendon, 1892, pp.68-73.
[3] I.S. Jacobs and C.P. Bean, “Fine particles, thin films and exchange anisotropy,”
in Magnetism, vol. III, G.T. Rado and H. Suhl, Eds. New York: Academic, 1963,
pp. 271-350.
[4] K. Elissa, “Title of paper if known,” unpublished.
[5] R. Nicole, “Title of paper with only first word capitalized,” J. Name Stand.
Abbrev., in press.
[6] Y. Yorozu, M. Hirano, K. Oka, and Y. Tagawa, “Electron spectroscopy studies
on magneto-optical media and plastic substrate interface,” IEEE Transl. J. Magn.
Japan, vol. 2, pp. 740-741, August 1987 [Digests 9th Annual Conf. Magnetics
Japan, p. 301, 1982].
[7] M. Young, The Technical Writer’s Handbook. Mill Valley, CA: University
Science, 1989.