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

Question Sending basic Simtools Motion data to Arduino via Serial Port

Discussion in 'SimTools DIY Version' started by Lodewijk, Sep 4, 2017.

  1. Lodewijk

    Lodewijk Member

    Joined:
    Feb 25, 2012
    Messages:
    32
    Occupation:
    Engineer
    Location:
    South Africa
    Balance:
    597Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    4DOF
    ###################################################

    Simulator

    Commercial or DIY: DIY
    DOF (Number of axles ): 1
    Actuators (DIY, SCN5 etc.): Servo motor
    Interface (Arduino, SCN, Mega, DIY etc. ): Arduino

    SimTools

    Version Number: 2.1 Demo
    Game Plugin where the error is happening: Live for Speed
    Settings (Relevant settings) As outlined in post below

    ###################################################

    I would like to set up a small test to send Simtools motion data (just one axis for now) to Arduino Serial Monitor. At the moment I don't have any actuators coupled, I just wanted to get a few LEDs or small servo motor turning witht motion data from Simtools.

    I have set up the Simtools Game Engine to write to COM16, 9600-8-N-1
    I have also set up Arduino to listen to COM16, 9600-8- N-1

    Pic 1.png

    I then run LFS, and I get data out on the virtual axis, as well as on the Tuning Centre

    Pic 2.png

    I don't however see anything on the Arduino Serial Monitor. I must admit, I only ever programmed my first Arduino this past Saturday, so I might be having a problem there.

    What am I missing?

    How should I configure Simtools, and Arduino to get just a simple 1 axis motion data to control a servo via Arduino? Any assistance would be highly appreciated.
    • Like Like x 1
    • Useful Useful x 1
    Last edited: Sep 4, 2017
  2. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
    Select an output rate and click save buddy.
    Then try again and you should be golden!
    yobuddy
    • Like Like x 1
  3. fourteenary

    fourteenary New Member

    Joined:
    Oct 21, 2018
    Messages:
    8
    Balance:
    299Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Hi Lodewijk

    Have you solved this issue? I am trying to DIY a 2DOF seat and I meet with the same issue now.

    Thanks,
    Marvin
  4. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
    @fourteenary,
    The problem is in the first pic he posted.

    You can see in the pic that the interface output has no 'Output Rate' selected.
    And the save button is not enabled, meaning the settings are incomplete and have not been saved.

    Basically, the problem here is there is no saved settings for the interface.
    Take care,
    yobuddy
  5. fourteenary

    fourteenary New Member

    Joined:
    Oct 21, 2018
    Messages:
    8
    Balance:
    299Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino
    Thanks yobuddy

    I got an advice in another thread, I will try that way to have the test.
  6. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,550Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    Did you found a solution ? I have quite the same problem...nothing works... Arduino doesn't seem to receive datas...
  7. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
    @Lebois,
    The problem was the settings were never saved.
    I can tell because if you look in the pics above, you can see there is not enough info in the interface section to enable the save button to use.
    Take care,
    yobuddy
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Saying you have a problem, without posting details, such as pictures of all of your settings, give members little to go on in terms of giving advice.
  9. Lebois

    Lebois (maybe I am wrong, but who knows...)

    Joined:
    Dec 10, 2018
    Messages:
    351
    Occupation:
    Math teacher
    Location:
    France
    Balance:
    2,550Coins
    Ratings:
    +207 / 2 / -0
    My Motion Simulator:
    2DOF
    I posted all the details on my problem on a new thread here, but I didn't solve it...

    Maybe you could have a look to it ? :)
  10. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0