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

Why my motors cant working simultaneously

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by moecia, Dec 5, 2016.

  1. moecia

    moecia New Member

    Joined:
    Oct 25, 2016
    Messages:
    15
    Balance:
    93Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    Arduino, JRK, Motion platform, 4DOF
    Hey, guys! I am a newbee of motion simulator. I have just started my prototyping about a 2-dof motion simulator.

    I have a question that why my motors cannot working at the same time? I followed the instruction of @RacingMat at https://www.xsimulator.net/community/marketplace/arduino-code-2dof-and-2-pins-direction-hbridge.67/ and I found when I type the testing code such as "R9BL9B", only one motor can be driven.

    I checked my connection several time, I think my connection has no problem. Can anyone tell me how to deal with it?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,539
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,052Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. moecia

    moecia New Member

    Joined:
    Oct 25, 2016
    Messages:
    15
    Balance:
    93Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    Arduino, JRK, Motion platform, 4DOF
    Thanks for your reply. I use Arduino UNO and MMs as controller. A couple of 10K potentiometers and a couple of small DC motors(0.35A;3V). A 12V DC power supply.

    The connection and the motors I used as the attched files

    Attached Files:

    • 2.jpg
      2.jpg
      File size:
      342.9 KB
      Views:
      504
    • 3.jpg
      3.jpg
      File size:
      346.7 KB
      Views:
      499
    • 4.jpg
      4.jpg
      File size:
      191.6 KB
      Views:
      469
    • 1.jpg
      1.jpg
      File size:
      263.1 KB
      Views:
      522
  4. moecia

    moecia New Member

    Joined:
    Oct 25, 2016
    Messages:
    15
    Balance:
    93Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    Arduino, JRK, Motion platform, 4DOF
    I have tested both of my motors by using the codes at https://www.xsimulator.net/community/marketplace/arduino-code-2dof-and-2-pins-direction-hbridge.67/ . Each of motors can work well. But when I type the testing code such as "R9BL9B", only the motor #1 can be driven. I dont know how to fix...

    Attached Files:

    • 5.jpg
      5.jpg
      File size:
      91.7 KB
      Views:
      474
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,539
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,052Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Are the pots mounted to the motors and the boundaries set?

    At what step in @RacingMat's instructions are you having problems?
  6. moecia

    moecia New Member

    Joined:
    Oct 25, 2016
    Messages:
    15
    Balance:
    93Coins
    Ratings:
    +9 / 0 / -0
    My Motion Simulator:
    Arduino, JRK, Motion platform, 4DOF
    1. Third step:
    "increase the angulation
    R64L64
    go farther cautiously
    R3FL3F"
    when I did the instruction. Only one motor can be driven.

    2.My pots haven't mounted to the motor(Actually I don't understand why should do it...)

    3.what the boundaries set means..?

    4. I found my pot must set to a certain postion in order to keep the motor still((As attached file shown)), otherwise the left motor or right motor will working even though I enter "R17L17"..

    Thanks for helping!

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      105.5 KB
      Views:
      496
    • 2.jpg
      2.jpg
      File size:
      169.6 KB
      Views:
      456
  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,890Coins
    Ratings:
    +2,083 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hello!

    what you're describing is fine in fact... for the very reason that pot needs to be mounted onto the motor. :)

    think about this:
    1/ computer sends new position (motor has to go further clockwise for example)
    2/ arduino asks pot and pot replies that motor is behind position
    3/ arduino tells motor to turn clockwise and arduino watches pot value until pot value reaches
    4/ when pot value is reached, arduino stop motor
    and so on...

    Hence
    if your pot is not turning (the value is not changing), then the motor keeps turning and turning...

    if the pot is on the target value, the motor is not turning

    good news!