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

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,160
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,195Coins
    Ratings:
    +2,161 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    @Enrique.Rolon you are welcome to post in your own language but you are also required to post in English as that is the language of this forum. I realize that you are responding to Moaale in his language but it would be hard for others to follow the conversation and also help with issues if you post in a different language. Please use google translate to post in both languages. I have done so for you this time.
    • Agree Agree x 1
    • Friendly Friendly x 1
  2. Snail

    Snail New Member

    Joined:
    Aug 21, 2016
    Messages:
    4
    Location:
    Germany
    Balance:
    - 58Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF

    Hi,

    how must i change the ports in the code to use this MotoMonster to an Ardunio stack.
    I use this configuraion also on X-Sim, but now i would change to Simtool.
    But with the code it dont work's for me.
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,031
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,884Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Are you using UDP Mode with SMC3Utils, as per the instructions?
  4. Snail

    Snail New Member

    Joined:
    Aug 21, 2016
    Messages:
    4
    Location:
    Germany
    Balance:
    - 58Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    I hang on the "Initial Setup" Step 9.
    No motor is starting to move.
    I use only 2 motors, but the code is for 3 motors.

    This is the pin assignment from x-sim (XPID.ino)
    Pin 5 - PWMA - Speed for Motor 1.
    Pin 6 - PWMB - Speed for Motor 2.
    Pin 4 - INA1 - motor 2 turn
    Pin 7 - INA2 - motor 1 turn
    Pin 8 - INB1 - motor 1 turn
    Pin 9 - INB2 - motor 2 turn
    Pin A4 - input of feedback positioning from motor A, wire here the feedback pot middle pin
    Pin A5 - input of feedback positioning from motor B, wire here the feedback pot middle pin


    and this is from SMC3 (SMC3.ino)

    const int ENApin1 =2; // ENA output pin for Motor H-Bridge 1 (ie PortD bit position)
    const int ENBpin1 =3; // ENB output pin for Motor H-Bridge 1 (ie PortD bit position)
    const int ENApin2 =4; // ENA output pin for Motor H-Bridge 2 (ie PortD bit position)
    const int ENBpin2 =5; // ENB output pin for Motor H-Bridge 2 (ie PortD bit position)
    const int ENApin3 =6; // ENA output pin for Motor H-Bridge 3 (ie PortD bit position)
    const int ENBpin3 =7; // ENB output pin for Motor H-Bridge 3 (ie PortD bit position)
    const int PWMpin1 =9; // PWM output pin for Motor 1
    const int PWMpin2 =10; // PWM output pin for Motor 2
    const int PWMpin3 =11; // PWM output pin for Motor 3
    const int FeedbackPin1 = A4; // Motor 1 feedback pin
    const int FeedbackPin2 = A5; // Motor 2 feedback pin
    const int FeedbackPin3 = A2; // Motor 3 feedback pin

    I changed already the pins for the pots ( A0 -> A4; A1 -> A5 ). This works fine.

    But no motor is moving. The pin assignment is different, but i think it can work with some changes.( only what ?? )
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,031
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,884Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    How many motors are supported is not the issue.

    Please post pictures of all your settings.
  6. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,900Coins
    Ratings:
    +1,016 / 10 / -1
    @Snail, It won't work by just reassigning pin numbers (in particular PWM pins). I suggest you just rewire the board as per the pinouts in the first post.
    • Informative Informative x 1
  7. Snail

    Snail New Member

    Joined:
    Aug 21, 2016
    Messages:
    4
    Location:
    Germany
    Balance:
    - 58Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hello Rufus,

    i have rewired my Arduinio to MotoMonster Board, like you configuration in post ( side 1 )
    But no motor is moving. Whats wrong with my setup or must i change some settings in SMC-Setup Tool ?

    upload_2016-9-3_11-45-44.png
  8. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,438Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Honestly you say you wired like in the first post but before we can help please upload HQ photos of your wiring
  9. 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
    hello guys, I just finished assembling the IBT - 2 tabs 43A , I did some testing with voltmeter and 12v voltage to the cards but comes at a time when the motors turn the potentiometer is not working and exit the card marks 0v why? when I loaded the code I put defineMODE2
  10. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,438Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    ui, hardly to understand...better you upload a video, screenshots and/or photos?
  11. 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
    This is the photo of the links

    Attached Files:

  12. Pit

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

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,438Coins
    Ratings:
    +3,089 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    ..which does not help. I mean you should upload photos from your wiring, your setup, and not the manual etc lol
  13. 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
    photo is far enough away if you are unable to understand tonight I try to do them again

    Attached Files:

  14. 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
    Tonight I tried to connect one motor but equal , to the board arrive 12v and 5v to the potentiometers , but when I turn the potentiometer the motors are at a standstill , I am attaching photos of a single motor connection image.jpeg image.jpeg image.jpeg
  15. 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
    the photos are fine ? These are the settings simtool

    Attached Files:

  16. 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
    I am continuing to do testing and I had a doubt , without turning simtool and moving hand potentiometers engines run too ?
  17. 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
    These two videos are hoping that can be of help , with monstermoto use the mat code while racing with the BTS SMC3.ino code.as you see with the BTS you do not move anything because ? I hope for your help

    BTS:

    MONSTERMOTO:
  18. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
  19. 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
  20. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,900Coins
    Ratings:
    +1,016 / 10 / -1
    When you say mat code do you mean RacingMat's software? Have you had the SMC3 code working with MotoMonsters?

    I'm afraid the information you are providing is very incomplete, disjoint and confusing.
    • Agree Agree x 1