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

2DOF roller coaster sim with arduino & sabertooth 2x12

Discussion in 'DIY Motion Simulator Projects' started by qbahuon, Jul 17, 2019.

  1. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hi everybody, i'm trying to build a simulator for my 7 y/o roller coaster addict daughter, i followed lot of your works and recently decided to start this.
    Please forgive my eventual english mistakes cause i don't practice very often :roll

    I based my project on a simple 2DOF chair support, the hardware used is arduino uno r3, sabertooth 2x12, 12v 45rpm wiper motors, 10k pots.

    I choose to start with budget hardware, first because of the price, and because i had some at home that i didn't needed to buy (arduino, sabertooth and pots). And finally don't need lot of power for my 25kg/55lb daughter.
    I found some threads abouts the 2x12 sabertooth and told me i can do it with.

    my goal if i'm a good student and finally do this right is to build a 3 DOF platform to rush some rally tracks :D
    then i count on you to help me and tell me when i'm doing wrong.

    then, let's go :thumbs
    • Like Like x 2
  2. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    As i like to understand what i'm doing, i started to build a micro prototype while i was waiting for the motors.
    [​IMG]
    I tryed differents arduino code for sabertooth from these threads :
    https://www.xsimulator.net/community/marketplace/arduino-code-2dof-for-sabertooth-wip.103/
    https://www.xsimulator.net/communit...bertooth-using-simplified-serial-working.136/
    the racingmat solutions was the best working for me,
    the second didn't worked, i couldn't send motions to motors except the shutdown consign
    I tryed the smc3 but also didn't worked with my 2x12 sabertooth.
    Maybe their codes are not compatible for the 2x12 sabertooth
  3. zapata_h

    zapata_h Active Member

    Joined:
    Dec 25, 2013
    Messages:
    221
    Occupation:
    Industrial Maintenance Manager
    Location:
    España
    Balance:
    307Coins
    Ratings:
    +43 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino
    Here you will find everything you need for your project, good luck
  4. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    my micro prototype that worked fine with racingmat arduino code

    Attached Files:

  5. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    And now, my real scale prototype whose doing me some issues.
    As you see, i 3d printed gears like it usually used by some builders,
    the presets are those posted with the racingmat's sabertooth arduino thread and seemed to work with the micro prototype, then i didn't change anything.
    I mounted everything, and tryed to make it work.
    But... when i launch game engine i have some issues, motors turns around and finish to the pot's dead zone
    Maybe too much gears amplitude

    Attached Files:

  6. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I quickly crafted new position for pots, and simplicity won the game !
    It partially works, so this code was designed to work with pots directly attached :thumbs good new

    Now i encounter issue when i launch a game, it trembles and behave badly when motor needs to reverse movement (sabertooth lights red)
    I searched in some threads and founds some things about the regenerating system of the 2x12 sabertooth :(
    I think the PSU doesn't like to take back some power...
    Hope it will not ruin my project :roll
    I will try to find out a 12v battery in my garage to give a try with it and maybe wipe out my doubts

    Attached Files:

    • Informative Informative x 1
  7. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Same problem with a battery, or another power unit.
    so the truth is elsewhere... :sos
    I noticed that the problem happened even in simple game engine output testing.

    when in standby, the action in pots automatically follow motors like intended
    when lauching output testing in game engine, the left motor start shaking and the right begin his alternative "dance"

    tested my pots = ok
    verified my solderings = ok
    tryed differents power units = same problem
    what can it be ? poltergeist ?
  8. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    and despite that, the testing or game succesfully send motion to motors (along with left shaking and right dancing)
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,777 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please post pictures of all of your settings.

    Are you using wiper motors and if so are the motors ground isolated: https://www.xsimulator.net/community/faq/wiper-motor-mandatory-ground-isolation.25/
  10. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Thanks for the observation noorbeast, and now that seems an evident thing to isolate motors.
    I just isolated my motors, i also removed unused cables and the low speed brush for both motors.
    But after that the problem is still here, the same.
    here are my settings and the arduino code used

    Attached Files:

  11. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I just watched your compact sim, that's an awesome work !
    it seems pretty efficient :thumbs
    hope i could build something that work well
  12. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I received today a moto monster that i ordered to make some tests by curiosity,
    As i'm stuck with my sabertooth for the moment, i gave a try with smc3 and moto monster,
    so i installed smc3 on a 2nd arduino and wired all like explained here :
    https://www.xsimulator.net/communit...3dof-motor-driver-and-windows-utilities.4957/

    Then everything is fine in smc3 utils, i can move like expected but when i want to try in simtools i have no motion at all.
    I tried all kind of solutions, but no result. i didn't find axes settings abouts smc3 and simtools v2
    I saw some of guys with that type of issue but it was in simtools v1.x, what's new for simtools v2 ? is smc3 supported ?
    or maybe i didn't searched enough, i'll try to find something in threads

    Attached Files:

  13. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    ok i see :thinki have to reboot my comp everytime i use smc3 utils, it's like the soft doesn't release the comport when i close it... strange
    but now that works with a 15$ controller, and i stil don't find the problem with my expensive sabertooth :roll
    Last edited: Jul 17, 2019
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,777 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Your total axis assignments, at 300%, are way too high: https://www.xsimulator.net/community/faq/axis-assignment-percentage-totals.120/

    You should be aiming for around 100% axis assignment total, though you can go a little over but not by a lot, then refine the motion profile: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/

    You say you are using @RacingMat's code but show the SMC3 utility. If you find the SMC3 utility handy for settings then use the SMC3 code and its interface settings: https://www.xsimulator.net/communit...3dof-motor-driver-and-windows-utilities.4957/
  15. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Thanks noorbeast, i missed that thing, i just changed that to 30/30/30 for the moment and that works less violently, will adjust when i will make a try for real.

    I posted a smc3 utility capture because i tried the moto monster controller by curiosity, and that confirm my hardware works fine, so i have a problem only with sabertooth
    I agree it's confusing to talk about a different controller in the same thread but i was surprised by the result.(in the video the sabertooth is present but not wired)

    I also tried the smc3 SPS code with all advisable settings but it didn't worked, not compatible with the sabertooth 2x12, maybe because of DIP switches config and not way to disable regenerative system)
    Last edited: Jul 18, 2019
  16. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hi, I finally decided to switch my sim to the moto monster shield, because didn't find solution with the sabertooth 2x12.
    that works fine with moto monster and my daughter enjoys it.

    i want to turn the sim to 3DOF, i just bought third motor and a single moto monster shield, but don't know how to wire it.
    does someone ever worked with it ? they don't share the same pins as single and double...
    I'm ok for pwr in, pwr out, pot value and pwm, but the rest give me some trouble

    Attached Files:

  17. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    that's Ok i found it
    • Like Like x 1
  18. mrbeginner

    mrbeginner Active Member Gold Contributor

    Joined:
    Apr 8, 2012
    Messages:
    153
    Occupation:
    What ever come in my way
    Location:
    Finland Niinisalo
    Balance:
    20Coins
    Ratings:
    +55 / 2 / -0
    Hi!
    Nice to know that i'm not only one who is making working rollercoaster to my children. I also use Oculus to make it feel like you are in there. Keep up the good work!
    Where you buy motomonster because i have many broken ones when i buy those few years ago and now i need those more, but affraiad to buy before i know right dealer.
  19. qbahuon

    qbahuon New Member

    Joined:
    Dec 6, 2018
    Messages:
    16
    Occupation:
    network technician
    Location:
    france
    Balance:
    45Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hi, i also use oculus for more fun :D
    I bought my motomonsters on amazon
    the dealer is ARCELI, they sell many electronic products like shields, arduino, etc, and the quality seems to be good compared to some others
    the motomonster heat very hard (after a session the triac unwelded by hitself), so i installed dissipators up and down