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

Tutorial SPS - Sabertooth Packet Serial PID motor driver sketch w/SoftStart

Discussion in 'SimTools compatible interfaces' started by BlazinH, Nov 10, 2016.

  1. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,161
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,201Coins
    Ratings:
    +2,164 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    • Informative Informative x 1
  2. apointner

    apointner Siddhartha

    Joined:
    Aug 16, 2014
    Messages:
    63
    Location:
    N 48° 9'0.88" E 12° 5'45.84"
    Balance:
    764Coins
    Ratings:
    +17 / 3 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Just a question: Is there a Sabertooth Version
    available for quadro encoder feedback?
    With or without Kangaroo.
    I ask because i really need 360° endless support :sos
    Last edited: Nov 12, 2020
  3. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    have you tried a factory reset of the sabertooth EEPROM?
  4. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    wow.. i just uploaded the new SPS 8.2.
    My actuators feel like they travel much smoother testing with the SMC3 utility..
    THANK YOU VERY MUCH

    ok, i just tried to sit in my 6dof after updating.

    I have a problem where the actuators a going up and down in micro movements trying to keep the chair & frame level with no game input..

    i thought i can adjust the deadzone to stop these micro movements, but once i got on the chair, the micro movements up and down started again, any idea what i should adjust?

    @BlazinH @Historiker

    ***update***

    I tried to increase PWMmin, and adjust fpid values.. cant seem to get it stable..

    i feel like i have a broken 6dof.. :(
    Last edited: Nov 17, 2020
  5. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    I also have a problem where, everytime i start up the computer after a shutdown, i have to run the SMC3 utility once for each arduino / sabertooth pair before i can use simtools or mover.

    also, what is the img_path parameter in the SMC3 ini file?
  6. 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,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    That sounds very odd, have you check what processes auto start to see if something is interfering with the Arduino?

    If you disconnect then reconnect the USB cable will it initialise without running the SMC3 utility?

    Have you tries different USB cables and ports?
  7. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    ok, i was able to reduce almost stop the micro movements... i never really played with those settings like ks kd etc..

    wow, SPS 8.2 really feels smoother movements!

    Also, now i see that the img_path is just the screenshot location..

    so basically my start up procedure is as follows (i have arduino uno with sabertooth 2x60).

    1) no usb cables connected to PC.
    2)apply power and batteries to the circuits so that start first sabertooth with a 20 sec delay circuit for power application to arduino (i understand sabertooth has to be on before arduino is on)
    3) repeat for arduino sabertooth pair number 2 and number 3
    4) connect each arduino to a dedicated usb hub
    5) turn on PC
    6) plug the dedicated USB hub to PC
    7) run SMC3 for each arduino sabertooth pair and close the utility
    8) start using FlyPT mover or simtools

    once i shut down the PC, the only way my 6dof will work is if i follow these steps.
    basically if i don't run SMC3 after turning on my PC, nothing will happen with i use any of the motion cueing software

    WHAT AM I MISSING?
    Thanks for hearing my problem @noorbeast <3
    Last edited: Nov 18, 2020
  8. 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,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You should not need to use the SMC3 utility to initialise the Arduinos.

    What happens if you eliminate the hub and have the Arduinos directly connected to the computer when it boots up, do they then initialise properly and allow you to use FlyPT mover or SimTools?
  9. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    im going to give it a try tomorrow.
    but i am really likening this SPS 8.2
    granted, im still learning how to tune 6dof.
    i hope it was the hub that is stopping me from a proper update of the arduinos..

    going to need more ports.. i think i might have 3 extra.. but going to need longer usb cables
    • Old Old x 1
  10. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    success.. so it ended up being the USB hub.
    now i dont have to intialize SMC3 every time i turn on the computer.

    why a usb hub causes the arduino sabertooth pair not to save its intial settings, i have no idea..
    but now working like a charm with arduino plgged directly to PC

    many thanks @noorbeast @SilentChill
    • Winner Winner x 1
  11. francesca

    francesca New Member

    Joined:
    May 12, 2020
    Messages:
    5
    Balance:
    - 53Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    great job I tried it too and it works thanks again
  12. francesca

    francesca New Member

    Joined:
    May 12, 2020
    Messages:
    5
    Balance:
    - 53Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    hi i'm new i have a 3 dof with arduino and 2 sabertooth 2x32 i tried your sketch and it works thanks again it works on two motors but on 3 the pwmm is changed going to 2 any suggestions? I also have the problem of vibrating motors that I can not solve thanks and sorry for the trouble
  13. 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,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    See the first post of this thread, this code controls 2 motors only but you can use additional Arduinos to add more motors if needed.
    • Like Like x 1
  14. francesca

    francesca New Member

    Joined:
    May 12, 2020
    Messages:
    5
    Balance:
    - 53Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    thanks for answering me yes I know I loaded the code also in the second arduino but in the second it doesn't always change the pwmm
  15. 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,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Sorry I don't know what you mean, can you please post pictures or a video to explain further the issue on the second Arduino and third Sabertooth.

    Can you also post pictures of your Interface Settings.
  16. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    was there a new SMC3 sketch for arduino recently?
  17. 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,578Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  18. llluis

    llluis Active Member Gold Contributor

    Joined:
    Mar 30, 2017
    Messages:
    164
    Location:
    Quebec
    Balance:
    1,630Coins
    Ratings:
    +103 / 1 / -0
    My Motion Simulator:
    6DOF
    Nope. Are you looking for something specifically?
    • Like Like x 1
  19. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    i miss read not only the version date, but it was for the SMC3 utility.. ignore my last post!
  20. hannibal

    hannibal Active Member

    Joined:
    Sep 29, 2018
    Messages:
    677
    Balance:
    4,490Coins
    Ratings:
    +297 / 4 / -0
    My Motion Simulator:
    6DOF
    is there any info or references about SMC sabertooth arduino being paired with encoders instead of potentiometers?

    although i am in market for servo drives, i hate to see my sabertooth/arduino hardware left collecting dust, i would like to update them to encoders instead of using pots...