Go to Post the Robotics team isn't just a club, it's a family. - 1086Programmer [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-07-2016, 22:57
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,214
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
paper: 4 CIM versus 6 CIM theoretical calculations

Thread created automatically to discuss a document in CD-Media.

4 CIM versus 6 CIM theoretical calculations by asid61
Reply With Quote
  #2   Spotlight this post!  
Unread 30-07-2016, 23:33
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,552
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: paper: 4 CIM versus 6 CIM theoretical calculations

A great overview of the continued advantages of 6 CIMs over 4 - provided that you watch the total current!

Assuming 200A for the drive train is simplistic, but a good way to compare apples to apples. No matter what the battery state is, you will have a certain limited current you can draw from it before beginning the brownout process.

The first (and so far only) technical error was the sentence that spans from the first page to the second. It should read something like:
Quote:
Originally Posted by asid61, edited
If the speed goes down by 1/10th of the max speed, the current will go up by 1/10th of the difference between stall current and free current, and so forth.
This does not change any of the high-level conclusions.

Another thing to consider if planning a drive train with current limiting is whether using some other motor will be more effective to your strategy than CIMs. A cursory review of the mini-CIM finds it to be inferior in most cases, as it has lower efficiency than the CIM at any given current draw, but there are probably cases where it is the proper choice, due to weight considerations or specific needs. If you're going to do proper current/speed and/or thermal monitoring, you may want to add the 775 pro or other low thermal mass motor to your considerations.
__________________

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.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-07-2016, 01:21
MichaelBick MichaelBick is offline
Registered User
FRC #1836 (MilkenKnights)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 733
MichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant future
Re: paper: 4 CIM versus 6 CIM theoretical calculations

In practice, my guess is that you can draw way more current than 200 amps. Just based off of my team's 2016 drivetrain, which was 4 CIM with no voltage ramping, we experienced no brownouts even going from full forwards throttle to full backwards throttle. If we assume that our robot was traction limited below 40% of our max speed (a conservative assumption), we were drawing over 300 amps max.

Another cool aspect to current limiting is changing the limits in real-time based on each subsystem's need. For example, in a 4 CIM "hard right" turn -- 0% power on the right drive side, 100% on the left -- you may only be drawing 50% of what the battery is able to provide. If you have 1.5 or 2 times the power and current limit, you can double the current limit on the left side so that you fully utilize the battery. This same idea can be used to change the current limits to better follow a motion profile or prioritize superstructure motions.

One last important item to keep in mind is the main breaker. A high power drivetrain with a current limit pulls the maximum current for more time than an equivalent lower power drivetrain. Because the main breaker is heat triggered, it is sensitive to prolonged periods over the 120 amp breaker limit, and therefore high power drivetrains are more likely to blackout than lower power drivetrains.

Given that the talon SRX now supports current PID, a lot of doors have been opened for teams to find performance improvements with current limiting.
__________________
Team 1836 - The Milken Knights
2013 LA Regional Champions with 1717 and 973
2012 LA Regional Finalists with 294 and 973
To follow Team 1836 on Facebook, go to http://www.facebook.com/MilkenKnights
To go to our website, go to http://milkenknights.com/index.html

Last edited by MichaelBick : 31-07-2016 at 01:33.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-07-2016, 10:18
Aboudy Dairi's Avatar
Aboudy Dairi Aboudy Dairi is offline
Wait, people DO read these?
AKA: Co-host of the Jake & Aboudy Show
FRC #1768 (RoboChiefs)
Team Role: Mechanical
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Bolton
Posts: 11
Aboudy Dairi is on a distinguished road
Re: paper: 4 CIM versus 6 CIM theoretical calculations

Towards the end of the appendix A is a sentence that starts with "One final thought: ..." Is that supposed to carry on to the last paragraph somehow or is it just incomplete?

Great paper, this was a good introduction to 6 CIM drives for me in terms of the math. The idea of current limiting sounds pretty cool and is definitely something that could be implemented with the Talon SRXs to tune performance and prevent brownouts.
Reply With Quote
  #5   Spotlight this post!  
Unread 31-07-2016, 10:47
ThaddeusMaximus's Avatar
ThaddeusMaximus ThaddeusMaximus is offline
Thaddeus Hughes
FRC #4213 (MetalCow Robotics)
Team Role: College Student
 
Join Date: Jan 2016
Rookie Year: 2012
Location: Shirley, IL
Posts: 72
ThaddeusMaximus is a jewel in the roughThaddeusMaximus is a jewel in the roughThaddeusMaximus is a jewel in the rough
Re: paper: 4 CIM versus 6 CIM theoretical calculations

1. Mechanical power output is not everything. You need to have useful power; proper gearing. However, yes, having more mechanical power output won't hurt.

2. How do you magically draw a hard limit of 200 (or whatever) amps without effecting voltage input to the motors? Though you may be "limited" to 200 amps, when you're drawing this much current, voltage dips due to both surface depletion (?) and voltage drop in the loads to the motors. This shouldn't be ignored. When you drop away from the 12V, the motor curve you use up there is no longer valid.

Look into using kV and kT values to model things and take this voltage drop into account.
__________________
Formula SAE is now the thing I do. #becauseRacecar
But I'll still be a mentor for like, forever.

Check out what I'm up to: http://ppi.ddns.net/blog

"So, wait, what kind of engineer are you? Mechanical? Electrical? Software?"
"Yeah pretty much."
Reply With Quote
  #6   Spotlight this post!  
Unread 31-07-2016, 11:12
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 609
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: paper: 4 CIM versus 6 CIM theoretical calculations

I took a decently quick read and had a few questions.
1. I may be misunderstanding what you are stating here:
Quote:
4CIM 200/524 = 38%
Are you saying that a 4 CIM drive should be limited to 38% per a motor in order to keep your robot below 200amps of power usage? If so, I think that the 200 Amp number is actually pretty far from the limit of the power system of a modern FRC robot; we have run 4 CIM drives without any voltage ramping and never had any issues with brownouts.*

2. Would limiting the current draw of a motor be similar to limiting voltage? I.e. would limiting max current have a similar effect to limiting a CIM's output to .5 (In terms of limiting the speed at which the CIM will approach maximum acceleration?)

3. Why not simply control the Max RPM of the CIM in code rather than using a current PID?

*I suspect that part of this has been our somewhat low final RPMS from our gearbox reductions. These have both resulted in very short acceleration periods.

Thanks in advance for the answers!
Reply With Quote
  #7   Spotlight this post!  
Unread 31-07-2016, 12:21
MichaelBick MichaelBick is offline
Registered User
FRC #1836 (MilkenKnights)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 733
MichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant futureMichaelBick has a brilliant future
Re: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by thatprogrammer View Post
Are you saying that a 4 CIM drive should be limited to 38% per a motor in order to keep your robot below 200amps of power usage?
He is saying that @ 0 RPMs you need to provide 38% of full voltage to draw 200 amps total. At higher RPMs you will need to provide more voltage to draw the same 200 amps. Similarly you need to provide even less voltage if the robot is traveling backwards initially.

Quote:
Originally Posted by thatprogrammer View Post
2. Would limiting the current draw of a motor be similar to limiting voltage? I.e. would limiting max current have a similar effect to limiting a CIM's output to .5
Halving voltage halves no-load speed, halves torque, and results in 25% mechanical power. On the other hand, limiting current limits torque and thereby limits acceleration. This by itself is very helpful, even without the power increase that is mentioned in the paper, because it causes robots to be much more stable.

Quote:
Originally Posted by thatprogrammer View Post
3. Why not simply control the Max RPM of the CIM in code rather than using a current PID?
If you only control velocity, you will still draw high amounts of current at stall. For example, a 4 CIM drive will draw 524 amps at stall, and 1048 amps going from full forward to full reverse. This is what causes brownouts.
__________________
Team 1836 - The Milken Knights
2013 LA Regional Champions with 1717 and 973
2012 LA Regional Finalists with 294 and 973
To follow Team 1836 on Facebook, go to http://www.facebook.com/MilkenKnights
To go to our website, go to http://milkenknights.com/index.html
Reply With Quote
  #8   Spotlight this post!  
Unread 31-07-2016, 21:26
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,552
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: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by MichaelBick View Post
One last important item to keep in mind is the main breaker. A high power drivetrain with a current limit pulls the maximum current for more time than an equivalent lower power drivetrain. Because the main breaker is heat triggered, it is sensitive to prolonged periods over the 120 amp breaker limit, and therefore high power drivetrains are more likely to blackout than lower power drivetrains.
I fully agree with the concern, though I would consider tripping the main breaker a blackout, not a brownout.

Yes, you can draw more than 220A for short durations. This does not change the primary conclusion of the original paper that 3 CIMs operated properly can provide greater mechanical power drawing from a given battery and condition. This is because the only conditions in which three motors run less efficiently than two is on the fast side of the peak of the efficiency curve, when operating near the free speed limit. In this domain, brownouts are not usually of concern. I would not use this paper as the last word in tuning a current limiting system, but I do consider it a valid argument for using a 6 CIM drive train over a 4 CIM drive train when the team's game strategy involves pushing battles or other high-current operation.

Alternately, 6 CIMs would allow you to gear the robot faster for a given application, preserving good startup acceleration while increasing top speed, or leave gearing alone, preserving top speed while increasing startup acceleration (in torque-limited drives). This would not be nearly as much of a difference as a shifting gearbox, but it would be simpler and less expensive.
__________________

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.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-08-2016, 08:14
marshall's Avatar
marshall marshall is offline
My pants are louder than yours.
FRC #0900 (The Zebracorns)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2003
Location: North Carolina
Posts: 1,241
marshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond reputemarshall has a reputation beyond repute
Re: paper: 4 CIM versus 6 CIM theoretical calculations

I'm a little busy to check this but I'd like to know how these calculations line up with the results in this paper:

https://www.chiefdelphi.com/forums/s...d.php?t=131790
__________________
"La mejor salsa del mundo es la hambre" - Miguel de Cervantes
"The future is unwritten" - Joe Strummer
"Simplify, then add lightness" - Colin Chapman
Reply With Quote
  #10   Spotlight this post!  
Unread 01-08-2016, 09:53
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,601
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: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by GeeTwo View Post
Another thing to consider if planning a drive train with current limiting is whether using some other motor will be more effective to your strategy than CIMs. A cursory review of the mini-CIM finds it to be inferior in most cases, as it has lower efficiency than the CIM at any given current draw, but there are probably cases where it is the proper choice, due to weight considerations or specific needs. If you're going to do proper current/speed and/or thermal monitoring, you may want to add the 775 pro or other low thermal mass motor to your considerations.
The CIM versus mini-CIM case for the 6 motor drive is actually a lot closer of a comparison than you might think. The important thing to consider is that the more load the motors place on the electrical system, the greater the voltage drop, and the lower voltage in the system lowers the output torque / etc. There are diminishing returns on adding additional motors based on this. The performance jump from 2 to 4 CIMs is much greater than 4 to 6 CIMs. I think it was 234 that published some empirical data on this, which showed that 2 CIM + 1 mini-CIM has almost the same characteristics as a 3 CIM drive once you account for the decreased voltage drop on the entire system, and the 2+1 gearbox draws less overall current than a 3 CIM gearbox. Just some food for thought.
__________________
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 Minnesota 10,000 Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #11   Spotlight this post!  
Unread 02-08-2016, 11:56
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,214
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by GeeTwo View Post
A great overview of the continued advantages of 6 CIMs over 4 - provided that you watch the total current!

Assuming 200A for the drive train is simplistic, but a good way to compare apples to apples. No matter what the battery state is, you will have a certain limited current you can draw from it before beginning the brownout process.

The first (and so far only) technical error was the sentence that spans from the first page to the second. It should read something like:

This does not change any of the high-level conclusions.

Another thing to consider if planning a drive train with current limiting is whether using some other motor will be more effective to your strategy than CIMs. A cursory review of the mini-CIM finds it to be inferior in most cases, as it has lower efficiency than the CIM at any given current draw, but there are probably cases where it is the proper choice, due to weight considerations or specific needs. If you're going to do proper current/speed and/or thermal monitoring, you may want to add the 775 pro or other low thermal mass motor to your considerations.
Thank you!
Whoops, I didn't notice that error. Rest assured that the calculations were done the correct way (and not the way stated in the paper!) I'll change that and re-upload soon.
I was considering a 10 775pro drivetrain just before I left for the mountains on Friday, and will do some calcs for those too soon.

Quote:
Originally Posted by MichaelBick View Post
In practice, my guess is that you can draw way more current than 200 amps. Just based off of my team's 2016 drivetrain, which was 4 CIM with no voltage ramping, we experienced no brownouts even going from full forwards throttle to full backwards throttle. If we assume that our robot was traction limited below 40% of our max speed (a conservative assumption), we were drawing over 300 amps max.

Another cool aspect to current limiting is changing the limits in real-time based on each subsystem's need. For example, in a 4 CIM "hard right" turn -- 0% power on the right drive side, 100% on the left -- you may only be drawing 50% of what the battery is able to provide. If you have 1.5 or 2 times the power and current limit, you can double the current limit on the left side so that you fully utilize the battery. This same idea can be used to change the current limits to better follow a motion profile or prioritize superstructure motions.

One last important item to keep in mind is the main breaker. A high power drivetrain with a current limit pulls the maximum current for more time than an equivalent lower power drivetrain. Because the main breaker is heat triggered, it is sensitive to prolonged periods over the 120 amp breaker limit, and therefore high power drivetrains are more likely to blackout than lower power drivetrains.

Given that the talon SRX now supports current PID, a lot of doors have been opened for teams to find performance improvements with current limiting.
You're definitely correct, 200 amps is really conservative estimate. I couldn't dig up any current draw graphs from this year (where we ran 4 CIM and had a few brownouts before adding a center drop), but I hope to get some more concrete data to apply to make a more optimized curve. That being said, the overall gains in efficiency and the output power still exist with a higher current draw, and I think that due to the nature of the 6 CIMs that actually might drag the gap out more.

The main reason to use 200 amps was to allow me to do just a comparison between 4 CIM and 6 CIM given other constant variables.

I'm not too worried about the main breaker. It was a problem in 2014, but main breaker blows these days are extremely rare IMO, just because brownouts happen well before blows. Early in the season we browned out many times in practice, but never faced a breaker blow.

I forgot that the SRX can do that! That makes this way easier. In that case using the function in my paper isn't really necessary because you can just PID the current directly. That being said, coming up with a separate algorithm that takes into account battery voltage drop and max current vs. time would probably be better.

Quote:
Originally Posted by Aboudy Dairi View Post
Towards the end of the appendix A is a sentence that starts with "One final thought: ..." Is that supposed to carry on to the last paragraph somehow or is it just incomplete?

Great paper, this was a good introduction to 6 CIM drives for me in terms of the math. The idea of current limiting sounds pretty cool and is definitely something that could be implemented with the Talon SRXs to tune performance and prevent brownouts.
Oh geez, that was supposed to say:
"One final thought: Because a 6 CIM drive hits 200 amps at almost 4,000 rpm, where as a 4 CIM drive hits 200 amps at 3,300 rpm, the 6 CIM drive will be able to utilize all 200 amps for acceleration closer to the free speed of the drivetrain. A 4 CIM drive might only be able to get 200 amps worth of torque up to 12fps in a 16fps free speed drivetrain, whereas the 6 CIM drive can get up to 14fps before dropping under 200 amps current draw."
That makes the gap between 4 CIM and 6 CIM larger.
Thank you!

Quote:
Originally Posted by ThaddeusMaximus View Post
1. Mechanical power output is not everything. You need to have useful power; proper gearing. However, yes, having more mechanical power output won't hurt.

2. How do you magically draw a hard limit of 200 (or whatever) amps without effecting voltage input to the motors? Though you may be "limited" to 200 amps, when you're drawing this much current, voltage dips due to both surface depletion (?) and voltage drop in the loads to the motors. This shouldn't be ignored. When you drop away from the 12V, the motor curve you use up there is no longer valid.

Look into using kV and kT values to model things and take this voltage drop into account.
Gearing is important, definitely. I did address that a bit in my paper, but as a general rule based on my experiences I would just run ~15fps on a 4CIM and ~17fps on a 6 CIM. That lets you take advantage of the extra efficiency of the 6 CIM while still getting a bit more acceleration.
My understanding of the motor curves was that the current and RPM decrease proportionally to the proportion of 12v that you are running at. I.E. if you run a CIM at 6v, it will have a free speed of 2,640rpm and a stall current of 66 amps. What do you mean by "voltage drop in the loads to the motors"? Like losses in the wires?
I was supposed to make a new equation that took into account voltage drop and used kT and kV to make a better comparison while I was in the mountains, but I didn't get around to it then. If you have any current draw vs. brownout graphs or anything like that I would appreciate it.

Quote:
Originally Posted by thatprogrammer View Post
I took a decently quick read and had a few questions.
1. I may be misunderstanding what you are stating here:

Are you saying that a 4 CIM drive should be limited to 38% per a motor in order to keep your robot below 200amps of power usage? If so, I think that the 200 Amp number is actually pretty far from the limit of the power system of a modern FRC robot; we have run 4 CIM drives without any voltage ramping and never had any issues with brownouts.*

2. Would limiting the current draw of a motor be similar to limiting voltage? I.e. would limiting max current have a similar effect to limiting a CIM's output to .5 (In terms of limiting the speed at which the CIM will approach maximum acceleration?)

3. Why not simply control the Max RPM of the CIM in code rather than using a current PID?

*I suspect that part of this has been our somewhat low final RPMS from our gearbox reductions. These have both resulted in very short acceleration periods.

Thanks in advance for the answers!
1. You're right that 200 amps is pretty low. But as a number to use to compare the two drives I would say it's fine. I'm working on a more optimized model, so if you have any current data before brownout I would appreciate it.

2. Michael got it.

3. Current PID (or maximizing current draw without browning out) will let you get the most out of your drivetrain in terms of acceleration and safety. This is important if you want to run a drivetrain at high speeds and still not suffer from decreased acceleration and brownouts.

Quote:
Originally Posted by MichaelBick View Post
He is saying that @ 0 RPMs you need to provide 38% of full voltage to draw 200 amps total. At higher RPMs you will need to provide more voltage to draw the same 200 amps. Similarly you need to provide even less voltage if the robot is traveling backwards initially.



Halving voltage halves no-load speed, halves torque, and results in 25% mechanical power. On the other hand, limiting current limits torque and thereby limits acceleration. This by itself is very helpful, even without the power increase that is mentioned in the paper, because it causes robots to be much more stable.



If you only control velocity, you will still draw high amounts of current at stall. For example, a 4 CIM drive will draw 524 amps at stall, and 1048 amps going from full forward to full reverse. This is what causes brownouts.
Shoot, I forgot about the power decreasing with different voltages and the like. That actually screws up a big portion of my paper, so I need to go back and redo a lot of calculations. The basic conclusions should be similar, however.

Quote:
Originally Posted by marshall View Post
I'm a little busy to check this but I'd like to know how these calculations line up with the results in this paper:

https://www.chiefdelphi.com/forums/s...d.php?t=131790
I'm going through it right now, and due to the mechanical power and such changing I can't make a judgement right now. I'll come back to it once I fix my stuff. That being said, the issue with the 234 paper is that it gears very low and assumes you are going long distances, so it's not a perfect comparison. The plots for voltage and current will come in very handy, come to think of it.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
  #12   Spotlight this post!  
Unread 02-12-2016, 11:59
InFlight's Avatar
InFlight InFlight is offline
3574 - The King's of Bling
AKA: Jim
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Seattle Area
Posts: 161
InFlight is an unknown quantity at this point
Re: paper: 4 CIM versus 6 CIM theoretical calculations

The lead acid batteries used by FIRST are about 17 Amp-Hours. They are certainly capable of discharging in excess of 300 amps for a few seconds.

The roboRIO brown out control is based on a voltage threshold of 6.3 Volts. And thus has 5.7 volts of margin with a fully charged battery.

You could reasonably model this situation as a 12 V voltage source with 0.05 Ohms of resistance to the power distribution board; and 0.3 Ohms of resistance through each of motor controls (Talon SRX) and wiring.

A CIM motor has a stated Stall current of 131 amps at 12 volts. For the instantaneous stall current, you could model the equivalent resistance as R=V/I = 12/131=0.09 Ohms

So each CIM motor circuit would have a Series Resistance of 0.09+0.3=0.39 Ohms.

Parallel resistances are totaled as 1/Rtotal = 1/R1 + 1/R2 +…+ 1/Rn

Four CIMs have a combined parallel resistance of 0.0975 Ohms.
Six CIMS have a combined parallel resistance of 0.065 Ohms

Four CIMS
The Four CIM total Resistance is 0.05+0.0975=0.1475 Ohms

Current:
I=V/R=12V/0.1475=81.4 Amps

The voltage drop at the RoboRio is
V=I*R=0.05*81.4= 4.07 Volts
The roboRIO has 1.63 Volts of margin for a brown out.
12-6.3-4.07=1.63

Six CIMS
The Six CIM total Resistance is 0.05+0.065=0.0115 Ohms

Current:
I=V/R=12V/0.115=104.3 Amps

The voltage drop at the RoboRio is
V=I*R=0.05*104.3= 5.21 Volts
The roboRIO has 0.49 Volts of margin for a brown out.
12-6.3-5.21=0.49


What happens later in the match when the Battery voltage has drooped down to 10.5 Volts?

We will leave the CIM resistance unchanged, even though they are now quite hot. Same with the wiring resistances.


Four CIMS
Current:
I=V/R=10.5V/0.1475=71.2 Amps

The voltage drop at the RoboRio is
V=I*R=0.05*71.2= 3.5 Volts
The roboRIO has 0.7 Volts of margin for a brown out.
10.5-6.3-3.5=0.7



Six CIMS

Current:
I=V/R=10.5V/0.115=91.3 Amps

The voltage drop at the RoboRio is
V=I*R=0.05*91.3= 4.57 Volts
The roboRIO is -0.37 Volts below the brownout voltage.
10.5-6.3-4.57=-0.37

Summary:
Standard four CIM Drives consistently maintain a 1 Volt higher brown out margin than six CIM drives. While a Six total CIM Drive can accelerate 150% faster than a Four CIM drive, it does come at considerable more risk of brownout event. Each team will have to balance drivetrain performance vs. robot reliability for the entire match.
__________________

Thank you 2016 Alliance Partners - 948, 1510, 2046, 2521, 2980, 2990, 4911, 4683

Last edited by InFlight : 02-12-2016 at 12:18.
Reply With Quote
  #13   Spotlight this post!  
Unread 02-12-2016, 12:11
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,214
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by InFlight View Post
The lead acid batteries used by FIRST are about 17 Amp-Hours. They are certainly capable of discharging in excess of 300 amps for a few seconds.

The roboRIO brown out control is based on a voltage threshold of 6.3 Volts. And thus has 5.7 volts of margin with a fully charged battery.

You could reasonably model this situation as a 12 V voltage source with 0.05 Ohms of resistance to the power distribution board; and 0.3 Ohms of resistance through each of motor controls (Talon SRX) and wiring.

A CIM motor has a stated Stall current of 131 amps at 12 volts. For the instantaneous stall current, you could model the equivalent resistance as R=V/I = 12/131=0.09 Ohms

So each CIM motor circuit would have a Series Resistance of 0.09+0.3=0.39 Ohms.

Parallel resistances are totaled as 1/Rtotal = 1/R1 + 1/R2 +…+ 1/Rn

Four CIMs have a combined parallel resistance of 0.0975 Ohms.
Six CIMS have a combined parallel resistance of 0.065 Ohms

Four CIMS
The Four CIM total Resistance is 0.05+0.0975=0.1475 Ohms

Current:
I=V/R=12V/0.1475=81.4 Amps

The voltage drop at the RoboRio is
V=I*R=60 amps =0.05*81.4= 4.07 Volts
The roboRIO has 1.63 Volts of margin for a brown out.
12-6.3-4.07=1.63

Six CIMS
The Six CIM total Resistance is 0.05+0.065=0.0115 Ohms

Current:
I=V/R=12V/0.115=104.3 Amps

The voltage drop at the RoboRio is
V=I*R=60 amps =0.05*104.3= 5.21 Volts
The roboRIO has 0.49 Volts of margin for a brown out.
12-6.3-5.21=0.49


What happens later in the match when the Battery voltage has drooped down to 10.5 Volts?

We will leave the CIM resistance unchanged, even though they are now quite hot. Same with the wiring resistances.


Four CIMS
Current:
I=V/R=10.5V/0.1475=71.2 Amps

The voltage drop at the RoboRio is
V=I*R=60 amps =0.05*71.2= 3.5 Volts
The roboRIO has 0.7 Volts of margin for a brown out.
10.5-6.3-3.5=0.7



Six CIMS

Current:
I=V/R=10.5V/0.115=91.3 Amps

The voltage drop at the RoboRio is
V=I*R=60 amps =0.05*91.3= 4.57 Volts
The roboRIO is-.37 Volts below the brownout voltage.
10.5-6.3-3.5=-0.37

Summary:
Standard four CIM Drives consistently maintain a 1 Volt higher brown out margin than six CIM drives. While a Six total CIM Drive can accelerate 150% faster than a Four CIM drive, it does come at considerable more risk of brownout event. Each team will have to balance drivetrain performance vs. robot reliability for the entire match.
That's some nice math you got there. I'm not sure if your model is perfect however. Are you assuming a stalled CIM? A CIM's resistance becomes less important as it speeds up, although I assume that you are doing the math for starting from a standstill.
A possible solution to this could be just basic speed ramping.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
  #14   Spotlight this post!  
Unread 02-12-2016, 12:51
InFlight's Avatar
InFlight InFlight is offline
3574 - The King's of Bling
AKA: Jim
FRC #3574 (High Tekerz)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Seattle Area
Posts: 161
InFlight is an unknown quantity at this point
Re: paper: 4 CIM versus 6 CIM theoretical calculations

Every forum needs a lurking electrical engineer.

This was just at the initial state of powering the motors, with no initial velocity.

My resistance values for the wiring resistances are just reasonable guesses. The actual amperage values could be larger or smaller, but the trends with the brownout margins would be consistent.

The other note is the motors windings only get a fraction of the full stall current; because the battery and wiring system resistance can't deliver that much current.
__________________

Thank you 2016 Alliance Partners - 948, 1510, 2046, 2521, 2980, 2990, 4911, 4683
Reply With Quote
  #15   Spotlight this post!  
Unread 03-12-2016, 12:04
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: 800
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: paper: 4 CIM versus 6 CIM theoretical calculations

Quote:
Originally Posted by asid61 View Post
That's some nice math you got there. I'm not sure if your model is perfect however. Are you assuming a stalled CIM? A CIM's resistance becomes less important as it speeds up, although I assume that you are doing the math for starting from a standstill.
A possible solution to this could be just basic speed ramping.
Also, what happens if you go from full forwards to full reverse? Theoretically, you get 2x stall current. Practically speaking, you'll start saturating magnetic fields at some point, so it gets hard to model. Stall is a good starting point.
Reply With Quote
Reply


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 05:05.

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