View Single Post
  #15   Spotlight this post!  
Unread 13-09-2008, 02:20
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: Servo 'smoothing'

I've had some experience with jittery pots myself i find the first thing you should do is debug every single thing in that system until you find out exactly what is failing. If your assumption is correct then i suggest you map the jitters and see if your digital position vs actual position follows a pattern. if it does than there is the easiest and best way to fix the problem remap the digital value with a lookup table to match the actual value. if you find that the jitters are indeed white noise and are completely random then i suggest a filter such as the ones proposed above (a simple average of the last few values should work fine.) keep in mind that jitters can be caused by all sorts of things not just bad pots i had a magnetic encoder i thought was bad and it turned out that the bolts just above it were causing it to "jitter".