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. Pramuuditha Kumara

    Pramuuditha Kumara Member

    Joined:
    Jan 6, 2019
    Messages:
    51
    Balance:
    81Coins
    Ratings:
    +4 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    thank you very much for helpful information.
  2. Pedro Andres Pineda

    Pedro Andres Pineda Member

    Joined:
    Dec 12, 2018
    Messages:
    47
    Occupation:
    System engineer
    Location:
    Colombia
    Balance:
    46Coins
    Ratings:
    +9 / 0 / -0
    Hi,


    Great work with the SMC3.

    I'm working with the smc3 in mode 1 and now I can move my motors using the smc3tool.

    What must be the value for "Kp, Ki, Kd, PWMmin, PWMmax, PWMrev, and the others configs"?

    Do you have a manual or tutorial to calibrate or find the perfect value?

    Thank you for the help.
  3. Pedro Andres Pineda

    Pedro Andres Pineda Member

    Joined:
    Dec 12, 2018
    Messages:
    47
    Occupation:
    System engineer
    Location:
    Colombia
    Balance:
    46Coins
    Ratings:
    +9 / 0 / -0
    A last question: I can move the motors using SimTools. Do you have a standard values for this previous settings in SimTools?
  4. Pramuuditha Kumara

    Pramuuditha Kumara Member

    Joined:
    Jan 6, 2019
    Messages:
    51
    Balance:
    81Coins
    Ratings:
    +4 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Just check this one you will get some idea https://www.xsimulator.net/community/threads/my-simple-2dof-simulator.10714/
  5. Pramuuditha Kumara

    Pramuuditha Kumara Member

    Joined:
    Jan 6, 2019
    Messages:
    51
    Balance:
    81Coins
    Ratings:
    +4 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Agree Agree x 1
  6. evolaco

    evolaco Member

    Joined:
    Sep 27, 2015
    Messages:
    260
    Location:
    Spain
    Balance:
    1,070Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    3DOF
    Why does not KD affect one of my engines? the one on the right does affect him and I have managed not to bounce but the one on the left does not affect KD, I have reached 1000 and KS at 100 and remains the same, does that have a solution?
  7. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,614Coins
    Ratings:
    +1,835 / 32 / -1
    Are you using smc3 v1.0?

    Kd will have greater effect when Ks is 0.
    Last edited: Jan 19, 2019
  8. evolaco

    evolaco Member

    Joined:
    Sep 27, 2015
    Messages:
    260
    Location:
    Spain
    Balance:
    1,070Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    3DOF
    I use the latest version, I tested ks to 0 and KD has no effect from 0 to 1000
  9. 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
    Simple things,but without it,big problems:)
  10. Gabor Pittner

    Gabor Pittner Active Member

    Joined:
    Oct 25, 2018
    Messages:
    195
    Location:
    Szekesfehervar Hungary
    Balance:
    1,337Coins
    Ratings:
    +85 / 0 / -0
    My Motion Simulator:
    6DOF
    If somebody has an idea please help me....I've been struggling with PID settings for a long time. I can not get smooth at all with my rig, however I tried all kind of settings... Its almost good when kp under 80, but I lost speed and lots of detail of movement.
    I made two videos for it:

    Last edited: Jan 29, 2019
  11. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,614Coins
    Ratings:
    +1,835 / 32 / -1
    If you can't get smooth motion using Kp only with PWMmax at 255 then your issues are likely not PID related. Could be noisy pots, under-powered, bad geometry, etc.
  12. Pedro Andres Pineda

    Pedro Andres Pineda Member

    Joined:
    Dec 12, 2018
    Messages:
    47
    Occupation:
    System engineer
    Location:
    Colombia
    Balance:
    46Coins
    Ratings:
    +9 / 0 / -0
    I had a similar problem and I didnt find a configuration,but when I put some weight(one person) on the structures the platform worked smoothly(with the same speed), that indicated me that I must adjust the geometry in my platform.
  13. Pedro Andres Pineda

    Pedro Andres Pineda Member

    Joined:
    Dec 12, 2018
    Messages:
    47
    Occupation:
    System engineer
    Location:
    Colombia
    Balance:
    46Coins
    Ratings:
    +9 / 0 / -0
    I have my simtools sending the payload to the SMC using serial port, but I know that is possible send the commands using network. I made this and put the out mode in the SMC3 tool in UPD Pass thru.
    Now the simtools is sending the data to SMC3tool(using network) and the SMC3Tool sends the data to the platform and it works and I can see if the target and feedback are aligned.

    My question is: With this configuration(network) is the performance equal to simtools using serial?
    Last edited: Jan 30, 2019
  14. Gabor Pittner

    Gabor Pittner Active Member

    Joined:
    Oct 25, 2018
    Messages:
    195
    Location:
    Szekesfehervar Hungary
    Balance:
    1,337Coins
    Ratings:
    +85 / 0 / -0
    My Motion Simulator:
    6DOF
    I don't think so. This rig have been used with Thanos AMC1280USB board analog control it wasn't jerky at all. There are 24V 490W motors more than strong enough. Used Hal sensors for feedback never had problem with them. Several members made a rig in the same geometry. I think something wrong with delay maybe or i don't know. :( Could it be beacuse of sabertooth 2x32 serial timeouts? There is an infinity symbol on it in describe tool. :).
    Last edited: Jan 31, 2019
  15. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,614Coins
    Ratings:
    +1,835 / 32 / -1
    P in PID stands for proportional so the voltage applied to the motors using P only will be directly proportional to the input and should produce the smoothest motion on an unloaded rig. I and D gets added to P and do things to tweak the movement which can cause positive or negative outcomes.
    But the difference in AMC vs SMC3_SPS is AMC controls via a 5v signal and SPS via serial coms. So yes that's possibly where your problem is. In any case though you should be posting here when asking questions related to Sabertooth controllers and SMC3 as this thread is for supported H-bridges only. https://www.xsimulator.net/communit...ket-serial-pid-motor-driver-w-softstart.9277/
    Last edited: Jan 31, 2019
  16. Sam Court

    Sam Court New Member

    Joined:
    Jan 31, 2019
    Messages:
    1
    Balance:
    88Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi All,

    I am new here and new to this so i apologies if this has already been asked.
    I'm thinking of building a platform using linear actuators. Which mode would be best and would I still need to add a potentiometer to the circuit?

    Many thanks
  17. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    180
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    783Coins
    Ratings:
    +32 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi guys,
    do you know if we can get the source code of the SMC3Util (Windows) ?
    I would like to do some changes and maybe port it to Linux.
    Any idea ?

    cheers,
    Dirk
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,054
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,022Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  19. Arazok

    Arazok Member

    Joined:
    Mar 26, 2018
    Messages:
    180
    Occupation:
    Computer scientist
    Location:
    Germany
    Balance:
    783Coins
    Ratings:
    +32 / 0 / -0
    My Motion Simulator:
    2DOF
    Yes, I found that too, but unfortunately it isn`t the code.
    Just the exe and ini file, so the executables but not the source ....
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,054
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,022Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Hmmm you are right, I have never downloaded it before and have always presumed it was the source, as it is clearly labeled source.

    I presume that means that only @RufusDufus has the source code.

    Update - I had a poke through the old comments and its seems the source is on a disused computer: https://www.xsimulator.net/communit...nd-windows-utilities.4957/page-66#post-132918
    • Like Like x 1
    Last edited: Feb 1, 2019