Scaling and Smoothing
This was brought up during the display of our blink projects. Since the board’s ADC represents 0-1023 for the AnalogIn’s it would be useful to scale between ranges of values.
On a related note analog tends to be a bit noisy, so smoothing out sensor jitter is helpful. The Arduino Code Playground has 2 useful smoothing functions and 2 mapping functions.
3 years ago • Notes