I have an ingredient feeder resting on electronic scale that is transmitting one reading per second to a computer. I would like to calculate the current flow rate of the product as it is being dispensed from the feeder. It is possible for the flow rate to change over time so I would like to recalculate the flow rate on an ongoing basis as best as possible using a moving window. I know there will be a lag in the correct flow rate calculation.
Now here is the real problem… The system is subject to random movement and bumps (which cannot be eliminated) creating random 'noise' in the data so a graph of the readings is not smooth. I need to be able to smooth out the rough spots in the data and calculate the current flow rate as best as possible without too much undue error and a minimum of lag time. Thanks.