Go to Post Instead of arguing about what should have been, learn from the breaks, and celebrate the gracious professionalism being displayed by the other 99% of teams. Word. - PVCMike [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 27-12-2012, 22:10
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Dealing with low resolution data for speed PID

I wrote a speed PID controller for the drivetrain of a Vex robot. Feedback comes from an encoder mounted to the motor. The PID controller works pretty well at holding speed. However, the encoder has fairly low resolution and the speed measurement/ PID control loops run at a high frequency of 50Hz. Therefore, the resolution of speed measurements is limited to about 2 in / s. I'm wondering if any techniques, such as applying a moving average to the inputs to the PID controller, could improve the accuracy of the PID controller without decreasing measurement frequency. Another possibility, as the PID controller and the speed measurement are separate tasks, is to run speed measurements at a lower frequency than the PID. This approach could also cause problems, as feeding older data to the PID controller would probably compromise its accuracy.


Any recommendations or ideas?

Here's a graph of velocity vs time that shows the problem:
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
 


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 06:08.

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