We have made a data Acquisition system for acquiring 8 RTD and one current sensor data and then taking data to asp.net for further processing.
currently we are generating an array of 9 analogue inputs and then fed to .net program per second refresh rate.
now our problem is that out current data is oscillating about 511(analogue value) i. e. its moving by equal units in positive and negative direction of 511.
can't we program arduino like this that it return us the maximum value over consective 2 or 3 seconds so that in .net we get single highest value.
If there any function available which store values over some millisecond delay and return minimum value after one second.
You use millis() to determine time, relative to when the Arduino was reset. You use an if statement to determine if the current value is higher (or lower) than the saved value. It's trivial.