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 Simhub stuttering problem

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

  1. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello,

    ive build a little simulator and im using a arduino uno with SMC3.

    For software, i run simhub since ive used it for dashboard's before and i liked it.
    i've got it working but one motor keep going up and down / stuttering. ( The motor at the right side)

    i cant figure out what causes this. Do i need to configure the arduino with the monitor utility first?

    Thanks in advance!
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    SMC3 does need to be properly configured, please post pictures of all settings.
  3. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    im not sure what is wrong

    Attached Files:

  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    How did you come to these particular settings?

    First change Fpwm to 25 then please please post a picture running the Sine test in OutMode.
  5. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Okay changed that
    Well, i played around a bit. You can probably tell i have no clue :sos

    Attached Files:

  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    While written with another control board in mind here is a gentle introduction as somewhere to hang a basic understanding, which includes links to more accurate but dense information as well: https://www.xsimulator.net/community/faq/a-laymans-analogy-guide-to-pids-pid-tuning.219/

    May I suggest starting again and do the recommended SMC3 base setup, and please tell us at what PWMmax value you had movement during the base setup, then post the Sine Test once that is done:
    1. Disconnect the motor power supply
    2. Make sure Simtools is not running – we’re not ready for that yet!
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB
    4. Run the Windows SMC3 Utility software and make sure it communicates with the Arduino (There is no need to set baud rates, they are not configurable)
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move)
    6. Set Clip to 255 (you need to do this first) and Limit to 255 (This will give you plenty of margin if something goes wrong while setting up)
    7. Turn on the power to your motors – nothing should move at this stage!
    8. Set Kp to about 400
    9. Now slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
      • If it is then that motor and feedback is wired correctly - proceed to test other motors.
      • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
    10. Do the above for each motor
    • Like Like x 1
  7. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    left motor seems to start moving at around 43 PWMmax and 45 for the right motor

    Posted both motor sine tests Motor 1 is my left motor and motor 2 my right.

    Attached Files:

  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please bump PWMmax up to 100 and run Sine again.
  9. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Now the arms are slightly knocking / bottoming out on the bottom frame. not enough to give a error though.

    Attached Files:

  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Getting closer, but for now can you please keep things at a baseline, so Fpid to 1 and Deadzone to zero.

    Please bump PWMmax up to 150, add PWMrev at 100, then run Sine again.
  11. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ooh it's waking up now. the left motor seems to have a " flat " spot at the upper curve

    Attached Files:

  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Try PWMmax at 200, PWMrev at 150 and see what it looks like.

    It may be that you have to fiddle with each motor setting independently, if one behaves slightly differently.
  13. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    i think the sim does well now, Thanks for the help Noorbeast!
    Only thing is that it knocks on the bottom frame, just a bit. i dont know how to limit the movement is the utility. Do i need a diffrent piece of software for that?
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,395
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,025Coins
    Ratings:
    +10,993 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    See here: https://www.xsimulator.net/communit...driver-and-windows-utilities.4957/#post-48121

    Clip Input Used to create a band at either limit of the target range beyond which any values sent to the SMC3 are clipped. In addition to this clipping, if the motor feedback does move beyond this range (typically through inertia), the SMC3 will attempt to brake the motors hard by driving them in reverse until they are back out of this limit zone. The value can be anything from 0-255 (however can’t be less than the current limit setting). Reverse braking is applied in the band between the Clip Input and the Max Limit settings. Reverse braking can be disabled - refer to PWMrev.

    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).

    [​IMG]
    • Like Like x 1
  15. Yeeet_warrior

    Yeeet_warrior New Member

    Joined:
    Oct 18, 2024
    Messages:
    14
    Balance:
    88Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Yeah i already tried that, still knockes slightly. i'm just going to put the arms at like 3 or 4 degrees and then it should be good, Guess i made the arms a bit long
    • Like Like x 1