Thread: PID Help
View Single Post
  #17   Spotlight this post!  
Unread 23-01-2015, 20:19
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,572
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: PID Help

Quote:
Originally Posted by wildaburk3160 View Post
Alright, after another talk with a mentor, it's been clarified that we don't need such exact precision. Our problem was that the motor was overshooting by over 20 pulses at some points, then taking 5-10 seconds to readjust to a reasonable position. So, I will take some previous suggestions about tuning the PID so that we can get the motor returning to a more reasonable pulse count, perhaps +/- 5 pulses, without wildly missing the mark beforehand.
This sounds like your system is under-damped. Either add a mechanical dampening as suggested above, or (better) tweak your "D" (derivative) value to digitally dampen the system.

Using the analogy of an automobile suspension
  • P tells how strong your spring is. That is, how fast does the pushback grow as you get farther from the set point?
  • D tells how dampening your shock absorbers are. A large magnitude for D will help the values settle quickly.
  • I doesn't have a good auto analogy unless you're a low rider with adjustable lift built into the suspension. I helps correct systems that settle out somewhere other than the set point. I usually think of it as the "Kentucky Windage" term.

Last edited by GeeTwo : 23-01-2015 at 20:34. Reason: PID description added
Reply With Quote