This topic has 3 replies, 3 voices, and was last updated 7 years, 7 months ago by Lula Nord.

  • Author
    Posts
  • #4053
     Scott
    Participant

    Can you connect the sabertooth motor controller to Raspberry PI GPIO’s? Or do I even need sabertooth with PI?
    Thanks!

    #4054
     SuperDroid
    Keymaster

    Hi Scott,

    Yes it is possible to connect a Sabertooth to a Raspberry Pi. Just set the Sabertooth to serial mode using its dip switches and send serial packets from the Pi. You will need to write this code yourself.

    As for whether you need a Sabertooth with the Pi, the answer is it depends on what you’re trying to do. If you need to control motors then you need some sort of motor controller (such as the Sabertooth) since you won’t be able to output enough current directly from the Pi’s GPIO to spin the motors.

    #4055
     Scott
    Participant

    Awesome thanks for the reply!

    #4114
     Lula Nord
    Participant

    Hi..as per my knowledge the best way to do this would be an add-on board; there are loads for the Pi and the Sabertooth provides lots of options. You could use simple PWM smoothed by capacitors to give an analogue voltage to each motor (S1 and S2). In this mode, 2.5V is stop, 0V is full speed backward and 5V is full speed forward. It would take a bit of trial-and-error to get the voltages right, and if your motors are big enough to need a 25A driver then a trial-and-error approach might be a little bit dangerous.
    But there is an easier option. I use a servo-controller board that outputs 5V RC, because I want to switch between Pi control and manual radio control. This way the servo-controller outputs exactly the same signals you would get from the receiver in a radio-controller toy car and the Sabertooth interprets them in the same way.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Login Register

©2024 SDRobots.com | All rights reserved.

Log in with your credentials

or    

Forgot your details?

Create Account