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 Project

Discussion in 'DIY Motion Simulator Projects' started by Retro77, Apr 14, 2018.

  1. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Here's some of my settings .let me know if you need more. Interesting that when I play the game I get output data in the tuning area. I'm lost .

    Attached Files:

  2. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Question. When were directed to test the motors in sim utils we have to turn all settings to zero and slowly increase. Those settings are still at zero for both motors. Does that matter? Or does it affect simtools in any way? I closed simutils before using simtools as noted in another post.
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You should not need to do that.
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Everything has to work in the SMC3 utility before you sort SimTools.

    While you initially settthings to zero in the utility you then raise the values to tune them. Please post a picture of your SMC3 settings.

    Once SMC3 is sorted and the motors move correctly then you can move on to setting up SimTools.

    In Axis Assignments you have 2 axis, basedon your Interface Settings, so you will use the top two rows, where you set axis/forces allocations left to right, not vertically like you have, with each axis/force being in the columns DOF1, DOF2,DOF3,DOF4,DOF5.

    How much you allocate to each axis/force should total around 100% when you add them up left to right, you can go a little over but not too much or you risk clipping, do each axis fore one at a time, see the tuning steps here: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/

    The DOF box being checked orange or not determines which way and axis moves, for example sway will normally have one box checked and lean away from a corner, roll is opposite.
  5. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    You

    Perfect. Thanks for the explanation. I unfortunately have an issue with my cheap Chinese uno . Just waiting for the real deal to come in. Wasn't getting any movement at all even in sim utils . Sabertooth seems to be fine thank god.
    • Like Like x 1
  6. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino

    Btw. Do you have a preset your willing to share?
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    SimTools has some included presets but because of the wide variation in DIY simulators you will find that learning how to create and refine your own motion profiles will produce the best results. What suits my 3DOF, which has some unusual geometry because of its heave knee, would not necessarily work to full advantage for say a 2DOF.
  8. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    161
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    951Coins
    Ratings:
    +30 / 0 / -0
    My Motion Simulator:
    2DOF
    With regards to configuration: If everything is running in SMC3 and also in Simtools and then you find out, when testing with LFS for example, that up is down and down is up (or better): When braking, the rig goes up, when accelerating the rig goes down --> wrong direction.
    Can you easily fix this at the "software side", e.g. in Simtools ?
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The DIR check box in Axis Assignments being set orange or not determines which way an axis/force moves.
    • Like Like x 2
  10. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Well success. I managed to get everything working. Not tuned but working. I have a few questions. What are optimal settings for SMC3? Fpid/Kp/Ki/Kd/Ks/Fpwm/Pwmin/Pwmax/pwrev/Max limits/Clip input and deadzone? Or is there instructions im missing? Also live for speed it seems that surge goes side to side instead of front to back. Sway seems to be fine side to side. I tried all possible settings with no avail. Thanks
  11. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So I'm smc3 motors test out fine and verge to the green line. I noticed in the square wave test the right motor goes up and down and the left motor goes down and up. Not sure this is how it works? I tried switching the motor leads and when I start up smc3 the motor just spins around and around. For sure in simtools surge and away make the rig move left and righ. Even using the orange boxes in different configurations makes no difference. Suggestions welcome .cheers .
  12. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,212Coins
    Ratings:
    +594 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    When the motor turns around & around in SMC3, the motor wires need to be swapped, which means you need to connect them as before.
    See the second item of step 17 in this tutorial.
    About the orange boxes in SimTools: They reverse the motor direction. Take surge as an example: If you have both boxes marked (orange) and the motors turn in different directions, just disable one of the boxes, which will reverse the corresponding motor. Now both motors should move in the same direction.
  13. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino

    Thanks for the reply. That seemed to work. I have both orange squares checked on surge and one on sway and it seems to work correctly now. I'm finding the feedback harsh and jerky though. When turning in live for speed its not smooth at all. Any suggestions to smooth things out? Also any idea how to make shift more snappy instead of a slow jerk? Thanks all. Getting there
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Have you followed these steps, doing one axis/force at a time: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/

    Please post pictures of all of your settings, including Axis Assignments and Tuning Center.

    A video showing the rig movement and screen game play at the same time will also aid troubleshooting.
  15. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino

    Okay .Figured it out with the tuning tool. Things are a lot better. My worry is my scm3 settings. Anything higher in the pwmmax or min and my sabertooth shuts off. I'm by no means unhappy with the feedback at that level .Its quite violent as it is. Any suggestions? Or just leave it be? Also. Is there any need for the ks ki kd settings?

    Attached Files:

  16. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,212Coins
    Ratings:
    +594 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    It's just a guess, but can it be that it is not the Sabertooth who shuts off, but the SMC3 software?
    If your motor curve passes the Max Limits line, SMC3 shuts down the motor for protection purposes.
    The other related parameter is Clip Input: If the motor curve passes this one, SMC3 gives reverse power to the motors. So you could try to increase Max Limits, so that first the reverse power is applied, and only if this is not enough, the motors are shut down.
    Please see this post for details about all SMC3 parameters, which may also answer your questions about Ks, Ki, and Kd.
    • Informative Informative x 1
  17. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I ended up lowering my kp to 120 and upped my pwmmax to 155 and now everything is smooth as butter. Movement is fast and surge is snappy. Is it unusual to have such a low KP? Any higher and the motors are very jerky and rough. I was following the tutorial with the suggested 400 KP and it just did not work well?
    • Like Like x 1
  18. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So here is the final build. Just have to mount my shifter. I may have to press in a new ujoint yoke. It has some play and rattles a bit. Otherwise it's done. More fine tuning with the software but everything seems to work. Pretty happy with it.

    Attached Files:

    • Like Like x 3
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I am looking forward to a video of your rig in action, when you get some spare time :thumbs
  20. Retro77

    Retro77 Member

    Joined:
    Mar 26, 2018
    Messages:
    73
    Occupation:
    Nurse Practitioner
    Location:
    Canada
    Balance:
    58Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I'll try to get a video uploaded in the next week. Cheers. Thanks again for your assistance.
    • Like Like x 1