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 Problem with uncontrolled motor rotation in the opposite direction at random times

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Miszor, Nov 16, 2024.

  1. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hello, today I will probably break the record for questions on the forum, but I would like to ask one more thing that is important to me. I managed to successfully configure SMC3 Utils and SimTools, but I have a problem with uncontrolled rotation of one of the motors in the opposite direction. By default, the range of motion should be a few degrees from the "0" position, but in my case it rarely happens that the one motor starts turning in the opposite direction by 360 degrees. I don't know whether it will make one turn or several in the opposite direction, because the arm has an aluminum profile in its path that stops the motor. After switching on the power (Arduino and motors) again, the Hall sensor reads the positions correctly and the motor is ready to work again. Today it happened to me 3 times during the day. I use 250W 75 rpm motors, Hall sensors and IBT2.
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you please post pictures of the SMC3 settings for the problem motor running the Sine test.
  3. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Here is a screenshot, the settings are the same in the second motor, but such things do not occur there

    Attached Files:

  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  5. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Thanks for the reply, actually when I went to SimTools I forgot there was anything else in the manual. Tomorrow I will set these parameters and test further. I hope this helps
    Last edited by a moderator: Nov 16, 2024
  6. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I analyzed these parameters. The Clip Input and Max Limits values match the design limits of my platform. I would even say that the value of 255 is not enough. I need something to slow down the movement when the values are approaching the max. Is this what the PWMrev parameter is for? Maybe I could use it to ensure that it does not exceed the limit values
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Yes, PWMrev is used to drive the motors in reverse (hard brake) if they enter the limit zone.
  8. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    This parameter doesn't seem to work for me... After setting it according to the recommendations (the same value as PWMmax), after exceeding the Max Limit value, the engines turn off and I have to manually move them again to be able to turn them on again.
  9. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Maybe I'll explain the problem in more detail, because it happened again. I tested motor 1 (I have problems with it) in MOTION mode, then I selected the manual option to reset its position and move on to testing motor 2. Motor 1 reset its position so I selected the Motor 2 option and then Motor 1 made an uncontrolled rotation in the opposite direction by approximately 270 degrees. Now, after running SMC3 Utils, I see that the zero position of the Hall sensor in Motor 1 has been lost and is in a different place than it was set. The behavior of motor 1 with this rotation resembled something like free movement, as if it received a momentary current surge that allowed it to rotate. Could it be the fault of the Hall sensor, which loses its position, which causes the motor to suddenly rotate to obtain a new "0"? The belt is tight, it is unlikely that it will jump
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Turning off after exceeding parameter is a safety feature.
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Are the Has sensors properly centered, they are not like a pot so can be rotated past their functional range.
  12. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    What do you mean by the ability to rotate them outside the functional range? If the Green line in SMC3 Utils goes up or down from center (caused by rotation) a break occurs and the chart reappears from the opposite side and re-centering is possible. At least that's how I understand it, maybe I'm making a mistake somewhere in the physical setting of the sensor.
  13. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    A Hall sensor does not have a physical stop, and works with a magnet, so say it is a 180 degree type it can be rotated way pass that and the magnet field can still be in play.

    Power off the motor and disconnect the Hall sensor from it, turn it by hand through its full range while watching SNC3 and make sure it is correctly centered.
  14. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I'm using the P3022-V1-CW360 model, so it's probably the 360-degree version. I don't know if it is possible to set the "0" position incorrectly. But I'll try to manually find it again tomorrow.
  15. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Ok, I'm done with the next tests. I will describe the situation:
    1. I disconnected the motor from the sensor, set its zero position again, then connected it to the motor again
    2. All tests worked, motion, sine, etc. Switching between motors also caused no problems.
    3. I moved on to testing in SimTools and LFS, there too without any problems, I drove about 10 laps.
    4. I turned off the platform, disconnected it from the power supply and USB. After some time, I came back to test again, also in LFS I did not encounter any problems. After completing the tests, I turned off SimTools and switched to SMC3 Utils (I did not turn off the motors' power or disconnect the USB cable). When I started SMC3 Utils, the problematic motor once again rotated in the opposite direction by about 300 degrees, establishing a new zero position of the sensor (Even though the "Monitor" option was set). I don't know if the belt jumped, it probably shouldn't because it is stretched just like in a motor that has no problems. Conclusions: I would love to know if all my steps are correct. Maybe I shouldn't run SMC3 Utils after SimTools was running, or the motors shouldn't be powered on when SMC3 starts. Only from what I remember, uncontrolled rotation also happened to me yesterday in LFS, so I don't know if it's specifically SMC3 Utils' fault. I would assume that either IBT2 or the hall sensor is damaged.


    I would also like to add that at the very beginning, when starting the motors in SMC3 Utils for the first time, I made a mistake, as a result of which the motor with which I now have a problem rotated uncontrollably. This was because I accidentally connected + and - from the power supply to the M+ and M- inputs, and the motor to B+ and B-. After swapping the connections, everything started working, but now I have problems with this motors. I wonder if an incorrect connection could have damaged something, causing such strange things to happen now.
  16. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Yes damage is a possibility from incorrect wiring.

    You can't run SMC3 Utility and SimTools at the same time, as that will cause a port conflict, but each should work if independently run.
  17. Miszor

    Miszor New Member

    Joined:
    Jan 16, 2024
    Messages:
    23
    Balance:
    114Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    So, would you suggest replacing IBT2? It's a bit strange because I don't know if it has anything to do with the position. But I've already ordered spare pieces, they're not expensive.

    As for running at the same time, yes, I know that they cannot work together. When I turn one on, I turn the other off.
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,337
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,687Coins
    Ratings:
    +10,954 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    First try swapping it to the other motor and see if the problem follows or not, that should help determine if it is damaged or not.