Go to Post When someone asks me to define Gracious Professionalism, I'm just going to send them to AndyMark. - rsisk [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 23-01-2011, 23:21
Da Kid's Avatar
Da Kid Da Kid is offline
Registered User
FRC #2957
 
Join Date: Jan 2010
Location: Alden, MN
Posts: 33
Da Kid is an unknown quantity at this point
articulating arm help

We are making an articulating arm for our robot. we have a cim motor on a CIMple gearbox with a gear chained to a much larger gear which is connected to the arm itself.

our problem comes when we are running the arm. we would like to be able to move the arm to any spot we want and have it stay there when we let go of the joystick. currently when we let go of the joystick, gravity takes over and the arm falls down. I'm asking if there is a way to keep it in any place we stop at. do we use a brake to create resistance or do we use encoders? if we have to use encoders we would need help in figuring out what our distance per count is among other settings in the programming side of things.
  #2   Spotlight this post!  
Unread 23-01-2011, 23:33
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,295
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: articulating arm help

Mechanical things that can help include (a) a cantilever, (b) a spring or other tension device to aid in lift, and/or (c) a screw drive instead of a sprocket drive.

As for code for encoders -- sorry, I'm useless on that count!
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #3   Spotlight this post!  
Unread 23-01-2011, 23:36
quinxorin quinxorin is offline
Mentor now :(
AKA: Ian Pudney
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Lightning Robotics
Posts: 148
quinxorin will become famous soon enough
Re: articulating arm help

There are several ways to solve your backdrive problem (that's what it's called)

The mechanical solution, guaranteed to work, would be to replace your CIMple box with a wormgear. It cannot be backdriven. This is the same type of gearbox as comes preinstalled on the window motors.

A simple software solution would be to switch the jaguar controlling your CIM from coast mode to brake mode. This is likely to be not 100% successful, however.
__________________
"Sed res docuit id verum esse, quod in carminibus Appius ait, fabrum esse suae quemque fortunae."
- Every man is the architect of his own fortune.
  #4   Spotlight this post!  
Unread 23-01-2011, 23:36
s_forbes's Avatar
s_forbes s_forbes is offline
anonymous internet person
FRC #0842 (Falcon Robotics)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Phoenix, AZ
Posts: 1,129
s_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond repute
Re: articulating arm help

A simple mechanical solution to this problem is to add a "counterweight", or something similar, to balance out the weight of the arm. Many teams have used gas springs in the past to do this, example here. Latex tubing could also be implemented as a spring to counteract the weight of the arm and would likely be cheaper.
  #5   Spotlight this post!  
Unread 24-01-2011, 00:31
Da Kid's Avatar
Da Kid Da Kid is offline
Registered User
FRC #2957
 
Join Date: Jan 2010
Location: Alden, MN
Posts: 33
Da Kid is an unknown quantity at this point
Re: articulating arm help

how do you switch the jaguar to brake mode? does it have to do with one of the jumpers?
  #6   Spotlight this post!  
Unread 24-01-2011, 00:43
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: articulating arm help

Yes, it has to do with one of the jumpers. It should be documented in the Jaguar docs.

To solve this in software, you would attach an encoder to one of the shafts and then use a PID loop to control it. There are a couple of papers in CD-Media about how to tune one and what one is. A PID loop can be thought of as attaching a software spring to the arm to help hold it up in position. The P term is probably enough to at least get you started, and is easier to understand than the rest of them when you are first starting out.
  #7   Spotlight this post!  
Unread 24-01-2011, 00:44
Astarties's Avatar
Astarties Astarties is offline
Evil Robot Overlord
FRC #2057 (AV Cyber Bulls)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Las Vegas, NV
Posts: 61
Astarties is on a distinguished road
Re: articulating arm help

I would use one of the window motors included in the KoP. They're intended for this sort of thing. They have a screw drive gear box on them, so they're a little slow, but they have crazy torque and can hold a position with a load on it.
__________________
"Stand tall and shake the heavens!"
"Never tell people how to do things. Tell them what to do, and they will surprise you with their ingenuity." - General George Smith Patton, Jr.
By the prickling of my thumbs, something wicked, this way comes. Open Locks, whoever knocks!
"Never hold discussions with the monkey when the organ grinder is in the room."- Winston Churchill
  #8   Spotlight this post!  
Unread 24-01-2011, 00:58
bobosalad's Avatar
bobosalad bobosalad is offline
Registered User
FRC #2518 (Spartans of St. Jude)
Team Role: Driver
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Inver Grove Heights
Posts: 76
bobosalad is an unknown quantity at this point
Re: articulating arm help

Quote:
Originally Posted by Da Kid View Post
how do you switch the jaguar to brake mode? does it have to do with one of the jumpers?
what is brake mode?
__________________
Spartans, Prepare for GLORY!
  #9   Spotlight this post!  
Unread 24-01-2011, 02:21
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: articulating arm help

Quote:
Originally Posted by bobosalad View Post
what is brake mode?
Bob,

A DC motor converts electrical power to mechanical power. If you remove the input voltage and spin the mechanical side, the motor becomes a generator.

As a generator, if the electrical terminals are open, there is no current and the "drag" of the motor on the mechanical system is at a minimum (just the frictional losses are felt).

However, if you short the electrical input leads to the motor, it generates electrical current from the mechanical system. This requires that the mechanical system to do more work hence, the motor resists the rotation.

So, for either the Jaguar or the Victor, if the brake/coast jumper is set to "coast" the motor offers the least mechanical resistance that it can when commanded to no speed. Likewise, In the "brake" position, the speed controller will offer the greatest mechanical resistance to rotation when off.

Hope this helps.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #10   Spotlight this post!  
Unread 24-01-2011, 02:51
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,827
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: articulating arm help

You may wish to consider using the jaguars for your arm... they can take a feedback circuit from a potentiometer at the joint and then (using settings that you provide) attempt to provide sufficient power to the motor to move to and hold the position that you want.

Alternatively, labview offers a similar PID routine to control arm position. You're looking for a "closed loop feedback" system, where your driver is entering the arm position data and leaving it up to the robot (either the cRio or the Jag) to figure out how to achieve that position.

Note that this requires using the CAN bus... not the PWM cables.

Note also that this is the second step towards a solution... the first, as advocated earlier, is attempting to counterbalance the "dead weight" of the arm with springs or counterweights.

Jason

P.S. Unless your arm joint is exceeding the range of a potentiometer (usually around 270 or so degrees), I'd recommend using a pot rather than an encoder. It is simpler to just read an analog input than to zero and track an encoder.
  #11   Spotlight this post!  
Unread 24-01-2011, 17:02
Da Kid's Avatar
Da Kid Da Kid is offline
Registered User
FRC #2957
 
Join Date: Jan 2010
Location: Alden, MN
Posts: 33
Da Kid is an unknown quantity at this point
Re: articulating arm help

our team has never used pid or CAN. do you know where some resources are for us as far as programming with pid and CAN and connecting the Jaguars via CAN?

Last edited by Da Kid : 24-01-2011 at 17:29.
  #12   Spotlight this post!  
Unread 25-01-2011, 11:22
HarveyAce's Avatar
HarveyAce HarveyAce is offline
Registered User
FRC #3329 (CAMBots)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Camden County
Posts: 91
HarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant future
Re: articulating arm help

About the window motors, I was told that the screw drive in them does not allow for back driving. and aren't they far too slow to be effective if reaching the top rack? just wondering plus the thermal lock on them could be a problem...
__________________
"Though I fly through the Valley of Death I shall fear no evil, for I am at 80,000 feet and climbing."
  #13   Spotlight this post!  
Unread 25-01-2011, 11:38
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,112
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: articulating arm help

If you intend to use the motor alone to hold the arm up, without any mechanical counterweight or spring-loading, be cautious. You'll be running the motor at or near stall a lot of the time. A CIM can handle that for a while, but it will get very warm and you might want to consider a way to cool it off during or between matches.

A Fisher-Price or Banebots motor will not handle that kind of abuse well at all. They rely on an internal fan to keep their windings cool, and if they're not turning, neither is the fan. You'll melt something in short order, followed by smoke. Nearby veterans will sniff the air and nod at the familiar smell of a fried motor.
  #14   Spotlight this post!  
Unread 25-01-2011, 13:23
HarveyAce's Avatar
HarveyAce HarveyAce is offline
Registered User
FRC #3329 (CAMBots)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Camden County
Posts: 91
HarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant futureHarveyAce has a brilliant future
Re: articulating arm help

Well thats not good then. We were going to use a Banebots motor hooked up to last year's gearbox with a chain to power our four-bar shoulder joint. we were going to power the robot drive with the four cim motors, but is that necessary? should we just use two there and use a cim to power the arm?
__________________
"Though I fly through the Valley of Death I shall fear no evil, for I am at 80,000 feet and climbing."
  #15   Spotlight this post!  
Unread 25-01-2011, 14:54
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 802
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: articulating arm help

Quote:
Originally Posted by HarveyAce View Post
Should we just use two there and use a cim to power the arm?
You can still use the BB for the arm, but understand that the BB will not like being anywhere near stall for any significant period of time. This means that you should design the torque that the motor needs to apply to keep the arm up to be significantly less than the stall torque (1/4 or less of the stall torque. I don't have a good number for this). Adding a second BB if it looks like it'll take much torque on the motor to keep the arm up will help. It wouldn't hurt to also put a fan blowing across the motor to cool it when it isn't spinning.

971 used 2 FP motors in a single joint arm in 2008, and it worked just fine. We had way too much power in the joint, which meant that the motors weren't loaded very highly.
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 07:30.

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