Go Down

Topic: how to program with sabertooth motor driver (Read 1 time) previous topic - next topic

robobuilder

Sep 30, 2011, 04:21 am Last Edit: Sep 30, 2011, 04:51 am by robobuilder Reason: 1
Hello

I m new at this

i need to control two sabertooth 12A motor drivers through arduino duemilanove

I need help to programming
anyone know where i can get the codes for

1-  Ardiuno code to turn on/off one motor through a Sabertooth module.
2-  Ardiuno code to change the motor speed.
3- Ardiuno code to control all four motors.
4-Ardiuno code to send and receive data through its UART to/from your PC  (xbee )
5- Design a data command structure to send to the Adriuno from the PC the control the Bot.


Thanks for any help

PaulS

Quote
i need to control two sabertooth 12A motor drivers

First thing you need to do is to post a link to the device that you have, so that we can read the data sheet for you.

robobuilder

http://www.dimensionengineering.com/Sabertooth2X12.htm

PaulS

There is a link on that page to a Word document that describes how to connect the device to the motors, the batteries, and the micro-controller (the Arduino). There are instructions regarding how to select which of 4 control modes to use.

To start with, select analog input mode, and select two PWM pins to connect to.

Programming the Arduino to output the proper PWM value is so simple, I'm going to leave that to you to figure out.

Quote
5- Design a data command structure to send to the Adriuno from the PC the control the Bot.

What data do you need to send? There are only two inputs needed by that shield - a byte to control the speed of each motor. The "command structure" simply defines whether the first value is for motor 1 or motor 2. The other value must, then, be for the other motor.

Go Up