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

Question DOF Output not working with more than one axis assigned

Discussion in 'SimTools DIY Version' started by doddynco, Mar 15, 2019.

  1. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    I've almost finished building my rig and sure enough I bump into a very strange problem.

    I opened simtools a couple of days ago after finally finishing my 2Dof rig. Everything was working as expected using the SMC3 code and instuctions - using Dof output, the motors would work together with pitch and roll just as anticipated:

    SMC3 code and instuctions: https://www.xsimulator.net/communit...3dof-motor-driver-and-windows-utilities.4957/

    A mechanical problem meant that I didn't get to do any more that night. I've now come back to simtools to find that it wasn't working as before: Dof Output works when I have one axis (screenshot 1). But when a second axis is selected (screenshot 2), the motors do nothing aside from set to the center position at the start.

    I should say at this point that SMC3 utility is working as expected and so does axis testing.

    Things got really weird when I finally got it moving (screenshot 4): I know these setting arn't going to work properly. However I show them just because it was the only config which moved the rig. It's so hard to describe what this config actually did but I will try anyway: Moving the Roll to the left made one motor move, then moving pitch in the same direction made the other motor move. Pitch only moved when Roll was off-center.

    Basically both motors will not operate at the same time (like they did a few days ago)

    Does anyone have a clue what is going on?

    Attached Files:

    • 1.png
      1.png
      File size:
      202.4 KB
      Views:
      348
    • 2.png
      2.png
      File size:
      202.3 KB
      Views:
      335
    • 4.png
      4.png
      File size:
      184.5 KB
      Views:
      344
    • interface.png
      interface.png
      File size:
      201.3 KB
      Views:
      335
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

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

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Thank you for the quick reply Noorbeast :)

    I have already tried that combination. It gives no movement. It's like the Uno isn't able to communicate with both motor drivers at the same time.
  4. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,161
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,159Coins
    Ratings:
    +5,036 / 16 / -0
    can we see a pic of your sim please?
    2 dof?
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Are you running SimTools and the SMC3 utility at the same time?
    • Like Like x 1
  6. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    SMC3 is closed - is there any way to test two motors at the same time with SMC3?

    Is it perhaps that the Arduino doesn't have enough 5v power to be able to send all the output signals to 4 MM's at once? It was definetely working with both motors the other day, and no wiring has been changed, though the right sensor has been remounted - they are 180 hall pots.

    Attached Files:

  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I think you do need to go back to the SMC3 side and check everything again, particularly if you use clone rather than genuine MMs.
  8. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    It works fine in game but only if one axis (motor ) is assigned a dof. Assigning 2 axis (both motors) it just stays centered - the motors kind of 'jiggle' in the deadzone due to the worm drive, but they don't actually attempt to move position. SMC3 seems fine, I don't really see how anythings wrong - moving each motor manually works as expected. It also does the 'motion' sample just fine.

    In output testing, dragging a second axis bar does nothing unitl the first has stopped it's movement. So the problem seems to be bandwidth/comport related. The arduino seems to be queuing the command for the oppsosite motor, instead of running it simultaneously.

    I've tried older versions of SMC3 (and code).
    Tried usb2 usb3
    Uninstall/reinstall comm port.
    Set languages to English US
    disabled anti virus/ firewall

    Is there any more information I can give you to help?
  9. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    May i need a fanout buffer?
  10. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    (((EDIT: this was not the problem. My wheelchair motors weren't grounded likes most wiper motors. )))

    Ok I've found the problem. It's the ground isolation problem. Turns out the motor body is connected to 'ground' current. This then short circuits to the other motor across the frame. So the jiggling of the motors was, I think, the short circuit protection of the MMs rapidly turning on/off.

    If I disconnect the pushrods, the path is broken and the motors work fine, together, as expected... YAY!!

    Now I just need to take the motors apart, and make sure all the internals are isolated from their case. From what I've found on the forums, one of the brushes will be connected to the case, and I need to cut that connection, and attach my 'ground' going to the MM's, directly to the brush. A continuity test is a good idea afterwards.
    • Informative Informative x 1
    Last edited: Mar 20, 2019
  11. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Ok,

    That isn't the problem, it just happend to start working at that point. I tested the motors and had a good look at the insides. The body of the motors aren't connected to ground - that theory is out the window. The rig was working with the pushrods attached too, briefly...

    It was working fine for about 10-15 mins in output testing, then I set up Rfactor2. I installed the plug-in, patched the game, set up limits, and... it stopped working - output testing has stopped working too. Back to stage one - I can only use one motor again. I have taken off the pushrods (which seemed to be the fix last time) and nope. The wiring hasn't been touched throughout this whole thing. I really don't know what to do now. I'm going to take a look in my PC bios - maybe there's something weird on the USB
    Last edited: Mar 18, 2019
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

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

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    I can click on axis testing and control a motor by itself - this always works. The motors work very well, and reliably, aside from when they're being driven from DOF testing, or in game motion. I can run each one perfectly in SMC3utility at full power and load. I've been through my fair share of bad MM's but it really does look like these 4 are in good shape.

    When I install a plugin, where does it actually install?

    I've replaced the arduino - makes no difference.

    At the moment, it looks the most likely thing is some kind of usb problem with my computer. I have a laptop I can use - I really, really hope it works because I'm running out of options.
  14. doddynco

    doddynco Member

    Joined:
    Aug 21, 2017
    Messages:
    30
    Occupation:
    Joyrider
    Location:
    Shrewsbury
    Balance:
    83Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Arduino
    Sorted!!!

    The motor drivers were hooked up to a 3.3v pin on the power supply. I checked the datasheet for the motoshield and I interpreted that it would work on 3.3v - and it did, however when 4 MM's are connected to the same 3.3v pin, the voltage must drop a bit and fall under the threshold.

    I plugged them directly into the arduino 5v instead and now I am happy it has solved the problem.

    Long story short - don't try to power MM's with 3.3v.
    • Like Like x 2