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

SMC3 Arduino 3DOF Motor Driver with SoftStart

Discussion in 'SimTools compatible interfaces' started by BlazinH, Jan 4, 2017.

  1. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,613Coins
    Ratings:
    +1,835 / 32 / -1
    * UPDATE to 1.7a: Fixed soft start code error
    • Like Like x 1
  2. MarcoMade

    MarcoMade Active Member

    Joined:
    Jan 3, 2018
    Messages:
    150
    Occupation:
    Tecnico pc hardware/software MadeFix
    Location:
    italy
    Balance:
    157Coins
    Ratings:
    +63 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    ok now it works, even if during the ascent of the 2 dof still takes a shot, I have to understand what it is ..
    good job!
  3. MarcoMade

    MarcoMade Active Member

    Joined:
    Jan 3, 2018
    Messages:
    150
    Occupation:
    Tecnico pc hardware/software MadeFix
    Location:
    italy
    Balance:
    157Coins
    Ratings:
    +63 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    having patience you can also edit the version which is then displayed in smc util by editing this line replacing 70 in 170.
    to find the string quickly, look for the name version
    regards

    SendValue('v',70,ComPort); // Software Version - divide by 100 to get version - ie 101= ver1.01
  4. Pino Pistolidas

    Pino Pistolidas New Member

    Joined:
    Mar 16, 2018
    Messages:
    22
    Location:
    Netherlands nijkerk
    Balance:
    184Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    @BlazinH I hope you can help me out. I'm using your sketch with an Arduino Uno (with pin 8 shorted) together with a Sabertooth 2x30, so MODE3, and all works perfect. But I don't think the softstart is working for me. I tried different SSLOOP values from 5 to 4000 but when I start up my chair it jumps into place.
    I first power on the powersupply to the Sabertooth and then the power to the Arduino Uno. (also tried the other way arround). I dont think the new version 1.7 will help in this matter because it doesn't have MODE3, right?
    Is there something more I could try?
  5. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,613Coins
    Ratings:
    +1,835 / 32 / -1
    • Like Like x 2
    Last edited: Jun 23, 2020
  6. Pino Pistolidas

    Pino Pistolidas New Member

    Joined:
    Mar 16, 2018
    Messages:
    22
    Location:
    Netherlands nijkerk
    Balance:
    184Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    This one works perfect, nice slow start :thumbs, thanks.
  7. iLLuac4

    iLLuac4 Active Member

    Joined:
    Jun 19, 2019
    Messages:
    130
    Balance:
    884Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    2DOF
  8. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,613Coins
    Ratings:
    +1,835 / 32 / -1
    • Like Like x 2
  9. iLLuac4

    iLLuac4 Active Member

    Joined:
    Jun 19, 2019
    Messages:
    130
    Balance:
    884Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi. No I really like the soft start and I am using it.
  10. iLLuac4

    iLLuac4 Active Member

    Joined:
    Jun 19, 2019
    Messages:
    130
    Balance:
    884Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi.
    Hi. When do you expect to have time to do a fix? TNX
  11. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hello to all of you dear friends, I have a question:
    and are there two versions of "Softstart"?
    A while ago I had downloaded version V1.7
    Now I have seen that version V1.7a exists

    What is the difference between the two versions?
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

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

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi Noorbeast, yes I have already read the two pages of this thread very carefully, but I did not understand the changes that have been made.
    I understand that someone has complained about the abnormal functioning of the "Softstart" (even without using Simtools).
    I also have the same problem: as soon as I insert the USB cable, the motors try to move to the center but with impulses, until they stabilize after a few seconds.
    In the SSloop line I put this:

    const int SSloop = 100;

    I would like to understand two things
    1) are there really the two versions V1.7 and V1.7a?
    2) which lines of code were changed between the two versions?

    Thank you
  14. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi everyone, I'm using the "Soft Start" code but I have a problem: I practically set the value "const int SSloop = 30" and every time I insert the USB cable it starts to move towards the center but as soon as it arrives towards the center it starts to make 5 violent shots up and down and then stabilizes.
    How can I solve the problem?
    • Informative Informative x 1
  15. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi all, I need some information: I'm trying to use SMC3 "Softstart V1.7a", but I have a small problem.
    I start SMC3Utils, set the values, save in M2 and M3 and close SMC3Utils. But as soon as I start SMC3Utils again, the PWMmax value changes.
    Let me explain better: I set SSLOOP to 500 to have a very slow startup, I program Arduino, start SMC3Utils, set PWMmax to 150, close SMC3Utils, start SMC3Utils again and I see the PWMmax value which has become 12.
    Is it a defect?
    How can I solve this small but annoying problem?
  16. iLLuac4

    iLLuac4 Active Member

    Joined:
    Jun 19, 2019
    Messages:
    130
    Balance:
    884Coins
    Ratings:
    +53 / 0 / -0
    My Motion Simulator:
    2DOF
    I have the same problem. I always restore the settings from the file to get the same results to start tweaking.
  17. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi everyone, I have a problem.
    I am using SMC3 "Softstart V1.7a" and to test my 3DOF simulator (4 cylinders), I am using rFactor which has AI (auto driving (so I can see and test everything without driving).
    A strange thing happens: after about 3 minutes one of the motors stops working, as if it no longer receives commands from the BLDC driver.
    So I run this test: close rFactor, open "Game Engine", Output testing, Turn ON, (a) Axis Output, move slider "Axis4a" but the engine doesn't work. I open SMC3Utils, Sine, and the engine runs.

    What's the problem?
    How can I solve the problem?
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    It could be a number of things, but my first guess would be possible USB disconnects: https://www.xsimulator.net/community/faq/usb-disconnects-and-port-mapping.396/
  19. motiondynamics

    motiondynamics Member

    Joined:
    Apr 12, 2019
    Messages:
    177
    Balance:
    1,055Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi noorbeast,
    The two USB cables are both connected to the V2.0 ports
    I just downloaded "USB Tree Viewer", I attached the result.
    I disabled selective suspend
    These are the COM port settings.
    Question: Is 500000 BitsPerSec correct?
    In "Manage Devices", COM ports, which speed should be set?
    I set 9600, is that correct?

    Attached Files:

    • usb.jpg
      usb.jpg
      File size:
      290.9 KB
      Views:
      126
    • usb2.jpg
      usb2.jpg
      File size:
      152.5 KB
      Views:
      129
    • COM.jpg
      COM.jpg
      File size:
      210.2 KB
      Views:
      129
    Last edited: Jan 3, 2023
  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,030
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,878Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I would leave the com port default for now.

    Just change one thing at a time, as you first have to find the cause before you can fix it and changing too many things at once will make that hard.