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

Formula 3 simulator :)

Discussion in 'DIY Motion Simulator Projects' started by Gadget999, Sep 26, 2016.

  1. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    so i tried a copy of simtools - cant seem to get it to communicate - however the SMC3 program does work

    is there a quickstart guide anywhere ?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The documentation is here, though a little dated in parts for SimTools 2: https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/

    The main difference needed for SimTools is in Input Settings, where instead of axis being defined like this <Axis1> it is now like this to designate grouping for a or b: <Axis1a>

    For a 2DOF you can ignore the b grouping, it wont be needed.

    Here are the steps to create and refine motion profiles, as one is needed for each game: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/

    The demo version of SimToos 2 has the fully functional plugin for Live For Speed included for testing purposes, it works fine with the free demo version of LFS.

    Conditions apply but DIY projects are eligible for a free SimTools 2 DIY license, see here for details: https://www.xsimulator.net/community/faq/request-a-free-diy-simtools-2-0-license.262/
  3. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    thanks for the advice noorbeast :)

    i will get lfs downloaded and see if i can make it move

    i will probably use rfactor when i have worked it out
    • Like Like x 1
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    so far i have downloaded LFS and simtools 2.1

    i am trying to get the Sim to drive manually using the mouse

    my guess is the axis settings are wrong - is there a standard setup for a 2 motor sim using an arduino

    I am using the Simforce GT profile

    am i correct you need only one axis setup Axis(a) ?

    when i click 'Turn on' in output testing the arduino lights up but nothing happens with the motors
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You first need to run LFS for a couple of laps before patching it for motion, as some key files are generated. If you did not do that then unpatch it, run a lap or two, then re patch for motion.

    You do need to properly configure the Interface settings to suit the code you are running. The main change with SimTools 2 is that instead of axis defined like this <Axis1> it is now like this to designate grouping for a or b: <Axis1a>

    You won't need the b grouping for a 3DOF, so just ignore that.

    A stock profile may get you started, depending on how your rig is configured, but to get the most out of it you need to learn how to make and refine profiles, which takes time, practice and experimentation.

    To do so you need to create a Default Axis Assignment profile and you can test the sim moves manually in Output Testing. This is how SimTools expects the setting to move the rig and the Dir boxes being checked or unchecked determins which way each axis/force moves: https://www.xsimulator.net/community/faq/which-way-to-set-simtool-axis-movements.230/

    Next you need to create a LFS Axis Assignment profile and refine the motion profile settings: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
  6. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Axis.png interface.png

    these are the settings for the Axis and interface

    do I have the correct settings for the Arduino and the Axis
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As per my earlier advice your Interface Output needs to be like this <Axis1a>and this <Axis2a>
  8. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Thanks again Noorbeast

    so the settings should be

    L7FR7F
    L<Axis1a>R<Axis2a>
    L7FR7F

    i will plug them in tomorrow and give it a go

    how do you adjust the PID settings ? do they get set by the sway % numbers
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    If you are using SMC3 then the PID is managed via its Windows Utility.
  10. dr.feelgood

    dr.feelgood Member Gold Contributor

    Joined:
    Apr 17, 2017
    Messages:
    86
    Location:
    FINLAND
    Balance:
    481Coins
    Ratings:
    +43 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi.

    If it still is not working to you, change values in Interface Settings-screen:

    Stop bits: 1
    BitsPerSec: 500000
    Output - Bit Range: 10
    Output type - Binary

    ...somebody should really update the documentation...
    • Like Like x 2
  11. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    so far not getting anywhere :(

    the rig will move when i use SMCutils

    but not with simtools V2.1

    the interface looks like this

    is it correct ?

    perhaps i need to try an older version of simtools ?

    interface2.png
    Last edited: Jul 12, 2017
  12. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    my guess from looking at the Arduino code is the format needs to be like this

    // [Axx],[Bxx],[Cxx] Send position updates for Motor 1,2,3 where xx is the binary position limitted to range 0-1024

    [A<Axis1a>],[B<Axis2a>],[C<Axis3a>]

    the number will be binary 0 - 1023 (10 bit)

    i will try it again tomorrow
    Last edited: Jul 12, 2017
  13. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  14. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,603Coins
    Ratings:
    +1,008 / 8 / -1
    • Like Like x 2
  15. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    we have motion !

    thanks everyone for the help especially noorbeast - there is a lot of conflicting information and it takes time to realise you are reading the wrong thread !

    hopefully now i will be able to assist someone else in my position to return the favour to the community

    right time to play with the settings and take this sim for a drive :)

    i will post a video up soon
    • Like Like x 2
    • Winner Winner x 1
  16. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    ok i have installed simtools and installed my DIY license
    i have patched the game to c:\LFS\

    as i open the game i get a microsoft.net error message

    see below

    Code:
    ---------------------------------------------------------------------------
    
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    System.ComponentModel.Win32Exception (0x80004005): Only part of a ReadProcessMemory or WriteProcessMemory request was completed
       at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)
       at System.Diagnostics.ProcessManager.GetModuleInfos(Int32 processId)
       at System.Diagnostics.Process.get_Modules()
       at SimTools_GameManager.frmMain.tmr_IsGameRunning_Tick(Object sender, EventArgs e)
       at System.Windows.Forms.Timer.OnTick(EventArgs e)
       at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.2101.1 built by: NET47REL1LAST
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    SimTools_GameManager
        Assembly Version: 0.2.1.0
        Win32 Version: 0.2.1.0
        CodeBase: file:///C:/Program%20Files%20(x86)/SimTools/SimTools_GameManager.exe
    ----------------------------------------
    xdFZySjlJvJuSyJCrKNFqiOVuiS
        Assembly Version: 0.0.0.0
        Win32 Version: 0.2.1.0
        CodeBase: file:///C:/Program%20Files%20(x86)/SimTools/SimTools_GameManager.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 10.0.0.0
        Win32 Version: 14.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1647.0 built by: NETFXREL3STAGE
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Accessibility
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1647.0 built by: NETFXREL3STAGE
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    Game_PluginAPI
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files%20(x86)/SimTools/Game_PluginAPI.DLL
    ----------------------------------------
    System.Management
        Assembly Version: 4.0.0.0
        Win32 Version: 4.6.1649.1 built by: NETFXREL3STAGE
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    KartRacingPro_GamePlugin
        Assembly Version: 2.0.1.0
        Win32 Version: 2.0.1.0
        CodeBase: file:///C:/Users/User/AppData/Local/SimTools/GamePlugins/KartRacingPro_GamePlugin.dll
    ----------------------------------------
    LiveForSpeed_GamePlugin
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.0.0
        CodeBase: file:///C:/Users/User/AppData/Local/SimTools/GamePlugins/LiveForSpeed_GamePlugin.dll
    ----------------------------------------
    Microsoft.GeneratedCode
        Assembly Version: 1.0.0.0
        Win32 Version: 4.6.1586.0 built by: NETFXREL2
        CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    
    For example:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    
    ----------------------------------------------------------------------------
    any suggestions greatly appreciated :(
  17. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Try downloading the latest windows .NET build from microsoft, uninstall the existing .NET then do a clean reinstall.
  18. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    H
    i noorbeast i will give that a go.

    (When i originally went to install .net it told me it was part of the operating system and i did not need to reinstall it.)
  19. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    not had much luck installing .net - windows is telling me i don't need to install it because it is part of the operating system
  20. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    does simtools need to be run in a compatibility mode for an earlier version of windows ?