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

    RacinFool New Member

    Joined:
    Thursday
    Messages:
    2
    Balance:
    12Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 4DOF

    Attached is my screenshot from my attempt at sim tools motor testing (again, works in smc3 utils motor test- both my motors). Tried the baud rate as pictured (500000 as well as at 115200). My hardware did not work connecting pin 8 to ground and things stopped working properly when testing in SMC3 utils. Without pin 8 to ground, it still worked in smc3 utils. I never tried grounding pin 8 during sim tools testing though because things didn't work in smc3 utils.

    Also, I tried my hand at the IBT 2 & arduino with SMC3 sketch as well because I'll eventually add a traction loss and surge axis eventually. I was able to get my sabertooth and ardiuno communicating with SMC3 utils, but couldn't get the SMC3 sketch for arduino and IBT2 to communicat with SMC3 utils. Main problem is the motors don't get recognized and I can't turn them "on" to test with the PWM slider. I tried multiple versions of the SMC3 sketches for the IBT2 set up with no luck with any version. Wiring seems correct and my rotary sensors get picked up when testing (rotating them when in SMC3 utils), just no motor movement or voltage output in motor pins on the IBT2. I confirmed voltage from power source was working. Thanks for the help, I'm excited to get things moving. Just not sure what i'm missing at this stage.

    Attached Files:

  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,866
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    Tasmania, Australia
    Balance:
    152,827Coins
    Ratings:
    +11,109 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    That looks right, which suggests a port or communications issue.

    To narrow that down can you please post a picture of SMC3 running the Sine test.

    If that confirms the same port please try temporarily disabling your firewall and antivirus, reinstall SimTools with them off, then test again while they are off. If that works you may need to whitelist SimTools.