Hello!
I'm a teacher for physics and amongst others interested in robotics. Therefore I tried to build a segway based on the arduino and two sensors (gyro + accelerometer).
Two weeks ago I bought a sabertooth 2x60 motor controller von lipoly in germany. I use it for my DIY-segway. Here's the link to my building-thread: Segway - ein hoffentlich günstiger Versuch mit Arduino - Seite 4 - mosfetkiller-Forum
The sabertooth replaced my two fullbridges, which were controlled with PWM of the arduino. But the controller wasn't suitable to accelerate the motors enough, particularly when the segway was inclined quickly:
To get enough power and to avoid the annoying PWM-noise I bought the 2x60 controller.
The sabertooth-controller has several modes: analog, simple serial, advanced serial and RC. I'm using the simple serial mode with 9600 baud. I took the driver for the sabertooth-motor-controller directly from the dimensionengineering-homepage:
http://www.dimensionengineering.com/software/SabertoothSimplifiedArduinoLibrary/html/
Unfortunately I've now different problems:
If I test the sabertooth without my segway-program and the gyrometer/accelerometer, they perfectly do what they should. For example the start at 0, go full forward (+127), then down to 0 and to the opposite direction (-127).
If I test my gyro/acc without the sabertooth-controller, I get perfect values for the inclination and the motor-controller (between -127 and + 127). So both main parts do their work separately.
But when I start the arduino and the analog sensors (ADXL335 accelerometer and an analog gyro) and then I switch on the 24V for the sabertooth, the inclination-values go crazy and therefore the two motors too. The values vary very fast within -127 and +127 without any law, just by chance and arbitrarily
Do you have any idea why the sabertooth interferes with the arduino-sensors? They have common ground over the arduino and I've changed the power-supply for the arduino three times. First with a separate 12V-batterieblock, second with one of the two 12V/12Ah lead battery and third with the 5V-Output of the sabertooth. The result was the same, the motors are going crazy.
Thank's for your efforts and support, a little bit frustrated Christoph from austria