Results 1 to 7 of 7
  1. #1
    10+ Posting Member
    Join Date
    Mar 2014
    Location
    Israel
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    FSX Gold +Link2FS+ MonsterMoto Arduino

    Hello everybody,

    I built a 2 DOF wiper motors motion platform based on the above units.
    The connection between FSX Link2FS & Arduino works well.
    The sketch I use was taken from a simtools program based on SparkFun's 2DOF example and was probably used for car racing....
    Testing the motors with a sample MonsterMoto sketch works well.
    However, when connected to FSX the motors ( which are connected to 10K pot.) do not react to the FSX data.
    Could anyone advise?
    I suspect that the serial data from Link2FS is not readable to the Monster due to sketch language.
    I am very exited by the easy operation and handling the Link2FS is. However most of the samples deal with controlling FS from Arduino and I need the opposite.
    Waiting for your thoughts....
    Regards

    Dovale

  2. #2
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2014
    Location
    Italy
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    Quote Originally Posted by Dovale View Post
    Hello everybody,

    I built a 2 DOF wiper motors motion platform based on the above units.
    The connection between FSX Link2FS & Arduino works well.
    The sketch I use was taken from a simtools program based on SparkFun's 2DOF example and was probably used for car racing....
    Testing the motors with a sample MonsterMoto sketch works well.
    However, when connected to FSX the motors ( which are connected to 10K pot.) do not react to the FSX data.
    Could anyone advise?
    I suspect that the serial data from Link2FS is not readable to the Monster due to sketch language.
    I am very exited by the easy operation and handling the Link2FS is. However most of the samples deal with controlling FS from Arduino and I need the opposite.
    Waiting for your thoughts....
    Regards

    Dovale
    Hi, i am newbie in this forum and i'm Italian (sorry for my english :P )
    I will purchased an old TAITO TOP LANDING SIMULATOR (an old cabine Bar joke) and i reconstruct it with FSX, command panel, etc. using Arduino and LINK2FS (Many thanks to JIM!!!!).
    I have your same problem, becouse my simulator have a platform with 2DOF motion.
    I have looked LINK2FS Program, very very very good Program, and I noticed that the commands can be sent to the x and y axis movement.
    Just look at the "extractions 2" at the bottom of the page and tick "body acceleration."
    The sketch that you use is used to transmit and receive serial commands to another program, NOT LINK2FS! And, in my opinion, this program uses other systems to interact with the 2DOF. I think it uses FORCE FEEDBACK command and other.
    Maybe I'm wrong ...
    Among other things, seeing the sketch that you perhaps use, the function of the two pot is only for a limit stop for engines operated by Arduino and not by the program.
    Keep in mind that the 2DOF does not use a motor for the x-axis and one for the y-axis, but a combination of the same.
    Thing you might however modifying the sketch to accept commands sent from LINK2FS, both for the x-axis and y-axis configuration of the engines for 2DOF.
    I would be very happy if someone could help us to solve this problem by simply giving advice to recompile the sketch.
    Or, giving us other avenues to follow to build a low cost 2DOF! : P
    Last edited by ceretz; 05-20-2014 at 09:24 AM. Reason: little error, sorry...

  3. Thanks Dovale thanked for this post
    Likes Dovale liked this post
  4. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2014
    Location
    Italy
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    And I reply with this sketch finded in internet.
    This sketch is for an Arduino Uno with acceleromeroter shield and motor shield with 2 servo's attached, one Led (for Landing Gear), one little sw (toggle LG)
    And a Buzzer for STALL.
    This is only the programming to control small servo motors as you fly a plane in real time.

    It is up to you to program the full size actuators!

    #include
    #include
    Servo pitchservo;
    int rollVal = 0;
    Servo rollservo;
    int pitchVal = 0;
    int CodeIn;
    int flapsINT;
    int rollInt;
    int pitchInt;
    int gForceInt;
    int stallInt = 0;
    String KoldpinStateSTR, KpinStateSTR, Kstringnewstate,Kstringoldstate;
    String gearSimple, flaps, flapsOld, rollS, pitchS, gForceS, stallS;
    void setup()
    {

    pinMode(2, OUTPUT); // gear nose LED
    pinMode(5, OUTPUT); // gear nose in transition LED
    pinMode(12,OUTPUT); //stall warning
    rollservo.attach(;
    pitchservo.attach(11);
    Serial.begin(115200);
    }
    void loop() {
    Serial.println(stallInt);
    stallInt = 0;
    pitchVal = map(pitchInt, -25, 25, 0, 179);

    if (rollInt > -90 & rollInt < 90)
    { rollVal = map(rollInt, -10, 10, 0, 179);}
    else {rollVal = 90;}

    pitchservo.write(pitchVal);
    rollservo.write(rollVal);
    if (stallS == "1" )
    {tone(12,140);}
    else{noTone(12);}

    if (Serial.available()) {
    CodeIn = getChar();
    if (CodeIn == '<') {LESSTHAN();}
    if (CodeIn == '?') {QUESTION();}

    }
    }
    char getChar()
    {
    while(Serial.available() == 0);
    return((char)Serial.read());
    }
    void LESSTHAN(){
    CodeIn = getChar();
    switch(CodeIn) {
    case 'F':
    gForceS = "";
    gForceS += getChar();
    gForceS += getChar();
    gForceS += getChar();

    gForceInt = gForceS.toInt();

    break;

    case 'S':
    stallS = "";
    stallS = "";
    stallS = "";
    stallS += getChar();
    Serial.print("String: " + stallS);
    stallInt = stallS.toInt();
    Serial.println(" Int: " + stallInt);
    break;
    }
    }
    void QUESTION(){
    CodeIn = getChar();
    switch(CodeIn) {
    case 'Y':
    gearSimple = "";
    gearSimple += getChar();// get first charactor (Nose gear)
    if (gearSimple == "2"){digitalWrite(2, HIGH);}else{digitalWrite(2, LOW);}
    if (gearSimple == "1"){digitalWrite(5, HIGH);}else{digitalWrite(5, LOW);}

    case 'y':
    pitchS = "";
    pitchS += getChar();
    pitchS += getChar();
    pitchS += getChar();
    pitchS += getChar();
    pitchS += getChar();
    pitchS += getChar();
    pitchInt = pitchS.toInt();
    break;


    case 'x':
    rollS = "";
    rollS += getChar();
    rollS += getChar();
    rollS += getChar();
    rollS += getChar();
    rollS += getChar();
    rollS += getChar();
    rollInt = rollS.toInt();
    break;
    }
    }// end of question void


    For the small scale model
    On the Arduino
    -Pin 4 to low side of push button
    -for the y axis servo white wire, put in pin 11
    -for the x axis servo white wire, put in pin 8
    -hook the led into pin 2
    -pin 12 is for the speaker.

    For the full size model with actuators
    The push button, led and speaker stay the same.

    To hook up the actuators
    -5v on the arduino goes to the 5v on the Sabertooth motor controller
    -gnd on arduino goes to 0v on the motor controller
    -pin 0 goes to s2 on motor controller
    -pin 1 goes to s1 on motor controller
    -positive pin on 12v battery goes to b+ on saber tooth
    -negative pin on 12v goes to b- on sabertooth
    -m1a on Sabertooth goes to positive on actuator
    -m1b goes to negative on actuator
    -m2a on Sabertooth goes to positive on actuator2
    -m2b goes to negative on actuator2.

    I have copied this information.
    thanks

  5. #4
    10+ Posting Member
    Join Date
    Mar 2014
    Location
    Israel
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    Thanks Ceretz.
    We have a proverb: A problem of many is half a comfort
    Thanks for identifying the X Y option. My problem is that the data goes nicely to the Arduino card but probably my sketch is wrong(as you identified) . Being a "newbe" to Arduino, I need someone to identify for me the type of the data i.e character, decimal etc'.....and if I have to include Serial opening ( since the data alreadfy appears in Link2FS serial window and in the Arduino card (blinking).
    From there, I hope to be able to fly ( double meaning .
    What surprises me is that Jim replies to other posts and I'm still waiting.......I'm sure he knows the answer.
    Let's wait.

  6. #5
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2014
    Location
    Italy
    Posts
    8
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    I have tested the LIN2FS with multi Radio Panel and an Arduino Mega! With some add-on like switch, button and some led.
    All I/O of Arduino are configured and fully functionally.
    Only one problem sorted in serial communication. The fix is only a little modify to a configuration file of Arduino IDE for "Buffer size" posted here http://www.mycockpit.org/forums/show...roblem+link2fs
    For the rest the Link2FS, Arduino, etc. Work perfectly at 100%!.
    The 2DOF citated in my post in this thread is referred to a simple 2DOF seat with 2 motor in the rear.

  7. #6
    500+ This must be a daytime job Jim NZ's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    764
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    Hi Guys , yes I did see your previous posts and as I don't know the MonsterMoto card I was hoping some-one else would pop in.

    Now,, motion ,,, there are a swag of different types of motion platforms and moving seat arrangements out there but my involvement is solely around completely enclosed sims which are handled very different from the main stream stuff found on the internet.

    Link2fs does actually extract all the data you need to feed the Arduino for a motion platform but you need to "process" the data into a useable format that the MonsterMoto card would except and consequently act on ,, but ,, why re-invent the wheel ???

    A quick search using "Arduino MonsterMoto" (without the quotes) brings up heaps of stuff or try "arduino motion seat" or other such searchs.
    With the Monstermoto being relatively new you might find a project that uses a different motor card but the code will still give you ideas.

    I presume you Guys have seen this ,,,
    http://dlnmh9ip6v2uc.cloudfront.net/...ld_Example.pde
    It's a basic code to get the MonsterMoto card going ,,, from there its just a matter to modify it to act on info from Link2fs after it's been manipulated to do what you want.(within the Arduino)

    If your no good with coding then the only option is to find some other site that documents the whole thing and supplies the code.

    Another option is to have a dig thru
    www.X-Sim.be
    or
    www.xsimulator.net
    I don't understand their reason for 2 sites ,,, maybe it's to do with freeware versus payware.???

    Some hits ,,,
    http://www.x-sim.de/forum/viewforum.php?f=37
    http://www.x-sim.de/software.php?lang=eng
    http://www.x-sim.de/forum/viewtopic.php?f=37&t=1103
    http://www.x-sim.de/manual/msflight.html
    http://www.x-sim.de/forum/viewtopic.php?t=723
    http://www.xsimulator.net/
    http://www.xsimulator.net/community/...tilities.4957/

    By the way ,, the pots that senses the positions are connected to the Arduino where it's reading is used (along with the data) to control the output to the moter.
    There should be no pot connected to the MonsterMoto card.
    Another thing to consider is "soft start" / "soft stop" commands (I wouldn't have a clue it they are "built in" to the Monstermoto card or not ,, but you will need them.

    Not much help I'm afraid as I don't know that MonsterMoto card.

    Good luck ,, Jim
    www.jimspage.co.nz/intro.htm
    All this and Liz still loves me ! !

  8. Thanks Dovale thanked for this post
    Likes Dovale liked this post
  9. #7
    10+ Posting Member
    Join Date
    Mar 2014
    Location
    Israel
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX Gold +Link2FS+ MonsterMoto Arduino

    Jim,

    Thanks.

    I tried several programs whivh activate the MonsterMoto and the motors.
    I am sure your Link2FS should work ok with it, it's only a matter of reading correctly the data and parseing it ,if necessary.
    [ Since Link2FS already sends the data to the Arduino card, I wonder if we should include (again) a serial.begin etc' command???]
    I do hope we'll find somone to assist with the sketch, and/or within a reasonable time ( with a lot of try&errors ) we'll solve it.
    Again, I am very pleased with the Link2FS interface- it works smooth and easy to use.

    Regards
    Dovale