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 Code Information and PIN Setup

Discussion in 'DIY Motion Simulator Projects' started by motiondynamics, Oct 9, 2025 at 00:28.

  1. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    211
    Balance:
    1,245Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi everyone, I have a few questions:

    1) I'm using an Arduino UNO R3 and two BLDC drivers to drive two motors, so I'm using SMC3.ino in "Mode 1." The driver only has one PWM input and one EN input. I read the SMC3.ino code and saw that for each motor I can connect either PWM and one ENA (one direction), or a PWM and ENA-ENB (two directions). I'm wondering, is there a difference in efficiency between the two options? That is, if I use a driver with one PWM and one EN, or if I use a driver with one PWM and two ENB, is there a difference in quality, efficiency, and dynamics?

    2) I'd like more details on the PWM provided by Arduino, and the Duty Cycle. Is it a true PWM? Or a signal that resembles PWM?
    I don't know if there's a difference, but I'd like to delve deeper into this because I'm trying to understand how my system will work.

    3) I read the SMC3.ino code and saw that there's a pin called A5 (Motion scaler pot input). I understand that a POT (I assume 10K) can be connected to this pin, but what is it used for? What is it for?

    I look forward to your replies.
    Thanks
  2. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    211
    Balance:
    1,245Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    If you need more information or if something I've written isn't clear to you, please ask.
    I hope someone can provide the answers.
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,775
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    Tasmania, Australia
    Balance:
    152,463Coins
    Ratings:
    +11,078 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  4. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    211
    Balance:
    1,245Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    I prefer Arduino because I know it very well now.
    I would need to know the three answers; it's very important to me and I don't know them.
    Thanks, Noorbeast, your answers will be invaluable.
  5. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    211
    Balance:
    1,245Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Can someone answer my question 3?
    What is pin A5 (scaler pot input) for?
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,775
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    Tasmania, Australia
    Balance:
    152,463Coins
    Ratings:
    +11,078 / 56 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I appreciate you want to explore a new pathway for your own reasons. That said please be mindful of Community Etiquette: https://www.xsimulator.net/community/faq/community-etiquette.82/

    The first post in the SMC3 thread itself answers your question 3, under the 0.7 Update Notes: https://www.xsimulator.net/communit...3dof-motor-driver-and-windows-utilities.4957/

    Updates Version 0.7

    • Added a POT scaling input that can be used to scale the motion output based on the POT position
    • POT scaling can be setup as one of two modes - Linear or non-linear
    • DO NOT ENABLE POT SCALING UNLESS POT ATTACHED TO ARDUINO
    • AN5 used for POT scaling input
    • The non linear scaling is designed to try and reduce the overall motion but maintain the "smaller" movements as best possible - ie road noise and stuff, but scale back on the huge side to side motion you get in higher power cars.
    [​IMG]
  7. Radioproffi

    Radioproffi Active Member Gold Contributor

    Joined:
    May 15, 2014
    Messages:
    141
    Location:
    Lviv
    Balance:
    1,640Coins
    Ratings:
    +91 / 1 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform, 4DOF, 6DOF
    if you will use 360 deg pot, you can scale work area of crank to 90 degrees.
  8. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    211
    Balance:
    1,245Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF