I am using my Arduino development tools to use emonlib on an ESP32 development board. I got everything compiling and running but my serial output is not putting out stable and correct values. So I guess I need to calibrate but after several days I haven;t managed to get it working.
I am using an SCT-013-010 sensor. This sensor has a build in burden and puts out 0-1V for 0-10A.
I am using 2x 10k Ohm resistor devider between +3v3 and gnd. One side of the sct to the middle of this devider and the other pin to ESP input pin GPIO-36.
How to get the correct value for Cal in: emon1.current(CurrentSensePin, Cal);
Is 1480 good enough for my setup? double Irms = emon1.calcIrms(1480); I notice no stable value with a stable load…
I am not measuring the voltage.
I just want to measure my power usage and put it out on serial. no more then that. Well, next step will be sending an email when power passes a border, hence the ESP32. But basically my question is just Arduino / EmonLib.
I havent found many example with the SCT-013-010. So probably others may find this a helpfull question as well. Thank you!