6

I have a linear actuator that has a pot in it. I am reading the value of the pot on my uC and I am noticing that the values are fluctuating wildly when the pot is changing (both up and down). The values don't ever seem to stabilize. I use the moving average value to stabilize the value in software however this leads to errors. When I attach a normal pot to the uC I do not get any value fluctuations. All the systems are connected to the same power supply.

Question: Is there a better way in electronics obtain a stable reading from the pot in a noisy environment?

Edit: Servo City Linear Actuators

  • 2
    Do you have a schematic? That might explain why the pot isn't stable. You can also try to test the pot when it's disconnected, so that you're sure it isn't just that the pot's broken. –  Apr 06 '13 at 16:29
  • The pot's contact surface is probably either scraped off in parts, or covered by an oxide layer, thus causing the jumping values. Replace the pot. 2. A code-based method to address the problem is to reject outliers, i.e. any values more than a set amount away from the average of the previous n values. Would you want me to formulate this into an answer?
  • – Anindo Ghosh Apr 06 '13 at 16:36
  • Ack, the entire system is rather complex so I can't really produce a schematic (sorry). There are steppers in the system as well but everything has decoupling caps. 2nd Its a new pot so I don't think the wiper is damaged as yet. Also I don't get noise when the motor is not moving (well very little anyways) –  Apr 06 '13 at 17:35
  • This may be related: http://electronics.stackexchange.com/questions/51474/jumpy-servo-with-arduino/51933#51933 – jippie Apr 06 '13 at 18:01
  • Please add a datasheet and circuit diagram to your question. – jippie Apr 06 '13 at 18:02
  • Since you don'get the behaviors with an external pot, this suggests that the linear actuator's pot is a piece of crap. Pots can have a flaky wiper contact. – Kaz Apr 07 '13 at 03:20