PDA

View Full Version : Arduino I/O interface for X-Plane



VladVVS
02-22-2014, 09:10 AM
Hello to all,

Before building my Baron-58 cockpit - http://b58.svglobe.com - I was already quite familiar with Arduino and was eager to use it as platform for I/O and after first tests with the board I found out that it's perfect to create an X-Plane interface and using Arduino with an "Ethernet Shield" the built-in UDP networking feature of the X-Plane it is possible to build a quite complex system for the cockpit.

Even when using Arduino Mega 1280 (and other as 2560) as a single device, without any other schematics or even key-matrix, this only give us about 50 digital inputs for buttons/toggles/encoders. (While for Baron project in addition to Arduino I've made the extention board for 128 inputs.)

I've launched the separate site, which will be dedicated entirely to I/O interface, based on Arduino platform. The first basic code there is showing how to use the Arduino alone for controling X-Plane, without any other schematics and plugins. Here it is the main page: http://svglobe.com (http://svglobe.com/)
-------------------
Recently the new more specific "single-Arduino Plug-n-Fly" program was finished for one-engine piston airplane. (as Cessna 172/182/etc), that represents the full set of controls for such type of planes. All digital inputs on Arduino Mega used for switches, buttons and encoders. It includes most of Cessna 172/182/etc. control inputs as: all electrical panel switches, audio selector and radio buttons, 11 encoders, Starter/Magnetos switch, Transponder mode rotary switch, Flaps lever (analog), Gear Lever, Prop pitch, Mixture, Instrument Lighting.

All you need just upload code to Arduino, plug it to Ethernet and start XPlane.

(update, April )
- New code samples - including the full set of encoders on one Arduino-Mega: 21 Encoder on Mega (http://svglobe.com/arduino/21encoder.html) - Total 21 encoders are represented, this is virtually the entire set of controlled parameters, used in cockpits.

+ many test code samples...

Vlad

VladVVS
02-23-2014, 05:14 AM
(update March 15 )

-----------------------------------------
I slightly altered the structure of the site, added new sections.

- Using Arduino analog inputs for the buttons array, with sample code, added to I/O Tips. If there is lack of digital inputs we can use each analog input as 10-50 buttons.

- Using Multiple Arduino, description added - one simple way - to use more arduino with E-Shield, other - I2C communication between multiple Arduinos.

Jylhami
03-21-2014, 03:56 AM
This is excellent stuff. Good work Vlad!

Lazarus
04-10-2014, 02:41 AM
Top stuff Vlad, fantastic site and a very nice project indeed. All that information is incredibly helpful! :grin: