Re: Input filtering for a microcontroller



Ignoramus15879 wrote:
Here I am kind of limited with
memory, and computing RMS requires an array.

No it doesn't. It only requires two variables:
one that sums the squares, and one that counts
how many values have been summed. Any time you
want RMS, do the division. Any time adding a
sample would cause overflow, divide both values
by 2.
.