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. Guto Antunes

    Guto Antunes New Member

    Joined:
    Sep 2, 2011
    Messages:
    10
    Occupation:
    Engineering
    Location:
    Curitiba - Brasil
    Balance:
    263Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi Mat,

    May I use this code with VNH3SP30 from Olimex??? Do I have to chance any line due 24V???

    Thanks a lot
  2. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 1
  3. Guto Antunes

    Guto Antunes New Member

    Joined:
    Sep 2, 2011
    Messages:
    10
    Occupation:
    Engineering
    Location:
    Curitiba - Brasil
    Balance:
    263Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks Mat, but I have a new question now...

    Does VNH3SP30 can handle the ultrasonic PWM on 24V??? On code resources just say that 36V cant handle. But runnig on 24V, can I use that code?

    Thanks a lot again....
  4. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 2
  5. Guto Antunes

    Guto Antunes New Member

    Joined:
    Sep 2, 2011
    Messages:
    10
    Occupation:
    Engineering
    Location:
    Curitiba - Brasil
    Balance:
    263Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I appreciate your attention!!!

    This hole think has been like doing a cake, for me. I have all the ingredients, but i don't know the receipt... sorry for any inconvenience.

    I'll try to find out a way to increase PWM to 10kHz instead of 20kHz and see if it will cut off the noise or will reduce at an acceptable level.

    Thanks!!!
  6. Andrew Eccles

    Andrew Eccles aceinnz Gold Contributor

    Joined:
    Jun 30, 2016
    Messages:
    31
    Location:
    New Zealand
    Balance:
    - 541Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hi - might be worth updating that wiring diagram. I was using pins A4 and A5 as illustrated for the pot centre pins - spent a few hours trying to get it working - however I noticed in another post they should be A0 and A1 :) Have not tried it yet - however I think it will stop my motors spinning randomly... Also - is there a way of changing your account name - put my real name in the registration for account purposes - not thinking it would be my pseudo name... For privacy and information security purposes - there should be a facility to change this in the account settings.
  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Sorry, it's done: drawing is corrected!
    If you find my tutorial useful, click thumb up on the first message ;-)
    Last edited: Aug 8, 2016
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,145
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,565Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You need to spend some time reading the complete thread and the basics, which are available via the FAQs.

    Spraying questions all over other member threads will be considered spam, which could result in a ban by the admins @Historiker and @RaceRay , so please be mindful of community expectations and etiquette: https://www.xsimulator.net/communit...ng-appropriate-credit-community-etiquette.53/

    You will find plenty to get you started in the FAQs, from the official SimTools documentation, design software, dimension of sims, to PSUs, pots, motors, JRKs, Arduinos and Motor Monsters and more: http://www.xsimulator.net/community/faq/

    If something sounds odd then look it up in the glossary: http://www.xsimulator.net/community/faq/glossary-of-acronyms-and-names.66/

    When you are ready please start your own project thread here: http://www.xsimulator.net/community/forums/diy-motion-simulator-projects.22/
  9. nf_neo

    nf_neo New Member

    Joined:
    Sep 15, 2016
    Messages:
    5
    Location:
    beijing china
    Balance:
    186Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hello ,RacingMat,I want to know,how to change Tolerance parameter in code. I can‘t find this part in code. thank you!
  10. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    here it is!
    Code:
    ////////////////////////////////////////////////////////
    void motorMotion(int numMot,int actualPos,int targetPos)
    ////////////////////////////////////////////////////////
    {
      int Tol=20; // no order to move will be sent to the motor if the target is close to the actual position
    don't hesitate to post photos of your sim (or part of it) :) I'd be glad to see it
  11. nf_neo

    nf_neo New Member

    Joined:
    Sep 15, 2016
    Messages:
    5
    Location:
    beijing china
    Balance:
    186Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    ok! Thanks your help,and I will post my sim when it can work。
  12. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Hello, RacingMat. I had built my own simulator based on your design, but I face a problem now about the DC wiper motor. It seems that my DC wiper motor is not strong enough to move the simulator because the motor can easily become hot and I would like to ask is there any DC motor that is bigger and better than DC wiper motor? The DC wiper motor that I use now is 24V. Thank you in advance
  13. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hello @Johan Soegiharto
    I'm glad you found my tutorial useful!! :cool:

    I'm surprised your 24V motors are too hot...
    - How long is your levers? (more than 60mm?)
    - How heavy is your upper plateform (and pilot ? :oops:)
    - What is your PWMmax setting in the code?

    Please post some pictures, it will help :)
  14. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Thank you for your reply. My lever is around 60 mm since it is included with the DC wiper motor and the upper platform is around 30 to 40 kg? I don't know the exact amount of weight since I never measure it. I set the PWM max to be 255.
    IMG_0506.JPG
  15. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    70mm is really long
    Try drilling a hole at 50mm (distance between two axes) and see if motors are still warm and if the feeling is ok (probably more reactive)
    • Agree Agree x 1
    Last edited: Oct 23, 2016
  16. Johan Soegiharto

    Johan Soegiharto New Member

    Joined:
    Mar 31, 2016
    Messages:
    15
    Location:
    Jakarta
    Balance:
    203Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Thank you for the advice, I'll try it but I think the torque that is produced by the motor would be the same right? I think the problem of my rig is that it is too heavy and cause an overload to the motor so I try to find a bigger motor to replace it. If it is not working do you have any other suggestions maybe? Thank you
  17. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,213Coins
    Ratings:
    +596 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    The torque is proportional to the length of the lever, so shortening the lever as recommended by @RacingMat reduces the needed torque.
    I would try this first before getting bigger motors.
    And did you balance your rig correctly, so that its weight lies on the pivot point when it is not tilted?
    • Agree Agree x 2
  18. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
  19. Everh

    Everh New Member Gold Contributor

    Joined:
    Sep 19, 2016
    Messages:
    13
    Location:
    Yonkers NY
    Balance:
    134Coins
    Ratings:
    +0 / 1 / -0
    My Motion Simulator:
    2DOF
    hi i need some help with my potentiometer, and done everything that is in this place each of the things described here and me worked well till now when I put the potentiometer by the wiper motor, does not stop causing the potentiometer is Destroyed
  20. Everh

    Everh New Member Gold Contributor

    Joined:
    Sep 19, 2016
    Messages:
    13
    Location:
    Yonkers NY
    Balance:
    134Coins
    Ratings:
    +0 / 1 / -0
    My Motion Simulator:
    2DOF
    and changed the potentiometer, and put a 10k ohm cermet Linial and I work until the moment sending commands from the arduino just as indicated in the pots something like this RFFLFF, R3FL3F, R7FL7F. and I work ase what q deve Aser with the same previous detail, when I put it facing the wiper motor I did not stop but continues rotating uncontrollably in the previous test I burn the usb ports of my pc this occasion put a fuse so only the fuse shot the question is how I solve that problem, perhaps have to fix it from the arduino code. thank you answer my call.