Log in

View Full Version : PID Basics


Joseph DeRoest
11-09-2014, 22:49
Greetings, everyone!

I'm attempting to create a program using PID. This is the first time that any programmer on our team has attempted to use PID. What we need is an example of a program that uses PID so that we can study ::rtm:: how to construct one. All help will be appreciated! :D

Ether
11-09-2014, 23:02
Greetings, everyone!

I'm attempting to create a program using PID. This is the first time that any programmer on our team has attempted to use PID. What we need is an example of a program that uses PID so that we can study ::rtm:: how to construct one. All help will be appreciated! :D

Hi. You didn't mention what programming language you are using.

While you're waiting for replies, try searching the forums (http://bit.ly/17XUIc8). There must be hundreds of posts about PID.

Joseph DeRoest
12-09-2014, 00:04
We use LabVIEW as our programming language.

billbo911
12-09-2014, 00:48
I'm no expert on PID. But I can tell you that LabView has multiple implementations of PID already created. Use the help file to guide you as to which to use.

Mark McLeod
12-09-2014, 09:05
Here's a simple LabVIEW PID example (http://team358.org/files/programming/ControlSystem2009-/LabVIEW/#PID) that applies one of the built-in functions that billbo911 pointed out, as a first step to understanding what PID can do for you.

ekapalka
12-09-2014, 13:45
Of all the hundreds of sites and threads I've been on relating to PID, this (http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/) one does the best job explaining a lot of common issues and how to fix them. Its written for Arduino, but the logic can be applied to any programming language. Its really well written and goes on for pages and pages.

tr6scott
12-09-2014, 16:12
When I was doing FLL, this was by far the best example of explaining the principals of line following using PID. I did this with my son in either 5th or 6th grade, and since then have used this as an example with our high schoolers in FRC.

In FLL we ended up with just a P controller in the competition code, but we spent about a week that summer doing this after work in the basement.

http://www.inpharmix.com/jps/PID_Controller_For_Lego_Mindstorms_Robots.html

plnyyanks
12-09-2014, 16:17
Additionally, if you search through NI's website, they have some great (http://www.ni.com/white-paper/3782/en/) resources (http://www.ni.com/white-paper/6440/en/) about PID theory (and their examples are in LV). You can also view the complete help page for the PID VI here (http://zone.ni.com/reference/en-XX/help/370401J-01/lvpid/pid_vi/).

Joseph DeRoest
12-09-2014, 18:46
Thanks for all the help!