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 2DOF Motion Rig Error

Discussion in 'Electronic and hardware generally' started by JimmyLässig, Sep 29, 2023.

  1. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hey guys, I am currently building a SRR for my thesis together with a classmate. We both started in September 2022 and are now in the end testing. Sadly, we got a problem and dont know how to fix it... The simulator is working completely fine in AC, but sometimes the motors move into a weird position when playing. Once they drove there, the simulator stops to move because it exceeded the motor limits. Here is a video where you can see the problem:
    https://www.youtube.com/shorts/FklWfMn0Vno?si=OtFmNsV2cbkOTNdg
    Sometimes this error happens after like two minutes, but also sessions for like 20 minutes are possible before this error happens. To get the motors moving again I simply have to start SMC3, where I can see that both motors have exceeded their limits... after starting smc3, the motors are moving to their center postion immediately. Then SimTools is also working again after closing SMC3.
    Here are a couple hardware facts:
    I am using 2 440W Motors from the Simukit website, with a 24V Power supply (also Simukit), To get the position of each Motor i am using a 10k Potentiometer. My motor controller is a 2x32 Sabertooth together with an Arduino Uno.
    Software: newest SMC3 version, Arduino Code SPS_softstart_8.2, SimToolsV3 with Assetto Corsa Plugin.
    Wiring is done as described in this tutorial: https://www.xsimulator.net/communit...ial-pid-motor-driver-sketch-w-softstart.9277/
    I will post my SMC3 and SimTools settings on Monday.
    It would be great if someone could help us.

    Attached Files:

  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The motors look to go out of range, exceeding set limits.

    It would be helpful to post pictures of SMC3 running the Sine test.

    And all SimTools game settings.
  3. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello, here are my software settings:

    Attached Files:

  4. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    In the picture "fehler" you can see that the pot line of the motors has exceeded the clipping max. This Screenshot was taken right after the error in the video happend.
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Why is this imaged named 'not connected', what does that mean?

    [​IMG]
  6. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Its called not connected because the Motor wasnt connected to the rig
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    At a guess try:
    pwmmax=200
    pwmrev=200

    Run a Sine test in Out Mode and please post pictures of the results, with the motors connected to the rig, so they are under their normal working load.
  8. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I ve done the sine test with my standard pwm signal of 100, Rig connected and person in it. I tried it for motor one and two

    Attached Files:

  9. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I dont know whats wrong with my PWM settings, in my opinion the SMC3 sine test is looking good... Could you please take a look at it @noorbeast ?
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As per earlier advice suspect they may need to be higher.
  11. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I changed the PWM Signal to 200, but the error still occurs. Is it possible that its a hardware problem and not a software problem?
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Yes it can be hardware, from faulty control board to poor USB cable or even electrical interference, I use ferrite rings and quality shielded cable to help with the latter.
  13. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,210
    Location:
    Italy
    Balance:
    8,261Coins
    Ratings:
    +1,112 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    And mind USB hubs could be a problem too.
    if you're using one hub, @JimmyLässig, try without the hub just to be sure it's not it
    • Agree Agree x 1
  14. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for the reply. On which cables do you use the ferrit rings? Only on the ones for the Poti for example or also for the power supply?
    Do you use shielded cables in generel or only for specific connections?
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    All of them, particularly power and pot cables.
    • Like Like x 1
  16. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hey guys, before i change all the cables etc I d like to measure the serial signal which gets to the Sabertooth with an oscilloscope. I already tried measuring between the S1 port and ground, but them some errors occured: I had a short PWM signal visible on the oscilloscope, the motors moved a bit and then stopped in this position. ( i dont think that they have communicated with SMC3). So now my question: Is there even a way to measure the S1 port properly??
  17. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    This pdf contains all of the schematics i use.

    Attached Files:

  18. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hey guys, I also tried SimTools V2 but the same error occurs. I also changed the wires to shielded ones and added ferrit rings. Still the same error.
    At this point I feel a bit hopeless, so I d be very thankful if someone could take a look at my schematics.
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Have you tried lowering Fpwm to 25?
  20. JimmyLässig

    JimmyLässig New Member Gold Contributor

    Joined:
    May 4, 2023
    Messages:
    12
    Balance:
    62Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Changed Fpwm to 25kHz, but didnt help anything, still the same error.