Hi
I have a need to measure a scaled analog inputs 'rate of change' against time.
I was considering using a timed interupt block and using a 'holding register' to keep the value of the previous check, then simply subtracting the difference of the actual value and the holding register and dividing it by the interupts time interval.
Does anyone think it may be better to average these over say 5 interupts to get a more accurate figure?
I am measuring the 'flow' of a powder onto a belt sat on a 4-20mA loadcell and need to approximate Kg/Minute
I have a need to measure a scaled analog inputs 'rate of change' against time.
I was considering using a timed interupt block and using a 'holding register' to keep the value of the previous check, then simply subtracting the difference of the actual value and the holding register and dividing it by the interupts time interval.
Does anyone think it may be better to average these over say 5 interupts to get a more accurate figure?
I am measuring the 'flow' of a powder onto a belt sat on a 4-20mA loadcell and need to approximate Kg/Minute