
rgordon
Here is a gadget that may help some that are using motors instead of servos for motion control. Looks interesting.
Here is a copy of the Product Description:
"Kangaroo x2 adds self-tuning feedback motion control to your Sabertooth or SyRen motor driver. It can be used with quadrature encoders or potentiometers to provide position or speed control. It supports one or two feedback channels.
Feedback control has always been highly desirable for mechanical systems. Being able to tell your device to move an exact amount, at a specific speed or to a certain position, and have it reliably and repeatably do so, regardless of the load or disturbances, has obvious benefits. However, PID and other controllers have to be carefully tuned to get acceptable results. Feedback tuning is difficult, time consuming and requires advanced math and physics knowledge.
Kangaroo x2 is the first self-tuning controller in its class. Instead of requiring you to measure, model and calculate the system, the controller itself will figure everything out after a few switch settings and button presses. In the time it takes to get a tasty snack, you can come back to a perfectly tuned system ready to accept your commands.
Instead of requiring you to use a microcontroller to do closed loop control, Kangaroo x2 works from analog and radio control sources as well as microcontrollers and computers. You can, for example, use it to build that two horsepower R/C servo you've always needed as the final piece of your doomsday device. Just remember who helped when the vaporizing starts.
During operation, you can command speeds, positions or combined commands like "move to 37 inches at a speed of 4 inches per second." You can also have the Kangaroo x2 report back speeds and positions while it is running. A mixed mode allows for unstoppable mobile robots with differential drive or tank style steering.
If you need to get your product under control, Kangaroo x2 is the best way to do it. "
What are you controlling it with? The commands you have given (printf and putc) are not EZ-Script commands.
The commands should be more like SendSerial(D0, 9600, "1,p1225 s800", 0x0d, 0x0a)
I send my commands by a PIC 18F258 by the serial port, to the Kangaroo
Hello Johnny,
In mixed mode, both drive and turn must have some command for motion to happen. Do also
T,start T,s0
This will set turn to hold zero speed (alternatively T,pi0 to hold at the current position). The reason is safety: if it responded with only one, if power gets cut between the time a drive start and command were sent and the time a turn start and command were sent, arbitrary behavior could occur. So, instead, it requires that both have a setting.
Once you have sent this, of course you can send only drive commands if you want.
Also, a side possibility, make sure you have tuned in Mixed Mode. Of the DIP switch settings, Independent/Mixed Mode and Digital/Analog Feedback DIP switches require retuning. Position/Velocity Control and Digital/Analog Control do not.
James