Go to Post I have long since stop trying to predict what the GDC will do. - FrankJ [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 15-01-2009, 18:30
nate15810's Avatar
nate15810 nate15810 is offline
World's Most Clueless Programmer
FTC #0154 (154 Renegade)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Rhode Island
Posts: 22
nate15810 is an unknown quantity at this point
Trim for motors

does anybody know any codes for trim for some ofthe motors?
we have an arm and 2 DC motors do not have enough torque to keep it up.

it needs to keep some power on the motors on all times.
  #2   Spotlight this post!  
Unread 15-01-2009, 18:44
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,348
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: Trim for motors

Quote:
Originally Posted by nate15810 View Post
does anybody know any codes for trim for some ofthe motors?
we have an arm and 2 DC motors do not have enough torque to keep it up.

it needs to keep some power on the motors on all times.
Ahh, sounds like you need to counterbalance the arm.

There are several ways to do this. Add weight to the light end, like maybe using the motor it's self.
Add spring tension to the rear. Surgical tubing seems to be very popular.
Add a gas spring to the front side. The options are as numerous as your creativity.

Now here is something we might have tried this year if we had a need for it.

The pressure regulators are "relieving" regulators. That means that the low pressure side will be bled out if the pressure in that side exceeds the regulated setting.
So, use a piston to add a constant force lifting the arm. Set the regulator to the amount of force needed to balance the arm. The motor will then only be lifting the weight of the object being lifted or lowered.
__________________
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
  #3   Spotlight this post!  
Unread 15-01-2009, 21:29
Chipawa's Avatar
Chipawa Chipawa is offline
Registered User
AKA: Mr. Tucker, AKA Chip
FRC #1111 (Powerhawks)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Annapolis, MD
Posts: 41
Chipawa is an unknown quantity at this point
Re: Trim for motors

Did you consider trying to use the window motors? These will hold their position when not powered.
__________________

2010 DC Engineering Innovation Award
2010 DC Spirit Award
2008 Chesapeake Finalist
2008 Chesapeake Rockwell Automation Innovation in Controls award
  #4   Spotlight this post!  
Unread 15-01-2009, 22:45
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Trim for motors

I dont remember exactly how to program it but you could use a potentiometer to keep the location the same and the controller would constantly readjust the motors until they match what you want the location to be.

-Mike AA
  #5   Spotlight this post!  
Unread 16-01-2009, 08:34
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Trim for motors

A few years back(when I was working with 66), we used the van door motors(not sure if they are included this year or not, haven't really studied the KOP list for this year), along with the braking feature on the Victors, to successfully hang all 130ish pounds of our robot(the "breakaway claw" that we had that year, for those who remember it). Basically, we had both van door motors on opposite ends of a common winch pully(direct driving the pully), and relied on the Victor's braking option to keep us from sinking to get the "hanging" points at the end of the match...if the Jaguars have a similar feature(I think I remember reading they do, but with how my mind works, who knows if I'm right or not...), that might surve your purposes well...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #6   Spotlight this post!  
Unread 16-01-2009, 08:38
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Trim for motors

A pure software solution would be to use a PID loop and a potentiometer.

The WindRiver code includes some very robust PID classes (see class PIDController in PIDController.h/cpp). I imagine the labview setup includes them too, but we're not a labview team so I don't know for sure. You just need to put a potentiometer on the arm joint, then use a PID loop to hit your desired arm positions. The nature of a PID loop will ensure that appropriate amounts of power are used to maintain your arm's position. Properly tuned, it will be faster, more accurate, more reliable, and have less oscillations than a human controlling.
  #7   Spotlight this post!  
Unread 16-01-2009, 09:40
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Trim for motors

Not related to code, but do NOT do this to a FP motor or the small RS545 motors (or whatever they're named). They do not take stall current very well at all, no matter how much power is being fed to them. In 2007, we managed to burn out 2 motors on our arm.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #8   Spotlight this post!  
Unread 16-01-2009, 10:21
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,953
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Trim for motors

Quote:
Originally Posted by billbo911 View Post
The pressure regulators are "relieving" regulators. That means that the low pressure side will be bled out if the pressure in that side exceeds the regulated setting.
So, use a piston to add a constant force lifting the arm. Set the regulator to the amount of force needed to balance the arm. The motor will then only be lifting the weight of the object being lifted or lowered.

This will work well, but remember that the orifice of the relieving regulator is very small. Probably on the order of .010" effective orifice size, maybe smaller. This means that while it will bleed out excess pressure, it will do so reletively (sp?) slowly.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #9   Spotlight this post!  
Unread 16-01-2009, 12:20
qwv123 qwv123 is offline
Registered User
FRC #1318
 
Join Date: Dec 2006
Location: Issaquah, WA
Posts: 3
qwv123 is an unknown quantity at this point
Re: Trim for motors

Quote:
Originally Posted by Bongle View Post
A pure software solution would be to use a PID loop and a potentiometer.

The WindRiver code includes some very robust PID classes (see class PIDController in PIDController.h/cpp). I imagine the labview setup includes them too, but we're not a labview team so I don't know for sure. You just need to put a potentiometer on the arm joint, then use a PID loop to hit your desired arm positions. The nature of a PID loop will ensure that appropriate amounts of power are used to maintain your arm's position. Properly tuned, it will be faster, more accurate, more reliable, and have less oscillations than a human controlling.
Yes, PID works very well for this, unless you are lifting so much weight that the motors struggle to maintain their positions. If you are using LabVIEW, it does have several PID VIs, as well as some sort of autotuning PID wizard. My team has not used it, but it seems quite simple to implement.
  #10   Spotlight this post!  
Unread 16-01-2009, 12:47
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,348
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: Trim for motors

Quote:
Originally Posted by Daniel_LaFleur View Post
This will work well, but remember that the orifice of the relieving regulator is very small. Probably on the order of .010" effective orifice size, maybe smaller. This means that while it will bleed out excess pressure, it will do so reletively (sp?) slowly.
Wow, I didn't realize it was that small! You're absolutely correct, that might limit this systems usability. And, I'm certain we are not allowed to modify the regulators. I'll have to verify this against the rules.

[EDIT] Yep, can't be modified by my reading of rule <R71>

Quote:
<R71>
In addition to the items included in the Kit Of Parts, pneumatic system items specifically permitted on 2009 FRC ROBOTS include the following items. All included items must be “off the shelf” pneumatic devices rated by their manufacturers for pressure of at least 125psi, and used in their original, unaltered condition (except as required for assembly with other components).
[/EDIT]
__________________
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

Last edited by billbo911 : 16-01-2009 at 12:56.
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
Trim setting program Grogs Programming 1 10-02-2008 19:12
Setting Trim on Old 3D joystick jlewellen Programming 2 19-02-2006 21:03
Delphi set to trim 150 tech jobs Neal Probert Chit-Chat 4 03-03-2004 11:01
Fisher Price Motors for Drill Motors archiver 2001 0 24-06-2002 00:22
F.P. Motors & gearbox for $12.50 Window Motors $19.50 archiver 2001 1 23-06-2002 23:05


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

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