Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Drive System implemented for the Sabertooth 60A motor driver.

Notifications You must be signed in to change notification settings

UofA-SPEAR/DriveSystem_sabertooth-serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sabertooth Drive Code

This is a repo for the arduino code for using Sabertooth Motor Drivers.

This will use packetized serial commands to control each motor. I'll use the Uno and it wil get commands over serial from the Jetson. I'll also be using the SoftwareSerial library for serial output to the drivers.

Status

If it's pushed to the repo it builds. (If it doesn't @davidlenfesty will give you a stern talking to).

The sabertooth library is finished, but completely untested (we don't have the drivers in yet). As far as I'm aware it should work, people are welcome to review the datasheet and all the serial stuff.

Control Interface

For now the drive system is controlled via serial over USB. The command is a 2-byte "packet" with information on the side and the power level. The first byte is a value that specifies which side you are controlling, it's a letter encoded in ASCII, L or R for left and right, respectively. The second is a signed integer specifying the magnitude.

The value is a signed integer from -100 to 100, specifying reverse and forward power, in percent.

Some examples:

  • "L35" and "R60" would make the rover turn to the left.
  • "L-100" and "R-100" would make the rover go full power, backwards. (Please don't do this ever)

If it does not recieve a signal in 1s, it will time out and set the motors to 0.

About

Drive System implemented for the Sabertooth 60A motor driver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •