Welcome to Cockpitbuilders.com. Please login or sign up.

March 29, 2024, 06:01:49 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
140 Guests, 0 Users
Members
Stats
  • Total Posts: 59,639
  • Total Topics: 7,853
  • Online today: 179
  • Online ever: 582
  • (January 22, 2020, 08:44:01 AM)
Users Online
Users: 0
Guests: 140
Total: 140

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

ArdSim / ARDref / XPData libraries for X-Plane data I/O

Started by VladSim, July 17, 2015, 04:29:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VladSim

Hello, let me introduce here my Arduino project - libraries for Arduno I/O interface - http://arduino.svglobe.com
Maybe some of you have seen and use it already, since the project was started in 20011. ( At least RayS have used ARDref.. )

The  goal of this projest is to give any home cockpit builders an easy way to use Arduino for inputs (controls) and outputs (gauges and indicators) with X-Plane, with minimum or none programming or electronics knowledge required.

The project include 3 libraries (chronologically) :

XPData library - First library in the project in which I have collected my previous single programs. All data is transmitted to X-Plane without plugin, using only the X-Plane UDP protocol. For data receiving you can use both XPlane Data UDP or plugin (in latest versions). All commands and datarefs for X-Plane control should be assigned manually in your code as arguments of the control functions.

ARDref library.  The ARDref plugin only is used for data exchange, library includes functions for master/slave Arduino boards. Opposed to XPData, all commands and datarefs should be assigned in the simple config text file. On X-Plane start , the plugin  detects the Arduino  connected over the network, and starts reading data from it using the input config file as list of datarefs/commands  which will be sent to X-Plane.  The plugin also uses the output config file to get the list of what simulator data it should send to Arduino.

ArdSim libraryhttp://arduino.svglobe.com/ardsim.html  - The latest library (started in June 2015) that combines the ease and convenience of some parts of two previous libraries and adds "key matrix" connections support - up to the total of 300-400 inputs for one Mega. All data is transmitted to X-Plane and received from X-Plane using the ArdSim plugin.  For input/output configuration a simple text file is used combined with several configuration functions in the Arduino code.

All libraries packets have examples of using. Linux, Windows, MAC OS supported.

Vlad.
Arduino interface http://arduino.svglobe.com - easy way to control your home cockpit

VladSim

As example of using the new ArdSim library I have implemented it  for my Baron-58 rudder trim control/indication.

One encoder attached to the trim wheel and a servo that rotates the disk with the scale are used here.

Configuration includes only  two lines for encoder in the input config file and one line in the output config file to get trim position for the servo.

In Arduino code you need only to define parameters of  your servo in the declaration section and add the function "servoGauge" for defined rudder trim
in the main code loop.

(see more details here: http://arduino.svglobe.com/ardsim_srv.html#rtim )

http://www.youtube.com/watch?v=HObGzfWLSLQ


Arduino interface http://arduino.svglobe.com - easy way to control your home cockpit

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate