Research Paper 4
Research Paper 4
LINTRODUCTION
Abstract: - Electronic energy meter has got numerous advantages Our meter has outperformed the electromechanical meter not
over the conventional electromechanical meter and due to this; only in functionality & performance but also in cost and
many countries of the world have switched to electronic metering reliability. It is reliable because it is stable towards
system. But unfortunately Pakistan is still deprived of such temperature changes due to its electronic nature. It is also cost
meters. The paper is based on the final year project of the design effective due to the use of ICs and microcontroller which are
& implementation of prepaid electronic energy meter which we quite cheap. Moreover the energy consumption can be read by
are designing in order to eliminate the problems being faced by
the customer through an LCD display that eventually results in
the Pakistani people. By the introduction of prepaid system in
Pakistan the problem of overcharging and over billing and the an easy reading of the energy by the customer. The smart card
trouble being faced by the customers in paying the bills will be system of billing cut the cost of meter reading as no meter
removed all together. Since our meter is electronic in nature, it readers are required.
has got no moving parts and hence the problem of stability &
accuracy due to temperature changes are solved. Our meter is We have broadly classified our project into two main
also tamper resistant which eradicates the chances of the theft of categories
electricity. • Metering system
• Billing system
Keywords: Microcontroller, Smart-Card, Encryption,
Metering engine•
. ------------------------------------------------------~
PIta.I
loHSide
•
,•
•
- I
+sv •••
••
1 " _-_- .4".·
I
1tt • .. ~ " ~
RIII.nllal
•
! ,•
••
Oillet
; ,. ! .
Lln.V_ge
• •own ~.:.., ~>~ ,••
Cllintlonl
is........................~>'
111101~,,
:
iF ". .i.
...A~ :'ED :
.•
'....." , .
1;-"':";.--:.. . v:.::
!
..., , .. // •
Gain :
C8li"-tion •
------------------------------------------------------~
Fig. 1 The Block Diagram of metering system
548
th
Proceedings ofthe 12 IEEE International Multitopic Conference, December 23-24,2008
ILMETERING SYSTEM
vee
A. Functioning ofthe meter 6V
The voltage signals that we finally get from the current and
III.DESCRIPTION OF EACH MODULE
voltage transducers at CHI and CH2 refer fig.3 are passed
through the two ADC's which converts these signals in digital
As in the block diagram, the meter has a power supply, a domain for superior stability over time & temperature. This
metering engine, a processing and communication engine i.e. a signal is then passed through the HPF to remove any DC offset
microcontroller, other add-on modules such as RTC, LCD present in the signal. We have done this in order to ensure
display, communication ports/modules etc. accurate active power calculation. The voltage & current
signals are then multiplied to get the instantaneous power
A. Power Supply Module which is then low pass filtered (LPF) to get the instantaneous
Weare using a power supply of 5V for the metering system. active power.
We have also employed a power supply monitor which brings 2. Digital-To-Frequency Conversion
the metering IC into an inactive state as soon as the supply
The instantaneous active power is passed through the digital to
goes below 4V, 5% tolerance. We have done this in order to
frequency converter. In this block the power is integrated over
ensure the correct device operation at the power up and power
time to get the frequency & this frequency actually
down condition. Our supply also has the immunity towards
corresponds to the average active power. The active power is
false triggering of the device as we have employed hysteresis
then finally converted to energy by counting the number of
monitoring as well.
pulses over a specified time period.
549
Proceedings ofthe 12th IEEE International Multitopic Conference, December 23-24, 2008
Fl D. RTC and other add-on modules
F2
Cf
JlJ1JL
Fig. 5. Neutral Missing system
V.BILLING SYSTEM
fA1.1.J2
Our billing is done through a prepayment system that is using
smart card technology for the billing purpose. The basic
Fig. 4. Interfacing To Micro controller For Energy Metering modules in our billing system are
550
Proceedings ofthe 12th IEEE International Multitopic Conference, December 23-24,2008
say 200 ~pees to charge ~he card. This amount will finally go The purpose of Rb is to convert the current coming from CT to
to the mlcrocontroller U?It. SO how the MCU will understand the voltage and send this voltage to the metering IC. Its value
that the ente~ed amount IS 200 :upees? Ac.tual~y there is a code is selected keeping in view the maximum current i.e. 40A. To
for very declI~al number that IS entere~ In. bInary format a~d achieve the best results 233.3 mV i.e. half of the rms input
the MCU basIcally understands only t?IS bInary format. So In voltage applied to VI is selected. If2500:1 is the CT tum ratio
order to convert the entered amount Into the format or code then
which is understood by the MCU, the encoder is needed.
40A rms/2500 turns = 16m A rms (3)
B. Smart Card Rb= 233.3m V/16m Arms = 14.58 n (4)
VI.DESIGN ISSUES
Calibration
In this mode, the signal to be calibrated is the line voltage.
A. Power supply Design
First the load current is set to lb. Then we have used the
attenuation network of resistors to achieve the desired
In order to design the supply, it is important to investigate
frequency at output CF.
what amount of current the meter will draw. The supply
current for the metering IC is less than 4mA. The counter
CF = 220*5mA*0.027777*32 = 0.9777 (5)
drive requires a maximum of lmA average. An additional
current is needed for the LED, which is 4mA, or less. An extra
We have made jumpers by shorting out two solder pads. This
milliamp is allowed for the voltage regulation quiescent
approach is preferred over the use of trim pots because of
current, so the total power needed for supply is 9mA.
reliability over time and if CF increases when any jumper is
closed, it should be opened again.
B. Burden resistor calculation (Rb)
551
Proceedings ofthe 12th IEEE International Multitopic Conference, December 23-24, 2008
240VAC
R A A R
'V
'. }IISCAL
R R R R
J
J J J
._-_._.-
., ........~.'.'..'::.:'.'::..~','~',','::::. .."._.-""' - '
R R R
"',.JIJa.,,''''.;;:'.,,,
364mV ... ,&A .. """,..... ,.......
J J J
233mV
VlA REFERENCES
[1]. Zhiqun Chen, Java Car Technology For Smart Cards - Architecture
And Programmers Guide, Addison-Wesley, 2000.
[2]. W. Rankl, W.Effing , "Smart Card Hand Book", John Wiley And Son,
1997.
233mV VlB [3]. Micro Chip Data Book, Second Edition, July 1992.
[4]. Muhammad Ali mazidi , The 8051 Microcontroller and Embedded
Systems, Second Edition,
VI.TEST RESULTS
Load
Current Cos Load Frequency %
Voltage (V) (KWh)
(I) <I> (KW) Calculated Observed ERROR
Observed
1 212 7.37 1 1.56244 0.04340 0.04761 1.713 9%
552