Cockpitbuilders.com

X-PLANE (Laminar Research) => X-PLANE - General Discussion => Topic started by: RayS on January 12, 2015, 06:50:06 PM

Title: X-Plane, Arduino and ARDref plug...
Post by: RayS on January 12, 2015, 06:50:06 PM
Finally got X-Plane to 'talk' to my Arduino 256-Mega.

Looking back on the problem it was a relatively simple one to solve, but it did not come easily. More like it was pulled kicking and screaming to a solution.

In short I can now get any X-Plane Dataref and send it to a 2-line LCD display via ethernet. Right now I'm pulling L/R fuel tank levels and flap lever position.

If anyone is interested let me know.

Title: Re: X-Plane, Arduino and ARDref plug...
Post by: Trevor Hale on January 13, 2015, 03:00:03 AM
Thats awesome Ray, I know how good it felt when I got my Arduino talking to flightsim.  Yes, I need to use the Comms Software Link2FS but still its amazing. 
Title: Re: X-Plane, Arduino and ARDref plug...
Post by: flyinjake on May 12, 2015, 01:18:53 AM
RayS,

I have been working on my simpit and xplane for about a year now. I am using Vlads software with ARDref and Arduino. SO far its been good even though I am a newbie.

I have two sainsmart boards in bound today. Planning to use them to power leds in some of the buttons that I have.

Please share your experiences (lessons learned).

Jake
Title: Re: X-Plane, Arduino and ARDref plug...
Post by: RayS on May 13, 2015, 09:56:00 AM
Leesons learned... hoo-boy!

Where to start....

If you use Arduino dev environment: When you install the development tools, always install into the default directories it chooses for you. The tool isn't matureenough to automagically know where all those libraries and plugin directories are, (Or maybe it's the libraries themselves that are directory-unaware) Either way, don't stray from the norm.

Start small: Get one gear spinning at a time rather than the entire watch. It's save you headaches in th elong run.

If you get the "out_1" file wrong or put in an invalid parameter, X-plane will simply crash.. .this is a good thing. :-)

Load X-Plane, plug in your microcontroller, load your code, then look to see if X-Plane sees the IP address of your controller. If it does, you're 99% there.

The rest to come tonight after I think more on this over a few beers. :-)