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. FrancescoRoberto

    FrancescoRoberto Member

    Joined:
    Mar 31, 2018
    Messages:
    87
    Location:
    Italia
    Balance:
    86Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    3DOF
    Hi, Sorry but I don't unerstand if the file to install in Arduino is correct to motor monster shield

    Codice Arduino: 4DOF e 1 direzione pin Hbridge 3.2


    May I help me?
    Thanks
    Francesco
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,730
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    152,093Coins
    Ratings:
    +11,065 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. franckk06

    franckk06 New Member

    Joined:
    May 21, 2018
    Messages:
    13
    Location:
    france
    Balance:
    189Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    Hi,

    I did exactly as in image 1 to nicolasp in page 6, but I don't know how to recognize 2 Arduinos at the same time in simtools, thanks.
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,730
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    152,093Coins
    Ratings:
    +11,065 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I am not sure what version of SimTools you are using but the process is pretty much the same, please see page 33 of the manual:
    https://simtools.us/wp-content/uploads/2024/02/SimTools-v3.pdf

    Interface 1 is for the first two motors, with the correct port set, and designated
    Interface Output: <Axis1a><Axis2a>

    Use Interface 2 is for the the other two motors, again with the correct port set, and designated Interface Output: <Axis3a><Axis4a>

    The rest of the SMC3 settings for both interfaces are:

    Interface Type - Serial

    BitsPerSec - 500000

    Data Bits - 8

    Parity - None

    Stop Bit -1

    Output Bit Range - 10

    Output Type - Binary


    interface.jpg
  5. franckk06

    franckk06 New Member

    Joined:
    May 21, 2018
    Messages:
    13
    Location:
    france
    Balance:
    189Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
  6. franckk06

    franckk06 New Member

    Joined:
    May 21, 2018
    Messages:
    13
    Location:
    france
    Balance:
    189Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    No only interface 1 is taken into account...
  7. franckk06

    franckk06 New Member

    Joined:
    May 21, 2018
    Messages:
    13
    Location:
    france
    Balance:
    189Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    It's possible to change the Arduino code to put another motor ? I think we can connect 4 motors on one Arduino Uno : 2,3 and 10 for the first ; 4,5 and 11 for the second ; 6,7 and 12 for the third ; 8,9 and 13 for the fourth.
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,730
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    152,093Coins
    Ratings:
    +11,065 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please post pictures of all of your settings.

    I just realised you are not using SMC3, so the settings are as follows, but ignore Startup and Shutdown, just leave those blank, but update Interface to the new SimTools format: R<Axis1a>L<Axis2a>

    [​IMG]
  9. franckk06

    franckk06 New Member

    Joined:
    May 21, 2018
    Messages:
    13
    Location:
    france
    Balance:
    189Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    Yes i use smc3 before simtools to configure my motors, and for bitspersec 500000 or 115200 ?