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. Quang Thuy

    Quang Thuy New Member

    Joined:
    Nov 30, 2021
    Messages:
    14
    Balance:
    87Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF
    I have solved the problem. The cause is reverse connection of 2 pins 01 and 02 of BTS7960 43A. A simple mistake, but took up quite a bit of my time.
    • Like Like x 1
  2. mikethemotionguy

    mikethemotionguy learning daily Gold Contributor

    Joined:
    Nov 28, 2021
    Messages:
    9
    Occupation:
    mechanic
    Location:
    United States
    Balance:
    - 3Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    hello guys i new to all the forum stuff so please be patient with me!!

    I follow dmax on YouTube and built my rig because of his videos. Now the only thing i did different was put my motors up front, and my motors are mirror image motors! So trying to figure out which ways need to be up and down is being a challenge but ill figure that out later as the 2 front motors work perfectly. my issue is with the 3rd motor for traction loss everything seems to be wired correctly and the motor only moves one way!!! the green line confirmed follows the blue so the pot and the motor seem to be wired correctly as it doesn't lose control all the way to one side or anything!! i know i had reflashed the arduino before when getting the front motors working correctly and forgot to set it to mode2 for the ibt controllers and they would only move one way like the 3rd motor is doing now!! any ideas???
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    So to be clear, if you are using ibt controllers the SMC3 code needs to be edited for Mode 2.

    Other than that the pot and lever need to be central in the TL axis range when configuring SMC3 settings.
  4. mikethemotionguy

    mikethemotionguy learning daily Gold Contributor

    Joined:
    Nov 28, 2021
    Messages:
    9
    Occupation:
    mechanic
    Location:
    United States
    Balance:
    - 3Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF
    thanks for the reply!! it is for sure in mode 2 or the front motors wouldnt work but one way!! I did get the orientation correct for the front motors and as for the rear 3rd motor pot is centered when rig is centered and it works pefectly on the up side but has no response on the down side im baffled confirmed the wiring is correct disconnected everything and ohm tested for continuity and all test were good idk whats going on!!
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    To provide proper context please start your own build thread and detail all aspects of the settings and hardware used.
  6. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Good Evening Folks, what potentiometer are you folks using. I have used a few but they dont work right. My feed back or green line always stays at the top of the SMC window so the motors wont engage.
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I use 180 degree Hall sensors, like these: https://au.element14.com/bi-technol...fs/sensor-hall-0-2v-20v-to-10v-pin/dp/2319662

    However, is there any actual reason you believe your pots are the issue? The most common error with pots is wiring.

    But with SMC3 issues there can be a range of other potential causes, such as hardware faults.
    Last edited: Jan 13, 2022
  8. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I am using the following from Amazon, I just think I got the wrong ones.
    WayinTop 5pcs 360 Degree Rotary Encoder Module KY-040 Brick Sensor Development Board with Push Button for Arduino
  9. tadek

    tadek Active Member

    Joined:
    Aug 17, 2020
    Messages:
    196
    Balance:
    548Coins
    Ratings:
    +34 / 2 / -0
    My Motion Simulator:
    2DOF
    hi Tom1980
    You should use a potentiometer with a resistance of 10 kom.
    Encoder is not a potentiometer.
    Ancncoder is an impulsor.
    Best regards
  10. Rodeo5150

    Rodeo5150 ROOKIE BUT LEARNING FAST Gold Contributor

    Joined:
    Mar 21, 2019
    Messages:
    222
    Location:
    Antioch, CA, United States
    Balance:
    1,251Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Hi. Awsome tutorial. As a brand newbie just in the "gettin a bur under my butt to build one", your step by step walkthrough layed it out and made it feel alot less dounting. Can I use this system with linear actuators?
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    These days for linear actuators most have moved from DC to servos to power them, then use a specific controller like the one by @Thanos, which make the servos pretty much plug and play. So while you could great SMC3 controlled actuator it is not really worth the bother.
  12. Martin Dixon

    Martin Dixon Member

    Joined:
    Nov 19, 2021
    Messages:
    49
    Occupation:
    Sgt HM FORCES
    Location:
    Devizes, Wiltshire
    Balance:
    26Coins
    Ratings:
    +15 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SCN5, SCN6, SimAxe, Arduino, JRK, Joyrider, SimforceGT, Motion platform, 4DOF, 6DOF
    Thank you for this detailed guide it has helped me to progress in my project again thankyou.
  13. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220107_125910.jpg

    Battery Bank
    • Like Like x 1
  14. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220107_183448.jpg 20220107_183607.jpg 20220107_202834.jpg 20220107_183448.jpg
    Wiring harness hookup
    • Like Like x 1
  15. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220107_203645.jpg
    CIRCUIT board assembly
    • Like Like x 1
  16. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I need some help, I am having great difficulty in getting windows Smc to power my motors. I have tested the controllers and motors and am using the coding from the 3.dof page. What is happening is the feedback green line goes directly to the bottom. I am using the POT from digikey but just can't get the green line to get off the bottom. Any help would be greatly appreciated. Have a good night.
  17. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,157
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,628Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Is the pot centered when the motors/lever are in their rest position?

    When they are, make sure the motors are not powered, disconnect the pot, rotate it by hand until the line is in the middle of the SMC3 graph, then reconnect it.
  18. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform

    Thanks for the advise I am going to try different rotations.
  19. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I wish I knew what I was doing wrong. I moved the POT around several times and still cant get the feeedback line off the bottom. Does anyone have any other advice or suggestions.
  20. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220127_162720.jpg
    This is what it keeps doing, any suggestions would really be awesome.