wavelengths variable?

  while ((crossCount < wavelengths) && ((millis()-start)<timeout))

using emon lib and

  emon1.calcVI(20,2000);                 // Calculate all. No.of wavelengths, time-out
  emon1.serialprint();                       // Print out all variables
 

but including some diagnostic prints i see:

 crosses 20, measuring time 202, samples 564
 crosses 0, measuring time 2001, samples 5643
 

in a 50Hz country 1 sinus is 20ms,

i think with 20 crosses we measure 20 half-wave, 10 sinus only. ( 200 ms )  ( 2820 Hz samplerate?)

i remember that in old version EMON used 3000 samples ( about 53 sinus )

can this pls be checked in software and verified with proper measuring hardware?

but not a real problem because "20" is adjustable.

? was there a reason to "HURRY UP" the calculation? or just a benefit from the "FULLWAVE EMON"

Robert Wall's picture

Re: wavelengths variable?

I think you are right, the name is wrong.  The variable is the number of zero crossings. So you should always use a number that can be divided by 2 so that you have a whole number of waves.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.