Go to Post there's no time like week 5 to learn programming :D - dcarr [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 Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
  #1   Spotlight this post!  
Unread 18-02-2012, 15:52
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
HELP Swerve Drive!!!!!

Ok I'm actually pretty new to labview and actually programming altogether and this year our team decided on using swerve drive for our robot. I am freaking out because we only have four days left and this drive system is a nightmare. Can somebody help me please. our main problem is getting the pod part of the wheels to act like a servo motor and follow the axis value of the controller we're using with a max turn of 90 degrees i have the encoder wired correctly and the encoder isnt a problem so how can i make the motor act as described above

Last edited by beandip3160 : 18-02-2012 at 16:18.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2012, 16:36
nick1023 nick1023 is offline
Registered User
FRC #1023
 
Join Date: Dec 2008
Location: Toledo, Ohio
Posts: 19
nick1023 will become famous soon enough
Re: HELP Swerve Drive!!!!!

Team 358 has graciously posted some labview code on their site here that has a PID example for swerve drive. This example uses a POT instead of encoders.

http://team358.org/files/programming...2009-/LabVIEW/
P(ID) example 2010.
__________________
1023 Bedford Express
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2012, 17:06
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

Well we were actually looking into pots right now and my main question is how the PID actually works. The lab view help doesn't exactly describe it in the terms of a newbie.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2012, 17:39
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: HELP Swerve Drive!!!!!

Quote:
Originally Posted by beandip3160 View Post
Well we were actually looking into pots right now and my main question is how the PID actually works. The lab view help doesn't exactly describe it in the terms of a newbie.
What part don't you understand?

Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2012, 17:57
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

The help says that The PID range features control output raange limiting with integrator anti-windup and bumpless controller output for PID gain changes. Use the DBL instance of this VI to implement a single control loop. Use the DBL Array instance to implement parallel multi-loop control.

That is really a fantastic explanation and all plus you can tell national instruments wanted to explain it but what does it mean
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2012, 17:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: HELP Swerve Drive!!!!!

Quote:
Originally Posted by beandip3160 View Post
The help says that The PID range features control output raange limiting with integrator anti-windup and bumpless controller output for PID gain changes. Use the DBL instance of this VI to implement a single control loop. Use the DBL Array instance to implement parallel multi-loop control.

That is really a fantastic explanation and all plus you can tell national instruments wanted to explain it but what does it mean
One way to look at it is, PID turns your motor into a servo.

You know what angle you want your wheel to be at, and a sensor knows where the wheel actually is.

The first is called the setpoint, and the second is called the process variable.

You provide the setpoint and the process variable as inputs to the PID, and it takes care of the math to figure out what output to send to the motor to make it do what you want.

Armed with that overview, try reading these and see if they make any sense:

http://www.eetimes.com/ContentEETime...0/f-wescot.pdf

http://en.wikipedia.org/wiki/PID_controller


By the way, you guys should get a team member whose job it is to hang out on Chief Delphi and check things out as your team is making decisions. Had you done so, you'd have known that it is strongly advised that a team not attempt swerve for the first time during build season. I feel your pain.


Last edited by Ether : 18-02-2012 at 18:09.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2012, 18:34
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

Well we are actually a third year team; however this is My first year actually programming the robot our old programmer is going to college and isnt around all the time to help out .

Thanks though for the information and the pdf file i am going to use what i now know with team 358's example you've been a big help
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2012, 18:37
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: HELP Swerve Drive!!!!!

Quote:
Originally Posted by beandip3160 View Post
Well we are actually a third year team
That's not what I said. It doesn't matter if it's the team's 10th year. The question is, has the team ever done swerve before; and if so, has the knowledge gained from doing so carried forward to this year's team?


Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2012, 18:45
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

Thats what i told everyone when we started doing this that the swerve drive would be a good summer project i was against doing it as our programming has been simplified before so that we wouldnt need many sensors however they seemed to think it would be a good idea to try it this year
Reply With Quote
  #10   Spotlight this post!  
Unread 18-02-2012, 18:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,091
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: HELP Swerve Drive!!!!!

Quote:
Originally Posted by beandip3160 View Post
Thats what i told everyone when we started doing this that the swerve drive would be a good summer project i was against doing it as our programming has been simplified before so that we wouldnt need many sensors however they seemed to think it would be a good idea to try it this year
Hey, look on the bright side. Every cloud has a silver lining: think how much you'll learn.


Reply With Quote
  #11   Spotlight this post!  
Unread 18-02-2012, 18:49
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

my thoughts exactly because of swerve ive done work with encoders and potentiometers now
Reply With Quote
  #12   Spotlight this post!  
Unread 18-02-2012, 19:14
Happy Birthday! Blondie3160 Blondie3160 is offline
Registered User
FRC #3160 (F.R.O.G.)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Grove, OK
Posts: 21
Blondie3160 is an unknown quantity at this point
Re: HELP Swerve Drive!!!!!

our team burnt our pot up
__________________
Blondie3160
Reply With Quote
  #13   Spotlight this post!  
Unread 18-02-2012, 19:31
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

how do you use encoders with a PID example because I just found out that we cant use them on our bot
Reply With Quote
  #14   Spotlight this post!  
Unread 18-02-2012, 22:04
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: HELP Swerve Drive!!!!!

I've got little experience with PID, however it's easy to calculate where you are, the error in your system, and set an output based on said error.

I don't have access to a machine with LabView on it tonight, however if you PM me I can send you an example of correction without PID.
Reply With Quote
  #15   Spotlight this post!  
Unread 18-02-2012, 22:51
beandip3160's Avatar
beandip3160 beandip3160 is offline
Registered User
FRC #3160
 
Join Date: Jan 2011
Location: grove, oklahoma
Posts: 54
beandip3160 is on a distinguished road
Re: HELP Swerve Drive!!!!!

Ok I will thanks
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:00.

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