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 Utils & INO file-Need to run 3rd motor @ 25kHz

Discussion in 'Miscellaneous' started by Eli Wizard, Feb 16, 2026 at 18:27.

  1. Eli Wizard

    Eli Wizard New Member

    Joined:
    Jan 22, 2017
    Messages:
    15
    Location:
    Ottawa
    Balance:
    40Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi All,

    my third motor is exclusively for heave and SMC3 UTIL 'motor3' only gives 4 or 31 kHz as options. Can I simply edit the file to 15 kHz? "Timer2FreqkHz = 15" And have all motors on 15kHz. Failing that my other option is to swap my least motor stressed to 3 as the heave axis is the one most stressed.

    Tks
    Last edited: Feb 16, 2026 at 21:13
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,995
    Location:
    London
    Balance:
    12,174Coins
    Ratings:
    +493 / 11 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    No, its because of the arduino board

    Uee another board, or 2 arduino uno boards
  3. Eli Wizard

    Eli Wizard New Member

    Joined:
    Jan 22, 2017
    Messages:
    15
    Location:
    Ottawa
    Balance:
    40Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for your reply.
    Could you give an example of "another board" (mega?), and or point me to a guide on using two Arduino?
    Is the second board "Interface B"?

    What is the limitation of the Uno?
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,995
    Location:
    London
    Balance:
    12,174Coins
    Ratings:
    +493 / 11 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    just use 2x arduino - simtools can use more than one board at a time

    2 motors on one and 1 on the other

    alternatively look for a comnpatible board with more pwm pins - you may need to make chages to the code
  5. Eli Wizard

    Eli Wizard New Member

    Joined:
    Jan 22, 2017
    Messages:
    15
    Location:
    Ottawa
    Balance:
    40Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    For now I'll just swap motors around. Motor2(roll) has the least load kp=150 maxpwm=200 compared to the needs of heave kp=380, maxpwm= 200. These are puny Honda wiper motors.
    I'm looking at the Arduino DUE and guess that I'll have to tune using SMC3 then use IDE to write frequencies into the code.
    I know I can use two arduino I'd like to avoid another long USB cable. Would a powered USB hub handle the Wheel and the two Arduino providing individual com ports?
    Thanks for your input.