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. 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?
  2. elnino

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    245
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,551Coins
    Ratings:
    +138 / 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.
  3. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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
  4. Krzysztof Dej

    Krzysztof Dej Active Member

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

    elnino Active Member

    Joined:
    Apr 1, 2010
    Messages:
    245
    Occupation:
    Computer Geek
    Location:
    Adelaide, Australia
    Balance:
    1,551Coins
    Ratings:
    +138 / 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
  6. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 0 / -0
    My Motion Simulator:
    2DOF
  7. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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
  8. Natethegreat

    Natethegreat New Member Gold Contributor

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

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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:

  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,733
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    152,171Coins
    Ratings:
    +11,063 / 56 / -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
  11. Krzysztof Dej

    Krzysztof Dej Active Member

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

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

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

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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
  14. 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.)
  15. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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:

  16. Krzysztof Dej

    Krzysztof Dej Active Member

    Joined:
    Jun 3, 2020
    Messages:
    315
    Location:
    Poland
    Balance:
    1,110Coins
    Ratings:
    +74 / 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
  17. yura999

    yura999 New Member

    Joined:
    Aug 6, 2017
    Messages:
    27
    Balance:
    327Coins
    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
  18. yura999

    yura999 New Member

    Joined:
    Aug 6, 2017
    Messages:
    27
    Balance:
    327Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF
    Friends, please tell me so what am I doing wrong? Or is everything working properly for everyone?! After all, maybe someone will have the same situation as me, but there will already be a solution to such a problem.
  19. motiondynamics

    motiondynamics Member Gold Contributor

    Joined:
    Apr 12, 2019
    Messages:
    206
    Balance:
    1,215Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SimAxe, Arduino, Motion platform, 6DOF
    Hi everyone, I'm a simulation enthusiast and a few months ago I bought the Simtools license.
    I have a big problem with my simulator (electric linear actuators with Arduino) and I ask your technical support to solve it, I'll explain what happens.

    I had downloaded the SMC3 V1.0 version, but I had a problem: as soon as I inserted the USB cable, the actuators went to the central position very quickly. Then I tried to use version 1.7a with "Soft Start", but even with this I am having problems, the movement starts slow but when it reaches the central position the actuators make 5 violent clicks (up and down).
    In Game Engine> Interface Settings, I have selected 10 ms in Output Rate.

    What I ask is: I want to use SMC3 V1.0 version. Is it possible to prevent the actuators from snapping in the center when I plug in the USB cable? That is to make the actuators move only when I start Simtools using the Game Engine functions "Startup & Resume" and "Shutdown & Centering"?

    Another question: in Game Engine I set 500000 BitsPerSec, in the Windows COM port I set 115200 BitsPerSec.
    What are the correct values that I need to set in the Windows COM port?

    Tell me if there is any remedy, I hope you give me some answers, I am confident of your kindness and your professionalism.
    A thousand thanks
    Last edited: Nov 14, 2022
  20. Pierre Lalancette

    Pierre Lalancette Sir Lalancelot Gold Contributor

    Joined:
    Dec 11, 2016
    Messages:
    1,006
    Occupation:
    Tech Artist
    Location:
    Quebec, Canada
    Balance:
    8,044Coins
    Ratings:
    +944 / 6 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, 6DOF
    I might be totally wrong as my rig has been down for a long time, but I think this is controlled by the program inside the Arduino. As soon as it has power, it brings the motor to the center. SMC3 is more like an interface to bring value to that program, but I don't think there is control for the start setup. But it's been so long, I could be wrong.