參數(shù)資料
型號(hào): AN939
廠商: Microchip Technology Inc.
英文描述: Designing Energy Meters with the PIC16F873A
中文描述: 電能表的設(shè)計(jì)與PIC16F873A
文件頁(yè)數(shù): 1/18頁(yè)
文件大小: 432K
代理商: AN939
2005 Microchip Technology Inc.
DS00939A-page 1
AN939
INTRODUCTION
The deployment of electronic energy meters has
gained a great deal of momentum over the past several
years. This is due to their two main advantages over
the traditional electromechanical designs: improved
accuracy and an expanded set of features. Current
microcontroller technology allows designers to build
meters that are competitive in price with traditional
devices, while maintaining the required IEC 1036
Class 1 accuracy of ±1% for domestic applications.
Microcontrollers also allow the easy incorporation of
added features, such as rms voltage and current and
peak demand metering, as local electric utility
companies desire to implement them
.
In this application note, we will discuss the implementa-
tion of a basic watthour meter using PICmicro
Flash
microcontrollers. In the process, we will show how one
ADC with a single sample-and-hold circuit can effectively
measure both voltage and load current and maintain
Class 1 accuracy. The firmware discussed measures and
displays rms voltage and current, as well as kWh,
presented in a clear digital format on an LCD.
Besides basic energy measurement, this design also
includes features that many electric utilities are very
interested in rolling out on a wider basis. Dual-channel
measurement provides a simple method for monitoring
for tamper conditions. An on-board RTC provides a
time source for calculating and tracking current and his-
torical peak demand. All metered data is securely
stored as it is updated in nonvolatile memory.
The design discussed here uses the PIC16F873A and
two Current Transformers (CTs) for current sensing. It
can be implemented just as easily with the pin compati-
ble PIC18F2320. Current measurement using a shunt
may also be used in this design, with little or no change
to the current amplifier design.
PRINCIPLES OF MEASUREMENT
Basically, a watthour meter is designed to measure
energy or power consumed over time. In simple terms,
electrical power is the product of voltage and current. If
we make repeated measurements of both instanta-
neous voltage and current, or
V
i
and
I
i
, we can keep a
running total of their products over time. By dividing the
total accumulated energy over the number of samples,
we have the average power (the first expression in
Equation 1). Multiplying the average power by time
gives the total energy consumed.
EQUATION 1:
CALCULATING AVERAGE
ENERGY AND CONSUMED
POWER
For alternating current, such as that from the mains,
average power also must account for
power factor
,
which is the phase relationship between voltage and
current. In simple terms, average AC power is
VIcos
θ
,
where
V
and
I
are average rms voltage and current,
and
θ
is the phase angle between the two. Instanta-
neous sampling does not directly use power factor; the
value of the phase angle is essentially embedded in the
instantaneous current measurement. Recovering the
actual phase angle for the purpose of calculating and
displaying the power factor can be done separately and
is very calculation intensive. If we are just measuring
energy consumption, it is not necessary.
Author:
Sandip Chattopadhyay
Microchip Technology Inc.
Average Power
(watts)
=
N
Σ
V
i
I
i
k
N
k
k
Energy Consumed
(wattseconds)
=
N
Σ
V
i
I
i
k
F
s
k
k
Designing Energy Meters with the PIC16F873A
相關(guān)PDF資料
PDF描述
AND8001 ODD NUMBER DIVIDE BY COUNTERS WITH 50% OUTPUTS AND SYNCHRONOUS CLOCKS
AND8001D ODD NUMBER DIVIDE BY COUNTERS WITH 50% OUTPUTS AND SYNCHRONOUS CLOCKS
AND8002 ECLinPS, ECLinPS Lite, ECLinPS Plus ECLinPS MAX, and GigaComm Marking and Ordering Information Guide
AND8002D ECLinPS, ECLinPS Lite, ECLinPS Plus ECLinPS MAX, and GigaComm Marking and Ordering Information Guide
AND8009 ECLinPS Plus SPICE Modeling Kit
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN939-12D 制造商: 功能描述: 制造商:undefined 功能描述:
AN93B06K 制造商:Panasonic Industrial Company 功能描述:IC
AN93B06SCR 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:BROAD BAND VIDEO AMPLIFIER IC FOR CRT MONITOR
AN93C02NSB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Single Radio Communication IF Amplifier
AN-940 制造商:AD 制造商全稱:Analog Devices 功能描述:Low Noise Amplifier Selection Guide for Optimal Noise Performance