Go Down

Topic: Damn Pot (Read 1 time) previous topic - next topic


Afternoon all,

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.




How much is is fluctuating?
Could be coupling noise (AC - it's all around us)...
Tried shorter leads?
A 0u1 bypass?
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!


Hi runaway_pancake,

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  :smiley-eek:

Many thanks for your help.



Trying a simple analog read on an arduino uno analog pin 2 from a potentiometer

And how much is it fluctuating?


What is the value (total resistance) of the pot? Do you have a multimeter to measure it? Maybe the contact inside is bad.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter


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.



Computers put out oodles of interference.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


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.

Go Up