Articles

Affichage des articles du avril, 2014

Communication between X-Plane and an Arduino Uno microcontroller

Image
A few months ago, I bought an Arduino Uno R3. It is a single-board microcontroller, intended to make the application of interactive objects or environments more accessible. The hardware consists of an open-source hardware board designed around an 8-bit Atmel AVR microcontroller, or a 32-bit Atmel ARM. Current models feature a USB interface, 6 analog input pins, as well as 14 digital I/O pins which allows the user to attach various extension boards. After playing a while with this small device, it was obvious that it could be a very useful platform to build instruments for an homemade cockpit. For more information about the LiquidCrystal library, please take a look at the following URL: http://arduino.cc/en/Tutorial/LiquidCrystal Generalities The first step is figuring out how X-Plane communicates with external programs. The first way, would be by writing a plug-in. The second option, is communicating with X-Plane using UDP, or User Datagram Protocol. Data sent using UDP