Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15514

Open Energy Monitor (EMonLib) ESP program execution time

$
0
0

I am finishing up my sketch code for the Open Energy Monitor program
that uses the EmonLib library.
https://github.com/openenergymonitor/EmonLib

The bench tested program execution time is alarmingly long: 8 SECONDS!

Does anyone else use this same code? I know by commenting out the two calls
[emon1.calcVI & emon2.calcVI] in the void loop the execution time goes to 0-1 msec.
So each emon instance is using about 4 seconds of processor time to make the
calculations for power factor, real power, apparent power, Vrms, and Irms.

There is a caveat here in that the CT and voltage inputs used to make the calculations are not currently connected. I am still finishing the code & need to mount the processor next to the service panel. This long execution time is not necessarily a problem and I have interfaced through a client/server request with the ESP temporarily hooked up in my computer room. But 4 seconds is a looong time for each instance with what little I know about these processors.

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 15514

Trending Articles