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

Newbie 2DOF with Arduino & MM

Discussion in 'DIY Motion Simulator Projects' started by lustigio, Dec 5, 2015.

  1. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Hi All,

    Time to share what I have so far.
    A 2DOF built following @RacingMat

    So Far:
    Arduino UNO R3
    Monster Moto Shield
    12v 50A PSU
    200w 12v Worm Drives
    10K Pots

    I had it all working well but have just run into a problem.
    My right motor is smooth in one direction but seems to use heaps of power trying to go the other way (see video)

    Also, when I sit in the seat to motors will go past the Pots end point and get stuck.

    Any help and input would be GREATLY appreciated.


    2015-11-21 15.33.24.jpg
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,978Coins
    Ratings:
    +2,090 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Well done! :)

    In theory, it's normal behaviour that:
    when the motor is pushing up (fighting against weight), it's slower
    when it goes down, it goes smoothly and quickly.

    But normally, we try to avoid such differences and get same speed in both ways.
    In your case, I would say that your lever is too long, or your seat is too heavy, or your motor is too weak, or your tension is too low...

    I you go farther than your pot limits, it could be explained by some above factors
    but that should be managed by increasing the software security limits!

    yours
    Mat
  3. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    How long is that lever?
  4. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    it seems the issue is only on the right motor?
    Please switch the motor connections of the MM: (A1-B1) to (A2-B2). If the behavior is MM related the issue should remain on the same output.
    • Agree Agree x 2
  5. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    The levers have a CTC of 65mm. Is this too much?

    As per @Pit said, I swap the motor connections and now's it's the left motor. So possibly a faulty MM.

    I'm still learning the software side of it and trying to get the the seat to move something that looks like what has doing in the game.

    Also still have the problem when someone sits in the seat the motors go past the pot Max and the motors get stuck. Mainly when it leans to a corner.
  6. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Then you should raise the min. power which would hold the weight.
  7. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I suggest to check your wiring before you buy a new MM. And check out our FAQ where to buy MMs...there is no guarantee but a good chance to get some working units.
    • Agree Agree x 1
  8. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Would you be so kind to explain which setting this one is?
  9. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Obviously you are using @RacingMat code so he can advise you. After a first view on the code I could not find any options.
    • Agree Agree x 1
  10. bsft

    bsft

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    well, a few of the ard boys have suggested a few things. otherwise a 40 mm ctc lever if it still struggles.
    • Like Like x 1
  11. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Thanks all, I'll try these suggestions over the next few days.
  12. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Ok, so 2 MM's later I started to get frustrated.
    I have used Arduino on other projects (not sim related) and its great.
    The MM's are just too unpredictable/unreliable so I decided to try JRK's. After reading many posts and how much @bsft recommends them I ordered a couple.

    Well, after following @eaorobbie setup guide, I was up and running in minutes. Thanks eaorobbie!
    I have good motion and I'm learning (slowly) how to use the tuning centre.

    The only problem I have now is for some reason when the feedback reaches 0 the motor wont auto come back. It sort of looses power and just sits there. This happens when a person sits on the seat and lean into a corner too much.
    I have checked in the JRK software and its set "Max duty cycle while feedback is out of range - 600(100%)" but its not working.

    Any suggestions?

    Some pics of the setup so far.
    2015-12-12 11.48.44.jpg 2015-12-12 11.48.34.jpg 2015-12-12 11.48.59.jpg 2015-12-12 11.49.27.jpg 2015-12-12 11.49.20.jpg
  13. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,159
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,640Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    A video would be helpful in assisting troubleshooting.

    A few things spring to mind.

    The first is to make sure the rig is properly balanced: http://www.xsimulator.net/community/faq/find-the-center-of-gravity-to-balance-a-motion-simulator.55/

    The second is the max angle of the lever that you set when you configure the JRK. Once a lever goes over about 38 degrees, up or down, as a lever it loses significant torque effect.

    Same with the CTC you use on the levers, the bigger the CTC the faster the linear speed, but at the cost of torque. You can drill a lever for multiple CTCs, but likely 50mm would be a good place to start and you can go up or down from there.

    Finally, you probably need to properly tune you PID and motor settings: http://www.xsimulator.net/community/faq/practical-examples-video-tutorial-to-jrk-pid-tuning.225/
    • Agree Agree x 1
  14. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    It was my rig balance that was the problem. I moved the centre pivot point 80mm forward and now it's perfect!

    I still have a lot of work to do with the settings and tuning but the rig is in full motion now.
    • Like Like x 2
    • Winner Winner x 1
  15. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    I have been playing with the tuning centre and are starting to get some great movement.

    Video of first test with Assetto Corsa
    • Like Like x 4
    • Winner Winner x 1
    Last edited: Dec 19, 2015
  16. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Wondering if someone could help with a setting. When I go around a corner and the car leans, when straightening up the seat seems to sway left, right left while trying to straighten.

    Any idea which setting would stop this?
  17. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,159
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,640Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  18. lustigio

    lustigio New Member

    Joined:
    Nov 27, 2015
    Messages:
    18
    Occupation:
    Blaster
    Location:
    Adelaide
    Balance:
    155Coins
    Ratings:
    +19 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Thanks noorbeast,

    I cant get any video at the moment but its when your coming out of a corner onto a straight.
    Screenshot (1).png Screenshot (3).png Screenshot (4).png Screenshot (5).png

    Attached Files:

  19. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    @lustigio I suggest you to clear out from the very first beginning the direction of the forces independent from all other forces.
    • Agree Agree x 2
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,159
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,640Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Agree Agree x 2
    Last edited: Dec 21, 2015