good evening everyone !
Im using the YHDC sct-0013-000 current type CT and the sample code and hardware provided on this site. Can i know what is the meaning of the number inside the bracket based on the provided cosing fromthe open energy monitor… here is the coding
Look at the code and the comments in emonLib.cpp to see exactly how emonLib works and what is needed.
The number (1480) is no longer optimal. The sampling rates, measured with a standard emonTx V3.4 (and the emonPi is the same processor) are:
calcIrms( ) - approx 5588 current samples per second.
calcVI( ) - approx 2535 pairs of voltage & current samples per second.
@Robert.Wall May i ask how did you accomplish the test to know how much samples the emonTx process in 1s ?
In the code , the loop has no clear timing , it only depends on the HEX instructions after compilation of the code !, Have you count the HEX instructions in the loop section to determine the frequency ?