Emonlibpro constant monitoring and value returns

I am trying to constantly measure 1 voltage value and 3 current values using an Arduino Mega and check that the data is within limits.
My problem is that I am unable to understand the code in the demo. It is unclear how to use the code to get consistent returns of certain values. For now I only need the rms voltage and current values, but I may decide to utilize the other values in the future as well.

How can I link each part of the code to what it does? There is almost no comments or explanations in the code.

I am using the code and library linked here GitHub - chaveiro/EmonLibPro: Generic library for any voltage and current sensors. Interrupt based, implements a zero cross detector and phase-locked loop for better precision. Completely line frequency independent.

Any help would be appreciated.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.