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

Compact 2DOF Seatmover (Sabertooth)

Discussion in 'DIY Motion Simulator Projects' started by bbb8cd, Dec 18, 2018.

  1. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello all! I am finally getting around to starting my build thread for my 2DOF motion sim. I've always loved racing games and since the N64's Top Gear Rally, we've had a racing wheel and pedals. My brother and I went in together on a Fanatec CSR wheel and pedals/shifter to play on Forza 4 many years ago and it has held up very well. We built a "rig" to play Forza in - the picture below. My uncle broke the H pattern CSR shifter so I upgraded to the clubsport shifter and once I bought an Oculus Rift, I purchased Project Cars 2 and started to research motion sims.

    20181218_100802.jpg

    My sim is going to be a compact 2DOF seat mover platform controlled by an arduino and sabertooth 2x32.

    Parts:
    • Arduino Uno (genuine)
    • Sabertooth 2x32 (genuine)
    • PGsaw 50:1 motors
    • 180 deg hall effect sensors
    • 12 volt batteries (for the time being)
    I will hopefully be making decent progress in the next two weeks and hope to have something functional before the start of 2019!

    Thanks for reading,
    Brandon

    EDIT: (7 OCT 2020) As of now, I changed the rig to a platform mover
    PXL_20201007_192521241.jpg
    • Like Like x 3
    Last edited: Oct 7, 2020
  2. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So it turns out that you can't get much done when you have a puppy recovering from neuter surgery and you also go out of town for Christmas and New Years! That aside, I've made some progress on the build. I am currently using a U joint off Amazon that I secured with bolts. I am either going to have to add a panhard rod or rethink my attachment scheme.

    20190103_204541.jpg
    Attach74402_20190102_210505.jpg

    I started working on the electronics side preparing the arduino and sabertooth. I was having trouble getting the computer to detect the sabertooth with the DEscribe program until I ran across a post in a thread (help I do not know what to do Arduino + sabertooth) by @auryza. I grabbed a different cable and it worked like a charm! It turns out the microUSB cable I was using wasn't high enough quality. I probably won't get much more done tonight but I hope to have something moving by the end of the weekend.
    • Like Like x 1
  3. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I was able to get everything wired up tonight and got the motors moving in SMC3. I am a little confused about that though because the motors wouldn't turn when in Monitor out mode but it would in other modes.

    20190106_004458.jpg

    Now I am waiting for my SimTools key for the next step!
  4. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Okay, I understand what the Out Mode does now. Verified I am getting feedback from my motor 1 pot but I'm not getting the same feedback for the motor 2 pot.

    Motor 1 snip:
    m1.JPG

    Motor 2 snip:
    m2.JPG

    Do I have an issue with the motor 2 pot? This is what I'm leaning toward. If so, I'll troubleshoot in the morning.
  5. OZHEAT

    OZHEAT Active Member

    Joined:
    Oct 26, 2015
    Messages:
    208
    Location:
    Australia
    Balance:
    2,458Coins
    Ratings:
    +106 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor
    swap the 2 outer wires going to pot2 or swap the 2 wires to motor.
    Only do 1, either motor or pot not both.
  6. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for the advice. I broke out the multimeter and it ended up being a bad wire. All fixed and onto refining the motion!
  7. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Got a little further this evening. I was able to get movement in Project Cars2 after a few struggles. Now that I get movement in the game, I'm having a tough time keeping the motors in the SMC3 bounds. I've been trying to search how to tone the movements down but have yet to find anything that helps. If anyone has had the same problem and have a fix, let me know!
  8. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I need to read more about how to optimize my settings in the SMC3Util and I believe that should fix my problem. I haven't found a baseline to start off of but I'll keep looking. If I don't find one, then it looks like I'll be playing with it until I figure it out.

    I did see the pot scaling in the SMC3-SPS sketch but I'm not sure how to adjust the scaling with AN5.
  9. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Came down with the flu so I wasn't able to do much today but I did fine tune some settings in SMC3 based off of the screen cap in @BlazinH's SMC3-SPS thread. I also turned on the pot scaling and dialed it back 50% non-linearly.

    I was able to test pCars2 with my Rift and it's a super weird but very awesome sensation. I don't have my steering wheel mounted yet as I was just setting it in my lap for now but I hope to make a stand for it tomorrow if I'm feeling better. After that, I will take a video and post it! I still have some refining to do on the motion profiles but I would say this has been a success! I appreciate the forum's help and wealth of knowledge.
    • Like Like x 1
  10. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Been out of the game for a year+ but with the MS2020 hype, I got back into X-Plane and wanted to get my sim back working. I changed out the pivot point so there was no yaw but I'm now having an issue that I can't figure out how to fix. A search did not dig anything up so I made a video of the issue.

    I'll test the motors in SMC3 and it will work perfectly and then when I open up SimTools, the left motor goes crazy. The wiring is all correct and solid - has anyone come across something like this?

    Interface settings:
    upload_2020-8-23_14-24-15.png

  11. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,489Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    did you add capacitors to your analog inputs to arduino?

    if you look at 4:30, he talks about noise suppression caps for each input


    i also use arduino and saber tooth.
    i used USB shield cables to connect my hall sensors to the arduino..
  12. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    After reading lots of different SMC threads, I found @Sam Neall 's thread about his issues and then re-reading @BlazinH 's SPS thread, I pinned 8 to GND and changed the baud in SimTools and that fixed the motor issue.

    Now I have a different issue - using the Output Testing page in SimTools, the same motor seems to not move using the slider until I get to about 60% and then it jerks to that position. It seems to be working fine in SMC3 Util so I'm not sure what this new problem is about. Off to do more research...
    Last edited: Aug 24, 2020
  13. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I noticed you and the person in the video are using 2x60 Sabertooth, I'm using a 2x32 - I didn't think it was necessary to use caps? I should probably change my wires to shielded but I wouldn't think it is causing my new problem as I don't have power wires near the Arduino.
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Be aware that some member have reported slider issues relating to a recent Windows update, see here: https://www.xsimulator.net/communit...04-from-1909-intensity-slider-problems.14795/
  15. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I saw that thread and I haven't updated to 2004 yet. I had the DOFs in the assignments not at 100%, that helped but using the sliders, it's still twitchy and the motors aren't moving at the same time.

    Below is what both motors look like in SMC3, which I think is acceptable?

    upload_2020-8-24_23-22-22.png

    I guess I will try tuning the DOFs starting with surge in pCars tomorrow.
  16. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Kd = 400 does not look reasonable, SMC3 should be fully sorted and behave as expect before moving on to SimTools configuration.
  17. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I had Kd at 0 before and it was nearly an identical sine wave. I tried to find what the wave should look like but I could not find any posts with screenshots of a "good" tuning. I have read your layperson PID thread and my sim seems like it reacts perfectly in SMC3 but I don't know what "perfect" is either.
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I would expect Ki and Kd to be 0, Ks 1, try the steps in the guide:


    1. Disconnect the motor power supply
    2. Make sure Simtools is not running – we’re not ready for that yet!
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB
    4. Run the Windows SMC3 Utility software and make sure it communicates with the Arduino (There is no need to set baud rates, they are not configurable)
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move)
    6. Set Clip to 255 (you need to do this first) and Limit to 255 (This will give you plenty of margin if something goes wrong while setting up)
    7. Turn on the power to your motors – nothing should move at this stage!
    8. Set Kp to about 400
    9. Now slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
      • If it is then that motor and feedback is wired correctly - proceed to test other motors.
      • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
    10. Do the above for each motor
  19. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I've done those steps in the guide multiple times, each time it has come out to look like this:

    upload_2020-8-25_9-34-52.png
  20. bbb8cd

    bbb8cd New Member

    Joined:
    Jul 23, 2018
    Messages:
    28
    Location:
    St. Louis, MO, US
    Balance:
    107Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Made some more adjustments in SMC3 and brought the Kp value down to under 100. I got rid of most of the jumping in the motors but I'm now trying to figure out another issue.

    I can use the SimTools output testing sliders and when I slide to the right for the most part, it is very smooth ON THE RIGHT MOTOR. The left side doesn't move. When I slide to the left, the LEFT motor moves properly but the right doesn't. I'll get a video of this and post it.

    I am using 2 12v AGM batteries in parallel - I'm wondering if I need to do some interference testing. I will search how to start that to try to pinpoint the problem.