JAJSI11B October 2019 – February 2021 ADS131M08
PRODUCTION DATA
This section describes the formulas used for the power and energy calculations. Voltage and current samples are obtained at a sampling rate of 8000 Hz. All samples that are taken in approximately one-second (1 sec) frames are kept and used to obtain the RMS values for voltage and current for each phase.
Power and energy are calculated for active and reactive energy samples of one frame. These samples are phase-corrected. Then phase active and reactive powers are calculated through the following formulas:
where:
The 90° phase shift approach is used for two reasons:
The calculated mains frequency is used to calculate the 90° shifted voltage sample. Because the frequency of the mains varies, the mains frequency is first measured accurately to phase shift the voltage samples accordingly.
To get an exact 90° phase shift, interpolation is used between two samples. For these two samples, a voltage sample slightly more than 90 degrees before the current sample and a voltage sample slightly less than 90° before the current sample are used. The phase shift implementation of the application consists of an integer part and a fractional part. The integer part is realized by providing an N samples delay. The fractional part is realized by a one-tap FIR filter.
The cumulative power values can be calculated by summing the per phase power results. The cumulative energy can be calculated by multiplying the cumulative power by the number of samples in the packet.
The host calculates the frequency in terms of samples-per-mains cycle by counting zero crossings of the sine wave. Equation 17 converts this result from a samples-per-mains cycle to Hertz.
After the active power and apparent power are calculated, the absolute value of the power factor is calculated. In the internal representation of power factor of the system, a positive power factor corresponds to a capacitive load and a negative power factor corresponds to an inductive load. The sign of the internal representation of power factor is determined by whether the current leads or lags voltage, which is determined in the background process. Therefore, Equation 18 and Equation 19 calculate the internal representation of the power factor: