|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Here's a way to get around the issue of putting two motors on the same transmission:
Use only Tan Jaguars. The reason is, Tan Jaguars switch between 12v and open (coast) in their switching. Black Jaguars switch between 12v and 0v (brake). Thus, if one motor is driving the other faster, they won't conflict; the slower motor will simply coast along. This means an encoder can be split off and wired to two Tan Jaguars for closed-loop control without issue. |
|
#2
|
|||
|
|||
|
Re: 1 Encoder, 2 Jaguars
Quote:
-Joe |
|
#3
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
The brake/coast jumper only controls when the motor has an output of 0.
|
|
#4
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
In the Tan Jags, only the high side switches, and there is no current path for the back emf to provide reverse current (and resisting motor torque aka "braking") in the event that the inductance current decays before the end of the "off" portion of the duty cycle. They would then be "coasting". Quote:
See the attachments to this thread for analytical and numerical models of these effects: http://www.chiefdelphi.com/forums/sh...5&postcount=70 Quote:
Quote:
Last edited by Ether : 01-23-2011 at 05:46 PM. |
|
#5
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
I'm trying to avoid two Jaguars fighting with a small load, which can happen due to variances in motors. |
|
#6
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
Speaking from a control theory point of view, I can't convince myself that the integrators will not diverge over time. |
|
#7
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
EDIT: To be sure, I'd like to match the motors by power. However, I tested it, and it's just too unsteady. If I go this way, it will be hard on the secondary motor when the robot is moving slowly, because it will be jumping between 0 and half power at about 10hz. See my graph above. Last edited by kamocat : 01-23-2011 at 06:14 PM. |
|
#8
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
That's true, I could. In order to get something approximately the right value, I think would have to filter out the zeros and do an average of the past five values.
At that point I have an extremely low update rate, which is not what I want for driving. (Also, this wouldn't respond when we WANTED the robot to stop) If I could do filtering on the Jaguar, that'd be great. |
|
#10
|
|||
|
|||
|
Re: 1 Encoder, 2 Jaguars
Has anyone tried matching the currents?
Per Kevin's analysis, the current reported is reasonably well filtered. Current balancing is torque balancing, assuming that both motor's motor constants are equal. But, in the case that the constants aren't equal, you will at least be sure that they are working together and not fighting. PS: I'm at home with a head cold, I apologize if this doesn't make any sense. |
|
#11
|
|||
|
|||
|
Re: 1 Encoder, 2 Jaguars
Has anybody actually tried the Y cable solution for the encoder?
|
|
#12
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
- Bryce |
|
#13
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
EDIT: maybe this is our problem? http://www.chiefdelphi.com/forums/sh...9&postcount=16 We did however have good luck setting one jag up w/ PID position control (MASTER - wired to the encoder). The other JAG (SLAVE) was commanded using the %V bus mode. Inputs to the slave were the voltage output from the master controller. Sync groups were used to coordinate outputs. This seemed to work well in our tests. Our voltage output curves looked quite clean compared to some of the graphs which I had seen reported in other posts. We're going to continue this route as long as we don't start seeing any problems. Tomorrow we'll move onto speed control. Last edited by otherguy : 02-12-2011 at 09:07 PM. Reason: added link |
|
#14
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
otherguy,
I'm curious to see what your sync group code implementation looks like. Our team has just been directly setX'ing our slaves as quickly as possible in the Continuous loops. I'm aware of the update sync group functionality in the API, but have not had a chance to see it, or try it. If you are willing to share, I've love to see how you are updating your slave Jags using this feature. |
|
#15
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
I'm familiar with the sync group feature, but I fail to see how it would significantly affect the control in a master-slave situation. As far as I can tell, it would simply force the slave Jagar to be one update cycle behind the master Jaguar.
What happens when you disable the sync update feature? (You can do this by setting the sync group to 0) I'm glad you're getting good results in position mode. I have not tested in this mode; perhaps there is less oscilation. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|