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 Help to diagnose 2DOF crash.

Discussion in 'SimTools DIY Version' started by Mike Stuart, Jul 25, 2019.

  1. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,489Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    wiring.jpg
    is this what you did?
    • Like Like x 1
  2. ALXXX

    ALXXX 2Dof Motion in progress Gold Contributor

    Joined:
    Jan 21, 2021
    Messages:
    55
    Location:
    Stuttgart
    Balance:
    7Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF
    Oh thank you for this wiring diagram.
    Now I understand how i have to ground pin 8.
    No, at the end i havent done it till now.
    It seems to work correct by then, because i changed the settings. My directions ( orange ) were the problem. With this settings on the pictures it is working well with baudrate 500000
  3. ALXXX

    ALXXX 2Dof Motion in progress Gold Contributor

    Joined:
    Jan 21, 2021
    Messages:
    55
    Location:
    Stuttgart
    Balance:
    7Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF
    And in the game engine I limtited my axes to 90 percent
  4. hansvdm

    hansvdm Member Gold Contributor

    Joined:
    Sep 21, 2023
    Messages:
    57
    Occupation:
    Freelance
    Location:
    leiden Netherlands
    Balance:
    107Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    how do I change that? pin 8 on the ardunio R3 to groud and than reset button on the ardunio board?
  5. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    I know this is an old post but im new here. Had my chair working reasonably well but it was under powered. Upgraded to the sabertooth from the ibt-2 and now i get a constant jitter. My smc settings are far different just to get it to boot up and now it goes crazy 5 min into a race. I tried the solution you noted and maybe im missing something. Setting simtools to 115200 it stops responding all together. I put a jumper on pin 8 to ground and smc will no longer boot. What am i missing?
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you please post pictures of your SMC3 settings running the Sine test.
  7. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi, sorry, this is my first time posting so I dont know the SOP.
    I have a screen shot with the sine.
    Things I have tried today -
    New pots (180 degree)
    new ardino
    completely re-wired
    windows 10, then windows 11, then back to 10 (all fresh installs)
    new psu (upgraded to a mean well designed for dc motor handling)

    issue is a small crunching noise all of the time from the motors, like the motors are never sitting still or parking. The issues is worst if i increase pwmin or kp.

    Current screen shot shows a semi working setup however recently and for no reason at all, one of the motors will go to max and lock up or it begins to occilate like crazy. Reseting the motors only does not work and I have to reboot the entire ardino.

    HELP. im ready to toss this out a window.

    Thanks

    Attached Files:

  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The SMC3 settings suggest considerable overshoot and need for refinement.

    It is always hard to judge from a photo but your Fpwm seems high and your Kp unusually low. Similarly MaxLimits seems set pretty low:

    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]
  9. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    Thanks for the reply. I have changed the fpwm throughout the ranges but it didnt really seem to help. What would you suggest for that setting? I have tried kp 100-160. After 160 the chatter/jitter comes back with vengeance. It doesn't seem that smc is hitting limits. Instead of a motor going limp, it gives full power and locks in a max position. I have to fully restart the system for it to release the power to the motor.

    I was running much higher kp, min and max with the IBT-2 but i was having overload/drop out issues so I upgraded to the sabertooth. This is kinda when this oscillation issue showed up and I had to lower all of the power settings, however it was still playable. Now it randomly oscillates violently, or it will randomly slam max limits at full power. I used the walk through with the sabertooth but maybe there is a setting that I should change on that?

    Thanks
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    There are many possible gremlins running loose, all you can do is try and eliminate them one by one.

    The first is the jitter and SMC3 settings. The jitter could be electrical interference, low quality pots, or to an extent settings, more likely some combination.

    Before moving on to anything else the hardware and related settings in SMC3 must ensure accurate control. So set that as a first goal and deal with it systematically, tackling one aspect at a time, rather than messing with multiple things at the same time.
  11. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    Im not sure if you fully read everything but Ill give you a summary - The chair worked. It worked decent. Recently, it stopped working. Either the motors will go into insane vibration mode or they will lock in opposite directions. I recently upgraded to a sabertooth from the ibt-2 boards. This changed my smc settings considerably but still got it to work. (required way less pwmin to run and kp went from 350 to 150) Currently, with this issue, I have tried - New hall sensors (both Cahtl and the black generic ones 180degree) - no change, New power supply - No change, Re-installed windows and all drivers - No change, Designed and 3d printed new sensor mounts thinking they where too ridged - no change, Re-wired entire system - No change, New usb cord to the aurdino - No change.

    As posted above, there is some way to force a different bald rate by grounding pin 8, so I ran a wire from pin 8 to a ground on the aurdino - No longer would boot. I also tried to change the bald rate in simtools 3 from 50k to 215000 as suggested earlier in this thread - motion no longer worked in testing...

    My current thoughts are the motors are going bad or the new sabertooth board i got is defective but im happy to make any changes that someone can suggest. I am just in the weeds at this point.

    My chair is the 24v jazzy motors from amazon, a mean well 600w dc motor rated power supply, sabertooth 32 driver.

    My computer is a ryzen 5950x, 32g ram and 3090.
  12. Trigen

    Trigen Active Member

    Joined:
    Nov 25, 2018
    Messages:
    479
    Balance:
    2,842Coins
    Ratings:
    +177 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I have 2 of the 2x32 and I have the same issues as you. No matter what I do they will just go mental at random.times. eventually I just gave up. I couldn't trust them. I had them at 500k and 115. It was better at 115 but it would still flip out on me for no reason. Mostly it just stopped and you had to reset the whole thing but sometimes it would go crazy too.

    Now with new drivers I really don't have any issues. I can't remember the name right now and I'm not at home for the next few months but I'll try to sig them up but they have been really good

    Edit. https://www.xsimulator.net/community/threads/blame73s-2dof-seat-mover.6029/page-22#post-198335

    https://www.google.com/amp/s/www.cytron.io/p-30amp-5v-30v-dc-motor-driver
    Last edited: Jun 6, 2024
  13. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF

    I ordered the Cytron drivers, they will be here this week. Do you have a link to the setup for these? I have done the ibt and sabertooths but im assuming there is something new/needing changed in the code for them to work.

    Thanks ahead of time.
  14. Trigen

    Trigen Active Member

    Joined:
    Nov 25, 2018
    Messages:
    479
    Balance:
    2,842Coins
    Ratings:
    +177 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    • Friendly Friendly x 1
  15. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
  16. Yinger

    Yinger New Member

    Joined:
    May 12, 2023
    Messages:
    19
    Balance:
    54Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
  17. Trigen

    Trigen Active Member

    Joined:
    Nov 25, 2018
    Messages:
    479
    Balance:
    2,842Coins
    Ratings:
    +177 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I see its recommended. For myself i've not had any issues running it directly from the PSU. I've done 12v and 24v

    Im not sure on the battery connections.