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

2DOF simulator servo model

Discussion in 'DIY Motion Simulator Projects' started by Svensson, May 7, 2015.

  1. Svensson

    Svensson New Member

    Joined:
    Apr 15, 2015
    Messages:
    7
    Location:
    Sweden
    Balance:
    284Coins
    Ratings:
    +4 / 0 / -0
    Hi
    Just wanted to try building a simulator with servos before getting in to the real deal.
    Had a rc car just laying around that i could salvage servos and some other stuff from.

    2x Hitec HS-311 servo
    1x Traxxas u-joint
    1x Arduino nano
    Some cardboard



    I've followed this guide when setting up simtools http://www.xsimulator.net/installing-simtools/
    I've used eaorobie's arduino code and have set up my servos like he's done. http://www.xsimulator.net/community/threads/rc-model-for-motion-simulation.4600/

    Now to the problem. When testing the output to the servos, the servo that is connected to pin 5 to the arduino, only moves between 0-90 degrees. When it at 90 degrees it moves back to 0 again. The other servo connected to pin 4 only moves to 90 and stays there. See video for more detail

    Attached Files:

    • Like Like x 2
  2. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    i have managed to make rc servo move with @eaorobbie code this way
    connection diagram http://www.xsimulator.net/community/threads/rc-model-for-motion-simulation.4600/
    arduino code http://www.xsimulator.net/community/marketplace/rc-model-code-for-arduino-uno-2dof-expandable.89/
    interface setup - IMPORTANT - Assuming a 2DOF for SimTools 2 the Interface Output should be set like this R<Axis1a>~L<Axis2a>~ https://www.xsimulator.net/community/attachments/rcsettings-jpg.48565/

    and for expanding code to use more servo http://www.xsimulator.net/community/threads/my-project-guide-me.5682/#post-59262

    and here it is moving with game



    thnx to @eaorobbie i made my first project here and i am keep going
    • Like Like x 7
    • Agree Agree x 1
    • Winner Winner x 1
    • Informative Informative x 1
    Last edited by a moderator: Feb 22, 2019
  3. christian

    christian Member

    Joined:
    Apr 5, 2008
    Messages:
    120
    Location:
    Germany/München
    Balance:
    977Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, SCN5, SimforceGT
    nice video
  4. Svensson

    Svensson New Member

    Joined:
    Apr 15, 2015
    Messages:
    7
    Location:
    Sweden
    Balance:
    284Coins
    Ratings:
    +4 / 0 / -0
    I see. I will tweak around with the settings to see if I solve the problem. Thanks
    • Like Like x 1
  5. John458

    John458 Member

    Joined:
    Dec 8, 2014
    Messages:
    68
    Occupation:
    Retail
    Location:
    Brisbane
    Balance:
    391Coins
    Ratings:
    +25 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    Hey Guys,

    Cant find a wiring diagram for 3dof using Arduino and monster moto, plenty of 2d0f... can someone help. I have found a few 2d0f and 1 3dof but that is not using arduinos and mottos (see attached) I can't find the links anymore...sorry

    I am creating a scale model myself using ardunio and monster moto boards before I go full scale. I want to make sure the model is working properly, i have created this board (just waiting on the pots)

    and making the 3 motors pitch roll and yaw.

    any help would be very much appreciated :)

    Cheers

    Dave

    Attached Files:

  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Useful Useful x 1
    Last edited: Nov 21, 2015
  7. aiman anuar

    aiman anuar New Member

    Joined:
    Nov 12, 2016
    Messages:
    8
    Location:
    Malaysia
    Balance:
    118Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, 6DOF
    hi, where can i refer to set the axis assignment for 2 DOF?

    currently i am using this setting.
    upload_2016-11-26_23-11-17.png
  8. obobo

    obobo Active Member

    Joined:
    Nov 8, 2016
    Messages:
    248
    Location:
    France
    Balance:
    1,323Coins
    Ratings:
    +77 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    It's not pitch and roll that you should have ??
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Those settings look to be from the SketchUp powered model tutorial. You should be using a configuration that suits your design and hardware, even if that happens to be a 2DOF model in something like SketchUp.

    This is another member's project page, you need to start your own and post information about your project so members can give advice. Please start your own project thread here: http://www.xsimulator.net/community/forums/diy-motion-simulator-projects.22/
  10. xiejin

    xiejin New Member

    Joined:
    Dec 2, 2016
    Messages:
    19
    Location:
    CHAINA
    Balance:
    94Coins
    Ratings:
    +4 / 9 / -0
    My Motion Simulator:
    2DOF
    Why there is a delay
  11. smallmadtv

    smallmadtv The Astrophotgrapher Gold Contributor

    Joined:
    Dec 23, 2020
    Messages:
    10
    Occupation:
    Tech Manager
    Location:
    Belgium - Sambreville
    Balance:
    100Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, 4DOF, 6DOF
    Hi There, Hope you are well !

    Any idea how to optimize the code?

    I try to rework it, but still have some glich. The input seems to not be correctly manage and send thru other servo (I've extended to 3do, 4 dof but testing unde 2dof)


    The first symptoms where when I was on -1 that trow the servo way out of range...
    Then I see the servo totally out of mind... you change R and it move the number 2...


    I have reworked multiple time, but as I'm not an expert, it start to be quite difficult...
    - Added an LCD to get some message
    - try to add a Stop code '*' in Simultool. R<Axis1a>~L<Axis2a>~F<Axis3a>~V<Axis4a>~*
    - Try change the plug
    - Try to optimize the Scaling

    Noting really work...




    Code:
    //************************************************************************************************
    // RC Model Servo
    // Original code By EAOROBBIE (Robert Lindsay)
    // Completely mangled by aarondc
    // Reworked by Andy Strappazzon
    // For free use for Sim Tool Motion Software
    //***********************************************************************************************
    
    // LibrairieLCD
    // Ecran LCD
    #include "LiquidCrystal.h"
    LiquidCrystal lcd(3,2,11,10,9,8);
    
    
    #include <Servo.h>
    //#define DEBUG 1                                    // comment out this line to remove debuggin Serial.print lines
    const int kActuatorCount = 2;                       // how many Actuators we are handling
    
    
    
    // the letters ("names") sent from Sim Tools to identify each actuator
    // NB: the order of the letters here determines the order of the remaining constants kPins and kActuatorScale
    // R<Axis1a>~L<Axis2a>~F<Axis3a>~V<Axis4a>~*
    const char kActuatorName[kActuatorCount] = { 'R','L' };   ////'L', 'F', 'V'
    const int kPins[kActuatorCount] = {4,7};                        // pins to which the Actuators are attached 4,5, 6, 7
    const int kActuatorScale[kActuatorCount][2] = { { 1, 179 },         // R Actuator scaling ,
                                                   { 1, 179 }          // L side Actuator scaling
                                                  //{ 1, 179 } ,         // F
                                                   //{ 1, 179 }           // V
                                                   };     
    const char kEOL = '~';                                    // End of Line - the delimiter for our acutator values
    const char kESP = '*';                                    // end of Order - Execute positioning
    const int kMaxCharCount = 3;                              // some insurance...
    Servo actuatorSet[kActuatorCount];                        // our array of Actuators
    int actuatorPosition[kActuatorCount] = {90,90};     // current Actuator positions, initialised to 90 , 90, 90, 90
    int currentActuator;                                      // keep track of the current Actuator being read in from serial port
    int valueCharCount = 0;                                   // how many value characters have we read (must be less than kMaxCharCount!!
    int dataFromSimtools[kActuatorCount];                     // Data From Simtools live
    
    
    // set up some states for our state machine
    // psReadActuator = next character from serial port tells us the Actuator
    // psReadValue = next 3 characters from serial port tells us the value
    // psEndOfLine
    enum TPortState { psReadActuator, psReadValue, psEndOfLine };   
    TPortState currentState = psReadActuator;
    
    void setup()
    {
        // attach the Actuators to the pins
        for (int i = 0; i < kActuatorCount; i++)
            actuatorSet[i].attach(kPins[i]);
        
        // initialise actuator position
        //for (int i = 0; i < kActuatorCount; i++)
            updateActuator(1);
    
        lcd.begin(16,2);         
        Serial.begin(9600); // opens serial port at a baud rate of 9600
    }
     
    void loop()
    {
    
    }
    
    // this code only runs when we have serial data available. ie (Serial.available() > 0).
    // ------------------------------------------------------------------------------------
    void serialEvent() {
        
        // Initialisation of variables
        //-----------------------------------------------
        char tmpChar;         // Character * or ~  RLVF
        int tmpValue;         // Value
        int oneAtTime;    // avoid multiple instance
    
        
        // Main While on Serial.available
        // -----------------------------
        while (Serial.available()) {
            
            
            // if we're waiting for a Actuator name, grab it here
            //---------------------------------------------------
            if (currentState == psReadActuator) {
                              tmpChar = Serial.read();
                  
                              
                              // look for our actuator in the array of actuator names we set up
                               for (int i = 0; i < kActuatorCount; i++) {
                                                    if (tmpChar == kActuatorName[i]) {
                                              
                                                                currentActuator = i;                        // remember which actuator we found
                                                                currentState = psReadValue;                 // start looking for the Actuator position
                                                                actuatorPosition[currentActuator] = 0;      // initialise the new position
                                                                valueCharCount = 0;                         // initialise number of value chars read in
                                                                break;
                                                    }
                              }
                              // look for our actuator in the array of actuator names we set up
            }
            // if we're waiting for a Actuator name, grab it here
            //---------------------------------------------------
    
    
    
            
            // if we're ready to read in the current Actuator's position data
            // --------------------------------------------------------------
            if (currentState == psReadValue) {
                while ((valueCharCount < kMaxCharCount) && Serial.available()) {
    
    
                    // Step One grab the Serial Message
                    tmpValue = Serial.read();   // read Serial input
                    
                    
                    // If differnet from the  end of line charachter  '~' or end of message '*'
                    // -------------------------------------------------------------------------
                              if ((tmpValue != kEOL)||(tmpValue != kEOL)) {
                               tmpValue = int(tmpValue);
                              // Send to LCD for debug ----------
                               if (currentActuator == 0){
                               lcd.setCursor(0,0);
                               lcd.print('R');
                               lcd.print(tmpValue);
                               }
                              
                               if (currentActuator == 1){
                               lcd.setCursor(4,0);
                               lcd.print('L');
                               lcd.print(tmpValue);
                               }
                              
                               if (currentActuator == 2){
                               lcd.setCursor(8,0);
                               lcd.print('F');
                               lcd.print(tmpValue);
                               }
                              
                               if (currentActuator == 3){
                               lcd.setCursor(12,0);
                               lcd.print('V');
                               lcd.print(tmpValue);
                               }
                               // Send to LCD for debug ----------
                              
                                  // Hysterisis Dead band kill
                                  //if ((tmpValue < 0) || (tmpValue > 230)) tmpValue = 0;
                                
                                // if ((int(tmpValue) < 130) && (int(tmpValue) > 120)) {
                               //  tmpValue = 123;
                                // }
                              dataFromSimtools[currentActuator] = tmpValue;
                              actuatorPosition[currentActuator] = tmpValue;
                              valueCharCount++;
                        
                              }
                  // -----------------------------------------------
                            
                             else break;
                }
                
                              // if we've read the value delimiter, update the Actuator and start looking for the next Actuator name
                              if (tmpValue == kEOL || valueCharCount == kMaxCharCount) {
                                          
                                    // Adjust the TempValue to avoid division per Zero
                                    // scale the new position so the value is between 0 and 179   0 255
                                    actuatorPosition[currentActuator] = map(actuatorPosition[currentActuator] -24, 1, 255, kActuatorScale[currentActuator][0], kActuatorScale[currentActuator][1]);
                                    dataFromSimtools[currentActuator] = actuatorPosition[currentActuator];
                              }
    
                              // if we'read the end of Order execute the update of the servo
                              //------------------------------------------------------------
                              if (tmpValue == kESP || valueCharCount == kMaxCharCount) {
                
                                updateActuator(currentActuator);
                                currentState = psReadActuator;
                              }
    
                
            }
        }
    
    
    }
    // ------------------------------------------------------------------------------------
    // ------------------------------------------------------------------------------------
    
    
    // write the current Actuator position to the passed in Actuator
    //--------------------------------------------------------------
    void updateActuator(int thisActuator) {
    
                    // Sent to LCD to debug
                     if (thisActuator == 0){
                     lcd.setCursor(0,1);
                     lcd.print('R');
                     lcd.print(actuatorPosition[thisActuator]);
                    }
                    
                    if (thisActuator == 1){
                    lcd.setCursor(4,1);
                    lcd.print('L');
                    lcd.print(actuatorPosition[thisActuator]);
                    }
    
                    if (thisActuator == 2){
                    lcd.setCursor(8,1);
                    lcd.print('F');
                    lcd.print(actuatorPosition[thisActuator]);
                    }
                        if (thisActuator == 3){
                    lcd.setCursor(12,1);
                    lcd.print('V');
                    lcd.print(actuatorPosition[thisActuator]);
                    }
                    
        //actuatorSet[thisActuator].write(actuatorPosition[thisActuator]);
        for (int i = 0; i < kActuatorCount; i++)
            actuatorSet[i].write(actuatorPosition[i]);
          
    
    
    }
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you please post pictures of your SimTools settings, as looking at the model movement they do not seem to be refined.
    • Like Like x 1
    Last edited: Dec 24, 2020
  13. smallmadtv

    smallmadtv The Astrophotgrapher Gold Contributor

    Joined:
    Dec 23, 2020
    Messages:
    10
    Occupation:
    Tech Manager
    Location:
    Belgium - Sambreville
    Balance:
    100Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, 4DOF, 6DOF
    upload_2020-12-24_17-52-19.png


    I try with these:
    R<Axis1a>~L<Axis2a>~F<Axis3a>~V<Axis4a>~*

    and these one where I double the info seems to work better:
    R<Axis1a>~R<Axis1a>~L<Axis2a>~L<Axis2a>~F<Axis3a>~F<Axis3a>~V<Axis4a>~V<Axis4a>~*

    I also try different Output type, Parity, or the 50ms... even the BitsPerSec...



    My current code is here:


    Code:
    //************************************************************************************************
    // RC Model Servo
    // Original code By EAOROBBIE (Robert Lindsay)
    // Completely mangled by aarondc
    // Reworked by Andy Strappazzon
    // For free use for Sim Tool Motion Software
    //***********************************************************************************************
    
    // LibrairieLCD
    // Ecran LCD
    #include "LiquidCrystal.h"
    LiquidCrystal lcd(3,2,11,10,9,8);
    
    
    #include <Servo.h>
    //#define DEBUG 1                                    // comment out this line to remove debuggin Serial.print lines
    const int kActuatorCount = 6;                       // how many Actuators we are handling
    
    
    
    // the letters ("names") sent from Sim Tools to identify each actuator
    // NB: the order of the letters here determines the order of the remaining constants kPins and kActuatorScale
    // R<Axis1a>~L<Axis2a>~F<Axis3a>~V<Axis4a>~*
    const char kActuatorName[kActuatorCount] = { 'R', 'L', 'F', 'V', 'M', 'N' };   ////'L', 'F', 'V','M','N'
    const int kPins[kActuatorCount] = {4,5,6,7,12,13};                        // pins to which the Actuators are attached 4,5, 6, 7
    const int kActuatorScale[kActuatorCount][2] = { { 1, 179 },         // R Actuator scaling ,
                                                    { 1, 179 },         // L side Actuator scaling
                                                    { 1, 179 },         // F
                                                    { 1, 179 },         // V
                                                    { 1, 179 },         // M
                                                    { 1, 179 }          // N
                                                   };     
    const char kEOL = '~';                                    // End of Line - the delimiter for our acutator values
    const char kESP = '*';                                    // end of Order - Execute positioning
    const int kMaxCharCount = 3;                              // some insurance...
    Servo actuatorSet[kActuatorCount];                        // our array of Actuators
    int actuatorPosition[kActuatorCount] = {90,90,90,90,90,90};     // current Actuator positions, initialised to 90 , 90, 90, 90
    int currentActuator;                                      // keep track of the current Actuator being read in from serial port
    int valueCharCount = 0;                                   // how many value characters have we read (must be less than kMaxCharCount!!
    int dataFromSimtools[kActuatorCount];                     // Data From Simtools live
    
    
    // set up some states for our state machine
    // psReadActuator = next character from serial port tells us the Actuator
    // psReadValue = next 3 characters from serial port tells us the value
    // psEndOfLine
    enum TPortState { psReadActuator, psReadValue, psEndOfLine };   
    TPortState currentState = psReadActuator;
    
    
    // Setup of the system
    void setup()
    {
        // attach the Actuators to the pins
        for (int i = 0; i < kActuatorCount; i++)
            actuatorSet[i].attach(kPins[i]);
        
        // initialise actuator position
        //for (int i = 0; i < kActuatorCount; i++)
            updateActuator(1);
    
        lcd.begin(16,2);    // Initialize the LCD Screen     
        Serial.begin(9600); // opens serial port at a baud rate of 9600
    }
    
    
    
    // Main loop not used
    void loop()
    {
    
    }
    
    
    
    
    
    // this code only runs when we have serial data available. ie (Serial.available() > 0).
    // ------------------------------------------------------------------------------------
    void serialEvent() {
        
        // Initialisation of variables
        //-----------------------------------------------
        char tmpChar;         // Character * or ~  RLVF
        int tmpValue;         // Value
        int oneAtTime;    // avoid multiple instance
    
        
        // Main While on Serial.available
        // -----------------------------
        while (Serial.available()) {
            
            
            // if we're waiting for a Actuator name, grab it here
            //---------------------------------------------------
            if (currentState == psReadActuator) {
                              tmpChar = Serial.read();
                  
                              
                              // look for our actuator in the array of actuator names we set up
                               for (int i = 0; i < kActuatorCount; i++) {
                                                    if (tmpChar == kActuatorName[i]) {
                                              
                                                                currentActuator = i;                        // remember which actuator we found
                                                                currentState = psReadValue;                 // start looking for the Actuator position
                                                                actuatorPosition[currentActuator] = 0;      // initialise the new position
                                                                valueCharCount = 0;                         // initialise number of value chars read in
                                                                break;
                                                    }
                              }
                              // look for our actuator in the array of actuator names we set up
            }
            // if we're waiting for a Actuator name, grab it here
            //---------------------------------------------------
    
    
    
            
            // if we're ready to read in the current Actuator's position data
            // --------------------------------------------------------------
            if (currentState == psReadValue) {
                while ((valueCharCount < kMaxCharCount) && Serial.available()) {
    
    
                    // Step One grab the Serial Message
                    tmpValue = Serial.read();   // read Serial input
                    
                    
                    // If differnet from the  end of line charachter  '~' or end of message '*'
                    // -------------------------------------------------------------------------
                              if ((tmpValue != kEOL)||(tmpValue != kEOL)) {
                              tmpValue = int(tmpValue);
                              dataFromSimtools[currentActuator] = tmpValue;
                              actuatorPosition[currentActuator] = tmpValue;
                              valueCharCount++;                                           
                        
                              }
                  // -----------------------------------------------
                            
                             else break;
                }
                
                              // if we've read the value delimiter, update the Actuator and start looking for the next Actuator name|| valueCharCount == kMaxCharCount
                              if (tmpValue == kEOL ) {
                                          
                                    // Adjust the TempValue to avoid division per Zero
                                    // scale the new position so the value is between 0 and 179   0 255
                                    actuatorPosition[currentActuator] = map(actuatorPosition[currentActuator] -24, 1, 255, kActuatorScale[currentActuator][0], kActuatorScale[currentActuator][1]);
                                    dataFromSimtools[currentActuator] = actuatorPosition[currentActuator];
                              
                              }
    
                              // if we'read the end of Order execute the update of the servo
                              //------------------------------------------------------------
                              if (tmpValue == kESP || valueCharCount == kMaxCharCount) {
                
                                updateActuator(currentActuator);
                                currentState = psReadActuator;
                              }
    
                
            }
        }
    
    
    }
    // ------------------------------------------------------------------------------------
    // ------------------------------------------------------------------------------------
    
    
    // write the current Actuator position to the passed in Actuator
    //--------------------------------------------------------------
    void updateActuator(int thisActuator) {
    
    
    
    
    
                    lcd.setCursor(0,1);
                    lcd.print('R');
                    lcd.print(actuatorPosition[0]);
                    lcd.setCursor(0,0);
                    lcd.print('R');
                    lcd.print(dataFromSimtools[0]);
    
    
    
                    lcd.setCursor(4,1);
                    lcd.print('L');
                    lcd.print(actuatorPosition[1]);
                    lcd.setCursor(4,0);
                    lcd.print('L');
                    lcd.print(dataFromSimtools[1]);
    
                    lcd.setCursor(8,1);
                    lcd.print('F');
                    lcd.print(actuatorPosition[2]);
                    lcd.setCursor(8,0);
                    lcd.print('F');
                    lcd.print(dataFromSimtools[2]);
                    
    
                    lcd.setCursor(12,1);
                    lcd.print('V');
                    lcd.print(actuatorPosition[3]);
                    lcd.setCursor(12,0);
                    lcd.print('V');
                    lcd.print(dataFromSimtools[3]);
                    
                    
        //actuatorSet[thisActuator].write(actuatorPosition[thisActuator]);
        for (int i = 0; i < kActuatorCount; i++)
            actuatorSet[i].write(actuatorPosition[i]);
          
    
    
    }
  14. smallmadtv

    smallmadtv The Astrophotgrapher Gold Contributor

    Joined:
    Dec 23, 2020
    Messages:
    10
    Occupation:
    Tech Manager
    Location:
    Belgium - Sambreville
    Balance:
    100Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, 4DOF, 6DOF
    upload_2020-12-24_17-58-49.png

    And in this kind of status it goes out of mind totally...
    Moving another axis... really strange..
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I can't see from your video that there are more than 3 axis, if there are more than 3 axis please post model pictures so they are clear.

    For a 3DOF the Interface Settings should be like this, so edit the code accordingly as well: R<Axis1a>~L<Axis2a>~F<Axis3a>~

    Leave out the Startup and Shutdown for now.

    What are your Axis Assignment and Tuning Center settings, please post pictures.
  16. smallmadtv

    smallmadtv The Astrophotgrapher Gold Contributor

    Joined:
    Dec 23, 2020
    Messages:
    10
    Occupation:
    Tech Manager
    Location:
    Belgium - Sambreville
    Balance:
    100Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, 4DOF, 6DOF
    I have these settings fortesting now :

    upload_2020-12-25_15-13-46.png


    and forLFS:
    upload_2020-12-25_15-14-27.png

    Does it really matter ? As I'm testing within Simtool, with axes screen:
    upload_2020-12-25_15-15-35.png


    Seems, I'm two finger to have it correctly setup.... But can find the solution

    for me the problem remain in the arduino to read the serial messages without skip, jump or incomplete message
  17. Sam Neall

    Sam Neall Member

    Joined:
    May 14, 2019
    Messages:
    56
    Balance:
    84Coins
    Ratings:
    +15 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Have you tried setting your baud rate differently?
    That’s what helped me with interruption issues.
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The Axis Assignment total (horizontal total) should be around 100, not 100 per axis: https://www.xsimulator.net/community/faq/axis-assignment-percentage-totals.120/

    A dedicated axis can be 100 percent allocation.

    If properly configured you should not need axis limiting, generally that is applicable to protect hardware like SCN actuators.

    Grab a copy of the SimTools manual and keep it handy for reference: https://www.xsimulator.net/community/faq/rtfm-start-with-the-official-simtools-documentation.117/

    Then see the motion profile refinement tips and do each axis initially one at a time: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
  19. smallmadtv

    smallmadtv The Astrophotgrapher Gold Contributor

    Joined:
    Dec 23, 2020
    Messages:
    10
    Occupation:
    Tech Manager
    Location:
    Belgium - Sambreville
    Balance:
    100Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, 4DOF, 6DOF
    hi!
    Thank you forthe reply.

    Yes, try multiple one without success. The only parameter that seems to have an impact is this one in red:
    When I put 50 the error seems to reduce. Note that if I put less than 30, the model jiggle around

    :D :D :D :D
    upload_2020-12-27_13-43-22.png

    Attached Files:

  20. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,147
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,577Coins
    Ratings:
    +10,903 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As per my earlier comment re what appears to be 3 axis: https://www.xsimulator.net/community/threads/2dof-simulator-servo-model.6851/#post-210879

    Can you please explain your Interface Output settings, as they look to be messed up to me for a 3DOF:

    [​IMG]