Calibration
The ATM90E26 Datasheet has an extensive list of calibration registers. Of these the ones we are most interested in are:
Ugain
for Voltage gainIgainL
for Live current line gain
These also affect the checksum2 stored in the device and have to be updated together. The library provides a CalcCheckSum function to help in evaluating the checksums the ASIC needs when the gain values are changed. The checksum value is displayed on the LCD of the smart meter and should be rewritten back to the library after every recalibration.
Calibration procedure
Calibrating voltage gain
This is the easiest parameter to calibrate and requires the least equipments. The steps are:
- Setup default parameters and record voltage reported by ASIC and voltage reported by a multimeter with 0.1% accuracy at the AC bus.
- Apply scaling to the
UGain
parameter to account for any discprepancy according to this formula. - UGain_n = (V oltage Actual / V oltage Measured) * UGain_o where UGain_n is the new Voltage gain and UGain_o is the old voltage gain.
Calibrating current gain
The measurement of current in an energy monitor ASIC is the most unreliable piece since current is difficult to sample directly. We are obliged to use 1 of the 2 proxies for it.
- Magnetic field around the current carrying wire(s). Magnetic fields are typically sampled using Current Clamps or Rogowski Coils.
- Voltage drop across a thermally stable low resistance shunt in the path of the current.
The current calibration requires use of the reference resistors described in the materials section.
- Wire a 12V AC source in series with the reference resistor and an ammeter.
- Clamp the live side of the wiring with the CT being used with the ASIC and note the current measurements on the ASIC and the ammeter.
- Repeat the measurements with a few different reference Nicrome resistors, taking care not to exceed the power dissipation ratings of the resistors with heatsinks on. There are typically 4R, 8R and 10R resistors in the calibration kit. With 1R resistors use 9V AC as input. The Voltage reference signal to the ASIC and current into the calibration resistors can come from separate transformers (ideally the same one is used).
- Once a few actual vs measured current values are collected use an equation similar to the
UGain
one to computeIGain
.- IGain_n = (Current Actual / Current Measured) * IGain_o where IGain_n is the new current gain and IGain_o is the old current gain.
- Update Checksum as appropriate using built in library methods
Calibrating power
If the voltage and current multipliers are set correctly in the above steps the power for unity power factor loads should not require any additional work.
Calibrating power factor
This requires use of the variable inductor or a well known inductive load. Use the motorized load (fan/fridge) to calibrate the higher set points of the power factor and change the Lphi and Nphi default values. The library currently does not implement runtime change to these values they are hardcoded in the header file. If the purely resistive load shows unity power factor no phase angle calibrations are necessary.