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 output arm shake problem

Discussion in 'SimTools DIY Version' started by yangsqr, May 11, 2020.

  1. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    The output arm movement encounters shake problem. I use SMC3, arduino and hall potentiometer. I have tested the hall potentiometer, the output is smooth and continuous.

    During output testing the situation as follows:
    1. When the output value is zero, there is no shake.
    2. Adjusting the output to any angle, when the output arm is in place, it starts to shark and cannot stop. (the movement process is smooth)
    3. Adjust the output value back to 0, most of the time there is no shake, and about 20% chance of shake again.


    I tried increasing the smoothing value in the Axis Assignments setting, but it will not reduce the shake.
    IMG_1189.JPG
  2. 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
    what does the pot signal look like in the SMC3 util program ?

    have you adjusted the PID settings inside the SMC3 ?
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,461
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,602Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Try adjusting your PID and add a little SMC3 dead zone.
  4. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    This is a test when I adjusted the potentiometer by hand (no motor connected) , it looks good.
    test.jpg
    • Winner Winner x 1
  5. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks guys
    Based on the experience of drones, I know that adjusting PID is a complicated task so there is no adjustment before. Now I will try to adjust in SMC3.
  6. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Without adjusting any parameters, The SMC3 "out mode - triangle" test is as follows, and it looks good.
    IMG_1200.JPG


    When I manually adjusted to a angle and stopped (SMC3 out mode - manual), output arm did not shake.
    Last edited: May 12, 2020
  7. 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
    please send us a video/image of the output on the sine wave

    setting Kp 300 Ki Zero and Kd zero is a good place to start

    (it looks like your Kp number in the triangle test is not big enough)
  8. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks SeatTime I will try this.
  9. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Sadly, the left motor died yesterday.... and it ’s unclear whether it ’s a motor failure or a drive failure
    The sine test is as follows:
  10. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,568Coins
    Ratings:
    +1,831 / 32 / -1
    If those are the PID settings you actually use its just a P controller though. For that output the math is simply (a Simtools axis, the setpoint - feedback) * single multiplier = motor speed. Other than that you just need to test for what direction they need to run. True its very easy to set P only but its quite a waste of a good PID controller. And theoretically a balanced system will never reach a setpoint using P only.
    Last edited: May 13, 2020
  11. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks to Gadget999&SeatTime, I have tried: Kp 300 Ki 0 and Kd 0, there is no shake now.
  12. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    What you said is very reasonable, now I shuould start to learn the principle of PID control
    Last edited: May 13, 2020
  13. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,461
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,602Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  14. 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
    your output should track the sine curve exactly - increase the P number so so the motor is working harder and the slowly add D until it is stable
  15. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I tried to increase kp to 1000, so... it seems that my motor is too slow?
    IMG_1246.JPG

    Attached Files:

  16. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,212Coins
    Ratings:
    +594 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Kp is not the only parameter. Please try increasing PWMax.

    Edit: And have a look here for an explanation of all SMC3 parameters.
    • Like Like x 1
  17. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks MarkusB, After the PWMmax increased to 150(adding more has no effect), the effect is very good, two curves almost coincide.
    IMG_1247.JPG
    • Like Like x 1
    Last edited: May 13, 2020
  18. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I increased the PWMmin to 80 and the curve looks better:)
    IMG_1248.JPG
  19. MarkusB

    MarkusB Well-Known Member Gold Contributor

    Joined:
    Jun 30, 2015
    Messages:
    552
    Location:
    Germany
    Balance:
    4,212Coins
    Ratings:
    +594 / 2 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Perfect. Note that the rig will probably behave different when you are sitting in it, so that you may need to re-adjust the settings again.

    When you are done with configuring the settings in SMC3 Utility, the next step will be to set up Game Engine.

    When I did this for the first time, I had very smooth motor movements in SMC3 Utility, but rather jittery movements with Game Engine's output testing.
    If you also see this happen, you may need to increase the Fpid value. In my case, I changed it to Fpid/4. After this, the motor movements were also nice and smooth in Game Engine. If this does not help, you also need to decrease Kp.
    • Like Like x 1
    • Informative Informative x 1
  20. yangsqr

    yangsqr Member

    Joined:
    Feb 2, 2019
    Messages:
    43
    Balance:
    - 22Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I will try more adjustments, your tips are very helpful. Thanks MarkusB