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

Right motor not communicating with simtools output testing

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by cyberxu, Jun 23, 2014.

  1. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hello Sim builders,

    I managed to manually turning my L & R pots to move L & R motors, Arduino code works fine thanks to RacingMat.
    Problem start here, I attached my pots to the motors, uploaded preset cfg for axises and interface cfg. while get to output testing my motors, I managed to move L motor by sliding the slider with mouse. Its actually gives my max , center & min movement too. Even Roll, Pitch & surge are working for left motor while output testing.
    NOT my Right motor. no movement at all.??? Just to double check my pots is still works, so I turn off the output testing, turn my Right pots and sure enough Right Motor moves.

    I thought I threw this issue out there to see if anyone had this or seen this problem before? Perhaps getting some help or advise from you experts out there.

    here are my setting:

    Attached Files:

  2. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,307
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,490Coins
    Ratings:
    +5,109 / 18 / -0
    You have a space in <Axis 2> - should be <Axis2>
    Let me know if it worked?
    yobuddy

    edit: looks like you have a space in <Axis 1> also, please remove the spaces.
    Let me know how it goes buddy!
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    What a sharp eye @yobuddy! :thumbs

    @cyberxu : as I told you, you should have used the presets I uploaded... :confused:
  4. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Sorry, I posted the wrong pictures earlier! I did upload your presets!
    Last edited: Jun 23, 2014
  5. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I don't find any explanation at the moment?!

    I've sent back the 2x12 (too weak for the smolka) and I'll receive the 2x25 tomorrow:
    i'll redo the wiring and check again!:)
  6. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Came home from work and quickly confirm that these are my settings using RacingMat presets. Tried output testing it again ...same result! Motor R not responding! Only manually turning pot is working!

    Attached Files:

  7. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    please refer to the next step after manuel pot turning: http://www.xsimulator.net/community...dof-and-1-pwmpin-1-dirpin-hbridge-board.4614/
    - use serial monitor!
    can you make the right motor moving with serial monitor?
  8. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hello Mat,

    I tried using serial monitor to send order and I managed to get the right motor to respond. I basically tried all the hex orders from your link you posted.....:)
    So I guess its a good thing!

    tried the output again ...no luck!

    Cyberxu
  9. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Hi Mat,

    new discovery, I changed my interface setting (see pic). I got the R motor to move and now the left motor stayed still.
    its totally opposite of the original problem.

    Attached Files:

  10. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Oh... I'll test that with my 2x25 I just received.
    Maybe I have to correct something in the code...
    • Like Like x 3
  11. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    I have my motors mounted in the front of the seat. so I remembered reading somewhere in your link that if I need to reverse my rotation the motor turns, just reverse the motor wires. I tried it last night on my left motor and it went crazy. it started from center position of the arm to opposite (180 deg) turn and start jittering. Is it something to do with the code too?
  12. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    You cannot reverse motor supply wiring without reversing your pot wiring!... :confused: you're a sorcerer's apprentice

    Once step 1 achieved, you should use Simtools reverse function "Dir" in Axis assignments!

    I wrote a basic test code to test your right and left motor: have a try and tell if both are running.
    Code:
    /* 
    test
    */
    #include <SabertoothSimplified.h>
    #include <SoftwareSerial.h>
    
    SoftwareSerial SWSerial(NOT_A_PIN, 8); //declare the Pin 8 to be used to communicate with Sabertooth
    SabertoothSimplified ST(SWSerial); //open a serial COM on previously identified pin
    
    void setup()
    {
      // serial initialization
       SWSerial.begin(38400); // serial between Arduino and Sabertooth on SWSerial pin
      //DIP switches 2, 4 and 5 OFF
    
      // stop motors at startup
      ST.motor(1, 0);
      ST.motor(2, 0);
      // tests
      test(1);
      test(2);
    }
    
    void test(int motors)
    {
      int power;
    
      // Ramp from 0 to 127 (full forward)
      for (power = 0; power <= 127; power ++)
      {
        ST.motor(motors, power);
        delay(20);
      }
    
      // Now go back to full reverse
      for (power = 127; power >= -127; power --)
      {
        ST.motor(motors, power);
        delay(20);
      }
      //Ramp down to stop
      for (power = -127; power <= 0; power ++)
      {
        ST.motor(motors, power);
        delay(20);
      }
    }
    
    
    void loop()
    {
    }
    
    • Like Like x 1
    • Useful Useful x 1
  13. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    yes Master...apprentice I am .....:p
    Try this code I will!:grin
    • Funny Funny x 2
  14. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Now understand I, why yoda old was looking!...
    • Funny Funny x 1
  15. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Master... I tested your basic code and it's good.
  16. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    MaT,

    Have you tried it(code) on your new 2X25? Does it come out the same result as what I experienced?
    I ran out of ideas......I am at complete road block again!

    Cyberxu
    Last edited: Jun 27, 2014
  17. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    This Arduino Uno and Sabertooth 2X12 combination are giving me headache! Can anybody suggest a better combination that I can save $$$?
  18. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Mat will sort this, Im sure.
    • Optimistic Optimistic x 1
  19. cyberxu

    cyberxu Member

    Joined:
    Nov 22, 2012
    Messages:
    64
    Occupation:
    AME Planner
    Location:
    Ontario, Canada
    Balance:
    516Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Thanks eaorobbie! How's the testing coming along with K8055N?
  20. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,236
    Location:
    Marseille - FRANCE
    Balance:
    20,975Coins
    Ratings:
    +2,089 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for your optimism!
    I haven't found yet the problem...I'll do more test this week-end