
MM1
Israel
Asked
— Edited

Hello.
I am using a Sabertooth 2x12 motor controller .
I like to controll the movement of the robot with speed controll like with an anlog joystick,
more you push the joystick the more speed to the wheels.
Can it be done ?
By the way I select the Sabertooth ,the numbers for turning in the Movement Panel is not correct.
Thanks
Meir.
This is a request that comes up often, I'll have a look to see if I can find where I left the best response. I am pretty sure I gave a detailed explanation of how to achieve it.
How do you mean the numbers for turning in the Movement Panel are not correct? What happens when you try turning with the default values?
I will try (I need to controll the motors from a panel with sliders).
If you look at the slider in the project I linked to it acts on change and changes a variable, this should point you in the right direction however if you need further help just ask and I'll throw something together for you.
From the datasheet;
Motor 1
Reverse should be set as 1.
Stop should be set as 64.
Forward should be set as 127.
Motor 2
Reverse should be set as 128.
Stop should be set as 192.
Forward should be set as 255.
Analogue joystick control has been added in the latest update. I am yet to use it and yet to use the sabertooth but that would be the first thing to try. Just correct any incorrect numbers as the above and test.
If it doesn't work, I'll explain the scripts that may be needed.
If you start a new Sabertooth control you will see that the default values for the turn left is the same as forward
and the turn right values is the same as the reverse.
Meir.
Forward should be
Left Motor: 127
Right Motor: 255
Left should be
Left Motor: 0
Right Motor: 255
Right should be
Left Motor: 127
Right Motor: 128
Reverse should be
Left Motor: 0
Right Motor: 128
At least I assume that is the case, I have no sabertooth to test it with and they are too expensive to justify purchasing just to test with. If you could confirm the above is correct it would be a great help, then I'm sure when DJ sees this he will adjust the default values for the next update of ARC.
the "0" is for shuting down the motors.
The values are :
127
255
1
255
127
128
1
128
Meir.
Thanks for the correction/confirmation, it'll help if someone else has issues with the sabertooth