Trying a simple analog read on an arduino uno analog pin 2 from a potentiometer, and then using the Serial.print to display this input, the problem I have is the reading keeps fluctuating when the pot is stationary, I have changed the pot and still the same issue.
Any ideas what could be causing the issue? Tried a resistor on the wiper but no improvement.
The values keeps jumping from 150 to 134 then 161 then back again, the leads I'm using are short breadboard connector leads, but there were close to the laptop at the time, I will set it up again and try it.
"A 0u1 bypass?" - Sorry totally lost me there
If the value of the pot is too high then it can effect the stablity of the reading. No higher then a 10k ohm pot is recommended. And any noise on the voltage feeding the pot will also be seen as noise on the measurement.
Just to give you a benchmark, I've been working with a 5k pot using analogRead, and if I don't move the pot wiper it stays on a value, sometimes flipping between two values (like from 243 to 244 and back). I've never seen the sensed values moving + and - over 1% like you are seeing.
My pot is hooked to a breadboard about six inches from the Arduino, and the Arduino is on a six-foot USB cable from my computer.