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:
    207
    Balance:
    1,221Coins
    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