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

    kalbasator Active Member

    Joined:
    Dec 28, 2021
    Messages:
    105
    Location:
    Kazahstan, Almaty
    Balance:
    400Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 4DOF
    Hello! If it's still relevant, then I got rid of the squeak by increasing Fpwm.
  2. Slybynight

    Slybynight New Member

    Joined:
    Jun 25, 2020
    Messages:
    19
    Balance:
    128Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi guys, I have a problem. one of my motors on my 2DOF rig cuts out after about a minute of gameplay. Everything works fine in SMC3, the problem happens on all games. Everything works fine when moving slider on Simtools game engine - I did this for ages in case it was a thermal thing - it didn't cut out. So my thinking is.

    Motors are fine
    Pots are fine
    Driverboards are fine
    Game is fine

    Problem has to be in the arduino right? So long story short I'm trying to make sure the code in my arduino is up to date.

    How do I know what version it is?
    What is the latest version? Some places say V0.7.0, some say V1.1, can someone please point me to a link to the latest version?

    EDIT - I think I get it now - ino is V0.7 and all other version numbers refer to simtools right?

    But I still have my problem - re-uploading ino V0,7 to the arduino did not fix it.

    If I quit simtools and load up SMC3utils, the 2nd motor jerks back into action. Then I can close SMC3, restart simtools and everything works fine again.
    For about a minute, then the same motor stops responding again.

    I am nowhere near my max limits or clip inputs.

    EDIT 2
    By Jove I think I have found the problem!!! Took me ages to find it, but it might be useful to anyone else having the same problem. The problem goes away when I disconnect the cooling fan for my IBT controllers. I think the fan motor is too close to the whole IBT heatsink and is causing some sort of interference with fast moving game data - that would be why the problem never showed in SMC utils or Game Engine sliders - too slow. DONT MOUNT YOUR COOLING FANS TOO CLOSE TO YOUR MOTOR DRIVER BOARDS FOLKS!!!
    • Like Like x 2
    Last edited: Sep 9, 2022
  3. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi I use ibt motor driver and wiper motor. Trying to do belt tensioner and have a problem. Before wiper motor Smc3Utils go only down like on picture, I change arduino and ibt and still the same, then I changed motor to wiper motor and when run Smc3Utils. Program start and I see pot sygnal and then when I switch power on Smc3Utils crashes. When I start Smc3Utils with power on its crashes instantly. What is the problem. Wiper is ground protected. Psu is:
    Power: 150W
    Voltage : 12V
    Amperage : 12,5A

    Attached Files:

  4. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    After the crash....is the 12V Voltage still present?
  5. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    239
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,512Coins
    Ratings:
    +137 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So when there is no 12v, and you manually move the arm, does the green line move as expected?
    Have you have you connected the ground between 12v ground and arduino ground?
    Show/explain wiring or it is hard to help.
  6. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    It's motor problem. Becouse when I turn power on without motor Smc3Utils works but when I connect wiper motor then crash. I will post pic
  7. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    I connect other motor and it's working but motor fallow pot sygnal only in one direction. Why?
  8. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    239
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,512Coins
    Ratings:
    +137 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    that doesn't mean anything. I asked specific questions and you give vague answer.

    cant help if you don't answer questions accurately
  9. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
  10. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    OK I made a video but if not see well I write it also
    So :
    On motr controller
    1 blue to 2 arduino
    2 purple to 9 arduino
    3,4 green to 3 arduino
    7 red to 5v pot and then to red 5v arduino
    8 black to gnd pot then to black gnd arduino
    Green Vout from pot to yellow a0
  11. Natethegreat

    Natethegreat New Member Gold Contributor

    Joined:
    Sep 7, 2022
    Messages:
    2
    Balance:
    - 67Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, SimAxe
  12. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi I have a question. When I have 2dof already and 2 motors chair does it be the conflict when I connect another arduino with this code for motor 1? I ask becouse it's working for me when I wire it to the 3 motor
    Thanks for answering me BTW

    Attached Files:

  13. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,029
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,872Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    A additional Arduino will have a different port, and that port selected in SMC3 and SimTools, so there will not be a conflict when an addition Arduino is added.
    • Like Like x 1
  14. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    So my problem was arduino that it looks
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,029
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,872Coins
    Ratings:
    +10,878 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Do you mean you did not check and configure the second Arduino for its assigned port?
  16. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    No i use another arduino on different port. But for me I don't know. Once was motor controller broken once arduino. I buy a boyer ones and replace it and looked what is happened. So it's strange that another arduino works only when connected all parts for 3rd motor
  17. Renan Piva Pinheiro

    Renan Piva Pinheiro New Member

    Joined:
    Nov 15, 2021
    Messages:
    1
    Balance:
    - 1Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hi,
    I would like to thank you for all the knowledge shared.

    I'm trying to make my first 2DOF.
    I am using bts7960 43a h-bridge and Bosch F006.B20.360 engines.

    This motor already has (built-in) the hall position sensor. "magnetic sensor in a 5V circuit that detects the variation of the magnetic flux according to the rotor displacement. The resolution of this sensor is 256 pulses per rotation or precision of 1.4º"

    After assembling and inserting the program into the arduino, the motor remains in rotation but does not stop, as the "feedback" (green line) does not move to the "target" (blue line).
    It seems that the arduino is not able to read the position.

    I noticed that the tutorials deal with position sensors with potentiometers.
    I know that potentiometers provide voltage output signal. It seems to me that the hall sensor provides the signal in PWM.

    Is it possible to use the same program, or would I have to make changes to the arduino code?

    Has anyone had this problem?
    I would be very grateful if someone could help me.

    (Sorry for my English.)
  18. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    I checked the circuit. Because that's what I can do. And I saw that when I check gnd to gnd there is a circuit. But when I check the voltage output there is a circuit but when I give a circuit to the gnd and voltage I get a reading of 400. So it's like something is connecting. Is it good or not the red wire and black wire from pic. All my photos and The description of my problem is a few posts above

    Attached Files:

  19. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    310
    Location:
    Poland
    Balance:
    1,090Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    2DOF
    Ok I find what is the problem. I do not know what and how, but when I connect the tensioner to the metal frame of the seat. You can see something happening AND the motor shuts down. Now I am at the stage of waiting for a printed isolator
  20. yura999

    yura999 New Member

    Joined:
    Aug 6, 2017
    Messages:
    26
    Balance:
    321Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF
    udp simhub and simtools.JPG 94326 94326 94326 94326
    Hello friends. I can't figure out the udp ports sim hub and simtools in the LFS game. I try to get telemetry on the sale of applications, but nothing works neither simhab nor simtuls. In the Simhub app, I chose port 63392 in the running game and also redirected udp to port 4123. My computer uses one, I chose an IP address: 127.0.0.1 While playing simhub works correctly, but simtools sends data incorrectly. (playground twitches, shakes). What's my mistake? What am I doing wrong?
    Last edited by a moderator: Nov 10, 2022