Giter Club home page Giter Club logo

drivesystem_sabertooth-serial's Introduction

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.

drivesystem_sabertooth-serial's People

Contributors

davidlenfesty avatar jacobrec avatar mayshukla avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.