I am new to doing development with EmonLib, so please accept my apologies if this answer is hidden in plain sight on your website.
I would like to do a current measurement on an Arduino using your library, and I ran across this piece of code from your website:
#include "EmonLib.h" // Include Emon Library
EnergyMonitor emon1; // Create an instance
void setup()
{
Serial.begin(9600);
emon1.current(1, 111.1); // Current: input pin, calibration.
}
void loop()
{
double Irms = emon1.calcIrms(1480); // Calculate Irms only
Serial.print(Irms*230.0); // Apparent power
Serial.print(" ");
Serial.println(Irms); // Irms
}
My question is how would I come up with the calibration values for the calcIrms and current methods, for the United States? Are these things constants that have already been calculated for the US?
I’m a software and algorithms guy, not a hardware/electrical guy, so this is confusing, and help is greatly appreciated!