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 Arduino 3DOF Motor Driver with SoftStart

Discussion in 'SimTools compatible interfaces' started by BlazinH, Jan 4, 2017.

  1. iLLuac4

    iLLuac4 Active Member

    Joined:
    Jun 19, 2019
    Messages:
    130
    Balance:
    884Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    2DOF
    My first two steps to troubleshoot would be to try bound rate 460800 and lover the com port to less than 10.
    Bound rate depends on the serial chip being used on the arduino board. If it is ch340 then 460800 would be a way to go.

    CH340 supports common baud rate: 50,75,100,110,134.5,150,300,600,900,1200,1800,2400,3600,4800,9600,14400,19200,28800, 33600,38400, 56000,57600,76800,115200,128000,153600,230400,460800,921600,1500000,2000000
    Last edited: Jan 4, 2023
  2. Design89

    Design89 Member

    Joined:
    Oct 25, 2022
    Messages:
    32
    Location:
    Netherlands
    Balance:
    214Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I uploaded the soft start to my Arduino.
    Startup the Arduino and only motor 1 and 2 are moving forward, this is what I have in SMC3
    Motor 1 and 2 turning 1 direction.JPG
    Motor 3 is not turning at all..
    What could be the problem?
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    C
    Check your wiring, in particular make sure your motor is not wired backwards.
  4. Design89

    Design89 Member

    Joined:
    Oct 25, 2022
    Messages:
    32
    Location:
    Netherlands
    Balance:
    214Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    What exactly do you mean?
    Reversing the + and - of the motor only makes the motor turn the other way. This is what the IBT2 does, isn't it?
    Could it be that the wires need to be connected differently than described?
    The Arduino code states:

    o|7 Motor 3 ENB
    o|6~ Motor 3 ENA
    o|5~ Motor 2 ENB
    o|4 Motor 2 ENA
    o|3~ Motor 1 ENB
    o|2 Motor 1 ENA

    3, 5 and 6 are PWM.

    But the connection says:

    ENA ----> IN1/RPWM
    ENB --+-> EN1/R_EN
    +-> EN2/L_EN (ie connect ENB to both R_EN and L_EN)
    PWM ----> IN2/L_PWM

    ENA should be PWM? Or not?
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    What I meant is as seen here at 26:04 onward: https://www.xsimulator.net/community/threads/new-video-on-explaining-what-i-know-about-smc3.17092/
  6. Design89

    Design89 Member

    Joined:
    Oct 25, 2022
    Messages:
    32
    Location:
    Netherlands
    Balance:
    214Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
  7. Arta Yasa

    Arta Yasa Member

    Joined:
    Jan 27, 2021
    Messages:
    159
    Balance:
    788Coins
    Ratings:
    +14 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi bro i try your code and set ssloop to 100 until 500 but first start still same very fast.
    And also when i set pwmmax exsample 150, and save the value after that i close the smc3 and open again the pwmmax become 11 sir, its bug or i wrong setup sir?
  8. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    The same thing happens to me too: I set SSloop to 1000, soft, linear movement. When I open SMC3Utils, in PWMmax the value of 150 becomes 12.
    It's a bug in the code, it would be good for the creator to fix it..
    However the PWMmax value, even if I read "12" is 150.
  9. Ronan Design

    Ronan Design Roman Design - Custom MSFS Scenery

    Joined:
    Jun 4, 2021
    Messages:
    182
    Occupation:
    Web Designer, MSFS Scenery Designer
    Location:
    Toronto, Canada
    Balance:
    1,245Coins
    Ratings:
    +65 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Any news on the fix for the values not saved bug? Does it save values for everyone and the bug was a glitch or does it really not save anything for everyone? I'm trying to figure out which SMC3 mod I should use for my new 6DOF build, and I'd like a soft start...
  10. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,935
    Location:
    London
    Balance:
    11,838Coins
    Ratings:
    +473 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    somebody did code a soft startup code that should work
  11. Ronan Design

    Ronan Design Roman Design - Custom MSFS Scenery

    Joined:
    Jun 4, 2021
    Messages:
    182
    Occupation:
    Web Designer, MSFS Scenery Designer
    Location:
    Toronto, Canada
    Balance:
    1,245Coins
    Ratings:
    +65 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino