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 Arduino code for 4DOF and 1 DIRpin Hbridge board

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

  1. alejandroads

    alejandroads New Member

    Joined:
    Sep 3, 2017
    Messages:
    10
    Location:
    Unated States
    Balance:
    106Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino
    Hello ! I start to build my motion simulator, I did all I'll found in this page, but now I'm stuck. When I go to simtools , output testing and them I press
    ''Turn on'' the motor move but when I tried to move the knobs after select axis output I moved and nothing happens ...Arduino board receive data and motor move when I turn on axis testing. ( moves ands stop)
    I'm using this code : Arduino Code for 4 DOF and 1 pins Hbridge boards.
    The only thing maybe could be wrong is I'm not connecting yet all motors, just one, and I connected 3 potenciometers to Arduino, one is installed in the motor , and the other two I moved manually for test, I pretend to used 2 motors and 1 extra motor for wind...
  2. nicolasp

    nicolasp New Member

    Joined:
    Aug 1, 2015
    Messages:
    15
    Location:
    são paulo, brazil
    Balance:
    23Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform

    RacingMat

    Please can you tell me if this scheme is right for me to use 2 arduino uno and 4 ibt2 to make a 4dof flight simulator using your 2dof code?

    4DOF ESQUEMA ELETRICO.jpg


  3. nicolasp

    nicolasp New Member

    Joined:
    Aug 1, 2015
    Messages:
    15
    Location:
    são paulo, brazil
    Balance:
    23Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Or would the correct schematic be this?

    4DOF ESQUEMA ELETRICO-3.jpg
  4. phonghornet

    phonghornet New Member

    Joined:
    Aug 19, 2018
    Messages:
    27
    Balance:
    190Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF, 6DOF
    Hi Mat.
    compile error message.
    I do not know where I'm wrong.

    Attached Files:

  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,968Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi
    What did you change in the code ?
  6. phonghornet

    phonghornet New Member

    Joined:
    Aug 19, 2018
    Messages:
    27
    Balance:
    190Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF, 6DOF
    Hi Mat
    I found the error thank you.
    The directory that I save contains special characters, so I can not compile it.
  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,968Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for the feedback!
    Keep going and good luck :)
  8. phonghornet

    phonghornet New Member

    Joined:
    Aug 19, 2018
    Messages:
    27
    Balance:
    190Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF, 6DOF
    Hi Mat.Thank you.
    I am wanting to build an arduino + simtool + stepper motor.
    but i have no code for arduino you can help me? 6dof stepmotor.jpg
  9. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,968Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Sorry, but I would advise you to stick to a known recipe ! Trying to innovate while being new to arduino will be hard and costly to my opinion ;-)

    Yours
  10. phonghornet

    phonghornet New Member

    Joined:
    Aug 19, 2018
    Messages:
    27
    Balance:
    190Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF, 6DOF
    I understand. Thank you
  11. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,968Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for your feedback :)
    And congratulations for your success!
  12. Joeri

    Joeri Member

    Joined:
    Feb 18, 2019
    Messages:
    61
    Occupation:
    car body repair shop
    Location:
    The Netherlands
    Balance:
    106Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF
    can i use 4 ibt2 whit this code?
    if so does anyone have a connection diagram?

    want to try to make a 4 dof, when my first project is finished :)

    IBT-2Module.jpg
  13. Joeri

    Joeri Member

    Joined:
    Feb 18, 2019
    Messages:
    61
    Occupation:
    car body repair shop
    Location:
    The Netherlands
    Balance:
    106Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,102
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,294Coins
    Ratings:
    +10,895 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  15. Joeri

    Joeri Member

    Joined:
    Feb 18, 2019
    Messages:
    61
    Occupation:
    car body repair shop
    Location:
    The Netherlands
    Balance:
    106Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF
    I now use the smc3 code for my first project. but I want to control 4 motors. for my next project. I was wondering if that is possible with 4 ibt2?
  16. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,102
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,294Coins
    Ratings:
    +10,895 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Use 2 Arduinos and SMC3.
    • Like Like x 1
  17. moaale

    moaale IAN MRTIN

    Joined:
    Jun 29, 2011
    Messages:
    168
    Occupation:
    NN
    Location:
    ARGENTINA
    Balance:
    124Coins
    Ratings:
    +41 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SimforceGT
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,102
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,294Coins
    Ratings:
    +10,895 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    See my previous comment where I consider the easiest way to drive 4 motors is 2 Arduinos, each driving 2 motors using SMC3, as that way you have all the benefit of the SMC3 utility for configuration: https://www.xsimulator.net/communit...-dirpin-hbridge-board.4614/page-6#post-176494
  19. moaale

    moaale IAN MRTIN

    Joined:
    Jun 29, 2011
    Messages:
    168
    Occupation:
    NN
    Location:
    ARGENTINA
    Balance:
    124Coins
    Ratings:
    +41 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SimforceGT
  20. NigaMan

    NigaMan New Member

    Joined:
    Feb 10, 2021
    Messages:
    2
    Balance:
    - 21Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Hello everyone, so I wonder if it is possible to make 4dof according to one of the schemes?