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

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,142
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,547Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  2. Deleted member 22447

    Deleted member 22447

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    @noorbeast

    Thank you for the quick response and suggestions. Du-ally noted!
  3. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    im having a hard time understanding i want to mode 1 but i do not no how to edit the code i have flashed to my uno3 and at the top it say mode 1 or 2 how do i edit to use 1
  4. NjMotion

    NjMotion Active Member Gold Contributor

    Joined:
    Dec 29, 2012
    Messages:
    271
    Location:
    España
    Balance:
    1,490Coins
    Ratings:
    +261 / 5 / -0
    My Motion Simulator:
    2DOF, 6DOF
    In the line 9
    #define MODE1 or #define MODE2
  5. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Thanks for the help I have been running simtools on my pre bought rig for a little while now but I want to build my own and I'm a welder fabricater by trade and all stuff talking about code is over my head I posted pick were it says #define mode 1 does that mean I'm good I'm guessing if I wanted to run mode 2 I would change the 1 for a 2 every one is probably laughing there a--'- off at me

    Attached Files:

  6. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,952Coins
    Ratings:
    +1,016 / 10 / -1
    @Justin Dail, correct just change the 1 to 2... Make sure you keep the formatting the same though, capitals for MODE and no space before the 1 or 2.

    So the line will end up being either (depending on mode selected):
    #define MODE1 or #define MODE2
  7. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Thanks I get now :)
  8. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Motors and other stuff should arrive this week for now I'm checking how it with 12v fan but I have a few questions for as set up output bit range /out put type binary decimal or hex and what to put for startup output
    Shutdown output
    Sorry for all the questions here's a pic of what I have so for 20160725_203834.jpg
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,142
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,547Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  10. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Man y'all are the best such a thriving comunity thanks for the help such a abundance of info here mabey one day I will be able too contribute too
    • Friendly Friendly x 1
  11. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,933Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    @RufusDufus ...
    In SimTools startup and shutdown and with your firmware programed in the Arduino ...

    Is there a special command can be written Plus the target position to give a momentary slow motor PID response other than that PID stored in the Ard.
    That is so to have a slow up and down parking motor motion especially for 6DOF rigs ... Arduino can continue working with the normal stored PID in it in between that .

    Also Another question please ... what AB<255> means with @prilad F/W ?
    startup_shutdown.jpg
    any readable material explaining that would be great ...

    Thanks buddy .
    • Agree Agree x 2
  12. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,952Coins
    Ratings:
    +1,016 / 10 / -1
    Hi @speedy, no there is nothing really to do that at the moment. :(
    I can have a look, it may not be too difficult to add a command to slowly move to a specified location?
    • Like Like x 3
  13. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    For some reason I can't adjust the pwm max

    Attached Files:

  14. bruce stephen

    bruce stephen Hammer doesnt fix it, must be electrical

    Joined:
    Jun 7, 2015
    Messages:
    1,286
    Occupation:
    general contractor
    Location:
    michigan
    Balance:
    9,112Coins
    Ratings:
    +1,238 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform, 6DOF
    You need to turn on the motor. Top left. This is a safety feature for the limit.
    • Informative Informative x 1
  15. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Yeah I noticed it after pic but even when it's switched to on position it still want show nothing for pwm I'm going to reinstall everything tonight also I'm not sure if I'm putting MODE1 in right place I put it at very top and hit upload to my uno could some one please post a pic of were they added code MODE1 or MODE2
  16. bruce stephen

    bruce stephen Hammer doesnt fix it, must be electrical

    Joined:
    Jun 7, 2015
    Messages:
    1,286
    Occupation:
    general contractor
    Location:
    michigan
    Balance:
    9,112Coins
    Ratings:
    +1,238 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform, 6DOF
    For mode 1 change nothing add nothing this is the default setting and should be what you get "out of the box " so to speak. Try compiling and uploading smc3 with no changes.
  17. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,952Coins
    Ratings:
    +1,016 / 10 / -1
    It is very unusual that some values can be changed and others can't. This maybe indicates a problem with communications - noisy signal. Does it do the same with each motor and if so is it the same values on each motor that can't be changed?

    If other motors are OK try using the copy buttons to copy the settings from a good motor to the bad one in case there is a corrupt value somewhere... although I thought I built such checks into software... can't remember now. :think
    • Informative Informative x 1
  18. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Ok that's good that helps alot ok I just tried it and I checked with 9volt battery and small motor I have pot coupled to motor and I can move slider up and down in manual and motor will turn but for some reason I still can't adjust pwm max I'm gonna read back through to make sure I haven't missed a step thanks for the help
  19. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Your software is great so far I've only tested 1 motor at a time I'm still trying to get the hang of things I appreciate everone help
  20. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,091 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Hi Justin, re-upload the sketch again, check all baud settings and test the Arduino first with the SMC3 utility later with one potentiometer only.