1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Arduino + Sabertooth

Discussion in 'SimTools compatible interfaces' started by RacingMat, Jun 22, 2014.

  1. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi guys,
    I intend running sabertooth + kangaroo but as a first step, I ran Arduino + Sabertooth.

    You can find the code here the Arduino code modified to suit to Sabertooth
    http://www.xsimulator.net/community/marketplace/arduino-code-2dof-for-sabertooth.103/

    The present code uses the Sabertooth "Simplified Serial" protocol:
    - it is OK with Sabertooth 2x25, 2x60 (don't use 2x12 which is too weak)
    - Sabertooth 2x32 is compatible by legacy.

    But 2x5RC, 2x12RC models don't seem to be compatible.

    The code requires 2 libraries
    - software serial is already in the Arduino IDE installation
    - and Sabertooth library has to be downloaded here https://www.dimensionengineering.com/info/arduino
    https://www.dimensionengineering.com/software/SabertoothArduinoLibraries.exe

    //Sabertooth DIP switches 2, 4 and 5 OFF

    // serial between Arduino and Simtools on RX pin: 115200 bauds
    // serial between Arduino and Sabertooth on SWSerial pin8: 38400 bauds
    Arduino pin8 <--> Sabertooth S1
    Arduino GND <--> Sabertooth 0V
    Arduino A0 <--> Pot1
    Arduino A1 <--> Pot2

    The wiring is extremely simple: only 3 wires between Arduino and Sabertooth

    Wiring schematic from Wanegain ;) Thks!
    schema-4519fa7.jpg

    Use the same presets as for Arduino and Motomonster
    Game Engine axes presets
    Game Engine Interface presets
    • Like Like x 6
    • Winner Winner x 1
    Last edited: Mar 8, 2015
  2. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,416Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Indeed You got it...

    Mate you are insane. As I promised to @RufusDufus I will send all my coins I have for the first guy here which will offer a code working with the sabertooths. :cheers

    Only to be sure: this code works with any sabertooth?
    • Like Like x 2
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    ha ha! :) keep your coins @Pit

    The present code uses the Sabertooth "Simplified Serial" protocol:
    - it is OK with Sabertooth 2x12, 2x25, 2x60
    - Sabertooth 2x32 is compatible by legacy.

    But 2x5RC, 2x12RC models don't seem to be compatible.
    • Useful Useful x 1
  4. Wanegain

    Wanegain Active Member

    Joined:
    Nov 6, 2013
    Messages:
    571
    Location:
    Bruxelles
    Balance:
    1,947Coins
    Ratings:
    +297 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Hi,
    I wrote a new code for this solution.
    I share it here

    I am using this code for my simulator and it's working fine.
    • Winner Winner x 3
  5. Fabgen

    Fabgen Member

    Joined:
    Dec 1, 2014
    Messages:
    72
    Location:
    France
    Balance:
    574Coins
    Ratings:
    +56 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Thanks a lot for your work. I want to use a arduino uno r3 and sabertooth for my simu 2dof with 24v dc. I already buy the arduino board but not the sabertooth. For you, shall I buy a sabertooth 2×12 or a 2x25? Thanks for your anser
  6. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,895Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi! sabertooth 2x25
    2x12 is too weak to be used with smolka for example
  7. telfel

    telfel Active Member

    Joined:
    Feb 16, 2011
    Messages:
    170
    Balance:
    4,735Coins
    Ratings:
    +118 / 3 / -0
    Hi @Fabgen

    I have a Sabertooth 2x60 for sale £100.00 + shipping

    pm me if interested

    regards Terry
  8. Wanegain

    Wanegain Active Member

    Joined:
    Nov 6, 2013
    Messages:
    571
    Location:
    Bruxelles
    Balance:
    1,947Coins
    Ratings:
    +297 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    You can buy the new 2x32 for the same price than 2x25!
    The 2x32 is really better and it's delivered with 2 resistive for generative current. Very useful.
    • Like Like x 1
    • Informative Informative x 1
    • Useful Useful x 1
  9. Fabgen

    Fabgen Member

    Joined:
    Dec 1, 2014
    Messages:
    72
    Location:
    France
    Balance:
    574Coins
    Ratings:
    +56 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Thanks for your offer but I dont need so powerfull sabertooth and it cost too much than I want to pay.