View Single Post
  #7   Spotlight this post!  
Unread 31-01-2011, 15:51
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Any PID experts ?

If you have LabVIEW, I put together a P demo.
You can input a few things:
Gain: This is the tuning parameter
Motor to Movement Scale: How much movement is caused by 1 unit of motor movement (This is for the output, if you had a real robot this would be determined by the gearing and motor load)
Time per Cycle: How fast to run the loop. This will show you what kind of affect loop time has (try tuning it then changing it, it won't work as well).

You can play with Commanded Height and see how Actual Height and Motor respond. There is no sensor feedback, the sensor height is assumed to be what the height was last time (using a shift register).

Maybe if I get some time later, I will add I and D.

Accuracy:
The 10-turn pot will be fine (we have a 12-bit ADC for reference).
You should not expect accuracy greater than 2", less depending on how fast it moves.
Attached Files
File Type: vi P_Demo.vi (9.0 KB, 39 views)
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack