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

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    Put a thin layer on the black heatsink and then reattach the heatsink.
    I am surprised there is no insulating tape on the board... they must be relying on the solder mask to cut costs? I suggest you are careful not to scratch the solder mask and expose the copper tracks.
  2. George Dobransky

    George Dobransky Active Member

    Joined:
    Sep 29, 2016
    Messages:
    216
    Location:
    Hungary
    Balance:
    - 39Coins
    Ratings:
    +130 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    RufusDufus,

    Thanx for the answer...My main case why I was using PWmax to 255, 'coz under that amount
    my chair didn't move well especially for pitch movements, can't follow the signal.
    With amound 255 also I had to set the smoothing rate to 40-60% each axis to follow the signal.
    When I unattach the pushing rods, with hand it semms to be easy to move them.
    Another question. I'm using BMW wiper motors, there are 4 pins inside ("2 modes").
    1-2 slower, 1-3 faster movements. I didn't realize siginificant difference between these
    modes. The slower mode means it can be less load on the controller?
    By the way- in slower mode (pins 1-2) has smoked my controller.
    I have ordered one another Moto shield like the smoked one, and also 2 IBT-2 controllers for
    Hbridge version also. Please advise me which mode should I install.
    I thought 2 controllers should work better and can get better cooling....

    By the way thanx for helping me guys, here in HUngary I think I'm the only one who trying to make
    this stuff, and there's no one to call or ask.......

    Cheers,
    George
  3. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    @George Dobransky , if you can reduce PWMmax and increase Kp. PWMmax of 255 allows the drivers to be turned hard on so the motors can draw whatever current they want through the drivers.

    MODE1 - Moto Monster shield
    MODE2 - IBT-2
  4. NelsonB

    NelsonB New Member

    Joined:
    Mar 14, 2016
    Messages:
    19
    Occupation:
    software engineer
    Location:
    Toulouse
    Balance:
    297Coins
    Ratings:
    +14 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Ok thanks for the advice. Why not just reverse the heatsink and stick it to the chip?
    Nelson.
  5. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    I doubt it would fit.
    Also the packages are designed to get the heat out through the metal tab on the back which is soldered to the pcb copper. The vias(holes) in the pcb are there so the copper is plated through the pcb to get the heat out the back.
    The plastic package is not a good heat conductor however if you add a second heatsink this side it just helps get a little more heat out.
    • Like Like x 1
  6. George Dobransky

    George Dobransky Active Member

    Joined:
    Sep 29, 2016
    Messages:
    216
    Location:
    Hungary
    Balance:
    - 39Coins
    Ratings:
    +130 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    RufusDufus,

    I know the 2 SMC3 MODES, I meant 'mode 1 and 2' at the wiring of the motor, coz the wiper motors
    I can wire in 2 ways. There are 4 pins, if I wire it as 1-2 resulted a slower movement, 1-3 is a faster movement.
    If you are using also wiper motors like that, which wiring are you usin at the motor's pins?

    Cheers,
    George
  7. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    Ok I missunderstood. I haven't used wiper motors but would assume you want the faster setting because they are not that fast to start with? Maybe some members that have used wipers can comment?
    • Like Like x 1
  8. George Dobransky

    George Dobransky Active Member

    Joined:
    Sep 29, 2016
    Messages:
    216
    Location:
    Hungary
    Balance:
    - 39Coins
    Ratings:
    +130 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    RufusDufus,

    Thanx for the info. Every wiper motor's user comments are welcomed by me....
    By the way - what kind of motors are you running with?

    Cheers,
    George
  9. 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
    Hi, you will reach more users by opening a new thread in the respective sub forum.
  10. 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 have a problem: since I switched from Noname code MM to SCM3 code I can not feel the movement changed Delka able to help me?
  11. 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
    without any screenshots and zero information about your settings nobody can help you really...
    • Agree Agree x 1
  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
    Hard to see (bad video quality and I was only over looking it), the Ki and Kd settings should be 0 (zero), from there you start your tests. Ks should be "1". Otherwise check your wiring to to the potentiometers, eventually you have creeping current from the motors on the potentiometers
    • Agree Agree x 1
  13. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    I agree, looks like something wrong with wiring, or a really bad pot, probably wiring though.

    Did you isolate the earths in the wiper motors?
    • Optimistic Optimistic x 1
  14. George Dobransky

    George Dobransky Active Member

    Joined:
    Sep 29, 2016
    Messages:
    216
    Location:
    Hungary
    Balance:
    - 39Coins
    Ratings:
    +130 / 4 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    Guys,

    Isolating the motors are VERY IMPORTANT... I fired one MMsield before I isolated.
    Only 10 minutes work. Have to be the first step!

    Cheers,
  15. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    If the windows SMC3Utils connects to the arduino and displays the position feedback OK then it is very unlikely that the sofware is faulty if you haven't made any changes yourself.

    When you upload the SMC3.ino file using the Arduino IDE it automatically erases the previous code.

    What happens if you only have one motor connected at a time?
    • Old Old x 1
  16. Floydpr

    Floydpr Member Gold Contributor

    Joined:
    Jul 29, 2016
    Messages:
    34
    Location:
    Okc
    Balance:
    77Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi, I am new on this but I bin doing some test and is look be ok to connect 1 motor only, the program on the Arduino is one thing and the hardware is another one.
    • Funny Funny x 1
  17. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,902Coins
    Ratings:
    +1,016 / 10 / -1
    ?
    • Agree Agree x 2
  18. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,062Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    I think he is trying to communicate with us.

    :)
    • Funny Funny x 4
  19. Floydpr

    Floydpr Member Gold Contributor

    Joined:
    Jul 29, 2016
    Messages:
    34
    Location:
    Okc
    Balance:
    77Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF
    Si pero al parecer no entendieron mi mensaje como también no entenderán este. :nerd :roll
  20. Simon Husum

    Simon Husum Member

    Joined:
    Oct 25, 2014
    Messages:
    84
    Occupation:
    Electrician
    Location:
    Viborg, Denmark
    Balance:
    217Coins
    Ratings:
    +59 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT
    Hi guys. ;)

    So. Been very pleased with the SMC3 code with 2x moto monster clones per motor in my 2 dof seatmover :)
    Love the way you can finetune etc.
    Perfect.

    But.. Im having a problem which is driving me crazy.
    Since I went from racingmats code to this I have had this issue. Never before the SMC3 code..
    Here goes:
    My Motor 1 is is acting weird.
    Everything works as it should.
    But motor 2 is set to a deadzone at 2 and works perfect.
    Motor 1 I need a deadzone at minimum 10.
    Else it gets hotter and hotter just standing in ready position?
    WHY?
    -My seat is wellbalanced
    Have tried switching pot meters.
    Tried switching the mcp4 200w 1:50 wormdrives from one to another. Still motor 1 which causes the problem.

    Have tried to mount other moto monster clones at motor 1. Still the same.

    Have mounted temp sensors at the heatsinks at the mm clones.
    And in ready position at a low deadzone the temp rises until the MM dies at last.
    If you start racing it actually helps a bit as the problem is while the rig is standby.

    The higher fpid the better the outcome is. can go by fpid at 1 though. Bjt the temp lowers the higher fpid.
    Must be acording to the MM's don't get as many positions with a higher fpid so that in a way dont stress them as much..
    When the temp rises it is mainly the resistors which starts to get hot, not the chip.

    Have asked another time about the same in this thread:
    https://www.xsimulator.net/community/threads/moto-monster-keeps-dying.8823/

    Hope someone can help.

    Else I think I will go the JRK way and give that a try.

    Thanks in advance.

    Regards Simon

    Attached Files: