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

    lcturkey Member

    Joined:
    Jan 5, 2015
    Messages:
    46
    Balance:
    163Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    6DOF
    please help me :) !!!!

    I bought another motor driver pololu and I still dont get any data from Simtools. I connected all the motors and They dont move.
  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
    Please open a new thread, describe all steps you have done so far and most important upload pictures of all you have. Without pictures / screenshots no support.
    • Agree Agree x 1
  3. lcturkey

    lcturkey Member

    Joined:
    Jan 5, 2015
    Messages:
    46
    Balance:
    163Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    6DOF
    Hi pit, I already send the screenshots and describe my problem on 33 page.
  4. 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
    Open a new thread helps us to sort out dedicated issues, within the SMC3 thread we can loose the track. For what I can see the feedback line (potentiometer) does not show anything meaning the potentiometer does not send any signal to the arduino.

    BTW Ks is way too high, please reduce to 1 first, and Fpwm try first 20 kHz
  5. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    HI, i'm using the smc3 for may rig, and here is a little problem .
    when the car crash or shaking in the game,the axis 1 often stop moving , and i had to restart the arduino to move it back,is there anyone in the same problem?
  6. 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
    Which bridge you are using?
  7. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi,I used the monster motor ,is the problem with the cooling ? I used the cooling fins and a fan,and I changed another MM for the axis1,and nothing gone be better.but the axis 2 is rarely happens.
  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
    If all would be correct installed, all would be soldered in a perfect manner (no loose contacts), if there is really no reason for any issue, than you have a "weak" MM output. Please show me your SMC3 settings of BOTH motors.
  9. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    upload_2015-8-21_18-56-3.png
    here is the setting of the SMC3,both motors use the same setting. SMC firmware version 0.7 used.

    Attached Files:

  10. 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
    KP=500 is too high and probably not needed- Please reduce to 300 and try to tune the fast reactions within the SimTools tuning manager. If you are not satisfied by doing this, you can raise up to 330, 360 etc.
  11. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hello

    Right now I'm building my first motion platform and almost ready (You can read about it here: http://www.xsimulator.net/community/threads/2dof-another-in-da-house.6764/page-4), but now I'd like to add two more motors to work as a part of G-seat, behind my back. So I've got two motors for shaking platform and I want two more for G-seat. SMC3 software is great and works marvelous, but can I use 4 motors with it? SMC3 utility shows only 3 ;(
    • Like Like x 1
    Last edited: Aug 22, 2015
  12. 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
    @gorzasty this issue can only to be avoided by using a second arduino.
    • Agree Agree x 1
  13. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    THX @Pit , I've got second Ardu but how to configure SIMTools then? You can enable two simtools windows in the same time (sorry, but I'm far away from my computer now to check it)? In one window of simtools You can put the data of one Ardu only.

    EDIT: OK, I've read manual and the solution is to configure interface_1 and Interface_2 with two Ardu's in the interface settings, right? What a great software!
    • Agree Agree x 1
    Last edited: Aug 22, 2015
  14. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    Following the tests @Pit has suggested... if you are still having problems I suspect it may be that the Arduino is shutting off the motor to protect them because it thinks they have passed the MaxLimits zone. This is an SMC3 safety feature to help prevent damage to motors and rig. Sometimes the momentum of a heavy rig is enough to carry the seat into this deadzone particularly in violent motions such as a crash.

    You could try to set the MaxLimits setting to 0 (effectively disabling this feature) to see if the motor stops shutting down. Although if this is what is happening then you may want to look at the design of the rig to help prevent it happening.

    Increasing the PWM reverse setting may also help if you want to keep the MaxLimits setting active - this is how hard the SMC3 tries to (brake) drive the motors in reverse when trying to avoid the Max Limits.
    • Informative Informative x 2
    • Like Like x 1
  15. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    thank you for your suggest ! hope the issue can be fixed.
    • Friendly Friendly x 1
  16. welen123

    welen123 Member Gold Contributor

    Joined:
    Jan 10, 2015
    Messages:
    98
    Location:
    HongKong
    Balance:
    35Coins
    Ratings:
    +57 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    thank you, i'm confused with the problem ,why axis2 is rarely happens,only axis 1 to stop moving, and i tried to changed the analog pin A0 to A1,then the A0 motor alosl happens the problem , i will try @Pit's suggestion to see if that can be fixed.
  17. jaco73

    jaco73

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Rufus thank you, program and share SMC3 :thumbs
    After reading several times around the post (not translators English and difficult to understand the things) or so I resolved all my doubts, the simulator right mind moves, just need to understand a little more SMCutils.mi configuration consists of:
    1-Arduino Uno R3
    3-43A IBT-2
    3 smolka 24v
    2 Dell PowerEdge 2950 Netzteil 750W (even 12v, but will put a 24v)

    it would be the recommended value in SMCutils fPWM =?

    Excuse me for my bad english :blush
    Last edited by a moderator: Aug 25, 2015
  18. 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
    SMC3 Util. with the Arduino
    2015-08-21 06.20.16.jpg

    SimTools with the Arduino

    2015-08-25 23.22.16.jpg
  19. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    when you swapped A0 and A1, I assume you also swapped the Motor wires with them?

    I would focus first on trying to work out if the motor is being "shut off" for safety by SMC3 or if it is the hardware shutting down like the driver chip going into overtemp or overcurrent shutdown.

    To do this work with SMC3Utils and try to reporduce the problem by putting it in manual mode and jerking the slider on the right of the graph. If the motor shuts down and the button in the top left of SMCUtils says off then SMC3 software shut them down. If the motor stops but the button still says on then it is something inthe hardware shutting down.
  20. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    When using SMC3Utils both the TX and RX serial LEDs will light up because it sends position data to the SMC3 Arduino and also requests data back so that it can plot all the charts on the screen.

    When using Simtools the position data is only sent to the Arduino. Simtools has no need to know anything about the Arduino, it just assumes it is doing its job. Therefore only one LED will light up.
    • Informative Informative x 2