
MovieMaker
USA
Asked
— Edited

Is it possible to run the H-Bridge PWM Movement without adding any more parts. Do I just use this panel on the sabertooth instead of the sabertooth driver. I am confused. I do have the Sabertooth and the EZB3 running on wheelchair motors.
The sabertooth works fine but always on high speed.
SendSerial(D0, 38400, 127) # motor 2 full forward
SendSerial(D0, 38400, 128) # motor 1 full reverse
SendSerial(D0, 38400, 1) # motor 2 full reverse
Motor 1 any number between 193 and 255 is progressively forward and any number between 128 and 191 is reverse...192 is stop
Motor 2 any number between 65 and 127 is progressively forward and any number between 1 and 63 is reverse...64 is stop
Also sendserial(D0,38400,0) Will stop both motors...
So, Now, I can use the Send Serial Commands? Is this correct? I did not have a lot of ports to adjust or anything.
Is this right? or do I simply use the send serial commands with ONLY the sabertooth panel?
Thanks!
If that is all there is to it, it IS Simple. Am I doing this correctly?
Thanks,
What are you using this on? Are you running two motors in tandem like a the axle of a car where you will be turning, starting and stopping and moving at different speeds?
How do you have your dip switches set and in what mode are you running it in? I think I remember you saying you bought a 2X25 Sabertooth. I just peeked at the manual and see it has ramping abilities that are native in certain modes. You may have to get into the firmware with the DEScribe Software to turn that on. I know that when I was messing around with my Kangaroo X2 I saw that the Ramping setting was by fault set to Off.
Today I'll be replacing one of my H-Bridges with a Sabertooth 2X12 and haven't decided if I'll be using the Kangaroo with it. I'm going to install it first without the Kangaroo to see how it acts. This will be operating the radar section on my B9 that has a relatively short turning radius and small motor. If I find anything along the way I think will help I'll let you know. I also may be checking in with a question or two for Richard if I get stuck.
thanks, DAVE.
Change Left forward value from 127 (full power) to 96 (50% power)
Change Right forward value from 255 (full power) to 223 (50% power)
It is telling me I have no port definitions. Should I just ignore this?
I think you need to read through the tutorial pages again, PWM is not speed control. Read what PWM is on the tutorial page. It would also pay to search the forums for Sabertooth as there is already a lot of useful information posted.
Add the Sabertooth Control Panel, set up the port in the configuration and adjust the values to set the speed you need.
The Sabertooth is different to other H-Bridges in that it is Simple Serial not logic controlled. Speed control is not native to the movement panel. EZ-Script movement commands (Forward, Reverse, Left, Right) do not work for speed control either. As Richard pointed out you would need to use SendSerial commands to adjust the speed.
For more complex actions such as speed ramping you will require scripts to be written. I have previously posted some simple example scripts however their usage may be rather complex (depending on how they are used).
If it's just slowing the motors down to a speed that's more suited to your robot then follow Richard's advice and adjust the values. If it's ramping and better control over the motors then you may wish to look in to the Kangaroo as a very valuable accessory to the Sabertooth.
SendSerial(D0, 9600, "1,p2450 s100", 0x0d)
OK, then I just need D0 sent to S1 on Sabertooth with send serial commands.
That is simple enough.
Thanks!