|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
I was testing this today (driving the slave Jaguar with Vcomp mode), and had little success. The slave motor kept jumping all around. The ramp didn't help.
I think the issue is inaccuracy in the voltage measurement of the Jaguar. The one situation where it worked well was at full power. Another issue may be bugs in the Vcomp mode. Perhaps the %Vbus mode will work better. Last edited by kamocat : 01-22-2011 at 10:46 PM. |
|
#2
|
|||
|
|||
|
Re: 1 Encoder, 2 Jaguars
The %Vbus mode is the only one that I would try.
|
|
#3
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Why is that?
EDIT: I just tried, but noticed no difference. It's still very jerky on the secondary motors. Now, understand that in my test, I am not actually putting both motors on the same gearbox. If I did that, I wouldn't be able to see what each motor is actually doing. Instead, I have each motor on an identical gearbox. Last edited by kamocat : 01-22-2011 at 11:50 PM. |
|
#4
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Here's an interesting graph:
![]() It shows what my speed-mode Jaguars are reporting as their % voltage output, every 20ms. This corresponds to what I see my secondary motors doing. The important part here is that the speed mode Jaguars are, in actuality, driving the motors at a constant speed (approximately half of full-speed). This leads me to believe there is an issue with how Jaguars report their output when they are in internal closed-loop control. They may be reporting what they are doing instantaneously, but that is not a useful value at 50hz. If this is not remedied, my only option is to wire the quadrature encoder channels to both Jaguars. |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
Re: 1 Encoder, 2 Jaguars
Quote:
-Joe |
|
#7
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
The brake/coast jumper only controls when the motor has an output of 0.
|
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
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. |
|
#11
|
||||
|
||||
|
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. |
|
#12
|
||||
|
||||
|
Re: 1 Encoder, 2 Jaguars
Quote:
Quote:
Quote:
|
|
#13
|
||||
|
||||
|
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. |
|
#14
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|