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

SMC3 code information request (frequency and functions)

Discussion in 'DIY Motion Simulator Projects' started by motiondynamics, May 21, 2021.

  1. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    172
    Balance:
    1,035Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hello to all of you dear simulation colleagues.
    I have permanently ditched X-Sim (due to outdated forums and plugins) and am switching to SimTools because many of my friends speak highly of it.
    I have never used the SimTools interface and I have never used the PID code (SMC3) because for a few days I have been trying to understand what I need and what to download.
    I am having difficulty knowing which version of SMC3 I should use for my electronic system (Arduino Uno R3 + Monster Moto).
    I think I understand that I have to use the "MODE1" mode because my system requires (as I had already done with X-sim) 3 wires: 1PWM and 2 DIRECTIONS.

    QUESTIONS
    • The latest (newest) version of the official SMC3 code that I can use in MODE1 is SMC3 v1.0?
    • In the code "SMC3" I read 25Khz for Motor 1 and Motor 2, I read 31Khz for Motor 3. But I also read in a thread that the frequency is 490Hz and with a new code it is possible to increase it up to 20Khz (link). I have a lot of confusion about the operating frequency of Simtools (Khz), can you explain to me what frequency the official code really provides?
    • Where is it possible to choose the frequency 25Khz and 31Khz? Where can I select the frequency, from SMC3Utils or Simtools?
    • In the SMC3 v1.0 code I saw "A5 - Motion scaler pot input". I would like to know, what is the A5r pin for?
    I don't have very clear ideas, I would be grateful to you if you give me these answers because I want to start using Simtools.
    Thank you
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    172
    Balance:
    1,035Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    OK thanks noorbeast
    But the SMC3 v1.0 code transmits 25Khz and 31Khz frequency?
    How can I select the frequencies?
    And what use is pin A5 designed for?
  4. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 38 / -0
    My Motion Simulator:
    AC motor, Motion platform
    There is a Utility application which is used to configure the controller software.
  5. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    91
    Location:
    indonesia
    Balance:
    89Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    same question in my head too, what is A5 assigned for..?? i heard from i forget somewhere it says for setting the feedback gain, but i dont know how to use it, but dont take my word because i forget from where i read it...
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Questions related to SMC3 need go on the main SMC3 thread, that way the likes of @RufusDufus, who released the SMC3 code, will get an auto notification.
  7. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    172
    Balance:
    1,035Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Ok Thanks noorbeast, I have already proceeded to ask for help at the link you recommended