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. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF

    1. Disconnect the motor power supply
    2. Make sure Simtools is not running – we’re not ready for that yet!
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB
    4. Run the Windows SMC3 Utility software and make sure it communicates with the Arduino (There is no need to set baud rates, they are not configurable)
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move)
    6. Set Clip to 255 (you need to do this first) and Limit to 255 (This will give you plenty of margin if something goes wrong while setting up)
    7. Turn on the power to your motors – nothing should move at this stage!
    8. Set Kp to about 400
    9. Now slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
      • If it is then that motor and feedback is wired correctly - proceed to test other motors.
      • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
    10. Do the above for each motor

    • Informative Informative x 3
    • Like Like x 1
    • Agree Agree x 1
  2. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    and please, screenshots, photos, videos...many users are thinking "I have all done rightly" but at least this is not true ;)
    • Like Like x 3
  3. kimballfount

    kimballfount Member

    Joined:
    Oct 12, 2015
    Messages:
    88
    Location:
    greer,sc
    Balance:
    879Coins
    Ratings:
    +15 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Here are some pics...I'm only running one Hbridge right now, do you think this might be the problem? I still can't test my axis's in simtools, and as this is my first time using smc3 configurator i'm not exactly sure how it's suppose to make my motor behave. It shifts back and fourth in increments of 15 degrees. I can control the speed via increases pwm max, but not direction or rate of travel. Any help would be good

    Attached Files:

    • Like Like x 1
  4. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,932Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    @kimballfount ...
    So 15 degree limitation response comes from a feedback pot ... What kind of pot do you use ? Do you use gears with it ?...

    And, Try using Motion output in the utility ...
    Untitled3.jpg

    you also have Sine , Triangle, Square, Motion, and Manual testing output modes ...
    Untitled (3).jpg

    In SimTools use CAPITAL LETTERS here ...
    SMC3.JPG
    • Like Like x 3
    • Useful Useful x 2
    • Informative Informative x 1
    Last edited: Jan 10, 2016
  5. kimballfount

    kimballfount Member

    Joined:
    Oct 12, 2015
    Messages:
    88
    Location:
    greer,sc
    Balance:
    879Coins
    Ratings:
    +15 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino
    Capital Letters! CAPITAL LETTERS!!!!! Yeah that solved it man, been messing with this thing for two days. Thanks man
    • Like Like x 1
    • Winner Winner x 1
  6. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,932Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Nice :grin ... now for further troubleshooting the 15 degree issue ... please start your own new thread and post more pictures for the mechanical setup there ...

    :cheers
    • Agree Agree x 1
    Last edited: Jan 9, 2016
  7. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    Great problem solving @Pit and @Speedy. You provide great support in this (and other) threads. Much appreciated!
    • Like Like x 4
    • Agree Agree x 1
  8. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Thank you for sharing a compliment, "but" all credit is going to other members like @noorbeast, @speedy (see the last postings) etc. etc. as well. ;) I keep in mind that you have written this great piece of software and you have spent a lot of your spare time, so we all advanced members should help when our help is needed by new inexperienced members (except commercial builders, that goes without saying) :)
    • Like Like x 2
    • Agree Agree x 1
    • Friendly Friendly x 1
  9. cthiggin

    cthiggin Active Member

    Joined:
    Jul 1, 2012
    Messages:
    672
    Occupation:
    Self-Employed
    Location:
    Montgomery AL USA
    Balance:
    15,209Coins
    Ratings:
    +435 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Ditto to @speedy............I would still be dead in the water without his continuing help...............
    • Friendly Friendly x 2
    • Like Like x 1
  10. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,932Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Get-well-soon-01.png
    • Like Like x 2
  11. Gepsi

    Gepsi New Member

    Joined:
    Jan 9, 2016
    Messages:
    23
    Occupation:
    engineer
    Location:
    Mexico
    Balance:
    638Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    hi, I'n new here!!!! this is my sim... I'm undestanding the wiring for the 3 dof... mode 1... I can't find the complete diagram for the wiring!!!! help!!!!

    Attached Files:

  12. Gepsi

    Gepsi New Member

    Joined:
    Jan 9, 2016
    Messages:
    23
    Occupation:
    engineer
    Location:
    Mexico
    Balance:
    638Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I just burn 2 monster moto and 1 arduino jajajjaja my power suply is 12v 30a... is it enough?? the motors seems to be insolated... but I'm a mechanical engineer don't undestand electronics so much...

    Attached Files:

    • Like Like x 2
  13. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,439Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    hi, FI you will find all information on the first page... How can you power on the MMs before you did not check the wiring finally? And how you can be sure that you burned two MMs?
    • Like Like x 1
  14. Gepsi

    Gepsi New Member

    Joined:
    Jan 9, 2016
    Messages:
    23
    Occupation:
    engineer
    Location:
    Mexico
    Balance:
    638Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I don't have idea of what I did... well... the motor was shorted :) jaja I went to see a friend and he point it out... but how do a wire the 3th motor??? with the 2od MM??

    and I have another problem... the motors rotate faster in one direction ¿?¿?
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,054
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,022Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You really need to put all of your questions on your own project thread, which you can create here: http://www.xsimulator.net/community/forums/diy-motion-simulator-projects.22/

    On your project thread tell us about your simulator so members know what they are advising about.

    I am guessing you are using wiper motors but have not ground isolated them, but there is no way to be sure until you provide a lot more information about your simulator: http://www.xsimulator.net/community/faq/wiper-motor-mandatory-ground-isolation.25/
    • Agree Agree x 3
  16. minanke

    minanke New Member Gold Contributor

    Joined:
    Dec 1, 2013
    Messages:
    17
    Occupation:
    Developer
    Location:
    Hong Kong
    Balance:
    - 364Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi, I'm not sure should I post to this thread or start a new one because my problem is regarding my motor. Since I'm using the SMC3 tools, so I try posting here first.

    This morning when I start up my SMC powered seat, one of the motor cannot fix to the start position and can freely rotate it around 10 degrees. Firstly I think it is because I forgot to plugin the USB to the computer. After I plugin the USB and start up the PC. I check the motor again and found out that I can freely rotate it but the other motor has successfully lock to the start position.

    Then I start the SMC utility to check the green feedback, and I can see the greened back move correctly when I manually rotate the problem motor. Look like the all is working just the motor has no power driven it.

    Then I switch the connection between the 2 motors, the working motor is working but the problem motor still has no power and free to rotate it manually.

    So is this mean the motor was burn or something else?

    I'm using this motor
    https://www.motiondynamics.com.au/worm-drive-motor-12v-24v-200w-180-rpm-20nm-torque.html

    Thanks for the help in advance.
    Mike
    • Agree Agree x 1
  17. fzxj520

    fzxj520 Active Member

    Joined:
    May 14, 2015
    Messages:
    176
    Location:
    SimTools is a generic Motion Simulator
    Balance:
    1,341Coins
    Ratings:
    +90 / 1 / -0
    My Motion Simulator:
    2DOF
    Hello RufusDufus
    I would like to ask how the case without using the potentiometer, directly in code settings to achieve non-linear scaling and scaling values defined?
  18. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    Can you give some more detail I don't understand what you want...

    SMC3 Scaling is only useful if you use a POT, otherwise just adjust the settings directly in Simtools.
  19. fzxj520

    fzxj520 Active Member

    Joined:
    May 14, 2015
    Messages:
    176
    Location:
    SimTools is a generic Motion Simulator
    Balance:
    1,341Coins
    Ratings:
    +90 / 1 / -0
    My Motion Simulator:
    2DOF
    Pot output is equal to Clip Input value ?
    Last edited: Jan 23, 2016
  20. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    The POT is used to "scale down" the values that are sent from simtools. If the POT is turned to Max then the values from simtools are left 1:1 (no scaling). as the POT is reduced the values from simtools are scaled down either linear or nonlinear depending on software config. When the POT is at minimum the values from simtools are effectively scaled to zero so there will be no motion and the motors will sit in center position. Note it only works on Motors 1 and 2.

    I use it to quickly fine tune the amount of motion from car to car. I tuned simtools with the POT at half scale so I can easily increase or decrease from default.
    • Informative Informative x 3