Cockpitbuilders.com

Arduino Projects => General Discussions => Topic started by: Jet-A1 on April 13, 2020, 06:14:49 AM

Title: Arduino starting out help
Post by: Jet-A1 on April 13, 2020, 06:14:49 AM
Hi All,

I'm starting a small, hopefully simple project to make the three 737 hardware AFDS push switches (A/P P/RST etc.) interface with the PMDG NGXu. Of course, if that's at all possible with the NGXu.

I have a small MIP console and this is the first time I have looked at doing some interfacing of hardware myself.

So I guess I need an Arduino (I think there are 3 types, I/O varies?), a software link (FSUIPC or something similar?) and some form of link to the NGXu. I hope I don't need in-depth SDK or C++ involved,  that will probably steer me away from this.

Driving the push LEDs to match the aircraft would be great but not essential. It's the push switches I would prefer to work. I seen that the pushes can be re-assigned to keyboard combinations in the FMC CDU.

Also, I may expand I/Os in the future.

So, given I'm soon ordering AFDS switches, what would be simplest way for a newbie (with an electrical background) to go? Definitely Arduino? What software?

Many Thanks!

Derek
Title: Re: Arduino starting out help
Post by: Trevor Hale on April 13, 2020, 06:25:36 AM
The problem is PMDG LOL. 

I have a lot of experience with interfacing Arduino's through LUA (Built into fsuipc) in fact my entire cockpit is running on 4 Mega's and Uno, an ESP2288 and a Pro Micro.

PMDG is a different animal altogether, and if I am not mistaken there is an addon package you may need to purchase to be able to interface to the PMDG.

First step would be to identify the "Lvars" for the pmdg functions you want to interface to.  from my understanding you can use "Linda" to identify these Lvariables.

Lets start with that.

Trev
Title: Re: Arduino starting out help
Post by: Jet-A1 on April 13, 2020, 06:33:05 AM
Thanks for the quick reply Trev!
 
I'll start looking to see what I can find out about LINDA and the PMDG LVars. Got plenty of time on my hands currently..

Derek

Title: Re: Arduino starting out help
Post by: Jet-A1 on April 13, 2020, 07:51:30 AM
Hi Trev,

It's probably Heresay ;D  here, but I've just spent some time 'hacking' an old USB Keyboard control PCB. I think I can solder on the AFDS push switches to the PCB pin row, that then act as key-strokes. These can then be set up as I need them in the NGXu FMC Key Commands section. I'll hide the old PCB behind the MIP and hook up it's normal USB. Hopefully this way, I may have saved a lot of effort looking inside the off-sets of the NGXu. I can live without the LED function for now.

Should have thought of this first ::) !

Many thanks for taking the time to reply, it is appreciated.

Best!

Derek
Title: Re: Arduino starting out help
Post by: blueskydriver on April 13, 2020, 09:13:03 AM
Maybe a Hagstrom KE72 Card  (or similar model from them) with IO cards would interest you?

Here:

https://www.hagstromelectronics.com/keyboard-encoders-pg.html

John
Title: Re: Arduino starting out help
Post by: Jet-A1 on April 13, 2020, 10:14:04 AM
Yes thanks John!

That's similar to what I came across on search a for USB Keyboard switch interface devices. My returns from Google mainly seemed to be more specialsed for ease of access computer systems, like the X-Keys HK12. Hagstrom did not list.

However, the one in your link looks perfect and simple for expansion in the future.

Thanks!

Derek
Title: Re: Arduino starting out help
Post by: blueskydriver on April 13, 2020, 10:43:38 AM
Awesome! Glad too be of help.

John