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 SMC3 Arduino 3DOF Motor Driver and Windows Utilities

Discussion in 'SimTools compatible interfaces' started by RufusDufus, Dec 1, 2013.

  1. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The Tuning Center is not getting any data. Before messing with RF can you please verify Output Testing and in Live For Speed, as both are specifically for diagnostic and testing purposes.
  2. 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
    There I have been testing different configurations in the 1 and 2 interface and I could find the configuration that I think goes when I move arises in output testing the two forward motors are lowered when I brake and the rear motors are raised and when I move the motors 2 and 4 on the side sway Right they get up and those of the left 1 and 3 go down, the only thing I have to do is change the C and D of interface2, I was put on Aaxis1 Baxis2 Caxis3 Daxis4 and those of interface2 had no movement ... and now the axis1 and axis3 with A and axis2 and axis4 with B in conclusion, the configuration was like this Aaxis1 Baxis2 Aaxis3 Baxis4. 20201129_202943.jpg 20201129_202935.jpg
    • Like Like x 1
  3. 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
    Sir, I ask you a question. I plan to buy another 12v 30a switching source for the other 2 motors, but the question is the source that I have is the bank for the 4 motors.?
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I am not sure what you mean, I suspect you are asking if the existing single PSU is adequate for 4 motors and my guess is that it likely is not.

    Please elaborate if you mean something different.
  5. 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
    if you were wondering if that source supports all 4 engines ..... thanks. the ideal would be a source for two engines.
  6. Peter_the _machinist

    Peter_the _machinist Member

    Joined:
    Nov 16, 2020
    Messages:
    45
    Occupation:
    Mechanical Engineer (CAD,CAE)
    Location:
    Poland, Gdańsk
    Balance:
    354Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Hello everyone!

    I'm new here and I want you ask all of you about SimTools game manager->SimTools game engine ->SMC3 utility connection problem. If it's wrong place to do so please redirect me to suitable forum place for it. But:

    My connection built is:
    PC master: SimTools game manager & SimTools game engine

    <->UDP connection

    PC slave: SMC3 utility and Arduino UNO with SM3 in it

    I've managed to send data and read them in SM3 utilty with Output Testing for all of 3 motors but when I hit a run in Life for Speed there is no output to do SM3 utility on PC slave. Game is patched and Game manager is connected to Game engine. I see prompt "game running" in Game manager and in Game engine. I suppose there is a problem with my axis assingment. Here's some screenshots from my setups upload_2020-12-7_0-31-52.png upload_2020-12-7_0-32-26.png

    I'm after only one day of setting this up so it can be totally bullshit ;).
    At current state I'm in design process of building my 3DOF motion platform. I'm planning to put 12V or 24V wiper motors to simulate accelerate in a car and feel of traction loss (I supposed that is Yaw DOF(?))
  7. Chris Chopping

    Chris Chopping Member

    Joined:
    Jul 24, 2020
    Messages:
    35
    Occupation:
    Mechanical Engineer
    Location:
    Melbourne, Australia
    Balance:
    - 26Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi Peter_the _machinist,
    Have you followed the general guide (in FAQ) in using the simtools setup? That guide helped me alot.
    Running the game in output testing in the virtual mode shows also if it is patched correctly and values are being spat out.
    I have a 2DOF racing sim and i use surge and sway rather than pitch and roll as you get more feeling. Pitch and roll is good for track surfaces and flight sims but you can barely feel it in racing sims
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Just to clarify, you can't run the SMC3 utility and SimTools at the same time, as that would cause a port conflict.

    You also need to have run LFS before patching it for motion: https://www.xsimulator.net/communit...run-in-first-person-mode-before-patching.365/

    The simplest setup for Simtools 2 to test everything is via Serial:

    Interface Type - Serial

    ComPort = the Arduino ComPort, you can find it in Windows Device Manager.

    BitsPerSec - 500000

    Data Bits - 8

    Parity - None

    Stop Bit -1

    Output Bit Range - 10

    Output Type - Binary

    Interface Output - [A<Axis1a>][B<Axis2a>][C<Axis3a>]
    [​IMG]

    If you want a 2 PC setup then grab a copy of the SimTools manual: https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/

    And see the FAQ tips here: https://www.xsimulator.net/community/faq/dual-pc-simtools-setup.251/
  9. Peter_the _machinist

    Peter_the _machinist Member

    Joined:
    Nov 16, 2020
    Messages:
    45
    Occupation:
    Mechanical Engineer (CAD,CAE)
    Location:
    Poland, Gdańsk
    Balance:
    354Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Dear noorbeast, thank you for your reply.

    I need to disagree with you, about port conflict because I did manage run SMC3 utility and simtools at the same time, but as I said not on one PC. I'm sending data via UDP to my second PC and everything working great on output testing but the problem is that I've run LFS one time patched it then everythins seems to be set up and connected but I cannot get output data when I play the game. In fact I don't know how to use axis assignments. I don't exacly know what % value mean there. I saw that some of users use same type of DOF for different axis, but dunno what for. I'm basing on racingcube fasetech early(stage of kickstarter) construction, maybe it will help to understand what I'm trying to do. Here's screenshot from my arduino-connected PC with SMC3 utility running.
    upload_2020-12-7_22-45-17.png
  10. Peter_the _machinist

    Peter_the _machinist Member

    Joined:
    Nov 16, 2020
    Messages:
    45
    Occupation:
    Mechanical Engineer (CAD,CAE)
    Location:
    Poland, Gdańsk
    Balance:
    354Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Dear Chris Chopping, thank you for your reply.

    I think you are right about forces to get from game. I simulating G forces of a car by pitch and roll of motion platform but forces to get from game should be surge and sway. I will try to patch the LFS one few more times and try to get output data on virtual axis at least( I did not managed to do so yet).
  11. Peter_the _machinist

    Peter_the _machinist Member

    Joined:
    Nov 16, 2020
    Messages:
    45
    Occupation:
    Mechanical Engineer (CAD,CAE)
    Location:
    Poland, Gdańsk
    Balance:
    354Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Hi, I've managed to get the data to SMC3 utlity! The problem was probably that I've close the game repatched it and then run once again instead of close the game unpatched it run the game then close it and patch it. Thank you very much and till next bug! ;)
    • Like Like x 1
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Grab a copy of the SimTools manual, as that will help you understand how to configure SimTools: https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/

    There are also helpful member configuration tips in the FAQs: https://www.xsimulator.net/community/faq/simtools-settings-tips-and-tricks.18/category

    In particular check out how to refine a motion profile: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
    • Like Like x 1
  13. Chris Chopping

    Chris Chopping Member

    Joined:
    Jul 24, 2020
    Messages:
    35
    Occupation:
    Mechanical Engineer
    Location:
    Melbourne, Australia
    Balance:
    - 26Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Let me know if it works!
  14. Peter_the _machinist

    Peter_the _machinist Member

    Joined:
    Nov 16, 2020
    Messages:
    45
    Occupation:
    Mechanical Engineer (CAD,CAE)
    Location:
    Poland, Gdańsk
    Balance:
    354Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    It work like a charm, thank you! :D.

    I have another question. Probably to @RufusDufus if he is still here. I was wondering is there a way to set UDP output mode as a standard/automatically after utility start up. I Have small industrial computer as my SMC3 utility runner and after whole configuration proccess I would like to make it plug and play. I want to turn on the computer without screen and that's why I want it to sending data to arduino automatically.
    Last edited: Dec 8, 2020
  15. Jakob Carron

    Jakob Carron Member

    Joined:
    Feb 1, 2019
    Messages:
    41
    Balance:
    34Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi this is an amazing tutorial. I am having a problem with this though. I am making a 2dof project with 2 of the Chinese motor controllers. I have them all wired up right and I have imported the smc3 code to my Arduino. I set up the com ports in the smc3 utilities. When I put in all the settings on smc3 and turn on my motors they don't turn on no matter what. Also in the top left it will never let me turn on my motors on smc3 @noorbeast could you help at all?

    Attached Files:

  16. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You have not given any details of what motor controllers are being used, are they supported by SMC3 and if so are you using the correct Mode in the SMC3 code?
  17. Jakob Carron

    Jakob Carron Member

    Joined:
    Feb 1, 2019
    Messages:
    41
    Balance:
    34Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I am using 2 ibt-2 h bridges and I have set it to mode 2
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    From the instructions: Slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
    • If it is then that motor and feedback is wired correctly - proceed to test other motors.
    • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
  19. Jakob Carron

    Jakob Carron Member

    Joined:
    Feb 1, 2019
    Messages:
    41
    Balance:
    34Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    When I go and turn up the pwm max the motor does not move at all. Also in the top left it doesn't ever say that the motor is on
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,057
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,040Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You click the button top left where it says Off to turn the motor On.