My question is based on this paper:
They claim to calculate RMS with non-integer number of samples to improve a ccuracy over half cycle or one cycle RMS.
In my case for one cycle I can't have an integer N that matches both 50 and 60 Hz and possible fluctuations. In the microcontroller, the plan I have i s to set an ADC triggered by a timer for a fixed sampling frequency, say 6 kHz.. I can also use DMA or double buffer approach if needed.
What do you think of the approach of the paper? I'm open to other suggestio ns regarding the proper way to sample the signal for a one cycle RMS. I kno w that if I increase the number of cycles I can find an integer sample time period that matches both 50/60 Hz, but the point is that I need RMS per on e cycle. Does not need to be so precise, even integer RMS is Ok.
Some caveat:
- In the hardware, the signal is shifted with a DC value to match the ADC positive values. For example, my ADC reads 0-3.3V, then the signal swings a round 3.3/2. This DC value is pretty stable so averaging it and subtract fr om the reading works.