Go to Post Dear Mr. Lavery, Congratulations. For the fourth year running, you have successfully ruined my Christmas holiday with your untimely release of a most obfuscating, but no less tantalizing, hint. - dubious elise [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2007, 19:00
skibum2490 skibum2490 is offline
Registered User
FRC #1541
 
Join Date: Feb 2007
Location: Virginia
Posts: 2
skibum2490 is an unknown quantity at this point
P.I.D. Control for the arm

Hey guys I have a quick question I would like to ask.

We're using a linear potentionmeter to give us an analog value so we can set the arm position (high, mid, low) based on the flick of a switch. However, we're using P.I.D. control in order to get to where we need to be.

Now, the problem we have is the large amount of oscillation occuring after the switch is pressed, ex. the arm jumps way past the position, then comes back and hits the ground before re-adjusting to the right height. Our motor is geared down 21:1 which we're hoping to increase to 64:1. Basically, what is the best way to eliminate oscillations through P.I.D. control?

Thanks!
  #2   Spotlight this post!  
Unread 18-02-2007, 19:04
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: 6,998
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: P.I.D. Control for the arm

Your P gain (multiplier) is too large. Reduce it until it gets there with little overshoot. (No overshoot is not as easy to compensate for as a little bit of overshoot)

There is an excellent whitepaper on how to tune a PID loop called PID without a PhD, look it up and it'll explain it very well.

Don
__________________

I am N2IRZ - What's your callsign?
  #3   Spotlight this post!  
Unread 18-02-2007, 19:13
skibum2490 skibum2490 is offline
Registered User
FRC #1541
 
Join Date: Feb 2007
Location: Virginia
Posts: 2
skibum2490 is an unknown quantity at this point
Re: P.I.D. Control for the arm

Alright, I did try to decrement the P multipilier, but after I did that, it didn't seem like the motor was outputting enough power to raise the arm, I could try again however.
  #4   Spotlight this post!  
Unread 18-02-2007, 23:46
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Re: P.I.D. Control for the arm

The not outputting enough is a problem with the integral ("I") component being too low. You want to increase it (though small changes make a huge difference)

One trick we did to keep the I from building up too much is to set the integral error (the one that keeps adding each frame) to 0 when it has passed the target angle (you can clear it if it's within 5 or 10 ticks, depending on what works best and your tolerance)
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #5   Spotlight this post!  
Unread 18-02-2007, 23:50
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: P.I.D. Control for the arm

Shameless plug, the paper in my signature may be of some help, it explains tricks to get more precise control of the gains without using floats.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #6   Spotlight this post!  
Unread 23-02-2007, 22:01
JimGRobot JimGRobot is offline
Registered User
AKA: Jim
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2005
Location: Arroyo Grande, CA
Posts: 29
JimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really nice
Re: P.I.D. Control for the arm

We had similar problems with our arm, and the main problem is that gravity makes this really two control problems, and one controller can't be tuned to do both well.

When the arm is moving up, gravity turns it into a self-regulating process, which is easy to control with straight proportional. When the arm is moving down, gravity turns it into a runaway process, which is harder to control. We ended up measuring the speed of the arm when moving down, and controlled it that way.

Jim
  #7   Spotlight this post!  
Unread 27-02-2007, 04:18
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: P.I.D. Control for the arm

We chose a mechanical solution and counter balanced our arm with a bungee.
  #8   Spotlight this post!  
Unread 27-02-2007, 07:55
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: P.I.D. Control for the arm

I might suggest you add a D term with a whole heck of a lot of gain... PD loops work surprisingly well...

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #9   Spotlight this post!  
Unread 27-02-2007, 11:21
Protronie's Avatar
Protronie Protronie is offline
Have big wrench...and will use it!
no team
 
Join Date: Dec 2006
Rookie Year: 2006
Location: North Carolina
Posts: 617
Protronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud ofProtronie has much to be proud of
Send a message via ICQ to Protronie Send a message via Yahoo to Protronie
Re: P.I.D. Control for the arm

Quote:
Originally Posted by ericand View Post
We chose a mechanical solution and counter balanced our arm with a bungee.
You guys have the makings of a true Protronie...
Bungees... 1,001 uses and counting
__________________
Protronie rule 5 - When the big wrench starts swinging, get out of the way!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best solution for a homebuilt robot arm? Chriszuma Chit-Chat 11 25-06-2006 01:55
Slave Control Arm aaronD341 Control System 1 26-04-2005 17:13
2-Segment Arm Control Orborde Programming 1 20-01-2005 01:40
Neural Control of Robot Arm Leo M Math and Science 2 29-03-2004 13:46
RoboStars 'Mini-Arm' Control Device archiver 2000 5 23-06-2002 22:28


All times are GMT -5. The time now is 04:51.

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