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 SMC3 Testing

Discussion in 'SimTools DIY Version' started by Paul Shortland, Mar 30, 2019.

  1. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Hi,

    After a year offline I am trying to get my sim working again. It is a 2DOF Simukit running an Arduino Uno and a sabretooth 2x32.

    ###################################################

    Simulator

    1. Commercial or DIY: DIY
    2. DOF (Number of axles ): 2
    3. Actuators (DIY, SCN5 etc.): Truck Wipers
    4. Interface (Arduino, SCN, Mega, DIY etc. ): Arduino Uno

    SimTools

    1. Version Number: 2.3.1
    2. Game Plugin where the error is happening: Not got that far yet
    3. Settings (Relevant settings) Pics below
    ###################################################

    I have followed the instructions in this thread...
    https://www.xsimulator.net/communit...ket-serial-pid-motor-driver-w-softstart.9277/

    and the testing worked OK in SMC3, the motors moved when I raised PWMmax to 40. I then tried it with Simtools and got nothing so I went back to SMC3 but the on/off button wont stay set to on anymore.

    SMC3.jpg
    This is my SMC3 screen. Whenever I click 'On' for any motor it immediately returns to 'off'.

    Any ideas?

    Also any ideas on why the Simtools does nothing? So far I...
    Opened the firewall for it.
    Rebuilt the .net install
    Tweaked the baud rate to every number known to man

    settings are...
    ST1.png
    ST2.png
    Last edited: Apr 5, 2019
  2. 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
    Usually the reason for SMC3 to turn the motors off is that the potentiometer has exceeded its max or min value. This is a measure for protecting the mechanical setup.
    Try to manually move the motors back into their neutral position. After this, SMC3 should keep the motors on again.
    • Creative Creative x 1
  3. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Ah that indeed gets SMC3 working again. I think I will need to do some more SMC3 research though as have little idea on what the settings should be :(
  4. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Actually the problem seems to be the motors just spin 360 degrees and then cut out when the pot limit is reached. Every time it does it and I manually move the pot, the motor spins the same way again until it cuts out.

    Odd.

    Anybody got a hint?
  5. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,574Coins
    Ratings:
    +1,831 / 32 / -1
    Try reversing the motor direction by swapping motor leads.
    • Like Like x 1
    • Agree Agree x 1
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Your Interface Output Settings need to be updated for SimTools 2. Instead of axis defined like this <Axis1> it now has designate grouping for a or b in SimTools 2 for each axis assignment, like this <Axis1a>

    When using SMC2 the BitsPerSec would normally be 500000.
    • Like Like x 2
  7. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Thanks both. I ran out of time this weekend so will be back on the mission next Saturday :)
  8. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Back at it tonight with large success but not quite 100% :)

    I have the sim being controlled by SMC3 and both motors behave as expected, except I can't stop them moving without shutting down SMC3.

    If I then try using Sim Tools then nothing happens so I guess something in the set up is wrong for SMC3 and Sim Tools.

    My settings are below and it would be awesome if anyone knows what I am doing wrong :sos

    smc3_.png
    interface.png
    axis.png
  9. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Turns out the issue was just I had the pot sensors wired the wrong way round, we move onwards to SimTools!
  10. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,574Coins
    Ratings:
    +1,831 / 32 / -1
    Reversing the motor leads as suggested has the same effect SMC3 Testing. When using hall effect pots reversing the motor leads is the only way.

    You could have saved yourself some time too.
    Last edited: Apr 5, 2019
  11. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Luckily it was just a push pin swap on the Arduino, the delay was having to work a lot :(

    I now have SimTools running in test mode, that was being blocked by my firewall.

    Today's job, link the 2 PC's and get Project Cars to drive the sim. Nearly done now :)
    • Like Like x 1
  12. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Gave up with Project Cars and bought Project Cars 2, works fine :)
    • Like Like x 1
  13. Paul Shortland

    Paul Shortland Active Member

    Joined:
    May 13, 2015
    Messages:
    154
    Location:
    Northampton - UK
    Balance:
    317Coins
    Ratings:
    +74 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor
    Been doing some driving and it all 'works' but needs tuning as expected. Is there a decent set of starter settings for SMC3 and Axis for a 2DOF set up? Driving myself crazy reading loads of posts to try to find something :confused: