Go to Post This is an engineering competition. Do some. - JVN [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 18-05-2010, 10:27
kevinb999 kevinb999 is offline
Registered User
FRC #2951
 
Join Date: Jan 2010
Location: Portland, OR
Posts: 8
kevinb999 is an unknown quantity at this point
Mixing Jaguars and Victors

Is there any danger in using one Jag and one Vic to control a pair of CIMs that are connected to the same ToughBox? Using C++ four-motor Tank Drive from WPILIB.
  #2   Spotlight this post!  
Unread 18-05-2010, 10:32
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Mixing Jaguars and Victors

Bad idea. The jaguars and Victors have different output curves, and the Victors are much more non-linear, so the motors will not be running at the same speeds at low speeds. Software makes no difference.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 18-05-2010, 10:41
kevinb999 kevinb999 is offline
Registered User
FRC #2951
 
Join Date: Jan 2010
Location: Portland, OR
Posts: 8
kevinb999 is an unknown quantity at this point
Re: Mixing Jaguars and Victors

That was my concern, I will find a work-around. Thanks!
  #4   Spotlight this post!  
Unread 18-05-2010, 13:04
Rob Stehlik's Avatar
Rob Stehlik Rob Stehlik is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Engineer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Toronto
Posts: 101
Rob Stehlik is a glorious beacon of lightRob Stehlik is a glorious beacon of lightRob Stehlik is a glorious beacon of lightRob Stehlik is a glorious beacon of lightRob Stehlik is a glorious beacon of light
Re: Mixing Jaguars and Victors

Actually, I don't think this would be as bad as you think. The motors are mechanically coupled in the toughbox, so they will run at the same speed regardless. The only issue would be unequal sharing of the load, but I suspect that due to differences in motors the load is never perfectly balanced, even with identical speed controllers. They key obviously is to have the Victor and Jaguar run the motors in the same direction
On that note, I would say that the way things are done in FIRST is far from ideal. In industry, you would typically see a single motor sized large enough to handle the load. Or you might come across multiple motors connected in parallel to the same driver. Or motors electronically synchronized with encoders. But having separate drivers control two mechanically coupled motors is really asking for trouble. All it takes is a wrong connection or incorrect code to run the motors in opposite directions, which would stall both of them. And when motors stall, bad things happen.
  #5   Spotlight this post!  
Unread 18-05-2010, 14:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,050
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: Mixing Jaguars and Victors

Quote:
Originally Posted by Rob Stehlik View Post
the way things are done in FIRST is far from ideal. In industry, you would typically see a single motor sized large enough to handle the load.
If you use 2 Jags with CAN, you can balance the load by balancing the current. You could close the loop on speed for motor#1 and close the loop on current for motor#2 (to make motor#2 match motor#1 current). With some filters and careful tuning I'm guessing this could be made to work well.



~
  #6   Spotlight this post!  
Unread 18-05-2010, 14:42
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: Mixing Jaguars and Victors

Quote:
Originally Posted by Ether View Post
If you use 2 Jags with CAN, you can balance the load by balancing the current. You could close the loop on speed for motor#1 and close the loop on current for motor#2 (to make motor#2 match motor#1 current). With some filters and careful tuning I'm guessing this could be made to work well.

~
Precisely. We really ought to have some examples in WPIlib to do this.



I'd recommend against the Jaguar + Victor on one toughbox scenario. If you command e.g. 50% forward and hit free speed, you will have a motor/generator situation with potentially large currents. I don't believe it will destroy either controller, but it will be extremely inefficient.

Last edited by EricVanWyk : 18-05-2010 at 17:00. Reason: Clarity as to what the second paragraph was about.
  #7   Spotlight this post!  
Unread 18-05-2010, 14:45
Nadav Zingerman Nadav Zingerman is offline
Registered User
FRC #2230
Team Role: Programmer
 
Join Date: Jul 2009
Rookie Year: 2009
Location: Israel
Posts: 90
Nadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to behold
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by Rob Stehlik View Post
On that note, I would say that the way things are done in FIRST is far from ideal. In industry, you would typically see a single motor sized large enough to handle the load. Or you might come across multiple motors connected in parallel to the same driver. Or motors electronically synchronized with encoders. But having separate drivers control two mechanically coupled motors is really asking for trouble. All it takes is a wrong connection or incorrect code to run the motors in opposite directions, which would stall both of them. And when motors stall, bad things happen.
How could that work seeing as they always spin at the same speed, and thus have the same encoder reading.
  #8   Spotlight this post!  
Unread 18-05-2010, 14:47
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,762
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by Nadav Zingerman View Post
How could that work seeing as they always spin at the same speed, and thus have the same encoder reading.
Maybe they aren't connected using something that can't slip (like a gearbox--if you can cause that to slip, you've destroyed it).

He's not talking about FRC applications. What if you had two starter motors for your car, say, and they had slightly different turn speeds?
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #9   Spotlight this post!  
Unread 18-05-2010, 16:17
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by Ether View Post
If you use 2 Jags with CAN, you can balance the load by balancing the current. You could close the loop on speed for motor#1 and close the loop on current for motor#2 (to make motor#2 match motor#1 current). With some filters and careful tuning I'm guessing this could be made to work well.



~
You have to be careful with an arrangement like this. If motor #2 is a little bit less efficient than motor #1 (and no two brushed DC motors are exactly the same), you can get into a positive feedback situation. Motor #2 could draw an equal amount of current to motor #1 but at a lower speed, which drags on motor #1, which forces #1 to draw more current to maintain its speed, which causes motor #2 to draw more current, etc. That said, there are some things you could do to help limit this behavior.

Ideally, you would match the speeds of the motors and let the loads balance themselves according to output torque at that operating point on both motors' curves. However, that is easier said than done (due to difficulties in measuring each motors' free speed at a given voltage, for example).

If permitted, one way to do nifty load balancing is to put both motors in a series circuit - when one motor gets overloaded, its back EMF decreases and more electrical power becomes available to the other motor (an electronic differential).

Last edited by Jared Russell : 18-05-2010 at 16:34.
  #10   Spotlight this post!  
Unread 18-05-2010, 16:19
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by Nadav Zingerman View Post
How could that work seeing as they always spin at the same speed, and thus have the same encoder reading.
Imagine a 4WD robot where each wheel is independently driven without being slaved to any other (for example, a mecanum or crab drive). To drive straight you want to match all 4 motors to each other, but there is a "slipping" clutch between each of them (your tread material!).
  #11   Spotlight this post!  
Unread 18-05-2010, 17:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,050
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: Mixing Jaguars and Victors

Quote:
Originally Posted by Jared341 View Post
If motor #2 is a little bit less efficient than motor #1 (and no two brushed DC motors are exactly the same), you can get into a positive feedback situation. Motor #2 could draw an equal amount of current to motor #1 but at a lower speed, which drags on motor #1, which forces #1 to draw more current to maintain its speed, which causes motor #2 to draw more current, etc.
It doesn't work that way, Jared. The motors are connected to the same toughbox so they are always at the same speed. Motor2's control loop adjusts Motor2's PWM so that Motor2 has the same current as Motor1. If Motor2 is less efficient than Motor1, that simply means that Motor2 is providing slightly less torque than Motor1 (at the same speed and current). It does not mean that Motor2 "drags on" Motor1; it is in fact assisting Motor1. With proper tuning and filtering the loops can be made stable. If you have access to Simulink/Matlab or some other dynamic modeling software, try it and see for yourself.


Quote:
Originally Posted by Jared341 View Post
If permitted, one way to do nifty load balancing is to put both motors in a series circuit - when one motor gets overloaded, its back EMF decreases and more electrical power becomes available to the other motor (an electronic differential).
The two motors in question are connected to the same toughbox, so they are always at the same speed. If connected in series, they will both have the same current. So the scenario "one motor gets overloaded and its back EMF decreases and more electrical power becomes available to the other motor" does not occur.

Connecting two 12-volt motors in series, and then powering them with a 12 volt supply reduces the efficiency of the motors.


~
  #12   Spotlight this post!  
Unread 18-05-2010, 17:15
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,762
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Mixing Jaguars and Victors

They are always at the same speed, yes. Jared was talking about efficiency, not necessarily speed.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #13   Spotlight this post!  
Unread 18-05-2010, 19:10
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by Ether View Post
...
For some reason I completely ignored the fact that the motors were mechanically linked at their outputs...
  #14   Spotlight this post!  
Unread 18-05-2010, 19:15
NickE's Avatar
NickE NickE is offline
_
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2008
Location: San Jose, CA
Posts: 620
NickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond reputeNickE has a reputation beyond repute
Re: Mixing Jaguars and Victors

Quote:
Originally Posted by apalrd View Post
Software makes no difference.
In theory, you might be able to write a function to map the victor's inputs to that of the jaguar (so that 50% throttle on one will be the same as 50% on the other).

Last edited by NickE : 18-05-2010 at 19:34.
  #15   Spotlight this post!  
Unread 19-05-2010, 07:52
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Mixing Jaguars and Victors

One little item no one has mentioned here is the switching frequency of the individual controllers. The Victor is 150 Hz while the Jaguar is 15 kHz. At 50% throttle the Jaguar would switch an additional 50 times during the period that the Victor is turned off. Although the motors are linked and there would certainly be some flywheel action provided by the transmission and coupled mechanism, I would suspect this would be bad for the Jaguar. The net result on the mechanical output is dependent on the stored mechanical energy in the rest of the system. As to differences in linearity, the two motors are coupled and the result would be a combined speed slower than expected. As the two motors both will supply power, it is a matter of which is providing more power. In this case I believe the Victor supplied motor will be contributing the majority of the power below about 75% throttle. At full throttle there is little difference.
In the case of the series wired motors, the current is theoretically the same in each motor. However, the production variations in inexpensive motors will affect the output power vs input current. The result is that the power output of the transmission is never fully shared by each of the motors. One is always providing more power than the other.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jaguars and Motors EagleS!! Programming 7 26-01-2010 12:56
Voltage Output of Victors vs. Jaguars Eugene Fang Electrical 12 04-01-2010 13:25
Victors and Jaguars not Receiving Signal? excel2474 Electrical 1 12-02-2009 16:41
Mixing C and C++ slowreactor Programming 3 24-01-2008 16:37
pic: SoCal 2006: Beach 'Bot and 968 Mixing It Up Greg Ross Regional Competitions 9 28-03-2006 23:19


All times are GMT -5. The time now is 23:58.

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