|
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".
|