|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Motor Controller Amt per Motor?
Hi,
A lot of our motors are used in sets of two in a gearbox; Do we have to have a motor controller for each motor despite them being in the same gearbox, or can we use one controller to control both motors in the same gearbox? |
|
#2
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Each motor needs it's own motor controller, even though if they are on the same gearbox.
|
|
#3
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Quote:
Get a copy of this document: http://frc-manual.usfirst.org/viewItem/57 It is searchable. You can find authoritative answers quickly. |
|
#4
|
|||||
|
|||||
|
Re: Motor Controller Amt per Motor?
In that case,
We were planning to use the banebots Cim-u-lator gearbox with two RS 775 motors, to simulate a CIM motor. Do we need two per gearbox, or should one adequately simulate a CIM motor? Because that would reduce the number of motor controllers we need to purchase substantially. Thanks |
|
#5
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Quote:
It depends on what you're going to use it for. The CIM's peak power is 337 watts. The 775-18's is only 271. For the same power output, the 775-18 will burn up much faster than the CIM. |
|
#6
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
You can split the PWM output from the sidecar/input to the speed controller into 2 controllers. That way it's almost impossible to destroy the motors/gearbox by spinning one motor one way and one motor the other way.
|
|
#7
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
What if you are not using PWM but the Jaguar CAN bus? I assume we will just program the same value to both motors and it will work? We haven't done two motors in the same gear-box before so we don't know what to expect in terms of programming. The concern was that code can only program one motor at a time (issuing CAN command to the Jaguar). So one motor will start a little earlier than the other one. So there is a short period that one motor would carry the whole load + turning the second motor at the same time. Probably not too much to worry but just like to hear your opinions on this.
|
|
#8
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Quote:
|
|
#9
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Thanks for link, Ether. We are not worrying about the encoder though because we will be mounting just one encoder on the shooter wheel axle. Coincidentally, we did plan on using the cRIO to do PID because we couldn't get the Jaguar built-in speed control to be stable enough. We ended up integrating the WPILib PID controller and get a pretty stable speed controller. We are running the Jaguars in PercentVbus mode. So once the cRIO PID control reads the speed from the Jaguar, it will compute the output power in Percentage units and program the two Jaguars with this value. My worry was the time difference between programming the two Jaguars may put a slight stress on the earlier Jaguar.
|
|
#10
|
||||||
|
||||||
|
Re: Motor Controller Amt per Motor?
Quote:
I haven't looked at how it's implemented in C++ or Java, but it's pretty easy in LabVIEW. |
|
#11
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Quote:
|
|
#12
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
Never mind, the WPILib APIs seem very self explanatory. When calling Set() for each Jaguar, the second optional parameter defines a "SyncGroup" (I suppose any non-zero number works). Then call UpdateSyncGroup with the non-zero SyncGroup number that I defined.
|
|
#13
|
||||
|
||||
|
Re: Motor Controller Amt per Motor?
For CAN, the way I have always done it in labview is to set the inputs of the two motor set .vi blocks to the same output. I have never had issues doing it that way.
I am sure it could be done in java or c++... the easiest way, at least for me, would be to have the motor speed be set as a variable and let the two jaguars reference that same variable. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|