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

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    Hello to everyone,
    I could't test the outputs on Simtools. The motors are always in middle position even I am playing with axis or dofs sliders. What can be the mistake that I made?

    My specs:
    Arduino Uno R3
    Monster Moto shield
    1 PC configuration
    Spectrol Precision 5K potentiometer
    Simple gear motors for test

    I didn't made any simülator yet, but I made a test table with pots and motors.
    It is working on SMC3 Utilities....everything seems fine.
    It is my first try of sim, please help.
    Thanks testing.jpg
  2. Daguru

    Daguru Rally drivers do it in the Dirt

    Joined:
    Sep 4, 2013
    Messages:
    719
    Occupation:
    Kitchen installer
    Location:
    Wales uk
    Balance:
    453Coins
    Ratings:
    +632 / 1 / -0
    My Motion Simulator:
    Motion platform
    I'm no expert but I think the interface output for smc3 should be
    [A<Axis1>][B<Axis2>][C<Axis3>]
    @Mamati
    • Agree Agree x 1
    Last edited: Mar 27, 2015
  3. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    @Daguru
    Thank you for your reply,
    I changed the output conf as you mentioned and I recheck then remake the wires...now It woooorrrkks
    I don't know if it is only about output conf but anyway Thank you
    • Like Like x 3
  4. Daguru

    Daguru Rally drivers do it in the Dirt

    Joined:
    Sep 4, 2013
    Messages:
    719
    Occupation:
    Kitchen installer
    Location:
    Wales uk
    Balance:
    453Coins
    Ratings:
    +632 / 1 / -0
    My Motion Simulator:
    Motion platform
    @Mamati great glad you got it working :thumbs
  5. Rocket man

    Rocket man Member Gold Contributor

    Joined:
    Mar 20, 2015
    Messages:
    59
    Location:
    Canada
    Balance:
    - 325Coins
    Ratings:
    +63 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks a million to all who takes the time to do all this for others!! So much information here it's awesome!
  6. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    I want to use 2 Moto Monster for 2 wormdrive motors but I couldn't find the wiring diagrams.
    The picture below is for single motor...how must be the wiring for second Monster Moto to Arduino?

    I will buy this 750W power supply http://www.endustriyelcihaz.com/mean-well-sp-750-12.html for powering 2Monster moto.
    My wormgear motor specs: Motor 12V 190W 2000Rpm with 30:1 reduction
    Is this power supply suitable for my hardware?
    Why some people add car battery on their system?
    Thank you

    Attached Files:

  7. 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
    Arduino -------- Monster Moto 1
    2 (Motor 1 H-Bridge ENA) ---------------7 and 8 (INA1 and INB1)
    3 (Motor 1 H-Bridge ENB)----------------4 and 9 (INA2 and INB2)
    9 (Motor 1 PWM) --------------------------5 and 6 (PWM1 and PWM2)
    and
    Arduino -------- Monster Moto 2
    4 (Motor 2 H-Bridge ENA) ---------------7 and 8 (INA1 and INB1)
    5 (Motor 2 H-Bridge ENB)----------------4 and 9 (INA2 and INB2)
    10 (Motor 2 PWM) --------------------------5 and 6 (PWM1 and PWM2)
    One PSU should work. Battery is not needed if using a server ps.
    • Informative Informative x 1
  8. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    Thank you for your kind reply @Pit
    I didn't find the 750w power supply so I bought today two 500W 37.5A Din power supply from local shop.
    Do I need battery with this power supply?

    Thanks to your wiring info now I will be able to use these hardware:
    1 Arduino Uno R3 (SMC3 installed) Thanks to RufusDufus for codes
    2pcs Sparkfun Monster Moto shield (each for one motor)
    2pcs 12V 190W 2000Rpm motor with 40:1 worm drive (50Rpm on shaft)
    2pcs 12V 500W 37.5A power supply (each for one Monster Moto)
    2pcs 10Kohm Made in Germany potentiometer
    And I am planning to put heat sink on MonsterMoto with fan.

    What are you thinking about this configuration?
    Maybe later I will try some more powerfull motors with this configuration.

    Attached Files:

  9. 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
    @Mamati components are ok so far. You don't need stronger motors imo. Cooler and fan on the MMs are a must.
  10. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    Hi,
    there is something wrong..:( one of the mosfed burned, could you please check my wiring on the picture:sos

    After making the wiring as attached; the PC open, Arduino wired but software closed, Motors wired but Simtools and SMC3 closed I give the power....the leds on MonsterMoto lights on but after 5-6 seconds the A1-A2 mosfed on second MonsterMoto blow off suddenly.
    The little test motors were already tested on one MonsterMoto, it was working with one MonsterMoto....I only put a second one.
    I remark a link between 2 legs of the mosfed (you can see on the picture..yellow circle) but I don't know if this were already there and that's why it is burned or it's burned and it causes a link....I don't know...any idea?

    What can be the problem? Please need help.
    Two MotoMonster for two motors.jpg DSC_0722.jpg
  11. 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
    @Mamati please can you upload more pictures of all your wiring? High resolution pictures are strongly recommended. If (!) the wiring is OK I ask myself (or you) why you don't use any coolers? If I would do so my MMs would blow up within 1/100 seconds... to avoid any more damage PLEASE show us the wiring BEFORE you power up your system. Only in this case we can help you before it is too late :) But do not worry, I lost more money already than one MM (and some other members here for sure :p).
  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
    hmm, perhaps I found already something:
    DSC_0722.jpg
    Perhaps you can explain why there a two cables?
  13. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    I pulled back the wires to test the other MM if it is working (one MM for two motors configuration)....and it is working without problem.
    Before pulling the cables I check the wires and prepare a sheet posted above...you can check the wirings on the drawing for me.

    There is no cooling because I am testing with simple weak (below 1Amp) motors. I didn't yet using my powerfull wormgear motors, when everything will be fine I will do a cooling for powerfull motors.

    There are two cables, because I made a jump from positive lead from the motor A1-B1 is positive A2-B2 is negative.

    If the drawing that I sent is correct so my my wiring is correct too....in this case maybe the board was faulty or I dropped soldering wire on the leads of the mosfet.

    @Pit could you please check the drawing.

    One more thing: I think that the other mosfet (A2-B2) is working so I want to use the MM it for one motor, when I powered again the damaged mosfet continues to burn, how can I leave out of order the damaget mosfet?

    Thank you for your help
  14. 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
    The drawing is correct, but I cannot evaluate your wiring as long you wont upload any pictures.
    OK. Such small motors are no problem.
    ??? A1-B1 and A2-B2 have NEVER the same polarity, meaning they are switching the polarity! (A2-B2 is negative AND positive according on the direction of the motors...)
    This graphic shows you the polarity which yourself have posted above:
    Two MotoMonster for two motors.jpg
    I will not longer support any requests as long as you are not willing to upload any photos of your hardware. Your comment is incomprehensible, everybody can make a mistake (and I did as well). Saying "If the drawing that I sent is correct so my my wiring is correct too" is unbelievable IMHO.
    By connecting only the wire for the healty chip but without guarantee due to the already damaged board, before you are not willing to upload any pictures (has been already said, if I remember correctly..........) :nerd
  15. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    I change the MM with a new one and now It is working without problem...so I think that I dropped soldering wire on the leads of the mosfet....that's why it blowed.
    Regarding the damaged MM, I pull off the burned mosfet then powered it, the led is on no smoke or heat....(A2-B2) mosfed seems working but I will try with motor later.
    Now I will modify the MMs with heatsinks and fans then try it with my powerfull motors.

    I want to ask you the wiring diagram for third motor (traction loss), Iam confused to wire third pot and MonsterMoto to Arduino.
    Thank you
  16. 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
    Agree, you marked it but I did not see that first.
    How are you going to use the third MM (which modus)? If as a half bridge (30A/60A) all settings are described here: http://www.xsimulator.net/community...cts-as-a-single-motor-driver-more-power.5482/.
    If as a standard h-bridge (15A/30A) please have a look at the first page of this thread.
  17. Mamati

    Mamati Member

    Joined:
    Jan 12, 2011
    Messages:
    52
    Location:
    Istanbul/Turkey
    Balance:
    158Coins
    Ratings:
    +6 / 1 / -0
    Pit, you are so kind to answer me.
    I will use a half bridge (30A/60A)...thank you for the link.
    For traction loss I am planning to use my one damaged mosfet MM. Are my wirings correct on the drawing attached?
    And the middle leg of the third pot? to A2 on Arduino, right?

    Attached Files:

  18. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,931Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    @Mamati @Pit ... That solder jump seems to be " OEM Made " by mistake !!! ... cause it is good welded to both IC legs which can't be achieved with just dropping solder by mistake on the board ... you must give both legs a little heat before welding that good looking jump ... So I guess that is a defected MM covered by warranty ... and I guess you have applied solder to the wires from the other side of the MM so there is no chance to have such accident ...


    Such a small drop of solder can freeze in the air ( edit: like these little guys in red marks )before landing between the legs like that ... Or gives a splash solder drop spot ... and where exactly is that ?
    DSC_0722.jpg

    So it's a must to give us more photos of that defected MM please so we can preview the datasheet and confirm this case ... If you really willing to continue with more helpful support ...
    keep up the good work :thumbs
    Last edited: Apr 7, 2015
  19. 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
    If you use the damaged MM for TL than you have to wire it as a "normal" standard MotoMonster described in this thread on the first page.
    MotoMonsterSetup.jpg
  20. JRoque

    JRoque New Member SimAxe Beta Tester Gold Contributor

    Joined:
    Jun 5, 2014
    Messages:
    21
    Location:
    Miami, FL USA
    Balance:
    282Coins
    Ratings:
    +20 / 1 / -1
    Hello all!

    Feature request for SMC3: adjustable slew rate for the "motion" function. Unless I'm doing something wrong, I see a very smooth motion profile being sent to the controller. This contrasts sharply with how game data shows. Being able to adjust the slew rate so very fast/sharp changes are sent to the motor will help tuning PID and find setup limitations.

    Thanks!
    JR