Design Idea; Moving averager rejects noisy outlier values

Design Idea; Moving averager rejects noisy outlier values

Feature articles |
By Graham Prophet

Smart moving average

The moving average is a process that continuously computes the average over N samples of data flowing through a FIFO (First In First Out) buffer. Every new sample added to the buffer will remove the oldest sample used to compute the previous mean value.


The smart moving-average is a variation on the theme; a digital circuit (Figure 1) where the idea is to collect the latest N measurements like a classical moving average, but new data will be added into the buffer (Sx) only if its value is within set limits of the actual average of the previous N samples.



Figure 1. The smart moving-average circuit determines when to reject new data.


The Finite State Machine (FSM) of Figure 1 manages this task. Every new data sample is compared against a maximum and minimum which depend on the current mean value. The new value is discarded when it is beyond the set limits.



This Design Idea continues in the July/August digital edition of EDN Europe, in your in-box now or click here

If you enjoyed this article, you will like the following ones: don't miss them by subscribing to :    eeNews on Google News


Linked Articles