Go to Post The great thing about autonomous mode is that it doesn't require any additional effort from anyone else on your team... (You could do that yourself...but I've noticed that people will usually offer to do it for you, rather than let the programmer touch power tools.) - jgannon [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-03-2016, 23:05
David Lame David Lame is online now
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 84
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Is there a maximum encoder pulse rate the system can handle?

We are trying to start getting a bit fancier with our drive system. We put encoders on the drive wheels, and are trying to make use of them as part of camera lineups and autonomous code. Unfortunately, we have a problem. During testing, I drive forward, and then drive back to where I started, and the encoder doesn't read 0. Not even close. It seems to count consistently faster, meaning almost twice as many raw ticks, when moving forward.

Obviously, this isn't good, but what might be the cause?

We are using the CUI 102V encoders. I really like them. However, we just put them on the shaft of the transmissions, verified that we were reading a value that went up when it ought to go up and down when it ought to go down. One thing we didn't do is set the DIP switches inside the housing. Those DIP switches control the pulse rate, with the default value being 4096 pulses per revolution.

Once I realized there was a problem, I wondered if that was just too fast for the rio/wpilib to count. Could it be that we need to reduce our resolution? We don't need that high of a resolution value. We just stuck with what was set on the switches. However, before we go fiddling with things, I figured I would find out if there is some maximum value of pulses/second that ought to be used with our systems.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi