Go Down

Topic: Sabertooth Packetized Serial Library (Read 2032 times) previous topic - next topic


Hey all,
    I've been playing around with a Sabertooth 2x5 lately, and figured it'd be useful to make a compact Arduino library to interface with it (and others in the series) using the packetized serial mode, since there don't appear to be any available on the internet, and using servo PPM is not desirable in terms of CPU load. Feedback would be greatly appreciated =).

Install as you would any other library, and construct it with
Code: [Select]

#include "Sabertooth.h"
Sabertooth m(ADDRESS, PIN);

You can make the motors move with
Code: [Select]

m.setSpeed(leftspeed, rightspeed);


dled library copied and pasted example code over says sabertooth does not name a type... what next?


Replace the WProgram.h in the file Sabertooth.h with Arduino.h, and it should work.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131