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

    rafael_design Member

    Joined:
    Feb 17, 2011
    Messages:
    202
    Occupation:
    CGI Architectural Visualizations with Blender 3D
    Location:
    Brasil
    Balance:
    328Coins
    Ratings:
    +19 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Does moto monster support 24v?
    And what is the safe fuse rating for each MM out?
  2. Llewelyn

    Llewelyn Member

    Joined:
    Nov 10, 2017
    Messages:
    69
    Occupation:
    IT consultant
    Location:
    south africa
    Balance:
    108Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    No it is for 12v,not to sure what the amperage rating is on the motomonstor,find the rating and get a fuse accordingly.
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    SimTools does not configure Arduinos, it can only interface via the Interface Settings.
  4. josemanuelrm26

    josemanuelrm26 my 2dof

    Joined:
    Sep 22, 2015
    Messages:
    100
    Location:
    valencia
    Balance:
    - 13Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks
    hello with what noorbeast said that only interacts ... now I am with 2 dof and implementing loss of traction with smc3 ...
    • Like Like x 2
  5. VictorS

    VictorS New Member

    Joined:
    Dec 20, 2019
    Messages:
    5
    Occupation:
    Engineer
    Balance:
    60Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi!

    I'm trying to get my sim motors running with the SMC3.
    I have connected the components as described in the setup but i have run in to a problem.
    I use 10 turn 5k ohm potentiometers, but I have not figured out how to get them to work correctly.
    In the picture you can see the full range of the potentiometer = 10 turns
    How do I make it go from limit to limit in just half a turn/180 degrees?

    [​IMG]

    Thanks!
  6. rafael_design

    rafael_design Member

    Joined:
    Feb 17, 2011
    Messages:
    202
    Occupation:
    CGI Architectural Visualizations with Blender 3D
    Location:
    Brasil
    Balance:
    328Coins
    Ratings:
    +19 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Can anyone tell me for sure if the pid is processed on the arduino or on the pc?
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The PID is configured and processed on the Arduino.
    • Informative Informative x 1
  8. rafael_design

    rafael_design Member

    Joined:
    Feb 17, 2011
    Messages:
    202
    Occupation:
    CGI Architectural Visualizations with Blender 3D
    Location:
    Brasil
    Balance:
    328Coins
    Ratings:
    +19 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Thanks noorbeast.
    So I possibly have a jammed arduino. I tried everything like change pots, cables start all over several times. Still have weird spikes when trying to have motor resting controlling it with the pot with pid. Sketches like control led fading with pwm works perfectly. But pid is acting weirdly. I have another arduino that acts the same way. Ordering a new one to compare.
  9. Jonas Canopee

    Jonas Canopee Tech & fitness geek, daddy, car enthusiast

    Joined:
    Feb 14, 2019
    Messages:
    17
    Occupation:
    Graphics designer
    Location:
    Berlin, Germany
    Balance:
    145Coins
    Ratings:
    +15 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello, just asking if SMC3 Ver 1.01 is the latest. Finally by the unfortunate events everybody is aware of I have enough time on my hands to complete my 2DOF project... Hope you all and your loved ones are well!
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As far as I am aware SMC3 V1.0 is the latest version: https://www.xsimulator.net/community/attachments/smc3-v1-0-zip.40556/

    And the companion SMC3 Utils V1.01 is the latest version: https://www.xsimulator.net/community/attachments/smc3utils-v1-01-zip.24768/
    • Like Like x 1
  11. kadirbekil

    kadirbekil New Member

    Joined:
    Apr 26, 2020
    Messages:
    4
    Balance:
    87Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, 4DOF, 6DOF
    İ have problem can you help me please :(
    IMG_20200524_122647.jpg
  12. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,213
    Location:
    Italy
    Balance:
    8,283Coins
    Ratings:
    +1,120 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Are your problems those small rebounds??
  13. kadirbekil

    kadirbekil New Member

    Joined:
    Apr 26, 2020
    Messages:
    4
    Balance:
    87Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, 4DOF, 6DOF
    Yeah. Do you think the problem might be on the engine. The engine does not stop where it should stop.
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

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

    rafael_design Member

    Joined:
    Feb 17, 2011
    Messages:
    202
    Occupation:
    CGI Architectural Visualizations with Blender 3D
    Location:
    Brasil
    Balance:
    328Coins
    Ratings:
    +19 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Do I have to set the same baud rate in device manager or not?
    Because I have perfect motion in sim utils but not in simtools.
  16. gabe

    gabe New Member

    Joined:
    May 21, 2020
    Messages:
    8
    Balance:
    142Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I am trying to setup my 3DOF sim, but running into a problem with motor 3. I was able to adjust the pots and motors for motors 1 and 2, but when I got to motor 3, the problem began. I can turn the pot and it displays normal operation on the SMC3 Utility screen, but when the motor turns, it only turns one direction, regardless of what side of the blue target line the pot output is. When the pot value matches the target, the motor stops as expected, but like I mentioned it does not matter which way the pot is turned, the motor only spins in the clockwise direction. I do not have this problem with the other two motors.

    I am using SMC3 V1.01 code on an Arduino in Mode 1. I have checked the boards by attaching motor 3 outputs from the Arduino to the board for motor 2 and the same issue then presents itself on motor 2 (so the problem is not in the board). I also checked the voltages at the board input and compared then to what they are at the Arduino and they are the same, so it is not a wiring connection either. It's almost as if SMC3 is only telling the Arduino to send power to the motor without trying to change direction. Is this possible? The only thing I can find that is out of the ordinary is that the voltage on PIN 7 (ENB MOTOR 3) is lower than the voltage on ENB MOTOR 1 and ENB MOTOR 2. While stationary:
    Pin 3 (ENB Motor 1) is reading 4.5V
    Pin 5 (ENB Motor 2) is reading 4.5V
    Pin 7 (ENB Motor 3) is reading 0.4V

    I am not using ENA (pins 2,4, and 6) for any motors because my Cytron MD30C boards only have pins for GND, PWM, and DIR. The set up is the same on the working motors as it is in the non-working motor.

    Any help would be greatly appreciated. I can handle the mechanical parts, but electronically I am not savvy enough.

    Thank You
  17. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,213
    Location:
    Italy
    Balance:
    8,283Coins
    Ratings:
    +1,120 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hey @gabe,
    I'm using the same MD30C, I'm using MODE 2 in a SMC3 I modified.
    You can find infos in my thread here

    @p00ky is using my modified version with his MDDS30 and is working fine for him too
    • Like Like x 1
  18. gabe

    gabe New Member

    Joined:
    May 21, 2020
    Messages:
    8
    Balance:
    142Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    @Blame73 ,

    Thank You! This is great and I will give it a go in a few days (I crashed into a pot yesterday in manual mode and am waiting on replacement), but am excited to try it! Thank you for the reply. It's valuable to have such a helpful community like this.
    • Like Like x 1
    • Agree Agree x 1
  19. Djalma Ribeiro

    Djalma Ribeiro Member

    Joined:
    Mar 24, 2020
    Messages:
    65
    Occupation:
    Drone Pilot
    Location:
    Cuiabá, Brazil
    Balance:
    168Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Why didn't this work for me? Is there currently some kind of different configuration?
    I wish my engines were at maximum height when turning off the game.

    upload_2020-6-1_17-0-6.png
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,902 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    In Startup and Shutdown basically what you are doing is sending an ASCII char for the value of <x> (where x = 0 through 255), page 45 of the SimTools manual: https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/

    So with JRKs, which I use, 221 is the on command for Position, 63 tells it where to go and 225 turns it off.