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

Tutorial From AtoZ : 2DOF arduino wiper playseat

Discussion in 'DIY Motion Simulator Projects' started by RacingMat, Aug 8, 2013.

  1. man05ru

    man05ru New Member

    Joined:
    May 12, 2021
    Messages:
    16
    Balance:
    53Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, 6DOF
    Please explain two points: 1. What are potentiometers for? 2 how to put them correctly? referring to the engine. The potentiometer must first be set to 0 or what? the rest is still clear.
    Last edited by a moderator: May 25, 2021
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    1/ potentiometers are here to get a feedback (where is the lever) to the arduino code
    2/ the best is to assemble them loosely with the motor. If wiring is not good, it won't break anything. You swap ground and 5V on the pot pins and next try is good.
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi @yoren beyls !

    you could use Pololu - VNH2SP30 Motor Driver Carrier MD01B
    https://www.pololu.com/product/706
    or
    VNH5019 Motor Driver Carrier https://www.pololu.com/product/1451

    it's the same wiring than motomonster InA and InB for Direction and 1 pin for PWM
    yours
    • Informative Informative x 1
  4. PyroBlaze13

    PyroBlaze13 PyroBlaze131 VR Racer

    Joined:
    Jul 5, 2021
    Messages:
    12
    Occupation:
    PC Repair
    Location:
    Fortuna, California
    Balance:
    77Coins
    Ratings:
    +4 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, 4DOF, 6DOF
    love it! I am Wanting to Build a Motion Rig of my Own. this is Inspiring. Thank You
    • Like Like x 1
  5. CAI_77

    CAI_77 Member

    Joined:
    Jun 30, 2022
    Messages:
    88
    Balance:
    87Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, Motion platform
    hello, first I want to congratulate you for your excellent work, really a very good simulator, now I want to ask a question, do you have 24-volt motors and do you feed them with a 12-volt, 30-amp source? I am new and I built my simulator with 12 volt motors and my source is 12 volt and 30 amps
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The motors used in the original post were 12v: https://www.xsimulator.net/community/threads/from-atoz-2dof-arduino-wiper-playseat.4616/

    But 24v can be used with suitable drivers: https://www.xsimulator.net/community/faq/24v-motor-driver-where-to-buy.154/

    Genuine MotoMonster boards are no longer available, those available are clones and can be subject to faults: https://www.xsimulator.net/community/faq/monster-moto-testing-before-use.158/

    There are a range of possible control boards, depending on associated motor choice: https://www.xsimulator.net/community/faq/motor-drivers.11/category

    Building with 12V motors is common and there are many member project examples to follow. Choose appropriate control boards and hardware, along with a design suitable to the hardware chosen. SimCalc can help get your head around the tradeoffs in design Vs physics: https://www.xsimulator.net/communit...e-linear-speed-and-forces-of-your-design.270/

    The Design and many other sections of the FAQs are a great starting place: https://www.xsimulator.net/community/faq/

    Do plenty of research and where necessary ask questions on your own dedicated build thread, which you can start here: https://www.xsimulator.net/community/forums/diy-motion-simulator-projects.22/
  7. CAI_77

    CAI_77 Member

    Joined:
    Jun 30, 2022
    Messages:
    88
    Balance:
    87Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, Motion platform
    thank you, thank you very much for your response, as I always say it is a pleasure to be part of this community
    • Like Like x 1
  8. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi,
    Glad you found valuable information!

    the motors were truck wiper motors, hence 24V

    When a 24V motor is powered up by a 12V PSU, its speed is half
    But torque should be the same provided the PSU can deliver enough current (A)
    • Agree Agree x 1
  9. CAI_77

    CAI_77 Member

    Joined:
    Jun 30, 2022
    Messages:
    88
    Balance:
    87Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, AC motor, Arduino, Motion platform
    thanks for your answer, sorry for my query, I'm new to this world of simulators and my knowledge is very basic, I congratulate you on your simulator, it's great and it works very well, a hug friend.
  10. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    utilise Google Traduction pour passer du français à l'anglais https://translate.google.fr/?hl=fr&sl=fr&tl=en&op=translate
    et vice-versa.

    you have some wires heating?! the diameter is too thin... what is the actual diameter?
    1 motor is smoking... Was it during stalling (blocage sous l'effort) or normal use?
    This would require some fan cooling but there is probably another problem behind this.

    please share several pictures (simple drag and drop in the text editor), it will help.
  11. Matthew Bangerter

    Matthew Bangerter Member Gold Contributor

    Joined:
    Jun 27, 2014
    Messages:
    35
    Occupation:
    Mechanical Engineer
    Location:
    Mesa, AZ
    Balance:
    48Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @RacingMat

    First off want to say thank you as your original tutorial is what inspired me to build my rig something like 7 years ago and I have enjoyed it thoroughly! One issue I have always had is very jerky movement. For example if I go to output testing > axis testing and slide one of the motor axis very slowly back and forth, the response is not smooth, it is very jerky/stuttered. While this works ok for the quick motions in fast paced racing sims like gear shifts, there is alot of unwanted stutters. For flight sims with smooth motion it is unusable. My guess is that it has to do with PID tuning? Is it possible to do PID tuning with your original code to smooth it out? Or do I need to switch to SMC3 to do that?

    Is it possible that the problem is something besides PID tuning?

    Any help or insight would be amazing!
  12. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Glad you found inspiration!

    There could be many factors.
    First have you the latest version? In the first version there was a bug that jerked.
    Second maybe some play in the potentiometer linking?
    In the code, you can increase the Tol value to smooth.
    Third you could have a go with another firmware indeed.
    Yours
  13. Matthew Bangerter

    Matthew Bangerter Member Gold Contributor

    Joined:
    Jun 27, 2014
    Messages:
    35
    Occupation:
    Mechanical Engineer
    Location:
    Mesa, AZ
    Balance:
    48Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for the quick response! I’ll have to go take a look at the code but I think I’m probably still using the same code from like 2016… so I can try the latest.

    So I just increase the "int Tol=20" value from the default of 20 to a higher number until it feels right? Do I need to edit the "brakingDistance=30" or the "gap>50" under the PID section as well?

    For the encoder link: I drilled a hole in center of the the gear hub on the wiper motor and then stuck the encoder shaft in the hole using hot glue so it possible there is a tiny bit of play though I think it is pretty tight.

    have you successfully used your wiper motor rig for smooth flight sims? Just trying to see if smooth slow motion is even possible with wipers.
    Last edited: Mar 8, 2023
  14. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    > So I just increase the "int Tol=20" value from the default of 20 to a higher number until it feels right?
    yes just this parameter but I'm really surprised nobody felt the need to tweak that...

    What happen when you use the slider in Simtools output testing?