Go to Post Suggesting change is one thing, implementing it is another. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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
  #10   Spotlight this post!  
Unread 08-02-2011, 23:25
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Programming Motors for Arm

Quote:
Originally Posted by dmitch View Post
Ok...what on earth does the PID control actually do?
It's a way for software to 'gracefully' bring some quantity to a specific value.

OK, some examples: You are riding a bicycle. You want to stop right at a fire hydrant by the curb. You wouldn't go at full speed, and then slam on the brakes at the right moment - too much chance for missing the spot. Instead you slow down gradually, stopping exactly where you want. This is PID control, the quantity being the exact spot where you will stop.

Another example: A Cruise control in a car. You set the system to maintain a certain speed, and it does. A good system does not apply full throttle when the speed drops one or 2 MPH because of a hill, it applies a little throttle, only adding more if the hill is too steep to maintain the 'set' speed. This is PID control, the quantity being the set speed.

PID stands for Proportional, Integral, Derivative. Proportional means that you apply a corrective signal (like a car's throttle) in proportion to the difference ("error") between the actual value and the desired value. A car going 2 MPH slower than the set speed needs only a little throttle, but one going 30 MPH too slow needs a lot of throttle.

Integral helps keep a steady value when the P "error" is very small. It adds up the error over time, so that even a small error gets compensated for after several seconds.

Derivative keeps you from making changes too rapidly, but allows you to make big changes when necessary. You don't want the cruise control at full throttle until 1 MPH below the setpoint - you'll "overshoot" the set speed and have to slow down. Instead this works with P do gradually hit the set speed.

In robotics, PID can be used to move an arm to a set position. Depending on the mechanism, P may be enough, or possibly PI. Full PID is often overkill and unnecessary in a typical FRC design.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
 


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 20:32.

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