Go to Post You will find friends among all FIRST students who will become very good friends of yours, will care and help you with anything that you need help with. This is my personal opinion, If you are hooked, dont ever let it go. - Arefin Bari [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 26-05-2011, 09:56
lemiant's Avatar
lemiant lemiant is offline
the Dreamer
AKA: Alex
FRC #4334 (Alberta Tech Alliance)
Team Role: Leadership
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Calgary, AB, Canada
Posts: 562
lemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond reputelemiant has a reputation beyond repute
Limitting motor torque

How do you keep the CIMs from putting out so much torque you break traction with the ground? Is there some way of measuring or calculating how much torque you are currently applying? Or of anticipating wheel slip, without actual having to have it occur?
  #2   Spotlight this post!  
Unread 26-05-2011, 09:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Limitting motor torque

Quote:
Originally Posted by lemiant View Post
Is there some way of measuring or calculating how much torque you are currently applying?
Yes. Measure the current.



Quote:
How do you keep the CIMs from putting out so much torque you break traction with the ground?
You could try limiting the current.


Quote:
Or of anticipating wheel slip, without actual having to have it occur?
For FRC, not really.

Commercial and military aircraft use highly complex software (and hardware) to anticipate the onset of loss of traction (during braking) and prevent it.





Last edited by Ether : 26-05-2011 at 10:20.
  #3   Spotlight this post!  
Unread 26-05-2011, 11:01
thefro526's Avatar
thefro526 thefro526 is offline
Mentor for Hire.
AKA: Dustin Benedict
no team (EWCP, MAR, FRC 708)
Team Role: Mentor
 
Join Date: Aug 2006
Rookie Year: 2005
Location: New Jersey
Posts: 2,599
thefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond repute
Send a message via AIM to thefro526 Send a message via MSN to thefro526
Re: Limitting motor torque

Quote:
Originally Posted by lemiant View Post
How do you keep the CIMs from putting out so much torque you break traction with the ground? Is there some way of measuring or calculating how much torque you are currently applying? Or of anticipating wheel slip, without actual having to have it occur?
This was discussed a lot in 2009. Some teams used a form of Traction Control, some didn't.

One of the most simple ways to implement a form of TC was to program in a 'ramping' function so that the driver couldn't go from 0% (standstill) to 100% and spin the wheels.

Another method is to have an array of follower wheels that keep track of robots actual speed and compare this to the speed that the wheel is spinning at, if the two speeds are different, then your wheels are slipping and you adjust the motor motor speed accordingly.
__________________
-Dustin Benedict
2005-2012 - Student & Mentor FRC 816
2012-2014 - Technical Mentor, 2014 Drive Coach FRC 341
Current - Mentor FRC 2729, FRC 708
  #4   Spotlight this post!  
Unread 26-05-2011, 11:10
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,745
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Limitting motor torque

Quote:
Originally Posted by lemiant View Post
How do you keep the CIMs from putting out so much torque you break traction with the ground? Is there some way of measuring or calculating how much torque you are currently applying? Or of anticipating wheel slip, without actual having to have it occur?
For what it's worth, this is almost never an issue in carpeted FRC games. Wheel slip doesn't hamper performance all that much on the off chance your robot is capable of it.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
  #5   Spotlight this post!  
Unread 26-05-2011, 11:14
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Limitting motor torque

Current is proportional to torque, so you should be able to measure the current and calculate torque. You can estimate the maximum torque that each motor should provide, and use software to limit the output based on that.

From my basic knowledge and a brief reading of the Wikipedia article on ABS, the basic idea of ABS is to measure the speed of each wheel, calculate the overall speed of the car. If one if the wheels is significantly slower, it is about to lock up. Conversely, if one if the wheels is going faster, it has broken static friction and is spinning. In the case of a tank-steer robot where each side of the drivetrain is connected, (rather than using a differential and having independent speeds for each wheel), you would probably need to use other sensors to measure the robot's actual speed.

I'm sure there's a lot more going on in modern ABS and traction control systems, but several teams implemented such systems on their robots in 2009 with demonstrable success. Search around and you should find some discussion and video.


All that said, in the context of FRC, having your wheels slip is not necessarily a bad thing. Given the choice between having your wheels slip and tripping a breaker, you definitely want the wheels to slip.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...
  #6   Spotlight this post!  
Unread 26-05-2011, 13:56
Hawiian Cadder's Avatar
Hawiian Cadder Hawiian Cadder is offline
Registered User
AKA: Isaak
FRC #0159 (Alpine Robotics)
Team Role: CAD
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Fort Colins Colorado
Posts: 573
Hawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to all
Re: Limitting motor torque

if you are not using CAN then the torque can be calculated with the voltage you are putting in and speed, this requires an encoder on the motor though. although instead of worrying about how to make do with less traction, i would focus on getting more traction. this years robot was geared for 14 feet per second, and before we switched to roughtop tread it was able to spin the wheels at stall, after the switch, we had no problems.
  #7   Spotlight this post!  
Unread 26-05-2011, 14:11
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Limitting motor torque

Quote:
Originally Posted by Hawiian Cadder View Post
if you are not using CAN then the torque can be calculated with the voltage you are putting in and speed, this requires an encoder on the motor though. although instead of worrying about how to make do with less traction, i would focus on getting more traction. this years robot was geared for 14 feet per second, and before we switched to roughtop tread it was able to spin the wheels at stall, after the switch, we had no problems.
Why does it make a difference what kind of control you are using?

Increasing traction by increasing friction will also increase power draw which is not a good thing (for obvious reasons).

http://mizugaki.iis.u-tokyo.ac.jp/st...F/EV_Trans.pdf This paper originally posted to CD by Tom Schindler may be interesting to some of you. It explains how to implement traction control on an electric vehicle.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)

Last edited by JamesBrown : 26-05-2011 at 14:20.
  #8   Spotlight this post!  
Unread 26-05-2011, 14:35
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Limitting motor torque

Quote:
Originally Posted by JamesBrown View Post
Why does it make a difference what kind of control you are using?
Jaguars using CAN report their current draw and support a current control mode.

If you using PWM, you don't have access to the internal current sensor and need to find torque by some other path, such as an external current sensor or `Hawiian Cadder`s method.
  #9   Spotlight this post!  
Unread 26-05-2011, 14:44
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Limitting motor torque

Quote:
Originally Posted by EricVanWyk View Post
Jaguars using CAN report their current draw and support a current control mode.

If you using PWM, you don't have access to the internal current sensor and need to find torque by some other path, such as an external current sensor or `Hawiian Cadder`s method.
Ah, that makes sense, I was assuming he was saying you couldn't do it with CAN, my mistake.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #10   Spotlight this post!  
Unread 26-05-2011, 15:29
Hawiian Cadder's Avatar
Hawiian Cadder Hawiian Cadder is offline
Registered User
AKA: Isaak
FRC #0159 (Alpine Robotics)
Team Role: CAD
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Fort Colins Colorado
Posts: 573
Hawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to all
Re: Limitting motor torque

Quote:
Originally Posted by JamesBrown View Post
Why does it make a difference what kind of control you are using?

Increasing traction by increasing friction will also increase power draw which is not a good thing (for obvious reasons).

http://mizugaki.iis.u-tokyo.ac.jp/st...F/EV_Trans.pdf This paper originally posted to CD by Tom Schindler may be interesting to some of you. It explains how to implement traction control on an electric vehicle.
increasing friction will increase the amount of power draw when the robot stalls. however that is not a bad thing, more grip = more pushing power. because the robots only run for 3 min at most, power draw, and efficiency dont really matter.
  #11   Spotlight this post!  
Unread 26-05-2011, 15:35
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,745
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Limitting motor torque

Quote:
Originally Posted by Hawiian Cadder View Post
increasing friction will increase the amount of power draw when the robot stalls.
No it won't. If the wheels are stalling, the motors are outputting stall current. There's no "super duper stall" or whatnot that's harder than that.
__________________
Mentor / Drive Coach: 228 (2016-?)
--2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
.
College Mentor: 2791 (2010-2015)
-- 2015 TVR Motorola Quality, FLR GM Industrial Design -- 2014 FLR Motorola Quality / SFs (with 341, 4930)
-- 2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
-- 2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 MN 10K Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
  #12   Spotlight this post!  
Unread 26-05-2011, 15:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Limitting motor torque

Quote:
Originally Posted by Hawiian Cadder View Post
power draw, and efficiency dont really matter.
Unless you trip a breaker or the Jag's overcurrent protection, or brown-out the cRIO.



  #13   Spotlight this post!  
Unread 26-05-2011, 15:37
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Limitting motor torque

Quote:
Originally Posted by Chris is me View Post
No it won't. If the wheels are stalling, the motors are outputting stall current. There's no "super duper stall" or whatnot that's harder than that.
He said when the "robot" stalls, not when the "wheel" stalls.


  #14   Spotlight this post!  
Unread 26-05-2011, 15:39
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,704
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Limitting motor torque

Quote:
Originally Posted by Hawiian Cadder View Post
because the robots only run for 3 min at most, power draw, and efficiency dont really matter.
In many regional finals, you have a 6-minute match cycle time. If you have a high-current match, then your battery may not have enough time to fully recharge before the next time it is used. In the worst case, it could take 6 matches to make it to finals -- most teams (though I'm sure not all) I've seen at competition have between 4 & 6 batteries. The question then becomes, can your battery chargers properly keep up with your demand?

Match-for-match in elims (or anything in quals) where high-current situations aren't common, sure I'd agree with you in most* scenarios. Yet I'd hate for you to put yourself in a bad situation come competition day because you thought something was totally negligible.

* In situations where multiple mechanisms must perform quickly (i.e. high-power) and heavy game objects are involved (2008 is a perfect example), then electrical efficiency should be considered (IMO). Other considerations are PID-hold algorithms where an arm must move to a position and use back-drive current with extra current to hold itself in position. 2006 also saw at least one team implement a PID-hold software mechanism on their drive train in order to keep from being pushed while they shot at the goal (I'm not sure of the team, but it's in the "Behind the Design" book). All of the mechanisms on the robot can accrue large amounts of power draw (mAh) over the course of a match if you're not careful; so designing the drive train to use a little less current isn't a bad thing.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub

Last edited by JesseK : 26-05-2011 at 15:47.
  #15   Spotlight this post!  
Unread 26-05-2011, 16:15
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Limitting motor torque

Quote:
Originally Posted by Hawiian Cadder View Post
increasing friction will increase the amount of power draw when the robot stalls. however that is not a bad thing, more grip = more pushing power. because the robots only run for 3 min at most, power draw, and efficiency dont really matter.
I have seen robots that drain a battery in one match, power draw is something teams should think about.

Increasing friction also increases the amount of power that is required to turn, this can result in a large power draw. If there is a reasonable amount of performance increase that can be gained by minimizing slipping in software why not take advantage of it?
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
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 18:57.

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