Pages: [1]   Go Down
Author Topic: how to program with sabertooth motor driver  (Read 1664 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: September 29, 2011, 09:51:05 pm by robobuilder » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49343
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: