Sabertooth 2x 60A with open Source Firmware X-PID

AMC, H-Bridge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Sabertooth 2x 60A with open Source Firmware X-PID

Postby sirnoname » Sun 20. Jul 2014, 18:01

This is a tutorial how to connect and use the Sabertooth 2X60 with the open source X-PID Firmware.

The tutorial connects the sabertooth 2x60 to the open source motor control firmware of this post:
Open Source Arduino Firmware X-PID with autodetection X-Sim plugin and graphical PID tuning
You get a full suported X-Sim plugin with autodetection, PID tuning with graphical interface and many other features. The PWM frequency setup is disabled in the sabertooth case because the sabertooth do its own frequency setup.
The bridge is good for beginners because it has many protections. However the 140 Euro are a little bit expensive. The good thing is, you can control 2 motors and can use the X-PID Arduino controller which is around 10-20 Euro. We have another controller board running with this bridge if you do not like the X-PID solution you can use the kangaroo controller:
Kangaroo x2 & Sabertooth Setup Guide

Specifactions of the H-Bridge:
- 2x 60 Amperes for bigger DC Motors
- 120 Amperes for short power spikes
- many interfaces supported, for X-PID we use simplified serial input with 38400 Baud
- Heatsink and controlled FAN, mounting points for more coolness
- big connectors with screws for cables
- temperature protection

You connect the H-Bridge 0V to GND of the arduino and the 5V to 5V of the arduino. The S1 pin has to be connected to PIN10. The S2 pin is not connected, S1 controlls both motors. You can change this pins as you like in the open source code in GitHub. Please use following link for the repository and updated firmware files:
https://github.com/X-Sim/X-PID-Arduino- ... o-Firmware

There are 6 switches on the sabertooth. You have to set them as following:
SabertoothSwitches.jpg
SabertoothSwitches.jpg (18.33 KiB) Viewed 42599 times


Connect the power and the arduino like shown in the .ino file of the repository




Thanks goes to telfel for borrow me the Bridge.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby TheXRacer » Thu 24. Jul 2014, 14:40

Very nice post Sir !

a havy H-Bride like as Thanos ones (dependent witch ones of Mosfet du you used )! ! ! :D

can be used well for a 6DOF project three of them to controlled big motors !

bets regards

Christian
User avatar
TheXRacer
 
Posts: 56
Images: 9
Joined: Sun 27. Jan 2013, 20:33
Location: Germany
Has thanked: 5 times
Been thanked: 1 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby tronicgr » Fri 25. Jul 2014, 00:41

TheXRacer wrote:Very nice post Sir !

a havy H-Bride like as Thanos ones (dependent witch ones of Mosfet du you used )! ! ! :D

can be used well for a 6DOF project three of them to controlled big motors !

bets regards

Christian


The 25A version was used before successfully for lightweight 6DOF: http://mgeisler.my.primusnetz.de/6DOF/

With 60A you sure can have much more load... :)


Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby TheXRacer » Fri 25. Jul 2014, 04:04

Thanos you're right, is in your view a 2 dof better as a 6DOF for Racing Game and a 6DOF for flight games ?

What do you mean ? ;)

regards
Chris
User avatar
TheXRacer
 
Posts: 56
Images: 9
Joined: Sun 27. Jan 2013, 20:33
Location: Germany
Has thanked: 5 times
Been thanked: 1 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby riclamer » Fri 19. Dec 2014, 07:11

Hello....

I don't have success using this source/code in my arduino uno. My Sabertooth 2x60 don't drive. I don't know why !! I saw other people using this code and driving your motor, but this does not worked for me.

To solve this problem, i rewrote the original X-PID code, keeping all PID control functionality, improving the PWM signal 0-255, to the serial values compatible with the sabertooth. Now my 3DOF using 2 interfaces Sabertooth 2x60 is perfect.

I am providing the code for those who are having the same problem, or want test the PID performance.

LINK: https://github.com/RICLAMER/X-PID-Ardui ... Sabertooth


Big Hugs
riclamer
 
Posts: 1
Joined: Sat 30. Nov 2013, 08:30
Has thanked: 0 time
Been thanked: 1 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby misterk » Sun 30. Aug 2015, 13:56

Hello...

My simulator work fine whit velleman vm110n e sabertooth 2x25, two motor zyt90 12v 23A.

Now I want to test the arduino uno whit sabertooth 2x25, i try open Source Firmware X-PID for sabertooth 2x60.

I test it but I have some problem.

The Sim work fine but the error red led on the sabertooth is on. (the blu led is not fix, as a current problem)
I solved this problem by disconnecting the 5v cable between Arduino and sabertooth. it's correct?

The second problem are the motors, make a strange and bad noise(fry), if i move down the pid parameters the sound change.

Help Me please!

Excuse me for my english...
misterk
 
Posts: 10
Images: 18
Joined: Sat 13. Sep 2014, 13:32
Has thanked: 0 time
Been thanked: 1 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby ManUsimpson » Sat 11. Mar 2017, 11:09

Hello
I have a arduino R3 and a sabertooth 2x12, 24V Motors , 24V 10A Power supply.

I have upload the xpid sabertooth edition to arduino. All Pins in the correct position.

Now my problem. The motors works not correct, high vibrations and loud motors, pot feedback jumping, motor ignore the feedback and move 360°slowly with vibrations.

I'm messure the voltage on sabertooth entry is like 24v perfekt. But on the motors
exit is the voltage 1,5 - 5v -.- why?? My motors need 24v.

When i start the powersupply, the motors working in same time. (X sim is closed)

Please help me
ManUsimpson
 
Posts: 4
Joined: Thu 23. Feb 2017, 22:21
Has thanked: 0 time
Been thanked: 0 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby sirnoname » Sun 12. Mar 2017, 01:11

First do try to use a smaller motor.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby kokopelli » Tue 2. May 2017, 02:31

hi, will this work with a Sabertooth 2x32A?
kokopelli
 
Posts: 21
Joined: Sun 19. Mar 2017, 14:06
Has thanked: 0 time
Been thanked: 0 time

Re: Sabertooth 2x 60A with open Source Firmware X-PID

Postby Eloi » Sat 27. Apr 2019, 11:42

Hi there!
I hope, somebody is still here!
Well, first, nice job! i read your topic with Arduino and this one with H-Sabertooth.
But but... I have a question!

I build the same (close) configuration like your (Arduino one with glass motor, H bridge ect...)
For try to understand your code and how that work!

But something disturb me :

I use an H bridge BTS7690 43A ...
And his pin are more like : VCC-GND / R_IS-L_IS / L_EN-R_EN / RPWM - LPWM . Nothing really "strange" actually.

Or in the XPID, i just have the choice between three INT like Inp1 / Inp2 and one PWMpin.

I suppose the Pin Inp1 and 1 is for my enable Right and left. But for the PWMpin what i do ? I try few things but didn't work ...

Maybe i need to create a new Int PWM ? And adapted the code?

If somebody has any advice!

Thanks and good work again !


ELOI
Eloi
 
Posts: 3
Joined: Sat 30. Mar 2019, 17:44
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 2 guests