Go to Post We may be changing cheese heads for cheesy poofs, but in the imortal words of Gen. MacArthur "we shall return" (team # 2437) - cdebo [more]
Home
Go Back   Chief Delphi > Technical > Motors
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 14-02-2016, 23:47
MAXOFLIFE's Avatar
MAXOFLIFE MAXOFLIFE is offline
Bolton Bear Bots Member
AKA: Maxwell Huffman
FRC #3666 (Bolton Bear Bots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Alexandria Louisiana
Posts: 24
MAXOFLIFE is an unknown quantity at this point
How to limit the maximum current a miniCIM can draw?

As we're nearing the end of our final build design, we need a way to "cap" the current of our miniCIM that's controlling our arm mechanism for opening the portcullis to avoid accidentally damaging our motor on the field. Everything we've done so far has been fairly basic, so a simple solution would be the most helpful.

We have a miniCim with a 333:1 ratio (connected to a Spark, but a Talon SR is available). The JVN calculator says we'll have a current draw of 16.65 amps and a stall load of 90.13 lbs. We know this is overkill, but we wanted to be 100% sure we wouldn't have any issues lifting. The motor's only task is to open the portcullis, so the rotational speed of our arm will be static.

Are the stall current and stall load proportionally related? If we limited our current to 8.325 amps would the motor automatically stop when trying to lift more than 45.065 lbs.?

Also, how should we go about limiting the current of the motor? I would think this is a programming related problem, but I couldn't find any clear guides or tutorials online in LabVIEW for limiting the current of a motor.

Thank you for taking the time to read this! I hope we can figure out a doable solution to save our driver(s) the worry of making sure not to overload our arms against a wall or something on the field.
  #2   Spotlight this post!  
Unread 14-02-2016, 23:57
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is online now
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 816
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: How to limit the maximum current a miniCIM can draw?

In the JVN calculator, the current draw is how much current your motor will be drawing to lift the specified load at the specified arm length. Stall load is the maximum load the motor can lift at the specified arm length. To find out what your stall current would be, plug the stall load into the "Arm Load" box (F8) and look at what your current draw changes to.

Assuming your 333:1 reduction is already built and you're moving the arm around, I wouldn't worry about limiting the current of the motor by any means other than a fuse in the PDB (which you have to do anyway). Choose a fuse that is less than the stall current determined in the method above and you'll be ok.
__________________

Last edited by Ty Tremblay : 15-02-2016 at 00:00.
  #3   Spotlight this post!  
Unread 15-02-2016, 00:03
MAXOFLIFE's Avatar
MAXOFLIFE MAXOFLIFE is offline
Bolton Bear Bots Member
AKA: Maxwell Huffman
FRC #3666 (Bolton Bear Bots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Alexandria Louisiana
Posts: 24
MAXOFLIFE is an unknown quantity at this point
Re: How to limit the maximum current a miniCIM can draw?

Quote:
Originally Posted by Ty Tremblay View Post
In the JVN calculator, the current draw is how much current your motor will be drawing to lift the specified load at the specified arm length. Stall load is the maximum load the motor can lift at the specified arm length. To find out what your stall current would be, plug the stall load into the "Arm Load" box (F8) and look at what your current draw changes to.

Assuming your 333:1 reduction is already built and you're moving the arm around, I wouldn't worry about limiting the current of the motor by any means other than a fuse in the PDB (which you have to do anyway). Choose a fuse that is less than the stall current determined in the method above and you'll be ok.
Thank you!
  #4   Spotlight this post!  
Unread 15-02-2016, 00:14
Greg Needel's Avatar Unsung FIRST Hero
Greg Needel Greg Needel is offline
REVving up for a new season
FRC #2848 (All-sparks)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Dallas, TX
Posts: 3,103
Greg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond repute
Re: How to limit the maximum current a miniCIM can draw?

I agree with what Ty said, you don't need to limit your current for this setup. Those numbers you are getting in the spreadsheet are fully loaded current, a situation that you should never be in since the portcullis is much less than 90lbs (even if you had horrible mechanical advantage I see it never reaching that kind of load).



Now that we have established that you don't need to limit your current, if you wanted to do so anyway, you could do it by limiting the PWM value you send your SPARK.

When you send a SPARK (or any other motor controller) a value of 1 (full forward) you have full power. If you send it less than that you have effectively limited your current via lowering your available power. Assuming your motor had a perfectly linear power curve (which they don't) if you gave a 50% PWM signal you could have 50% power, which would also be less maximum current. There is a chance you get into trouble with this method as you may fall on a bad spot in the power curve, and the fact that motors are not exactly linear so you might have to play with the value you send the controller.
__________________
Greg Needel│www.robogreg.com
Co-founder REV Robotics LLC www.REVrobotics.com
2014 FRC World Champions with 254, 469, & 74
  #5   Spotlight this post!  
Unread 15-02-2016, 00:19
Chak Chak is offline
Registered User
AKA: Thomas
FRC #4159 (Cardinalbotics)
Team Role: CAD
 
Join Date: May 2015
Rookie Year: 2014
Location: San Francisco, California, USA
Posts: 253
Chak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant future
Re: How to limit the maximum current a miniCIM can draw?

Kind of irrelevant, but I'm curious: how did you get 333:1? 333 factors to 3*3*37, so you would need a 37:1 stage somewhere. Who in the world makes 37:1 ratios?
  #6   Spotlight this post!  
Unread 15-02-2016, 00:27
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: How to limit the maximum current a miniCIM can draw?

Quote:
Originally Posted by Chak View Post
Kind of irrelevant, but I'm curious: how did you get 333:1? 333 factors to 3*3*37, so you would need a 37:1 stage somewhere. Who in the world makes 37:1 ratios?
My guess is they're using a chain reduction with a non-integer (when reduced to n:1) ratio.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #7   Spotlight this post!  
Unread 15-02-2016, 10:43
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,555
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: How to limit the maximum current a miniCIM can draw?

Quote:
Originally Posted by Chak View Post
Kind of irrelevant, but I'm curious: how did you get 333:1? 333 factors to 3*3*37, so you would need a 37:1 stage somewhere. Who in the world makes 37:1 ratios?
Quote:
Originally Posted by cgmv123 View Post
My guess is they're using a chain reduction with a non-integer (when reduced to n:1) ratio.
I agree. A simple way to get there would be a VP with two 10:1 stages, then a 10:3 in chain (18t driving 60t).
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 15-02-2016 at 10:46.
  #8   Spotlight this post!  
Unread 15-02-2016, 12:28
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,893
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: How to limit the maximum current a miniCIM can draw?

Could you monitor the current from the PD board and cut back the command if the current is high? We did something similar to that last year using current feed back from the Talon SRX. Years before current feedback we limited the command to a value that limited the current to an acceptable level. We had a turbo button to enable full power & it was on the driver not to smoke the motor with the turbo button.
__________________
If you don't know what you should hook up then you should read a data sheet
  #9   Spotlight this post!  
Unread 15-02-2016, 14:08
MAXOFLIFE's Avatar
MAXOFLIFE MAXOFLIFE is offline
Bolton Bear Bots Member
AKA: Maxwell Huffman
FRC #3666 (Bolton Bear Bots)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Alexandria Louisiana
Posts: 24
MAXOFLIFE is an unknown quantity at this point
Re: How to limit the maximum current a miniCIM can draw?

Quote:
Originally Posted by Chak View Post
Kind of irrelevant, but I'm curious: how did you get 333:1? 333 factors to 3*3*37, so you would need a 37:1 stage somewhere. Who in the world makes 37:1 ratios?
Quote:
Originally Posted by cgmv123 View Post
My guess is they're using a chain reduction with a non-integer (when reduced to n:1) ratio.
Quote:
Originally Posted by GeeTwo View Post
I agree. A simple way to get there would be a VP with two 10:1 stages, then a 10:3 in chain (18t driving 60t).
We used two 10:1 stages in a VP and a chain (18t driving 60t)

GeeTwo hit it on the nose.
  #10   Spotlight this post!  
Unread 15-02-2016, 14:30
Chak Chak is offline
Registered User
AKA: Thomas
FRC #4159 (Cardinalbotics)
Team Role: CAD
 
Join Date: May 2015
Rookie Year: 2014
Location: San Francisco, California, USA
Posts: 253
Chak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant futureChak has a brilliant future
Re: How to limit the maximum current a miniCIM can draw?

Quote:
Originally Posted by MAXOFLIFE View Post
We used two 10:1 stages in a VP and a chain (18t driving 60t)

GeeTwo hit it on the nose.
Ah, that makes sense.

But if you're using 2 10:1 stages on a VP on a miniCIM, according to the recommended values in the Versaplanetary Loading Guide, you would break your gearbox before you stall your motor. Alternatively, you can use 105:1 or 108:1 with 3 stages, which is allowed by the loading guide (somehow... I hear it's because some gear stages are stronger than others).

Of course, since you're limiting the current the gearbox shouldn't break. But it doesn't hurt to be safe if you have space for an extra stage.
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:46.

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