1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FSX Linking arduino with FSUIPC

Discussion in 'General chat' started by JMorrison, 24/11/12.

  1. JMorrison

    JMorrison

    Joined:
    31/8/11
    Messages:
    18
    I just bought one of this boards (my experience with them is literally zero), I would like to know if it's possible to communicate directly with FSUIPC, basically I'm looking for a point where to start.
    So far my goal is just to build a simple panel with on/off switches to manage lights and stuff.

    Will really appreciate any input.
  2. Pilot122x

    Pilot122x

    Joined:
    28/10/12
    Messages:
    12
    Country:
    unitedstates
    First of all Directly to FSUIPC makes no sense the reason FSUIPC was created was for to link whatever we are making to FSX/ Besides I'm not sure if any programmer did this before you. So know you want to make a panel wih off/on switches to control the lights, This task would be a piece of Cake for the experience Coder But I'm not I'm goIng to learn,

    Next and last thing, I wouldnt say adruino is the best Coding Language for FSUIPC because I haven't seen in any examples of it, any libraries and
    I've Never seen a program or anything for FSX written in that language

    If you want to switch to another language here's a few that are Suppored:
    C/C++, C#, Java, Delphi( BesIdes for Java these we the Most popular languages to code for FSUIPC)

    Last Words the creator of FSUIPC Pete Dowson told me " Connecting to FSUIPC is not a good way or easy way to start programming" So I suggest you take that advice
  3. jdberg

    jdberg Resource contributor

    Joined:
    19/6/04
    Messages:
    338
    Country:
    germany
    Take a look at the official Pete Dawson Page:
    http://www.schiratti.com/dowson.html

    In the table you find a download-link for the FSUIPC developer kit:
    http://fsuipc.simflight.com/beta/FSUIPC_SDK.zip

    It contains libraries for many programing languages. Personally I use the VB .NET version of the SDK in combination with the free Microsoft Visual Basic 2010 Epress but that is naturally your choice.

    I am not an expert in programing but managed to control a similar board for Throttle, Mixture, Prop input and some switches for lights, battery etc.

    Jörg
  4. jdberg

    jdberg Resource contributor

    Joined:
    19/6/04
    Messages:
    338
    Country:
    germany
    Complete agree with that but that was exactly the thin I did. It was not easy but it was possible. Without any knowledge of programing languages however you should not do that.
  5. JMorrison

    JMorrison

    Joined:
    31/8/11
    Messages:
    18

    Hello, I know about FSUIPC SDK but I'm still missing the "how to link that code with the arduino board" part.

    Maybe would help to remark that even when I'm totally new with arduino and FSUIPC developing, I have many years of experience as programmer.
    It's just this is something different as there are two pieces of code which need to communicate each other, if I'm not misunderstanding the problem.

    Thanks for the answers and please keep posting anything you think may help.
  6. jdberg

    jdberg Resource contributor

    Joined:
    19/6/04
    Messages:
    338
    Country:
    germany
    I have no idea if it possible to use their own development environment which is AFAIK a Java application in combination with the FSUIPC SDK.
    However there is an explanation on the Arduino page, how to use Visual Studio to control the board. So this could be a way to bring things together.

    http://arduino.cc/playground/Code/VisualStudio
  7. JMorrison

    JMorrison

    Joined:
    31/8/11
    Messages:
    18
    Thank you Jörg, I will try to start there.
  8. caKus

    caKus

    Joined:
    26/1/09
    Messages:
    66
    Country:
    france
    Arduino card can communicate with a PC using serial port or USB serial. For more information, see for instance http://www.ladyada.net/learn/arduino/lesson4.html

    So, you can write a little C++ program that makes communicate the Arduino with a PC. As told before, you will find a C++ interface with FSUIPC in the SDK. So, no problem, just a little coding.:D

    Patrick.
  9. Willem

    Willem

    Joined:
    23/8/10
    Messages:
    206
    Country:
    netherlands
    Hi,
    perhaps this is not the most suitable environment for this kind of question since i never found much hardware related posts here, but more about xml programming, modelling etc.

    BUT...
    Try here:
    http://www.mycockpit.org

    There you will find a plethora of information regarding hardware interfaces to FS from entire cockpits to a simple usb board, especially the i/o interfacing and hardware forum will suit you in this case (just register and do a forum search for arduino, for sure some posts will pop up) .
    I built an Mjoy joystick interface myself with 6 analog axis in use (4 throttles, 1 proppitch and a autopilot heading potmeter) and a few rotary encoders for selection of radio frequencies, setting the altimeter etc. I mostly use it for the A2A B377 and it really adds to the experience.

    I found a lot of information there and like here, help is always at hand.

    Hope this helps, and let us know what you come up with!
    grt
    Willem
    Last edited: 24/11/12

Share This Page