Improper Potentiometer Readings

So I'm working on a robotic servo arm. I'm using 4 Micro Servos and 4 10k Potentiometers to control them. The very very huge issue is the potentiometers give off random values regularly.

Now this is a huge issue because it makes operating the robot near impossible. Anyone know how solve this issue?

Btw ANY help or comments are appreciated. I'm a self learner so I try my best to keep to myself but I've been on this for quite a number of days now.

Ty :slight_smile:

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.

Also a circuit diagram would be a great help.
Have you bypassed the analog signals from the pots, I can understand you would have long wires to the pots and the leads would act as aerials to noise produced by the servos.

Try 0.1uF capacitor between each analog input and gnd.

Hope it hepls.. Tom.. :slight_smile:

Random values returned from the A/D could be two things.

  1. The pot wires pick up noise, as TomGeorge has explained.

  2. Arduino's supply (= Aref) dips below 5volt, because you try to run servos and Arduino from the same battery.
    Or worse, try to run the servos from Arduino's 5volt supply.
    Post a diagram.
    Leo..

What are these values? How do you have them set up?

Definitely the capacitors - you need them anyway if the tracks on the pot are scratchy or dirty.
100nF caps on 10k pots give a time-constant of <=0.5ms, so you can try larger values too, like
1uF, 10uF.
Use shielded cable for analog signals - this should be your default practice. Never run signal
cables alongside motor / servo / power / mains wiring, that maximizes the chance of noise pick-up.