
maleche
I have a 2x32 Dimension Engineering motor controller (actually have six 2x60's, two 2x25's, two 2x10's). I have used them to control wheelchair motors for robotic projects. I love the EZ-B application when using the servo app (mobile) joystick which is VERY smooth. However, when controlling the 2x32 using RC mode, it responds great, but when the Joystick is "autoreset" (center), the motor still runs, but very slow. Looks like the lowest position was sent to the controller, but not 90 degree (stop motor). I had to add a "STOP" button and script SERVO(D0,90),SERVO(D1,90) to stop the motor. I like the servo control but am thinking I should use the Serial protocol to control the 2x32. Anyone had success with either protocol and the servo joystick? thanks! Doyle
Thanks Richard R. this gave me a way forward. sendserial(D1,19200,0) sleep(200)
sendserial(D1,9600,127)
sendserial(D1,9600,255)
sleep(5000) #run both channels full for 5 seconds
sendserial(D1,19200,0) #stop both channels repeat ($v,0,127,1) Print($v ) sendserial(D1,19200,$v) sendserial(D1,19200,$v+128) sleep(250) endrepeat sendserial(D1,19200,0) #stop both channels
both motors started at full and when $V got to about 65, the motors stopped. then increased to full again. I thought they would stop around 90. what am I missing? thanks, Doyle
The motors will stop when these serial commands are sent. 90 will still keep both motors spinning...
maleche, read the datasheet for the sabertooth. The Simple Serial mode datasheet explains what the numbers mean.