Motors driving and Raspberry pi

Dear all

I have connected Raspberry pi 2 with Sabertooth 2x12 as in the attached photo. I just have two questions if somebody could help please?

1- I have noticed some unreasonable behaviour of motors why I run the Python code trying to run the motors forward, reverse, and stop. For example, in only forward case, the motors run, stop run and the speed isn’t constant.

2- In the Sabertooth, there are FWD and Turn cables. When I connect the Turn cables to GPIO of raspberry pi , it don’t effect any thing the motors?

Many thanks

Hi,

What are the current positions of the switches on the Sabertooth ?
This topic might help you : connect-sabertooth-2x12-r-c-and-raspberry-pi-via-gpio-t8257

Hi Brahim

Thank you for your reply. The current positions of the DIP switches are all up (ON) except DIP switch 3 is down for battery protection. I’ve already seen the topic that you haven’t mentioned but Unfortunately it didn’t solve my problem.

I bought all equipment from ROBOTSHOP about 2 months ago and since that I struggle to drive the robot (Forward, Reverse, Turn Left/Right, and Stop)

Please any advice to make it work without problems as I need to make it work as soon as possible.

Many thanks
Auday

Hi,

The Sabertooth needs 5V TTL level and the Raspberry PI 2 has 3.3V outputs. This can probably cause the issue you’re encountering.
You might need this 16-Channel I2C Servo Controller to generate PWM for the Sabertooth using I2C communication.
Please take a look at this topic : raspberrypi.org/forums/view … 37&t=12067

Hi Brahim

Many thanks, I will consider your suggestion and update you.

At the moment, I’m using the Analog mode and the DIP 6 is down. As it mentioned in Manual, the input signal range s from 1.875V to 3.125V and used RC filter circuit but also the robot isn’t work properly.

Cheers,
Auday