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

    gcheydle New Member

    Joined:
    May 27, 2016
    Messages:
    5
    Location:
    Ann Arbor Michigan
    Balance:
    203Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hello All,

    I am new to the motion sim scene and my first motion sim just arrived. (A Dynamic Kit Pro) I am in the debugging phase right now and am trying to get it working with my system. I had it running and was testing it in the Output Tester and it seemed to work great. Then I goofed up and moved the cursor past the edge of the window while testing which made the scroll bar snap back to the middle. The motor then got stuck at it's maximum position and won't move from there. I then used the tester more to try and find out what had happened and I managed to lock the other motor up. I restarted Simtools and that fixed one of the motors but not the other. In trying to fix this myself I managed to lock the first motor back up. This time in the minimum position. Now they are both stuck and I can't seem to unstick them. Here's a picture of the final position.

    The kit uses an Arduino Uno with two H bridges and two electric worm gear motors. The Arduino currently has the SMC3 firmware loaded onto it. I used this because that is what the kit maker recommended. The firmware is in mode 2. I used the SMC3 Utility and followed the initial setup steps to initially make the motors behave.

    After this point I have tried in various combination restarting SimTools, restarting the computer, cycling power to the board, cycling power to the motors, reinstalling the Arduino firmware, and messing around with the SMC3 tool. The only fix I have thought of but haven't tried is just applying power directly to a motor to move it away from the max, but that sounds like an excellent way to break the motor or the potentiometer, so I would rather not have to do that.

    My suspicion is that this is some sort of limit issue with the potentiometers where the snap from Max to neutral tripped a safety feature. Do any of you have any idea on how to fix this?
  2. bruce stephen

    bruce stephen Hammer doesnt fix it, must be electrical

    Joined:
    Jun 7, 2015
    Messages:
    1,286
    Occupation:
    general contractor
    Location:
    michigan
    Balance:
    9,110Coins
    Ratings:
    +1,237 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform, 6DOF
    @gcheydle did they include simtools or recommend that also?

    check the top left of smc3utils. there is a motor off/on button. shut down smc3 before starting simtools
  3. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Ok here what I tried I done as you said and re uploaded sketch and then just pot and smc3 I actually tred with two different arduino's I also downloaded sm3 utlity version 0.60 and tried it I can still only adjust pwm min and pwmrev
    I thought about mabey trying on another Pc
  4. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,603Coins
    Ratings:
    +1,008 / 8 / -1
    Looking more closely at your earlier screenshot, I think the issue is actually your system seems to be using a larger font than normal and the numbers have wrapped to the next line and are being covered by the next line of text. I don't know why this is - it's the first time I have seen it. I suspect it is actually working and changing the values on the arduino you just can't see it happen.

    Do you have windows setup to use non standard fonts or extra large font?
    • Useful Useful x 2
    • Like Like x 1
    • Winner Winner x 1
    • Informative Informative x 1
  5. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,603Coins
    Ratings:
    +1,008 / 8 / -1
    @gcheydle do as @bruce stephen suggests, but make sure the motor pots are moved to the center position before restarting or it may just immediately disable the motors again. This shutdown function is built in to protect the motors and rig if something goes wrong.
  6. Justin Dail

    Justin Dail Member

    Joined:
    Jan 23, 2016
    Messages:
    37
    Location:
    Georgetown South Carolina
    Balance:
    393Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    :):):) it's crazy cause my windows was set to default font but I tried small like you said and that was it now I can see adjustments everything is working perfectly now thanks for everyones help now I can move forward with project thanks again
    • Like Like x 2
  7. Enrique.Rolon

    Enrique.Rolon New Member

    Joined:
    Aug 5, 2016
    Messages:
    18
    Location:
    Argentina
    Balance:
    73Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    Arduino
    Hello!
    I followed the tutorial and set up SMC3 in arduino for the H-Bridge (setting MODE2 inside the code) but i am not able to start the motor! I just connect one motor to test via SMC3 windows tool.
    I have the setup attached. The circuit image is also attached and is the upside of the example. What is going wrong?

    Attached Files:

  8. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Motor is "OFF", see left corner on the top...must be "ON"
    • Informative Informative x 1
  9. Enrique.Rolon

    Enrique.Rolon New Member

    Joined:
    Aug 5, 2016
    Messages:
    18
    Location:
    Argentina
    Balance:
    73Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    Arduino
    Thanks for ur reply!
    I turned on the motor and repeated the set up procedure.
    But getting same result : no motor running (
    I attached the new Utility setup. Remarke: the "Max Limits" must no be upper than 65 if not the Motor 1 "ON" buttpn in the left corner on the top, go OFF.

    Attached Files:

    • 2.jpg
      2.jpg
      File size:
      116.3 KB
      Views:
      528
  10. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    There is something wrong with the potentiometer or the wiring to the potentiometer
  11. Enrique.Rolon

    Enrique.Rolon New Member

    Joined:
    Aug 5, 2016
    Messages:
    18
    Location:
    Argentina
    Balance:
    73Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    Arduino
    If i twitch the potentiometer, the Feedback variates as the attachment shows.
    Im using arduino mega 2560 tho, it should be not problems with the code right? The data of the potentiometer is conected to the arduino in A0 analog input. Then i have a protoboard to the put the circuit togheter. I attach a very good photo (lol), can sketch up the circuit if still not working

    Attached Files:

    • 3.jpg
      3.jpg
      File size:
      131.3 KB
      Views:
      555
    • 4.jpg
      4.jpg
      File size:
      127.2 KB
      Views:
      539
  12. Grigory

    Grigory Active Member Gold Contributor

    Joined:
    Jul 6, 2016
    Messages:
    202
    Location:
    Moscow
    Balance:
    212Coins
    Ratings:
    +304 / 1 / -0
    My Motion Simulator:
    3DOF, 6DOF
    Hello!
    I'm facing a strange issue with SMC3 running in Mode2 with just one motor attached as motor 2 through 43A IBT-2 driver and Arduino Uno: after opening the windows application and running any motion command, sine wave for example, everything works fine for 5-10 seconds and then motor halts.

    Yellow PWM graph keeps being generated, but nothing moves until I either reset Arduino or close/reopen the Windows application. Resetting logic power to the motor driver or power to the motor itself does not have any effect.

    What could it be? Can it be related to the fact that Arduino and motor driver logic are powered through USB from laptop?
  13. Enrique.Rolon

    Enrique.Rolon New Member

    Joined:
    Aug 5, 2016
    Messages:
    18
    Location:
    Argentina
    Balance:
    73Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    Arduino
    Now i get the SMC3 Setup utiliy as attached image, the PWM is variating, i suppost the motor is starting? I mesure its input voltage with a voltmeter and there is 0V as input, and the motor dont roll

    Attached Files:

    • 5.jpg
      5.jpg
      File size:
      138.9 KB
      Views:
      556
  14. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,568Coins
    Ratings:
    +1,831 / 32 / -1
    There is always the possibility of USB errors regardless of what they are connected to if the power source for the ports is unable to supply enough current for everything connected to them.

    If that's all that is connected to your laptop though that shouldn't be a problem.
    Last edited: Aug 10, 2016
  15. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,603Coins
    Ratings:
    +1,008 / 8 / -1
    Yes that looks like it is running correctly. I note that you are using a Mega, I've never tested on this and never got round to checking the specs to make sure all is the same - although I can't think why that would be a problem.

    It is most likely a wiring issue or a problem with the IBT. Recheck all wiring and make sure it is secure. You can make a simple test probe using an LED in series with a 1k resistor and some wires. Connect one end to ground (make sure LED is correct way round) and probe the signals with the other end. LED will light when signal is high. Just be careful not to short anything.

    Note the motors switch OFF when the green line moves outside the red lines. They will switch off if there is noise on the pot wires and even one sample is read outside the range. The pot needs to be inside the valid range when you power up. @Grigory have you checked this also?
    • Informative Informative x 2
  16. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,568Coins
    Ratings:
    +1,831 / 32 / -1
    @Pit and I can confirm your sketch runs without issue on a Mega also. :thumbs
    • Agree Agree x 1
  17. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Mostly if such issues happens the DIYler did not read all content of the manual, did not wire correctly, did not solder correctly or use faulty (cheap not working) drivers or defective Ard clones.
  18. Grigory

    Grigory Active Member Gold Contributor

    Joined:
    Jul 6, 2016
    Messages:
    202
    Location:
    Moscow
    Balance:
    212Coins
    Ratings:
    +304 / 1 / -0
    My Motion Simulator:
    3DOF, 6DOF
    Thanks, I checked that. The corresponding motor button says "ON". It works fine for several seconds, sine wave target is followed quite closely. And then all of a sudden the motor just stops.
    Upon restart of the Windows application the motor moves to the middle of pot range and holds still until I run any of the movement commands. Then it again works just fine but very soon stops.
  19. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Try first Kp=200 and PWMmax=100. Then raise PWMmax up to 180. If no issues then raise KP until the motor stops (eventually).
    • Useful Useful x 1
  20. Grigory

    Grigory Active Member Gold Contributor

    Joined:
    Jul 6, 2016
    Messages:
    202
    Location:
    Moscow
    Balance:
    212Coins
    Ratings:
    +304 / 1 / -0
    My Motion Simulator:
    3DOF, 6DOF
    Will try that tonight, thanks.

    Do you have a theory about what is happening?