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

Arduino Uno R3 code, for my H-Bridge (1PWM, 2DIR)

Discussion in 'SimTools compatible interfaces' started by motiondynamics, May 20, 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 everybody,
    I am new to the forum and want to purchase SimTools to use with my system.
    My electronics are:

    Arduino Uno R3
    Bridge-H (1PWM, INA1-INA2)

    I got lost among the posts, I could not find the code for my Atmega328P (Arduino).
    Furthermore, I also need to know where I can find the electronic scheme

    Where can I download them from?
    Can you give me the link?
    Thank you
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 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
    Hi noorbeast, the H-Bridge electronic board I use is the "Monster Motor Board" (MODE1), so it works with 3 wires:

    1 PWM
    2 DIRECTION


    QUESTIONS
    1) The latest (most recent) version of the official SMC3 code that I can use in MODE1 is SMC3 v1.0?

    2) In the "SMC3" code I read 25Khz for Motor 1 and Motor 2, 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 Simtools operating frequency (Khz), can you explain to me what frequency the code provides?

    3) Is it possible to choose the frequency 25Khz and 31Khz? Where can I select the frequency, from SMC3Utils or Simtools?

    4) In the SMC3 v1.0 code I saw "A5 - Motion scaler pot input", what use does it have?