Go to Post Of course this should be your decision- not the FIRST community's. Take charge of your destiny. - Wayne C. [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 Rating: Thread Rating: 29 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-09-2014, 22:49
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
PID Basics

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 how to construct one. All help will be appreciated!
  #2   Spotlight this post!  
Unread 11-09-2014, 23:02
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: PID Basics

Quote:
Originally Posted by Joseph DeRoest View Post
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 how to construct one. All help will be appreciated!
Hi. You didn't mention what programming language you are using.

While you're waiting for replies, try searching the forums. There must be hundreds of posts about PID.


  #3   Spotlight this post!  
Unread 12-09-2014, 00:04
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
Re: PID Basics

We use LabVIEW as our programming language.
  #4   Spotlight this post!  
Unread 12-09-2014, 00:48
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,362
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: PID Basics

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.
Attached Thumbnails
Click image for larger version

Name:	LV_PID.jpg
Views:	123
Size:	255.3 KB
ID:	17303  
__________________
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 12-09-2014, 09:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,817
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: PID Basics

Here's a simple LabVIEW PID example that applies one of the built-in functions that billbo911 pointed out, as a first step to understanding what PID can do for you.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 12-09-2014, 13:45
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: PID Basics

Of all the hundreds of sites and threads I've been on relating to PID, this 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.
  #7   Spotlight this post!  
Unread 12-09-2014, 16:12
tr6scott's Avatar
tr6scott tr6scott is online now
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 520
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: PID Basics

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_Con...ms_Robots.html
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #8   Spotlight this post!  
Unread 12-09-2014, 16:17
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: PID Basics

Additionally, if you search through NI's website, they have some great resources about PID theory (and their examples are in LV). You can also view the complete help page for the PID VI here.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #9   Spotlight this post!  
Unread 12-09-2014, 18:46
Joseph DeRoest's Avatar
Joseph DeRoest Joseph DeRoest is offline
A programmer turned CAD...
FRC #2990 (Hotwire Robotics)
Team Role: CAD
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Stayton, OR
Posts: 25
Joseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the roughJoseph DeRoest is a jewel in the rough
Talking Re: PID Basics

Thanks for all the help!
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


All times are GMT -5. The time now is 14:38.

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