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

Tutorial SMC3 Arduino 3DOF Motor Driver and Windows Utilities

Discussion in 'SimTools compatible interfaces' started by RufusDufus, Dec 1, 2013.

  1. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    Good pickup @ericRacer, someone told me about that a while back and I forgot all about it. I need to dig the source files out and post an update.

    If anyone wants the fix in a hurry just make the changes as per eric's screenshot above.
    If you don't make the change then all motors will use the Motor 1 "max limit" setup using SMC3 Utils.
    • Like Like x 2
    • Informative Informative x 1
  2. luky_90

    luky_90 Member

    Joined:
    Mar 3, 2016
    Messages:
    106
    Location:
    Italy
    Balance:
    276Coins
    Ratings:
    +16 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
  3. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    Yes these work, I'm pretty sure there has been a wiring diagram or pinout posted earlier in the thread.
  4. ericRacer

    ericRacer You get old because you stop playing ! Gold Contributor

    Joined:
    Jun 11, 2009
    Messages:
    251
    Occupation:
    Pilot
    Location:
    Canada, Quebec
    Balance:
    989Coins
    Ratings:
    +147 / 2 / -0
    My Motion Simulator:
    3DOF, Arduino, Motion platform
    I use it for 2 years now and it works very well ! (IBT-2)
  5. Intruder

    Intruder Member

    Joined:
    Dec 16, 2015
    Messages:
    74
    Location:
    Germany
    Balance:
    435Coins
    Ratings:
    +24 / 0 / -0
    Hi there! Thanks a lot for your great work with this code and tool!

    And a question, is the us-time format problem solved yet?
  6. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    Hi, I believe you are referring to an issue that was actually with Simtools software not SMC3.

    I am not sure if the latest version fixed it or not, maybe someone else can confirm?
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,539
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,052Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  8. Intruder

    Intruder Member

    Joined:
    Dec 16, 2015
    Messages:
    74
    Location:
    Germany
    Balance:
    435Coins
    Ratings:
    +24 / 0 / -0
    Thanks noorbeast! Helped me a lot!
  9. steveh2112

    steveh2112 Member

    Joined:
    May 12, 2014
    Messages:
    104
    Occupation:
    semi retired
    Location:
    Phuket, Thailand
    Balance:
    1,145Coins
    Ratings:
    +22 / 1 / -0
    My Motion Simulator:
    2DOF
    hi, i just ordered all the parts necessary to build this except what potentiometer spec should i use? thanks
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,539
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,052Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  11. Sinan Keskin

    Sinan Keskin Sinan Keskin

    Joined:
    Aug 24, 2016
    Messages:
    12
    Occupation:
    journalist
    Location:
    Turkey
    Balance:
    171Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, Arduino, Motion platform
    hi guys. i new in this sim things. and set up a sim with arduino, ibt2, wiper motor. i red this forum, very helpful. i solved many problems. but i have new problems
    so, A axis1 working correct, all programs, even live for speed.
    but B axis 2 not working correct!! if i turn pot manuel motor spinnig always...
    Why?
    can you help me?
    this is working system...
  12. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    Glad you have one working, you must be pretty close although showing the working motor doesn't really help us fix the one that doesn't work....

    My guess is that you need to reverse the two wires to the motor that isn't working. What does SMC3Utils show for the one that doesn't work?
  13. Sinan Keskin

    Sinan Keskin Sinan Keskin

    Joined:
    Aug 24, 2016
    Messages:
    12
    Occupation:
    journalist
    Location:
    Turkey
    Balance:
    171Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, Arduino, Motion platform
    thank you for repliying. i will share a video for motor which is not working. i try wires reverse than first motor is not working too. pot working i know. all the wiring i checked many times. both of ibt2 correct if it is single. SMC3Utils show if it pass second motor, sometimes move a little bit, and wait and then turnig "off". i try different methot today. thank you again...
  14. Sinan Keskin

    Sinan Keskin Sinan Keskin

    Joined:
    Aug 24, 2016
    Messages:
    12
    Occupation:
    journalist
    Location:
    Turkey
    Balance:
    171Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, Arduino, Motion platform
    thank you... i changed all wiring and it works :)



    but now i have another problem i think each motor is not working synchronize...
    this is tomorrow's problem...
  15. Giuseppe Romano

    Giuseppe Romano New Member

    Joined:
    Jun 29, 2015
    Messages:
    12
    Location:
    Italy
    Balance:
    362Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, Arduino
    I have noted a problem with smc3util and I need to know if someone has encountered it. I've the SMC3 on an Arduino board, controlling an high power H-Bridge in Mode1. After tuning the right motor direction, the potenziometer, the pwmMax, obtaining the motor movement on the center position, I go in the Sine moving mode and the motor seems to move normally, but when I go to another type of moving(Manual, Motion, or any other) often the H-Bridge it's broken, or the power supply fuse blows. I think that could be a bug in the procedure that non stops the motor first of sending the new movement data, and probably the directions pins can be both active, generating a fault condition. But the source of smc3util is non open and I cannot view if my supposition can be true. Please can you let me know if you never had similar problems? It's possible to have the smc3util source code? Thanks
  16. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    All motor motion is driven by the SMC3 code on the arduino. SMC3Utils simply sends position and setup commands. The motors are not "stopped" before new position data is supplied. The arduino SMC3 uses the position commands from Simtools or SMC3Utils as the input to a closed loop PID control loop that then calculates an output drive for the motor to "try" and move the motor to the required position. Tuning the PID parameters will have a large effect on how well the movement tracks the input as well as how much current is required to make these movements. If it is insufficient the motors won't track well, if it is overdone you may overload the drivers/power supply/motors.

    It is most likely the sine wave motion is relatively easy on the motors as there is no rapid movement or direction changes, others are harsher. This is why the different modes are supplied so you can test and tune up so it works in all situations. The rapid changes in position/direction are probably causing too much current in your particular setup... try reducing PWMmax.
    • Informative Informative x 1
  17. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 38 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Does not sound like a SMC3util issue, if you really want help, recommend you start a project thread explaining what you have built and the settings that you have used.
  18. testlab

    testlab New Member

    Joined:
    Jun 2, 2016
    Messages:
    8
    Balance:
    33Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino, Motion platform
    Подскажите обязательно использовать плату Ардуино УНО Р3 Для варианта моде 2 ?
    --------------------------------------------------------------------------------------------------------------------
    Prompt payment is required to use the Arduino UNO R3 For the option mode 2 ?
  19. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,644Coins
    Ratings:
    +1,009 / 8 / -1
    No payment required. Download the code from the first post, edit the line at the top of the code to be

    #define MODE2

    instead of #define MODE1

    and upload to arduino.
    • Like Like x 1
    • Agree Agree x 1
  20. George Dobransky

    George Dobransky Active Member

    Joined:
    Sep 29, 2016
    Messages:
    216
    Location:
    Hungary
    Balance:
    - 19Coins
    Ratings:
    +130 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF