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

Motor driver

Discussion in 'New users start here - FAQ' started by Stahlwolle, Dec 1, 2024.

  1. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF

    Attached Files:

  2. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Maybe some interferrences because of Magnetic fields of the motors?
    The IB2 drivers dont even get warm, the engines have a lot of power...
  3. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    202
    Location:
    Polska
    Balance:
    864Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That's not it, the motors should not excite themselves without information from the game, do the motors make a full turn ?
    I think Kp-500 is too much, set 300-400 this parameter is responsible for the speed of reaching the position set by the arduino and your motors have 120 rpm where most 2DOF motors use 60-80 rpm and this is enough.
    • Like Like x 1
  4. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Mine have 75/min.... I'll try 300 but did before, the most direct movements I had were at 550...
  5. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Iver tried 300 and the Same result.I can drive for a while, sometimes longer, sometimes shorter, and at some point both engines will run continuously or they will both simply stop.
    It also has nothing to do with whether the engine is under load at the time, it can happen on a straight stretch or sometimes in the menu.
  6. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Here is a short video, again on a straight road, before that everything was working fine. It is also strange that both motors show the same behavior. There must be something wrong with the transmission to the Arduino.
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Try raising the Max Limits:

    Max Limits Used to create a band at either limit of the feedback range beyond which if the motors move (typically through inertia) the SMC3 will automatically shutdown the drivers and keep them disabled until reset. This is essentially a safety mechanism if something goes wrong. The value can be between 0-255 (however can’t be greater than the current clip setting).

    And Fpwm at 25.
  8. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    I set fpwm to 25.
    No difference...

    If I lower the max limits the problem only gets worse, because the engines are of course switched off sooner because the limit is reached sooner
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Max Limits is set to 0 in the picture you posted:

    [​IMG]

    My suggestions are aimed at systematically establishing what I would normally expect as base SMC3 setting, before then considering SimTools settings. So can you please confirm what your Max Limits settings are.

    Then please post pictures of all your SimTools settings.
    Last edited: Dec 14, 2024
  10. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    I began with the Standards, ki,KD,KS :0
    Pwm min 0, pwm Max 0, Max Limits and clip Input 255. When i raise the Max Limits, the engines will fail even sooner.
    I'll Show you on sunday.
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As already mentioned:
    Hence it sounds like the hardware may not have adequate control and exceeds that Max Limits safety setting.

    Try lowering your Clip Limits.

    And also consider that the most effective torque utilisation is at 90 degrees and that degrades in a nonlinear manner, rapidly so after around 38-40 degrees up and down. So try and limit lever range to a max of 40 degrees up and 40 degrees down.

    What I mean is τ = r F sin(θ): https://www.omnicalculator.com/physics/torque
    Last edited: Dec 14, 2024
  12. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Everything is great now! It was the Arduino Uno, I connected a Nano that I had lying around and I've been driving for half an hour straight without any problems
    • Winner Winner x 1
    • Informative Informative x 1
  13. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    202
    Location:
    Polska
    Balance:
    864Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    For the information of others, show this arduino uno which was faulty
  14. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    It is an Arduino Uno clone of the brand "Leikurvo".
    What was strange was that the Unos were recognized as
    "unknown FT232R USB UART"
    under Windows despite the ch340 driver being installed.
    On one computer I had to install this UART driver manually, on another the driver was installed automatically by Windows.
    Otherwise it is a typical Chinese Uno clone without a printed company label, so visually no difference to other China Uno clones...
  15. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    I have now disguised the simulator a little and forgot to mirror the logo when milling I am expanding it directly with a drift axle...
    Do you think it is better to use two IBT2 for the front motors and the 100A controller for the drift axle or the 100A for the front and IBT2 for drift? I would have to control two Arduinos in both cases, since IBT2 runs in Mode2 and the other controller in Mode1, right?

    Attached Files:

    • Like Like x 1
  16. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    • Like Like x 1
  17. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    202
    Location:
    Polska
    Balance:
    864Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    The 100A for the front and IBT2 for drift is better :)
    • Like Like x 1
  18. Stahlwolle

    Stahlwolle Member

    Joined:
    Nov 28, 2024
    Messages:
    39
    Balance:
    198Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF
    Did you connect just one power supply to the 100A controller or two?
  19. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    202
    Location:
    Polska
    Balance:
    864Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I connected two 24V 25A power supplies in parallel to 100A bridge, it works without any problem
    • Like Like x 1
  20. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    202
    Location:
    Polska
    Balance:
    864Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I connected two 24V 25A power supplies in parallel to 100A bridge, it works without any problem
    • Like Like x 1