This topic has 3 replies, 3 voices, and was last updated 7 years, 7 months ago by Lula Nord.
- AuthorPosts
- February 10, 2017 at 2:06 pm #4053ScottParticipant
Can you connect the sabertooth motor controller to Raspberry PI GPIO’s? Or do I even need sabertooth with PI?
Thanks!February 10, 2017 at 2:55 pm #4054SuperDroidKeymasterHi 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.
February 10, 2017 at 3:15 pm #4055ScottParticipantAwesome thanks for the reply!
April 7, 2017 at 2:02 pm #4114Lula NordParticipantHi..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. - AuthorPosts
You must be logged in to reply to this topic.