|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
jaguar scaling factors
My team (3247) just got our bot driving today and we noticed a big problem. With four motors we are using 2 black jags and 2 grey jags. This seemed fine except for a problem where the scaling is not quite right! When driving foward, one side (black side I think) is way faster. As the programer for the team, I was told to fix it. I was thinking that maybe I should attempt to scale the joysticks. The problem with this is that my team also wants to use arcade drive. We used last years DS for testing but they think it will be easier to control with arcade.
My questions are:
Thanks in advance |
|
#2
|
|||
|
|||
|
Re: jaguar scaling factors
Same issue for our team. Would love to hear the answer. The black jaguars output about 12.5V in full on, the grey/tan jaguars are about 10.5V. Quite a difference to balance.
|
|
#3
|
||||
|
||||
|
Re: jaguar scaling factors
idk if this would help any but you could always try installing encoders onto each side of the drive train then using those output values and then scaling back each motors output.
|
|
#4
|
|||
|
|||
|
Re: jaguar scaling factors
Quote:
Did you use a volt meter, scope, other? Were motors connected to the outputs? Did you take these measurements at the same time (measure one, then the other, same setup)? -David |
|
#5
|
|||
|
|||
|
Re: jaguar scaling factors
I assumed the duty cycle at full on was 100% so I simply used a voltmeter
Set to DC. No motors. No load. Measured two Black and two Grey Full forward and full reverse Same result consistently. |
|
#6
|
|||||
|
|||||
|
Re: jaguar scaling factors
Quote:
Your measurement was just a by-product of the Gray Jaguar circuit design. It doesn't measure properly without a load. The Black Jaguar has a different design that doesn't affect no-load measurements. I tripped over that myself earlier, although you have to read several surrounding posts to understand what was going on in that thread. I liked Eric's way of putting it... Last edited by Mark McLeod : 25-01-2011 at 10:35. |
|
#7
|
|||
|
|||
|
Re: jaguar scaling factors
What about creating a slider "trim" control.
Your "trim" control would run joystick position through a multiplier on one set of Jags. Experiment with trim position until you're satisfied that you're driving in a straight line. This method will only be suitable if the differences between the Jags are consistent at various speeds. |
|
#8
|
|||
|
|||
|
Re: jaguar scaling factors
Thanks Mark.
We do clearly have a small speed difference between black and grey as well. Much harder to measure though. I'll measure under load and see what I get. |
|
#9
|
||||
|
||||
|
Re: jaguar scaling factors
I don't think the offset is linear. I just tried my code today with the speed being divided by two and the robot drives much straighter. I haven't had a chance to test PID yet. Electronics guys are still trying to get encoders connected.
|
|
#10
|
|||||
|
|||||
|
Re: jaguar scaling factors
I should have mentioned this much earlier. How much wire do you have feeding the two sides of the robot? A frequent problem is inches feeding one side of the robot with feet feeding the other side. If you are using #12 to feed the drive system, you can accumulate significant loss in the wiring. It amounts to about 0.2 volts per foot at near stall current for CIM motors. Remember you have to count both the black and red wires to arrive at the correct calculation. It is for this reason that I recommend a central location for the PD to balance the wiring.
|
|
#11
|
||||
|
||||
|
Re: jaguar scaling factors
all wiring runs follow the same path, we had the problem you are describing last year
|
|
#12
|
|||||
|
|||||
|
Re: jaguar scaling factors
By far the simpler solution would be to pair a Black Jaguar with a Gray Jaguar on each side, rather than having all Blacks on one side and all Gray's on the other.
You can certainly scale back the faster side permanently by multiplying the joystick input to just the Black side by a factor or by using encoder feedback and PID. Last edited by Mark McLeod : 22-01-2011 at 19:51. |
|
#13
|
||||
|
||||
|
Re: jaguar scaling factors
because these are the CIMple gearboxes from andymark, I don't think it would be advisable to mix controllers. I see ground gears for anyone who tries that...
The voltage data is very helpful, does anyone know if the speed is ramped in a linear fashion? If it is linear, then it would be some very simple math to make them even. |
|
#14
|
||||
|
||||
|
Re: jaguar scaling factors
I would suggest using PID with encoders to get a closed-loop control.
There's nothing quite like feedback for repeatability and low-speed handling. |
|
#15
|
||||
|
||||
|
Re: jaguar scaling factors
Can you suggest any good resources for creating PID algorithms? I am used to text based languages on OS/2 so any resources that are labview based would be nice.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|