This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADC-ENERGY-METROLOGY-LIB-SW: Claibration Factors for Reactive Energy and DC Offset on Current Channel

Part Number: ADC-ENERGY-METROLOGY-LIB-SW
Other Parts Discussed in Thread: AMC131M02

Tool/software:

Hi

We are building an polyphase e-meter application with AMC131M02 frontends.

Currenctly we are struggling with setting for the offsets for Reactive and Fundamental Power. Irms and Urms and Active Power is measured properly, but reactive and fundamental not.

/*!
 * @brief Defines the voltage scale factor for phase A
 *        It depends on hardware design and ADS configuration
 */
#define PHASE_A_VOLTAGE_SCALE_FACTOR                1586.134202
/*!
 * @brief Defines the current scale factor for phase A
 *        It depends on hardware design and ADS configuration
 */
#define PHASE_A_CURRENT_SCALE_FACTOR                238.9858687
/*!
 * @brief Defines the power scale factor for phase A
 *        It is product of voltage and current scale factor
 */
#define PHASE_A_POWER_SCALE_FACTOR                  378994.3975
what are the units of the following values?
/*!
 * @brief Defines estimate for the DC level of the voltage channel of phase A.
 *  Using this estimate helps reduce the initial settling time of the DC
 *  voltage filter for phase A
 */
#define PHASE_A_VOLTAGE_DC_ESTIMATE                 0
/*!
 * @brief Defines estimate for the DC level of the current channel of phase A.
 *  Using this estimate helps reduce the initial settling time of the DC
 *  current filter for phase A
 */
#define PHASE_A_CURRENT_DC_ESTIMATE                 0
/*!
 * @brief Defines the offset in AC voltage, this value is substracted from the
 * computed voltage in phase A.
 */
#define PHASE_A_VOLTAGE_AC_OFFSET                   0
/*!
 * @brief Defines the offset in AC fundamental voltage, this value is
 * substracted from the computed voltage in phase A.
 */
#define PHASE_A_VOLTAGE_FUNDAMENATAL_OFFSET         0
/*!
 * @brief Defines the offset in AC current, this value is substracted from the
 * computed current in phase A.
 */
#define PHASE_A_CURRENT_AC_OFFSET                   0            
/*!
 * @brief Defines the offset in AC fundamental current, this value is
 * substracted from the computed current in phase A.
 */
#define PHASE_A_CURRENT_FUNDAMENATAL_OFFSET         0
/*!
 * @brief Defines the offset in active power, this value is substracted from
 * the computed active power in phase A.
 */
#define PHASE_A_ACTIVE_POWER_OFFSET                 0
/*!
 * @brief Defines the offset in fundamental active power, this value is
 * substracted from the computed active power in phase A.
 */
#define PHASE_A_ACTIVE_POWER_FUNDAMENATAL_OFFSET    0
/*!
 * @brief Defines the offset in reactive power, this value is substracted from
 * the computed active power in phase A.
 */
#define PHASE_A_REACTIVE_POWER_OFFSET               0
/*!
 * @brief Defines the offset in fundamental reactive power, this value is
 * substracted from the computed active power in phase A.
 */
#define PHASE_A_REACTIVE_POWER_FUNDAMENATAL_OFFSET  0

The test-load is: 230V, 5A, 0°

When we are outputting the raw ADC values and plot them, we see a small DC Offset on the current channel. Is this an issue? Must we correct this? if yes where?

  • Hi Dominic,

    Sorry for the delay.

    Are you using/modifying the code from the TI Metrology Library?

    You will want to correct any gain and offsets in the ADC measurements.  The TI Metrology Library has a GUI in which you can calibrate the gain and offset errors.  If you are not using the GUI, you would have to apply the calibration offsets after reading the measurements and before sending the measurement data to the functions that calculate the power

    Thanks.