Smoothing analog reading to a single average.

Hello, I am a beginner with Arduino, how do I implement the smoothing example to only display one average value for about 20 values read from an analog pin?

You used the definite article ("the smoothing example") like we're supposed to know what your code looks like.

We don't.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Did you google arduino averaging analog input

https://www.arduino.cc/en/tutorial/smoothing

Thanks.. Tom... :slight_smile: