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 SMC3 Arduino 3DOF Motor Driver and Windows Utilities

Discussion in 'SimTools compatible interfaces' started by RufusDufus, Dec 1, 2013.

  1. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Try setting your BitPerSec to 500000.

    Your axis allocations are way too high: https://www.xsimulator.net/community/faq/axis-assignment-percentage-totals.120/

    Make sure you have a sensible Default Axis Allocations, 25 is a good starting point, but should be refined later.

    This is what SimTools expects in terms of axis settings: https://www.xsimulator.net/community/faq/which-way-to-set-simtool-axis-movements.230/

    Test in Output Settings.

    If Output Testing is working then see the tips here on how to refine motion profiles: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
  2. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF

    Attached Files:

  3. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
  4. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF

    Any suggestion about smc3 settings?

    Attached Files:

  5. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    Any one can share some thoughts about my diagrams what I need to improve?
  6. Pedro Felizardo

    Pedro Felizardo New Member

    Joined:
    Dec 10, 2020
    Messages:
    1
    Balance:
    18Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
  7. Chris_Beeves

    Chris_Beeves Active Member Gold Contributor

    Joined:
    May 31, 2019
    Messages:
    349
    Balance:
    2,016Coins
    Ratings:
    +244 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Hey guys!

    I'm having trouble finding where in the arduino code I should set the PWM frequency for motor 1&2?
    I find it mentioned in many places, but can't figure out which one to edit. I want it at 5KHz.
    Or do you only change it through the windows utility?
  8. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Fpwm in SMC3Utils - The frequency of the selected Motor PWM. Note Motors 1 and 2 are tied together and will always have the same PWM frequency: https://www.xsimulator.net/communit...driver-and-windows-utilities.4957/#post-48121
    • Like Like x 1
  9. Chris_Beeves

    Chris_Beeves Active Member Gold Contributor

    Joined:
    May 31, 2019
    Messages:
    349
    Balance:
    2,016Coins
    Ratings:
    +244 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Yeah, that I did get, I just didn't find anywhere in the code to write it.

    So the answer would be; "You do it in the Windows utils?"
    Just so I don't get it wrong..
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Correct: "You do it in the Windows utils".

    The only thing that needs to be changed in the code is the Mode, if you happen to be using hardware that requires Mode2.
    • Informative Informative x 1
  11. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi @all
    I Changed my whole setup:
    Motiondynsmics Motors 25:1 Gears ibt2 Boards.
    Today i gave it a try.
    Same strange results:
    Motor 1 goes one direction. Green Line goes up and up until 255. Suddenly Motor 2 gets full speed like a turn over. Then both stopp.
    Any suggestions?
    Thanks Martin
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  13. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi.
    I make some Fotos today.
    Yes, it is in mode2.
    Code says: #Mode2
    Is this correct?
    Do i have to change anything else?
    Thanks Martin
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  15. Lucas Wollering

    Lucas Wollering New Member

    Joined:
    Dec 11, 2020
    Messages:
    19
    Occupation:
    Student
    Location:
    Germany
    Balance:
    87Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Did you manage to solve the problem? I have the same...
  16. Ian Pace

    Ian Pace Member

    Joined:
    Dec 17, 2017
    Messages:
    72
    Location:
    Gharghur - Malta
    Balance:
    39Coins
    Ratings:
    +28 / 0 / -0
    hi all,
    just bench testing one motor and got the below:

    upload_2021-3-8_14-0-0.png

    Does that look fine to you guys?
  17. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    311
    Location:
    Poland
    Balance:
    1,086Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    For me everything it's ok
    • Like Like x 1
  18. mhchong

    mhchong New Member

    Joined:
    Feb 28, 2021
    Messages:
    13
    Balance:
    - 123Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi All,
    I run SimTools and SMC3Utility at same machine. It is not working.

    When I run Output Testing. Nothing happen to my motor, and SMC3 Utility blue line no change.
    Is this project still need to use 2 computer?

    I have done below.
    upload_2021-3-14_19-32-53.png

    At the same computer i run Game Engine with below setup
    upload_2021-3-14_19-35-17.png

    When I run Output Testing. Nothing happen to my motor, and SMC3 Utility blue line no change.
    upload_2021-3-14_19-37-52.png

    Attached Files:

  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,148
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,584Coins
    Ratings:
    +10,904 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    No you do not need to use 2 computers.

    Make sure you are not running SMC3 and SimTools at the same time, as that will create a port conflict.

    In SimTools you need to have the Default profile configured for Output Testing to work.

    Also make sure that your computer is set to use English Local: https://www.xsimulator.net/community/faq/simtools-language-setting-bug-change-to-english-local.233/
  20. mhchong

    mhchong New Member

    Joined:
    Feb 28, 2021
    Messages:
    13
    Balance:
    - 123Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @noorbeast Thanks for your Fast reply

    In SimTools you need to have the Default profile configured for Output Testing to work
    What you mean by Default Profile?? You mean this?
    upload_2021-3-14_21-44-59.png


    My region Settings
    upload_2021-3-14_21-42-28.png

    I run Game Engine individually, the motor still no running.

    Attached Files: