Go to Post A FIRST door is always open. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2010, 23:31
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Neat demonstration of proportional and PID control systems

Neat demonstration of proportional and PID control systems


A very nice demo that shows the significant improvements to be had using a PID control vs. a simple P control via Makezine's blog.

For your consideration when planning your own robot control system

Cheers,
Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #2   Spotlight this post!  
Unread 10-03-2010, 00:08
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by Joe Johnson View Post
Neat demonstration of proportional and PID control systems


A very nice demo that shows the significant improvements to be had using a PID control vs. a simple P control via Makezine's blog.

For your consideration when planning your own robot control system

Cheers,
Joe J.
If only I could tune ours half as well as that guy.
  #3   Spotlight this post!  
Unread 10-03-2010, 01:35
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Don't sell yourself short - I've seen some pretty amazing PID applications in FIRST. Remember that response is both torque and mass dependent, and as far as that goes he has a huge advantage (high torque for very low mass) that allows his motions to be much quicker than ours.
  #4   Spotlight this post!  
Unread 10-03-2010, 18:23
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,373
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by TomBot View Post
If only I could tune ours half as well as that guy.
Quote:
Originally Posted by Tom Line View Post
Don't sell yourself short - I've seen some pretty amazing PID applications in FIRST. Remember that response is both torque and mass dependent, and as far as that goes he has a huge advantage (high torque for very low mass) that allows his motions to be much quicker than ours.
Not wanting to be one who splits hair..... but in this case I will.
IMHO, his tuning needs a bit more work. There is still a bit of overshoot or ringing in it's motion. I'll bet it can be tuned even better.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #5   Spotlight this post!  
Unread 14-03-2010, 16:45
JGurnow's Avatar
JGurnow JGurnow is offline
Registered User
FRC #0217 (The Thunder Chickens)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Sterling Heights
Posts: 20
JGurnow is on a distinguished road
Re: Neat demonstration of proportional and PID control systems

P and I aren't that hard to implement with some testing. D is hard to wrap your mind around a lot of the times as a newer programmer.

P helps make sure you get near your target, and decelerate as it approaches it
I makes sure you reach your target but overshots and undershots if gains are incorrect.
D is hard to explain.
  #6   Spotlight this post!  
Unread 14-03-2010, 17:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by JGurnow View Post
P and I aren't that hard to implement with some testing. D is hard to wrap your mind around a lot of the times as a newer programmer.

P helps make sure you get near your target, and decelerate as it approaches it
I makes sure you reach your target but overshots and undershots if gains are incorrect.
D is hard to explain.
In a nutshell:

P gives you fast dynamic response.

I gives you steady-state accuracy.

D allows P to be set to a higher gain for even better dynamic response. (D can remove some of the overshoot caused by high P values).


~
  #7   Spotlight this post!  
Unread 14-03-2010, 17:43
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Think "D is for damping". It is kind of like software friction. It always acts in the opposite direction of motion, and is proportional to how fast the object is moving. The faster the object moves, the more the D control tries to slow it down. This helps to settle out oscillation and remove overshoot.
__________________
-
An ounce of perception is worth a pound of obscure.

Last edited by Chris Hibner : 14-03-2010 at 17:47.
  #8   Spotlight this post!  
Unread 14-03-2010, 17:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by Chris Hibner View Post
Think "D is for damping". It is kind of like software friction. It always acts in the opposite direction of motion, and is proportional to how fast the object is moving. The faster the object moves, the more the D control tries to slow it down. This helps to settle out oscillation and remove overshoot.
Yup. That's why you can crank up P if you add some D. Thereby getting even better dynamic response.


~
  #9   Spotlight this post!  
Unread 16-03-2010, 03:41
Mark Sheridan's Avatar
Mark Sheridan Mark Sheridan is offline
Head Mentor
FRC #3476 (Code Orange)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2002
Location: Irvine, CA
Posts: 560
Mark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond reputeMark Sheridan has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

I love PID controls. Back in college, I had a project where I balanced a vertical bar mounted to a bearing on a swinging arm (like balancing a ruler in the palm of your hand). You could hit that bar all day and it would never fall over. Too bad my students were not interested by my retellings of that project. Maybe this video will spark their interest and show the benefits of PID controls (especially in the context of autonomous drivetrains). Thanks for sharing!
__________________
Team 3476| Mentor| 2014 - Current
Team 3309| Mentor| 2011 - 2016
Team 766 | Mentor| 2006 - 2011 | Alumnus | 2002-2005
  #10   Spotlight this post!  
Unread 16-03-2010, 09:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by Mark Sheridan View Post
I love PID controls. Back in college, I had a project where I balanced a vertical bar mounted to a bearing on a swinging arm (like balancing a ruler in the palm of your hand). You could hit that bar all day and it would never fall over.
Unstable equilibrium. Some high-performance military aircraft today are aerodynamically unstable, and are able to fly only because high-speed computers control the flight surfaces. Computer goes down, aircraft goes down.


~
  #11   Spotlight this post!  
Unread 16-03-2010, 10:24
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,695
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

What I hate about PID control is that it allows the guess and check method of control without really coming up with a conclusion of why you tried certain values. It completely eliminates the analysis portion of closed loop feedback -- analysis that could fundamentally improve even the mechanical side of the design.

Aside from that fundamental flaw, yes PID is good enough for FRC. Who has the time to truly model a subsystem in FRC anyways?
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
  #12   Spotlight this post!  
Unread 16-03-2010, 11:06
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by JesseK View Post
What I hate about PID control is that it allows the guess and check method of control without really coming up with a conclusion of why you tried certain values. It completely eliminates the analysis portion of closed loop feedback -- analysis that could fundamentally improve even the mechanical side of the design.

Aside from that fundamental flaw, yes PID is good enough for FRC. Who has the time to truly model a subsystem in FRC anyways?
While you can tune PID controllers by trial and error, there are certainly plenty of analysis methods to make your tuning more efficient and at least get you in the right ballpark.

As for modeling subsystems, we do it quite often and find it very helpful.

I haven't yet had the fortitude to do a real full-state feedback controller on a FIRST robot YET, but I see it coming. I should have proposed it this year.
__________________
-
An ounce of perception is worth a pound of obscure.
  #13   Spotlight this post!  
Unread 16-03-2010, 22:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Neat demonstration of proportional and PID control systems

Quote:
Originally Posted by JesseK View Post
What I hate about PID control is that it allows the guess and check method of control without really coming up with a conclusion of why you tried certain values.
There are tried-and-true methods of tuning PID controllers, based on theory and years of experience, that I would not characterize as "guess and check". If the P, I, and D are tuned in the proper order, with the gain in each step being adjusted to obtain specific dynamic behaviors, a near-optimum solution can often be reached in only one or two passes.


~
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PID Control Geek 2.0 Programming 16 12-01-2010 21:10
LabVIEW Training and new control system demonstration 10/17-10/19 in Frazier Park, CA Joe Ross NI LabVIEW 0 25-09-2008 13:25
PID Control John Gutmann Programming 12 15-04-2007 18:52
PID Control Chris Bright Programming 9 26-03-2005 19:44
Proportional Control ShadowFlame Programming 0 14-02-2004 11:53


All times are GMT -5. The time now is 01:27.

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