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

Need help, my motor sway when stopped...

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by abah_masha, Jan 22, 2016.

  1. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino

    WIP... I 'm working on a project like 2 Dof Tutorial from Racingmat.
    but I 'm in trouble, sway when stopped?? and i don't know why it happend?
    only little knowledge of electronics :D
    help me please...
    Parts: Arduino, Monster Moto Shield, PSU 12V 30 Ampere, Motor Wiper DC 12V + Potensio B10K.
  2. james wheeler

    james wheeler Active Member

    Joined:
    Mar 17, 2014
    Messages:
    185
    Balance:
    216Coins
    Ratings:
    +48 / 1 / -0
    My Motion Simulator:
    2DOF, Arduino
    I am have a similar issues mine is more extreme however. I have built a sim before using all the same parts save for the motomonster driver board where last time I used a pololu. I will post my video here aswell in hope someone like racingmat can help.



    My power is the same dell 12v 41a as before.
    My second issue which I don't know is related is one motor not moving while the other is maxed out using the axix texting as seen here



    Sorry I couldn't help you but hopefully the threads activity will generate a solution.
    • Like Like x 1
  3. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,640Coins
    Ratings:
    +1,009 / 8 / -1
    It looks like the control loop is under damped for that motor/driver/feedback combination. That is typically corrected by the gain setting in the software. You may find that when you put load on the motor (sit in the seat) is it not a problem. Otherwise reduce the gain setting in software. @RacingMat can probably assist with that, I'm pretty sure it is just a value change on one line of his code?

    @james wheeler - I've commented in your other post.
    • Informative Informative x 2
  4. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Thank's all.. ;)
    i'm not understand about Code in Arduino IDE, but..
    I Have Tried to change some (a bit) code in it (from Racingmat 2 Dof Wiper truck). :p and... still it happened:(
    I hope will have real simulator can sucseed like this... (my 2 dof mini servo)

    Need help to finish this project,
    I also want to be able to play like you , using a simulator at home (DIY).:rolleyes:
  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @abah_masha
    nobody reported such a behaviour...
    you will have to describe more of what you have done and show more of your hardware (pictures of pots, wiring, windows USB port, Simtools screens...)

    you have done something different and the recipe is not working...
    can you give more specifications about your motors?

    @james wheeler : please post in a dedicated post (otherwise it'll be become more complicated)

    @both of you: did you change anything in the code?
  6. james wheeler

    james wheeler Active Member

    Joined:
    Mar 17, 2014
    Messages:
    185
    Balance:
    216Coins
    Ratings:
    +48 / 1 / -0
    My Motion Simulator:
    2DOF, Arduino
  7. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    ok @RacingMat , I 'll do your suggestion soon.. :thumbs

    yes I do , occasionally , as this remains the case , then I return to the original code. Then look for another error , possibly in hardware ..
    Last edited: Jan 25, 2016
  8. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @abah_masha : same as James, try only with the Arduino serial monitor: do you have this oscillation?
  9. james wheeler

    james wheeler Active Member

    Joined:
    Mar 17, 2014
    Messages:
    185
    Balance:
    216Coins
    Ratings:
    +48 / 1 / -0
    My Motion Simulator:
    2DOF, Arduino
    Yes I do I tried with nothng runing other than the monitor and still it continues.
  10. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    @RacingMat , this is my wiring and simtools screens..
    aku AS.jpg

    Attached Files:

  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,533
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,022Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Useful Useful x 1
  12. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi @noorbeast ,
    I have done it before, 60% in simtools, but my wiper motor only rotate 40 degree, sway when stop still hapend and i don't know why? :( then I do 100%, and i get about 90 degree rotation. "sorry for my english" :grin
    Thank's for link.. I will do like it soon.
  13. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Informative Informative x 2
  14. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,640Coins
    Ratings:
    +1,009 / 8 / -1
    @abah_masha if the behaviour is still the same as the first video you posted then your system is really working as expected. What you are seeing is overshoot from the motor positioning (technically referred to as an underdamped feedback system). This is corrected with the gain parameters in your software. The diagram below hopefully shows what I am referring to...

    IMG_0167.JPG
    As far as I can see in the video the motor moves to the position you request, therefore mechanically, electronically, software, is all working, just needs some fine tuning.

    If there is something else happening that isn't shown in the video let us know.
    • Agree Agree x 1
    • Informative Informative x 1
    • Useful Useful x 1
  15. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    @RacingMat. verry sorry.. oh I have wrong to draw :oops:. potentio cable to hole A4 on arduino.. sorry... this is my wiring revision skemaku revisi.jpg
    for that link, are diferent with your diagram wiring that first i look before (in tutorial DIY wiper truck).. where i must connect potensio cable.. to A0 or A4?
    Last edited: Jan 29, 2016
  16. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
  17. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Yes... I thought so :), what step to fine tuning for fix this. (many question in my self, change some Arduiono IDE code or another on simtools, or are different parts in Indonesia)? :p I haven't experiece about code and electrical. Btw, I not run the game, only game engine of simtools to check by sliding for movement.
  18. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    your system is overshooting like @RufusDufus said
    but I don't know why because dozens of sim have been made and none needed any tuning in the code for oscillation

    @abah_masha maybe your motors are a bit odd... I would advice you to test another Arduino code like SMC3 which allows to tune the gain easily
    http://www.xsimulator.net/community...-3dof-motor-driver-and-windows-utilities.122/

    I don't think your arduino is broken
    but you could try JRK instead of Arduino+Motomonster because JRK does not require any coding
  19. abah_masha

    abah_masha New Member

    Joined:
    Sep 13, 2015
    Messages:
    29
    Location:
    Indonesia
    Balance:
    130Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Yeah, I think so. I have 2 motor at home, 1 broken, and this still work, but the speed rotating left and right are different.
    What is causing all of this is happening. o_O
    ok racing mat, thanks for link another tutorial.. I am trying scm3.. ;)
  20. james wheeler

    james wheeler Active Member

    Joined:
    Mar 17, 2014
    Messages:
    185
    Balance:
    216Coins
    Ratings:
    +48 / 1 / -0
    My Motion Simulator:
    2DOF, Arduino
    I had the same problem. I am using wiper motors too however mine are from a Ford escort. There is 3 wire configurations on them. Slow, fast and really fast. My wire configuration are as follows. Black & blue are slow, black and red are fast and red and blue are stupid fast. When I started I figured the middle option was the best but after ripping everything apart and playing with a lot of the codes inputs I thought maybe I will try it on slow and bang it works fine. Even with racingmats original code. Everyone wants more power . but power is nothing without control.
    • Agree Agree x 2
    • Like Like x 1
    • Friendly Friendly x 1
    Last edited: Feb 1, 2016