Go to Post So I usually end up looking pensive or confused. :) - Karthik [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2007, 15:51
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
How to tune a PID loop?

What would be some typical gains? I'm playing with a bench setup here, motors aren't really loaded or is follow-up pot connected, tough doing it open-loop. I have a gain of 1 for P term, 10/100 for I and D. Seems pretty good, If I up the I gain to 25/100, the error builds up fast and I suspect the real thing will overshoot.
We're using it to "slave" the arm position to the joystick position.
  #2   Spotlight this post!  
Unread 11-02-2007, 15:58
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: How to tune a PID loop?

Quote:
Originally Posted by steve d View Post
What would be some typical gains? I'm playing with a bench setup here, motors aren't really loaded or is follow-up pot connected, tough doing it open-loop. I have a gain of 1 for P term, 10/100 for I and D. Seems pretty good, If I up the I gain to 25/100, the error builds up fast and I suspect the real thing will overshoot.
We're using it to "slave" the arm position to the joystick position.
Gain depends strongly on what your inputs are, how they are loaded and what your outputs are.

The simple approach is

1. Start with a small P, no I or D.
2. Adjust until the response is about what you want.
3. Add just enough I to eliminate undershoot.
4. Add just enough D to eliminate overshoot.

(This is a gross oversimplification. Read the whitepaper on PID without a PhD here on CD).
  #3   Spotlight this post!  
Unread 11-02-2007, 17:22
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: How to tune a PID loop?

It is not going to be very useful testing the a PID loop on without some kind of realistic feedback. The way errors build up is very reliant upon the type of feedback, gains that may be proper for one application could very well be totally wrong on another. It all depends on your system.

If you are using PID control for positional purposes (i.e an arm) I would follow the above.
We found that if you are doing velocity control PD usually works fairly well
__________________
Team 701
  #4   Spotlight this post!  
Unread 11-02-2007, 20:49
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: How to tune a PID loop?

Thanks. I rigged up the follow-up pot to the shaft of a window motor and tried out the loop. COOL! Playing with I gain can really cause overshoot and wild oscillations! Can't wait to try tuning it on the robot with it's dynamics. BTW, i'm using a bourns follow-up pot that has continous rotation, no stops. Nice pots.
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 How to hold an arm in a fixed position without a locking gear box Ian_Xodus General Forum 29 28-01-2007 08:50
PID control loops - closed loop feedback KenWittlief Technical Discussion 56 26-04-2004 21:27
PID control loop/Encoder question Zee Programming 18 30-01-2004 23:14
How long is one stamp loop yangotang Programming 3 23-01-2003 20:36
How Can You Make A Closed Loop System???? GRR_340 Pneumatics 6 21-03-2002 12:27


All times are GMT -5. The time now is 03:45.

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