Page 1 of 5 12345 LastLast
Results 1 to 10 of 50
  1. #1
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    619
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Arduino Uno arrived in the mail...now what?

    Gents,

    I now have the card in hand.

    Can someone give me a basic tutorial on what I need to do next? (e.g. drivers, libraries, programs, etc.)

    The eventual goal is to get some basic steam gauges working.

    Thanks in advance,

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  2. #2
    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: Arduino Uno arrived in the mail...now what?

    Wow Reid ,, You have just jumped off the cliff !!!! Neat stuff ,, but there's a bit of a learning curve ahead of you.

    First things first ,, have a real dig thru the Arduino site and in particular ,,
    http://arduino.cc/en/Guide/Windows
    but there are heaps of helpful info at their site.

    Have a play with their samples and get familiar with the board, it's software loading system and how to manipulate it's in/outs.

    Try using some LED's, switchs etc. with your board.

    To a non-programmer like yourself it could be a bit overwhelming to start with but when the penny drops ,, you'll wonder what all the fuss was about. From then on, you'll find it fun and rewarding.

    A NOTE HERE ..... If I were you I would download version 0022 (or 0023) of their IDE (it's just under where you would download their new version 1 ) as there a few things they need to sort out with the new version 1.
    All my stuff is version 0022 so if you play with any of my stuff, you wont have to convert it.
    I'm going to wait until they patch version1.

    By the time your feet are back on the ground (probably at least a week) I'll have uploaded some "starter" PDE's which will make it real easy to introduce your new skills to working with the Arduino connected to Flight sim.

    Have fun Reid ,,, Jim
    www.jimspage.co.nz/intro.htm
    All this and Liz still loves me ! !

  3. #3
    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: Arduino Uno arrived in the mail...now what?

    Reid ,, I finally got things together.
    I've uploaded to my site a "starter" pack which is for people just starting out.
    Your probably way beyond that now but it may be of help if your getting stuck on some basic point.
    It contains 2 simple PDE's that are of a flightsim flavor along with complete instructions and a description of what each bit of code is doing.

    www.jimspage.co.nz/intro.htm
    You will probably have to hit refresh to see the updated page.

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

  4. Thanks AK Mongo, wannabeaflyer thanked for this post
  5. #4
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    619
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Uno arrived in the mail...now what?

    Thanks Jim!

    I have not had much chance to play with the arduino yet. I got a little carried away reading the guides. Work is crazy right now, but I will have a look at your stuff early next week.

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  6. #5
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    619
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Uno arrived in the mail...now what?

    OK Jim,

    I have really jumped off the cliff now...

    A few questions though:
    1. What is the trick to getting link2fs to connect with FSX? I have downloaded it, run the registry for win32 and started FSX. Is there something I am missing?Never Mind, restarting both programs did the trick

    2. Should Link2fs show the values that FSX is providing even without a card attached/pde uploaded in the light green boxes?Also answered, it appears that all of the extractions are reading all the time....

    3. This may be explained once I get connected and can see values, but what form are the variables sent as? plain text, hex, etc? Specifically I am trying to work out the coding for a VSI. It should have a range of +/- 2k feet per minute. What value will Link2fs send if I have an FSX reading of 200fpm? -200 fpm?Also answered. It appears that this value is in plain text of fpm. Are some of the extractions in degrees? Roll did not seem to make much sense...

    Thanks Jim!
    Last edited by AK Mongo; 05-15-2012 at 09:31 PM. Reason: I am a doofus...
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  7. #6
    10+ Posting Member
    Join Date
    May 2012
    Location
    Var, France
    Posts
    12
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Uno arrived in the mail...now what?

    Hi,
    Please Jim, I really wish a small help to be able to start the construction of my instruments. I do not arrive either has to replace:

    "int potpin = 0; // analog pin used to connect the potentiometer
    int val; // variable to read the value from the analog pin "

    In the file example, by the variable T of link2fs.
    A small help would be welcome.
    Thank you in advance.

  8. #7
    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: Arduino Uno arrived in the mail...now what?

    Great ya took the plunge Reid ,,, just make sure you dont let go of the parachute
    The roll extractions ,,
    Extraction "B" is the "Bank degrees" in "degrees" and extraction "G" is the is the Roll acceleration in "Feet per second squared" (Really, "G" is only of use for motion platform Guys.)

    Fixair ,,, N.E.I. (Not enough information)
    Maybe you are getting tripped up by this ,,,,
    In most of my PDE's I change the analogue pins to digital so they can be used as inputs for switches.
    If you want to use an analogue pin as an analogue pin then you will have to alter the "void setup" to suit.

    I dont generally help now with PDE problems as generally it's just a case of "more research needed" but the best way to get response is to post the WHOLE PDE and ask whats wrong ,, then ,, hopefully one of the Guys will help you out as they now know the whole picture (and not just a couple of lines.)

    How to easily post a PDE ,,,,
    Open the Arduino IDE and load your PDE.
    In the IDE ,, click "EDIT" then click "COPY FOR FORUM"
    The PDE is now ready for pasting into the forum ,,, so ,,,
    Open the forum thread and hit "REPLY"
    Type in what you want and when ready to paste the PDE. right click and PASTE.
    It may all look a bit weird but it carried over all the formatting info as well.


    Cheers Guys ,,, keep at it ,,, Jim
    www.jimspage.co.nz/intro.htm
    All this and Liz still loves me ! !

  9. #8
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    619
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Uno arrived in the mail...now what?

    Jim,

    Thanks for the response. Is there anyone that you know who has successfully used your software to make a servo gauge? I will gladly chase them down to get the missing piece in the pde between your software and my servo.

    Thanks again!

    Reid

    Edit: and then happily share on the forum if they allow it!
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  10. #9
    500+ This must be a daytime job



    Join Date
    Oct 2009
    Location
    Juneau, AK
    Posts
    619
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Uno arrived in the mail...now what?

    Arduinites,

    Found this on the Arduino forums:

    // zoomkat 10-4-10 serial servo test
    // type servo position 0 to 180 in serial monitor
    // for writeMicroseconds, use a value like 1500
    // for IDE 0019 and later
    // Powering a servo from the arduino usually DOES NOT WORK.

    String readString;
    #include
    Servo myservo; // create servo object to control a servo

    void setup() {
    Serial.begin(9600);
    myservo.attach(3); //the pin for the servo control
    Serial.println("servo-test-21"); // so I can keep track of what is loaded
    }

    void loop() {

    while (Serial.available()) {
    delay(10);
    if (Serial.available() >0) {
    char c = Serial.read(); //gets one byte from serial buffer
    readString += c; //makes the string readString
    }
    }

    if (readString.length() >0) {
    Serial.println(readString); //so you can see the captured string
    int n;
    char carray[6]; //converting string to number
    readString.toCharArray(carray, sizeof(carray));
    n = atoi(carray);
    n = (n/179)*100;
    myservo.write(n); //for degees 0-180
    readString="";
    }

    It appears to read from a serial message and transmit to arduino. The example case is when a value from 0-100 is sent, it rotates 0-180 degrees.

    Is this what I want to read the signal that link2fs sends out?

    Is there any part of this I need to look at? i.e. the Serial.begin(9600)? That looks suspiciously like a baud number. Do I need to change it to the baud I am using (115200)

    I have values that are possible of -9999 to +9999 on Output T (vertical speed), Where would I input those values so they would correspondingly send a signal of 0-180 degrees?

    Is there anything else I may be missing?

    Can anyone annotate this thing line by line so I understand what the heck it is doing?

    Sorry, just not sure how this thing works under the hood...

    Reid
    http://juneaucessnasim.blogspot.com
    N58243 (virtual)- Low and Slow...

  11. #10
    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: Arduino Uno arrived in the mail...now what?

    I haven't got any servos yet ,, but if no-one pops in and helps you guys ,, I'll borrow one from a cobber at the week-end and have a play. Could be interesting.
    Jim
    www.jimspage.co.nz/intro.htm
    All this and Liz still loves me ! !

  12. Thanks AK Mongo thanked for this post
Page 1 of 5 12345 LastLast