Calibration and Parameters in EmonLib

Yes, I know it is difficult to follow, but the last line in each section tells you all you need to know. Written another way:

“234.26” is the mains voltage that gives you 1 V at the ADC input.
“111.1” is the mains current that gives you 1 V at the ADC input.
To calculate those, you must work backwards from the ADC input through the various resistors and transformers to the mains circuit.

“20” as it says in the comment, the number of half wavelengths (zero crossings) of mains over which you sample and average the power.

“1480” the number of current samples over which you sample and average the current. This should be as close to a whole number of mains cycles as possible, the last time I measured the sample rate, it was approximately 5588 current samples per second. (“1480” is no longer the best value.)

“1.7” is the correction for the phase errors in the transformers and the timing error between sampling voltage and current. It’s hard to calculate, it is best to set it on test as explained on the calibration pages in “Learn”.

3 Likes