View Single Post
  #16   Spotlight this post!  
Unread 12-02-2013, 12:35
AntiSleep AntiSleep is offline
Registered User
FRC #1444
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Louis
Posts: 4
AntiSleep is an unknown quantity at this point
Re: Magnetic encoders? Anybody else having trouble?

We noticed the readout value jumps all over when using the encoders' analog output. This seems to be caused by the slow PWM it uses. Aliasing issues occur when the cRIO samples its analog inputs. I added a simple RC filter and that seems to have sorted it out. I just used a 4.7k in series and a 1uF after that. That seems to have smoothed it out, but as always some tweaking might be necessary depending on your application.

EDIT - For more info, just found the datasheet actually mentions this on page 18...

Last edited by AntiSleep : 12-02-2013 at 12:45.