Hello, I'm working on like alot of other people to monitor my home. I'm not using any automated home system. I just wanted to make a Engery monitor system to monitor. I'm having problems Understanding the code just a bit. I'm using the emonLib Library here https://github.com/openenergymonitor/EmonLib Using the example Current Sketch https://github.com/openenergymonitor/EmonLib/blob/master/examples/current_only/current_only.ino. Most people that I search seen online is running 50Hz and 230v. Sense I'm in the USA I'm at 120v 60Hz.
What I'm having prioblem is in the code understanding
emon1.current(1, 111.1); // Current: input pin, calibration.
In there the first 1 is the analog pin but the 111.1 the calibration number is what I'm having problems trying to understand or What I need to change to for my Setup being I'm using 60Hz and 120v.
Second part is double Irms = emon1.calcIrms(1480); // Calculate Irms only.
I just don't know what to changes these two to suit my setup. I try to look up the information but very confusing.
Onto the hardware. I'm using an esp8266 because of the Wifi. Here is a image of what I'm using for my setup
I just need help to figure out the two area that I'm confused on. someone please help me?
Joseph