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 Sabertooth 2x32 voltage issue

Discussion in 'Electronic and hardware generally' started by wormx, Nov 11, 2024.

  1. wormx

    wormx New Member

    Joined:
    Mar 7, 2024
    Messages:
    15
    Location:
    France
    Balance:
    91Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF
    Hello,
    I'm testing my new sabertooth 2x32. I configured it on Describe like this:
    fen1.PNG

    fen2.PNG

    When I do a test on GameEngine ("Output testing" tab), I have one of my two motors which runs more or less quickly depending on the position of the cursor (while the other motor correctly changes the orientation of the motor ).
    When I measure the voltage at the motor terminals of the sabertooth, I always have a value on the motor which turns on its own and on the terminals of the other motor, when the motor arrives at the requested position, the sabertooth cuts the terminals at 0V (which is the logical operation I suppose).

    Do you know where my problem could come from?

    thank
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,100
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,282Coins
    Ratings:
    +10,894 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you please advise what control code you are using, which I presume is in conjunction with an Arduino?
  3. wormx

    wormx New Member

    Joined:
    Mar 7, 2024
    Messages:
    15
    Location:
    France
    Balance:
    91Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF
    First I used the code from x-sim.de version 1.6:
    https://drive.google.com/file/d/0B8...aHc/view?resourcekey=0-znJpHsQBwt_85X9UccSnfw
    I followed this tutorial with its connections:


    Electrical diagram visible here:
    https://drive.google.com/file/d/16GxLpiBHpXBbl-2EO1UbWTOlbtDClaE1/view

    Like the tutorial, I used an Arduino micro (official).

    -------
    Then I tried the tutorial here:
    https://www.xsimulator.net/communit...ial-pid-motor-driver-sketch-w-softstart.9277/

    I used an arduino uno (official) and made the same connections as the tutorial. The code used is that available in the tutorial attachment, SPS_8.2_softstart.zip

    On SMC3:
    - Motor 1 everything works correctly
    - Motor 2 the motor runs continuously. If I turn the potentiometer by hand to reach the target line, it changes direction but maintains its speed. It is continually powered by the sabertooth.

    Attached Files:

  4. wormx

    wormx New Member

    Joined:
    Mar 7, 2024
    Messages:
    15
    Location:
    France
    Balance:
    91Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF
    I tried to connect the wires from the M2 motor to my M1 motor, with the P1 potentiometer connected to the arduino instead of the P2 potentiometer: the motor stops correctly when it reaches the target, and the M2A and M2B terminals of the sabertooth are cut to go to 0V.

    In conclusion I think my problem comes from the M2 engine. I'm going to take it apart to see if I detect anything.
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,100
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,282Coins
    Ratings:
    +10,894 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The other possibility is the pot, so carefully check its wiring and function.

    You do need to sort out the SNC3 control issue before messing with SimTools.
    Last edited: Nov 11, 2024
  6. wormx

    wormx New Member

    Joined:
    Mar 7, 2024
    Messages:
    15
    Location:
    France
    Balance:
    91Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF
    hi, I checked the connections to the potentiometer and to the arduino, nothing to report. However, I found a contact tab for the motor which was not bent well. I think the current was circulating poorly, there was a false contact. I unsoldered, bent, resoldered. Now, it works correctly on SMC3, motor 2 reacts well!

    WhatsApp Image 2024-11-12 at 22.43.25 (2).jpeg WhatsApp Image 2024-11-12 at 22.43.25 (1).jpeg WhatsApp Image 2024-11-12 at 22.43.25.jpeg
    • Like Like x 1