DME with independent frequency

One of the world's most popular trainer aircraft
new reply
df123
Airman
Posts: 18
Joined: 19 Feb 2020, 21:03

DME with independent frequency

Post by df123 »

This is a DME with the ability to tune an independent frequency based on the FSX GPS data. Please note that none of this is my own work.
This is all borrowed from the generous information and insights from great contributors posted in this forum an others. (Referenced below)
I am sure my attempt is inefficient and can be greatly improved.

Image

Image

DME files
https://www.dropbox.com/sh/at4zxa5qha8c ... aBYwa?dl=0


Note to run the Arduino/LUA/Gauge:
The DME only works if both Aircraft Battery and the Avionics are On as in normal operation. These need to be toggled on/off after the aircraft has been loaded.
The encoder used and coded for in the Arduino Script is a single with pushbutton to enable MHZ/KHZ tuning.

1) Arduino Script and Lua code
The Arduino & lua code also sources and sends the independent frequency data to/from the XML Gauge below. The lua code should be set to run automatically in the FSUIPC config file.

(Fundamental resources)
viewtopic.php?f=108&t=40389
https://www.mycockpit.org/forums/showthread.php?t=27048
https://www.mycockpit.org/forums/showthread.php?t=31649
http://thegeekforge.com/2017/11/10/ardu ... ial-001_a/

2) XML Gauge (FSDeveloper)
Place the XML Gauge in the FSX Gauges folder and amend the panel of the aircraft (A2A Cessna 172) with the included Panel information. The below resources are impressive and comprehensive.

https://www.fsdeveloper.com/forum/threa ... ml.427308/
https://www.robbiemcelrath.com/fs/guides/gps

3) PCB
I used Fritzing. I have no electronics experience whatsoever. I just read a lot and used the fritzing library resources from others to work out the MAX7219.
This can be redesigned to suit. The LEDS probably don't need individual ground pins. The 1,2,3,4,5,6 pins are for wires connecting the On/Off switch,
the 3 position switch for RMT FREQ & GS/T and the single encoder with pushbutton.
https://flyingforfun.weebly.com/cessna-172-cockpit.html
http://fritzing.org/projects/

4) Face plate

I have included a Faceplate designed in FreeCAD. I have left it at the stage that it can be amended/resized, (Using "Part Cut") before exporting to STL for printing.
I followed Jim's method for the actual faceplate design.
http://www.jimspage.co.nz/makepanel.htm
http://www.simav8.com/simcmp.html

regards

alioth
Senior Airman
Posts: 162
Joined: 01 Feb 2017, 17:05

Re: DME with independent frequency

Post by alioth »

This is great!

I will build a dme for my home cockpit soon (comanche, in my case). And I am going to use a narco 195 dme housing.
There are variables to read Vor1 and vor2 data. But there are no variables for "HOLD" function.

I was thinking in writting my own lua script to get data for "hold".
With the docs in your post, it is posible to simulate the "hold" function too.

Really good job!

Arturo.

df123
Airman
Posts: 18
Joined: 19 Feb 2020, 21:03

Re: DME with independent frequency

Post by df123 »

Hi Arturo,

Maybe the hold function could be added to the Arduino script by using an arrays to store the 1) current Vor1 and 2) the Independent frequency and then calling them back via the assigned Radio buttion when selected. It's not a function that I needed for the above.

regards

new reply

Return to “C172 Trainer”

Who is online

Users browsing this forum: No registered users and 13 guests