This is a follow from my previous question about the Sabertooth 2X12 motor controller.
I aim to control DaNi Robot’s motor using the sabretooth 2X12 controller. After reading the datasheet, a few methods were attempted : PWM and UART. This did not work; therefore, a new sabretooth controller was used just in case it the previous one was faulty.
Attempt#: 1- PWM was connected to a RC filter going into sabretooth(as shown in the datasheet). This did not work. 2- PWM was inserted straight into the sabretooth. This results in uncontrolled movement of the DC motors. 3- 1 byte-serial protocol method was attempted. Numbers specified from the datasheet were written into UART.Tx pin of the microcontroller. This again resulted in uncontrolled behaviour of the DC motor. (This method does not require any delays on the pin.) According to the datasheet the PWM frequency of over 1kHz was required. PWM of frequencies of 2kHz all the way up to the 10khz attempted and checked on the oscilloscope. The DC power supply and PWM were both checked on the oscilloscope.
Firstly, I tried the sabretooth controller which was already fitted inside the Dani Robot. I speculated it might have been broken/faulty so another one was tried. That did not work.
The datasheet tells us to filter the PWM with a RC filter and then input it to the sabretooth. But that did not work either. The motors seem to be operating but is uncontrolled. For example, sometimes it starts running very fast and then stops while others times it does not even start.
RC filter values I used were: 10kohms resistor + 1uF capacitor.
Can you please give advice as to how the DC motors can be controlled?
Datasheet: https://www.dimensionengineering.com/datasheets/Sabertooth2x12.pdf
Connections images: https://i.stack.imgur.com/wAG9v.jpg