Go to Post We are just helping to keep Home Depot from going Bankrupt :D . - E. Wood [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2012, 20:09
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
can i get some help understanding PID

So my team is thinking about transferring to CAN for our Jaguars and I don't understand the PID loops can I get some help please
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 21:33
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: can i get some help understanding PID

You can search ChiefDelphi.

Like this thread, or this thread, and there's even a paper called "PID without a PhD" you might look for ...
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2012, 12:25
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Re: can i get some help understanding PID

What Values have you found to work the best
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2012, 12:38
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,068
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: can i get some help understanding PID

Quote:
Originally Posted by inkspell4 View Post
What Values have you found to work the best
4


That is dependent on the system you are controlling. Play with some values and see what works best for you.
__________________




.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2012, 12:55
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Re: can i get some help understanding PID

For Which P,I, or D.
We are using jaguars to control cim motors and also how might you hook up a encoder directly into the jaguar for use with the pid loop
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________

Last edited by inkspell4 : 24-01-2012 at 15:41.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2012, 17:52
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: can i get some help understanding PID

I think you're assuming that the PID values control only the motor output. In reality, these values are used to control an entire system. One person's kitbot transmission may be different from someone else's which would mean that their values will be different. You have to sit down and tune your robot to how you think it responds better.

The P, I and D will all cause the robot to behave differently. I can recommend as a general rule of thumb to try a value < 1 for I and something around 20~30 for P (I'm not exactly sure on this value). Leave the D at 0 until you tune these.

You should definitely read the document mentioned above in order to understand what each value does to the system. Only then will you be able to see what it does and how it reacts.
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2012, 18:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: can i get some help understanding PID

Quote:
Originally Posted by inkspell4 View Post
how might you hook up a encoder directly into the jaguar for use with the pid loop
See attachments.
Attached Thumbnails
Click image for larger version

Name:	encoder.png
Views:	42
Size:	45.4 KB
ID:	11588  Click image for larger version

Name:	QEI.png
Views:	43
Size:	47.8 KB
ID:	11589  
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2012, 10:46
juchong's Avatar
juchong juchong is offline
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: can i get some help understanding PID

Ether is correct, that's exactly how we've been connecting our encoders for years! Also, keep in mind that if you want to use the built in PID features of the JAGs, you're going to have to implement the CAN Bus. You won't be able to use PWM anymore.
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
Reply With Quote
  #9   Spotlight this post!  
Unread 28-01-2012, 15:08
mbushroe mbushroe is offline
Registered User
FRC #2840
 
Join Date: Jan 2009
Location: Phoenix
Posts: 16
mbushroe is an unknown quantity at this point
Re: can i get some help understanding PID

HOW do we control the Jaguar digitally from the cRIO? I am still looking for the C++ API that will allow us to use the serial interface to format and send commands to the Jaguar, and read the status data sent back.

Mike
Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2012, 23:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: can i get some help understanding PID

Quote:
Originally Posted by mbushroe View Post
I am still looking for the C++ API that will allow us to use the serial interface to format and send commands to the Jaguar, and read the status data sent back.
Look into the CANJaguar class.
Reply With Quote
Reply


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 22:33.

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