Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Oct 2011
    Hong Kong
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Display NAV1 frequency using Arduino

    Hardware: Arduino Duemilanove/Uno, CLCD-BOOSTER
    Software: MS Flight Simulator 2004, FSUIPC 3.99, MS Visual C++ 2010 Express Edition

    1. Arduino's display will show NAV1 active frequency(left) and standby frequency(right).
    2. The function of three buttons is turn up(D, turn down(D6) standby frequency, and exchange between active and standby frequency(D7). When button is pressed, FS screen and Arduino's display will be updated.

    Program structure:
    FSUIPC is a plug-in of Microsoft Flight Simulator, can read or modify FS's internal data through it. And almost most of the FS plug-in and hardware needs it. FSUIPC dll and SDK can be got at here. There is a sample program in SDK, you may learn how to communicate with FSUIPC by reading it. And there is a program called "FS-Interrogate 2" also, which recorded all the address can be used, you can use it to speed up program development.
    The responsibility of computer side program is reading FS data through FSUIPC, and then send it to Arduino through serial port. And Arduino firmware will read data from serial port, and then show it on display. Arduino firmware also send button information to computer, to let computer side program to update status in FS.
    Because of time limit, the program is "can work" only, exception handling and optimization is not finished. For improvement, FSUIPC side and serial side can be handle by thread, and using Mutex to prevent Deadlock, and finally need to do error checking in serial port. I don't know how long I can finish it.

    The purpose to write this program is to test my idea. I think I can finish around two days, but as a result I used four days. I am not familiar with Windows API programming, so I need some time to search reference. And I think it is more easy to write Arduino firmware.

    Source code:
    Press here to download.
    Apart from 3rd library, distributed by GPL v2 or later.

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

    Re: Display NAV1 frequency using Arduino

    Hi Salad and welcome to
    Many thanks for posting your project and your code ,, great details and everything is there for some-one to copy what you have done ,, excellent stuff.

    There are advantages in using FSUIPC as your program can then be used on FS2004 as well as FSX ,, I keep wondering if I should go down that road but I dont have FSUIPC so I've just boxed along.

    Keep us posted Salad ,, great work and thanks ,,, Jim
    All this and Liz still loves me ! !