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 Wobble up and down problem as soon as I plug in USB cables

Discussion in 'DIY Motion Simulator Projects' started by motiondynamics, Dec 17, 2022.

  1. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi Gadget999, I didn't understand (I'm Italian and I use the translator).
    Can you explain it better?
    Thank you
    On this occasion, I wish you and all the enthusiasts a Happy New Year 2023.
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    A BLDC motornos normally 3 wires 120 degrees apart, there are 3 sets of magnetic fields.

    My guess is the BLDC driver is not being fed a new position and cant hold a stable position over time.

    Simtools and smc3 utils send regular updates on position. So the location is constantly updated.

    There are many ways to fix the problem using code, but you need to learn to program first !
  3. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    My brushless motor has 3 phases (H, V, W) and 3 Hall sensors.
    My drive has 3 phase outputs (H, V, W) and Hall inputs (H, V, W, 5v, gnd) and works with a maximum frequency of 1Khz.

    Your reasoning is correct, but then I don't understand one thing: during the oscillation, if I put a weight of 25Kg on the actuator, it stops oscillating. Because? If it was a problem you say, it should also swing when I put a 25Kg weight on it.
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Try a smaller p number
  5. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
  6. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,936
    Location:
    London
    Balance:
    11,844Coins
    Ratings:
    +474 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
  7. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    I've already tried, I got less dynamics, oscillation always present.
    But I think it is useless to find the cause. I have already said that the ideal solution is to modify the code so that the motors are not active when the usb cable is inserted, ie: the motors should only be powered by the pwm when the game starts (as the xsim software does).
    Is it possible to modify SMC3 so that the engines only have power when starting the game?
  8. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    It could be that your potentiometers are damage or dirty at center position. While using smc3 utility if the wobble only happen at center position and gone at other position then it could be it. This could explain why when you start a game the wobble is gone. Because in some game the center position might be slightly different than smc3 default center position.

    Also when you put weight it will push the position down and away from center position.
    Last edited: Jan 4, 2023
  9. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    No, the potentiometers are new and clean.
    It would be appropriate that the code creator gives us concrete help every now and then, especially for us who have paid for a license.
  10. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    If changing Windows language to English fix your problem, but not convenient to you, maybe you can try just changing Windows decimal symbol from comma(,) to period(.)
    (If your country use comma as decimal point).
  11. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    I already tried to change the language to English, but it doesn't work.
    Comma (,) with period (.)?

    Meaning what? Explain better.
  12. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Some country use comma as decimal point eg: 3452,12 instead of 3452.12
    This can be set in Windows
    But since changing language doesn't fix the issue then this may not be the problem.

    Your actuator is linear motion right? Like the d-box? Do you use sliding potentiometer or multi turn type that you attach directly to motor shaft?
  13. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    That's right, like d-box.
    I use linear potentiometers
    • Like Like x 1
  14. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    1.jpg

    From this picture I see that your PWMmax is only 50. That will make the motor weak. Try to increase it to 250 and see what happen.
  15. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi superwhitewish,
    I tried to change the PWMmax value by putting "200" but it doesn't change.
    I have something new: I noticed that even while driving (with rFactor, AI automatic driving), the engines go up and down (I noticed this with the HEAVE effect on straights).
    Could it be a BLDC drive problem?
  16. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    I did ask about your driver before because that was my first suspect.
    Some driver are for continuous running. They have slow acceleration and cannot change direction immediately.

    Run SMC3 and simulate square & triangle wave. If the motor keep overshoot during direction change than driver could be the problem.
  17. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi, I carried out the test as you advised me, you can see the result.
    Tell me.

    Attached Files:

    • s1.jpg
      s1.jpg
      File size:
      175.9 KB
      Views:
      115
    • s2.jpg
      s2.jpg
      File size:
      224.4 KB
      Views:
      119
  18. superwhitewish

    superwhitewish Member

    Joined:
    Jul 3, 2016
    Messages:
    60
    Occupation:
    Avionic Engineer
    Location:
    Malaysia
    Balance:
    225Coins
    Ratings:
    +49 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Response looks sharp. That's good. But I notice the oscillation happens in certain area only. Lower area A it oscillates but upper area B it stays steady.

    Sorry but I don't have any more idea right now.
    s1.jpg

    Maybe you can check the potentiometer installation. make sure they don't get loose when the actuator moving or don't get forced side way.
  19. 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
    Given the evident poor tracking I consider kp and PWMmax likely need to be higher, with PWMrev also needing a value around that of PWMmax.
  20. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    184
    Balance:
    1,097Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hello, the potentiometer is fixed, tightly locked.. The potentiometer is of very good quality (Bourne).

    I tried to increase both PWMmax and Kp, but the motors make an annoying noise (like frying).