ATM90E26_Arduino icon indicating copy to clipboard operation
ATM90E26_Arduino copied to clipboard

Line Current Offset calibration

Open bilalfarooq002 opened this issue 3 years ago • 1 comments

Hi, i am trying to calibrate the ATM90E26 metering IC using this library and i have also created some custom functions to calibrate voltage gain, current gain etc, but when i try to calibrate Line Current offset by writing offset value to IoffsetL (register 35H) there is very small change in the Line Current rms. But whatever value i put in the offset register i am not able to make it zero.

here are voltage and current gains ugain = 0x67A3 igain = 0x1AC6

i have tested the voltage and current gain values and i am getting accurate values with less than 1% error.

here is the code where i am calculating the current offset:

image

this is the same formula as described in the application note, furthermore i have also tested by putting in value from 0 to 50000 in 16 bit IoffsetL register just to see if maybe i was putting wrong value of current offset and also to see the behavior of current offset. I noticed the no matter what value i put in the current offset it never makes the Irms current value zero.

Here is the place where i am setting the current offset and current, voltage gain:

image

image

here is the place where i am apply the calibration in the code, this is in the prebuilt CalibrateEnergyIC() function:

image

If anyone has done current offset calibration, please share your experience, thanks

bilalfarooq002 avatar Mar 07 '22 07:03 bilalfarooq002

Did you found a Solution?

ripper121 avatar Apr 13 '23 16:04 ripper121