View Single Post
  #8   Spotlight this post!  
Unread 15-04-2012, 00:01
lorem3k's Avatar
lorem3k lorem3k is offline
1 + 1 = 0 (in Z/2Z)
AKA: Andy D.
FRC #1482 (Bishop Grandin Ghosts)
Team Role: Alumni
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Calgary, AB
Posts: 165
lorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to beholdlorem3k is a splendid one to behold
Re: PID Control for Jaguars with PWM?

Quote:
Originally Posted by galewind View Post
We had a sample program that we used to test the the adjustable PID values and the results, to verify what we would need so that our shooter wheels stayed within the desired RPM values that we set it to (or based on distance to camera targets). It took us a couple of hours and bit of network searching to find acceptable values for the variables, but once we did, it was set and we never had to deal with it again.

Over the course of our competitions, we did run into some reported "time-out" errors on our CAN network, according to our driver station output log, but they were so intermittent and quickly resolved so they never impacted the way that our shooter functioned. We stuck with it and were happy with the performance and advantages we gained by using it. (we used it so that our upper elevator section would not move to feed balls into the shooter unless we were able to determine that the wheels were moving at the desired RPM)

I would say don't dismiss the idea without experimenting -- it can be a great asset when trying to maintain something like a shooter wheel speed -- but it is not a simple plug-in-and-go solution. Like most new technologies, it will take time to learn how to configure and adjust it... but it definitely has advantages.
I will consider experimenting with the CAN bus during build season if there is some extra time available, but until I'm confident with using it, the Jags on the robot itself will probably continue using the PWM interface we already know.

Quote:
Originally Posted by Ether View Post
For shooter wheel speed control, consider using this instead of PID.
Thanks for the link. I will give this a try if next year's game involves a shooter or another mechanism that requires wheels to spin at a constant speed the entire time.
__________________
Boo! Bishop Grandin High School / GM Canada / Tenaris
2013 Western Canada - Quarterfinalists (thanks 288/4719) / 2012 GTR West - Quarterfinalists (thanks 188/1075) / 2011 GTR East - Regional Winners (thanks 1114/1503)