Minor Report
Minor Report
Minor Report
METER
MINOR PROJECT REPORT
A. SUBMITTED IN PARTIAL FULFILLMENT OF THE
REQUIRMENT
B. FOR THE AWARD OF THE DEGREE
C. OF
BACHELOR OF TECHNOLOGY
IN
ELECTRICAL ENGINEERING
Submitted by :
NAME
ROLL NO.
Under the supervision of
CERTIFICATE
2
ABSTRACT
Efficient power consumption and savings has become a major issue these days
as the need for power is increasing day by day. Domestic energy consumer is
unaware of his power usage, means to save it, and also sometimes finds ways
to steal power without paying for it. One more issue is that service provider
can’t predict the power consumption of a specific consumer or a specific area
which can further be used to analyse the load changes of the same.
This has increased the emphasis on the need for accurate and economic
methods of power measurement. The goal of providing such data is to
optimize and reduce their power consumption. The Energy Meter proposed
here deals with the measurement of voltage, current, computation of active
power, and energy being consumed by a consumer and display the information
to the consumer and maintaining it as a record for the utility.
In the designed circuit, these quantities are measured using Arduino. The
measured values are displayed on the Serial Monitor. Hall Effect Current
Sensor ACS712 is used to measure the current signal and potential transformer
and voltage scaling circuit is used to scale down the supply voltage which can
then be sensed by the microcontroller.
3
CONTENT
Chapter 1 : Introduction ……………………………[5]
1.1 Implementation…………………………......[5]
1.1.1 Hardware……………………………….[6]
1.1.2 Software………………..........................[6]
1.2 Objective…………………………………...[7]
Chapter 4 : Conclusion………………..…………...[22]
4.1 Observations………………………..……..[22]
4.2 Sources of Error…………………..……….[23]
References
Appendix
4
1.INTRODUCTION
In this project, we have designed a single phase energy meter capable of
measuring current, voltage, active and reactive power consumption and power
factor instantaneously, using Arduino AtMega microcontroller, ACS712 hall
effect current sensor, a potential transformer and voltage dividing circuitry.
An energy meter is an instrument used to measure electrical energy
consumption of electrical powered appliances in residential or business areas.
Energy meter calibration is in billing units which are rated in kilowatt-hour
(kWh). The kilowatt-hour is the amount of energy consumed by a load of one
kilowatt over a period of one hour. Energy meter basically consists of a
potential transformer and offset circuit(for voltage measurement) and a hall
effect sensor(for current measurement). The voltage sensing circuit measures
the instantaneous voltage (volts) while the current sensor measures the
instantaneous current (amperes). The product of the instantaneous voltage,
current and power factor gives the instantaneous electrical power in wattage
which is multiplied over a period of time.
Our work focuses on measurement of instantaneous current, voltage, active
and reactive power component and power factor. This power is multiplied over
time for the total power consumption and this reading may be used for further
billing and load analysis purposes.
1.1Implementation:
5
Implementation part of this energy meter is broadly divided into hardware
and software implementation for clear explanation
1.1.1) Hardware : For the measurement of AC current, ACS712, a hall effect
current sensor which can measure upto 20A is used. It is directly connected in
series with the input AC line and it’s output is 0-5V DC, with the output voltage
corresponding to the input current. This is fed to the Arduino analog pin which
reads the values 0-1024 corresponding to 0-5V. The value is further calibrated
using practical methods to obtain absolute AC current reading instantaneously.
For the measurement of AC voltage, a step down potential transformer is used
which steps down the 220V AC(approx.) to 9V AC. Then a DC offset circuit is
used to get the corresponding 0-5V DC from this 9V AC. This DC voltage is then
fed to Arduino analog pin which reads the values 0-1024 corresponding to 0-
5V. The value is further calibrated using practical methods to obtain absolute
AC voltage reading instantaneously.
1.1.2) Software : Given the instantaneous voltage and current readings are
obtained for further calculations in the program, an open source library called
‘Emonlib’ is used to find out instantaneous active and reactive power and
power factor.
Emonlib offers different functions for calculation of different quantities, the
internal working of which, is explained in detail in the implementation section
of this project work. Measurement of active power is done by multiplying
instantaneous voltage and current values and then averaging it over a period
of time. Another major principle of working of ‘emonlib’ is to take sample of
instantaneous current and voltage values over a period of time( window
length) which in our design is kept at 10 AC cycles(100ms for 50Hz supply).
These values are then used to calculate RMS values of voltage and current
which are multiplied to obtain the apparent power and thus the power factor
and reactive power.
All these values, that is ,RMS values of current & voltage, active and reactive
power consumption and power factor are calculated by the microcontroller
repeatedly at a time interval of 1 second, which is shown as output on the
laptop screen in the serial monitor of Arduino IDE using the “Serial.Print()”
command.
6
1.2 Objective:
In a world of rising energy cost human beings and organizations have been
started for investigation for an efficient way to minimize their extended
electric cost. The appropriate method for decreasing these expenses is to
continuously monitor the power that has being expended and from this
information, comparing the available choices about how to deal with the
electrical devices being controlled. As more home machines and customer uses
electricity are introduced, residential energy consumption tends to grow
rapidly. A large number of home devices increase the control utilization in two
ways: standby power and ordinary control. Those two types of force utilization
are relative to the quantity of home devices. Subsequently, the operational
cost in homes is additionally expanding. If a person can instantly watching how
much power consumes per minute, they might be more careful later on about
giving devices a chance to stop working when not required. The project means
to give a clear vision of a home's energy use.
7
2.ELECTRONIC METER- A REVIEW
2.1 INTRODUCTION
The world growing demand for electricity brings up important issues about
how to supply such energy needs in a sustainable manner [1]. It has been
necessary to look for alternatives that allow the efficient use of energy,
following the sustainable development concept, on which the electricity is
considered a fundamental resource for the socioeconomic development and
an essential asset for the maintenance of life in society [1-3].
Consequently, the improvement of the electrical system by means of all
possible high-tech advances is imperative. Therefore, several modifications in
the existing network infrastructure and operational procedures are expected
for the future smart grids, what may ensure that all entities are interconnected
and operating to guarantee the best use of primary energy resources and all
other infrastructure related to generation, transmission, distribution and use
(GTDU) of energy, from producers to consumers.
In such context, the power meters are very important elements in the smart
grid concept [2, 4], since they are the basic device to connect different GTDU
equipment over the grid, either point-to-point or by means of hierarchical
supervisory systems. Thus, electromechanical meters have been replaced by
electronic meters to meet the needs of the modern power grids [5-6].
Recently, these electronic meters have been called as smart meters and among
other features, they should provide superior accurate measurements, data
storage, automatic data reading and integration to local or wide-area energy
management systems [2, 4, 7].
8
2.2.1 Electromechanical Meter
9
from the meter to the utility company by radio frequency, telephone, power
line or satellite communication. The evolution of the AMR concept was called
AMI (Advanced Metering Infrastructure). The main difference between these
categories is in the
communication
approach, since the AMI
enables the possibility of
data exchange between
utility and consumer, in
Figure 2.3 AMI
bidirectional mode. Thus,
the AMI shown in Fig. 2.3 can be represented as a system with electronic
meters, data storage, management system and communication infrastructure.
The main features of the AMR/AMI systems are:
• Electronic meters: perform energy measurements and provide
communication between consumer and utility.
• Management system: is composed of a data concentrator and signal
processing unit.
• Communication infrastructure: Establish the means of communication for
the data transmission between the network elements.
10
Europe and North America.
Despite the great initial
investments in North America,
it is estimated an almost
constant development for the
near future, especially due to
the cautiousness perspective
for the uncertain future
approaches. However, other
countries like China have being
doing substantial incentives for
the smart meters use. The
lowest penetration rate is in
Latin America, Middle Est and
Figure 2.5
Africa, where the use of smart
meters is set to steady growth.
Figure 2.7
11
3. IMPLEMENTATION OF ENERGY
METER
12
2. ACS712 CURRENT SENSOR- The Allegro ACS712 provides economical
and precise solutions for AC or DC current sensing in industrial, commercial,
and communications systems. The device consists of a precise, low-offset,
linear Hall sensor circuit with a copper conduction path located near the
surface of the die. Applied current flowing through this copper conduction
path generates a magnetic field which is sensed by the integrated Hall IC and
converted into a proportional voltage.
13
3.2 HARDWARE IMPLEMENTATION
Why Arduino?
Thanks to its simple and accessible user experience, Arduino has been used in
thousands of different projects and applications. The Arduino software is easy-
to-use for beginners, yet flexible enough for advanced users. It runs on Mac,
Windows, and Linux. Teachers and students use it to build low cost scientific
instruments, to prove chemistry and physics principles, or to get started with
programming and robotics.
14
3.2.2 VOLTAGE MEASUREMENT[8]
AC voltage measurement is needed to calculate real power, apparent power
and power factor. This measurement can be made safely (requiring no high
voltage work) by using an AC to AC Transformer. To measure AC voltage
using Arduino analog input we need to:
15
The step-down transformer reduces the voltage to about 11.6 V rms, and the
potential divider formed by resistors R1 & R2 further reduce the voltage to
comfortably fit inside the 0 – 3.3 V d.c. range of the analogue input.
There are many methods for voltage measuring and calibration using
Microprocessors, we used
AC current measurement is done using the ACS712 Current sensor. The device
consists of a precise, low-offset, linear Hall sensor circuit with a copper
conduction path located near the surface of the die. Applied current flowing
through this copper conduction path generates a magnetic field which is
sensed by the integrated Hall IC and converted into a proportional voltage
Line current is first downsized using ACS712T 30A current sensor module .
Since the sensor output will have a DC offset of 2.5V, a separate circuit for
offset is not required. The sensitivity of the sensor is 66mV/A.
16
For example if 2A line current flows, the output will be 132mV pk-pk sine wave
with 2.5V DC offset. Now, this output is directly given to ADC input terminal of
Arduino through analog pins.
The current sensor is connected in series with the load as shown in FIG[4].
Final output voltage (Vout) is given to the analog pin A1 of the microcontroller
which reads the values 0-1024 corresponding to 0-5V .The RMS current
calculation done is similar to the RMS voltage done by the arduino.
17
3.3 SOFTWARE IMPLEMENTATION
https://github.com/openenergymonitor/EmonLib
18
3.4 FUNDAMENTALS OF AC POWER
CALCULATIONS IN ARDUINO[10]
1. Real Power
Real power is the average of instantaneous power. The calculation is relatively
straightforward. First we calculate the instantaneous power by multiplying
the instantaneous voltage measurement by the instantaneous current
measurement. We sum the instantaneous power measurement over a given
number of samples and divide by that number of samples:
for (n=0; n// inst_voltage and inst_current calculation from
raw ADC input goes here
sum_inst_power += inst_power;
}
sum_squared_voltage += squared_voltage;
}
19
3. Root-Mean-Square (RMS) Current
Same as the RMS voltage calculation:
for (n=0; n// inst_current calculation from raw ADC input goes
here.
sum_squared_current += squared_current; }
4. Apparent Power
The apparent power is the product of RMS voltage and RMS current and thus
can be calculated using-
5. Power Factor
The power factor as we all know is a ratio of real power to the apparent power,
thus can be calculated by
20
3.5 PROGRAM FLOW
21
4. CONCLUSION
4.1 Observations:
The implementation of electronic meter is done successfully. The tested loads
used are 2x100 watts bulbs and a 12 watt LED bulb with an average error of
1.28% at normal load conditions, however the meter gives high percentage
error at no load or light load conditions.
Following observations were recorded during the experiment done.
22
4.2 SOURCES OF ERROR:
Harmonics in Supply :
The input supply is not perfect sinusoidal hence lead to errors due to
harmonics present.
23
REFERENCES
24
APPENDIX
// EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3
void setup()
{
Serial.begin(9600);
void loop()
{
emon1.calcVI(20, 1000); // Calculate all. No.of half wavelengths (crossings), time-out
Serial.print("Current: ");
Serial.println(currentDraw);
Serial.print("Watts: ");
Serial.println(realPower);
Serial.print("VA: ");
Serial.println(appPower);
Serial.print("powerfactor: ");
Serial.println(pf);
Serial.println("\n\n");
25
26