Blog / News, Articles ArdSimX Interface Project Archive SimVim Panels Baron-58 sim Forum Contacts/Donate

Configuration Tool interface guide

All configuration for ArdSimX input/output interface is done using the online CONFIGURATOR. This page is a quick guide on the basics of the configurator interface. To see how to configure specific inputs/outputs click the images in the menu above.



This configuration item shows the number of Arduino boards in the system. Initially you can see only one board (#1) present and selected in the configuration. Unlike previous ArdSim versions, the configuration for all boards is now stored in a single file.

With +/- buttons you can add more boards to your system or delete them from configuration. To select the board you want to configure press the button with the number.



!!! Be sure the board number assigned in your Arduino code corresponds to the board number in the configuration for this Arduino, so it won't use another board's config, avoiding the situation with incorrect pin assignments.

BoardNumber 3;                    // insert correct board number

With the left "Board Type" menu you can choose an Arduino type for each board number in your system.

The first "Mega-type" board (1280 or 2560 ) has the maximum number of available input-output pins for Arduino family - 54 digital and 16 analog. All others have the same functionally for ArdSimX, all these boards differ mostly by their analog pins number and their form and size.

If you build a small cockpit (or panel with instruments on LCD screen) in most cases it will be enough to use only a single Arduino Mega board.

With one "Mega" board you can have up to 50-60 digital input controls even without matrix inputs usage. Using a 10x10 matrix you can extend the number of inputs for one Mega board to 100 and still have about 30 digital pins left (plus 16 analog that can also be used as digital).


Select a communication method to be used for the current board - LAN or USB.
For LAN connection you will need to use the appropriate Ethernet shield or module on the W5100 chip.
If USB connection is used it emulates the "Serial" protocol and uses a virtual serial port ("Com" for Windows, tty... for Linux, etc).



With these buttons you can configure the "Key-Matrix" to extend the number of buttons and swithes for your panel. See Matrix Configuration chapter for more information.

Encoder Port extension configuraton.

Registers for Serial LEDs or 7-segment displays configuration


This optional checkbox is only needed to reserve some pins if you plan to use I2C communication in the selected Arduino board to link with other devices (such as LCD displays with inbuilt I2C inteface, etc).




The table on the right provides information on all parameters configured for the current board, listing pin types and what they are used for.

You can switch between the 3 tabs to see the tables for Arduino pins, matrix inputs, and custom I/O parameters not attached to any physical pins.






ArdSimX uses a single config file, named "data.cfg", which includes I/O configuration and connection information for all your Arduino boards. After you've finished using the online configurator, press the "Save" button to download this file.

You can later upload "data.cfg" file again to the configurator to continue editing it with "Edit config" button.

To be used by the plugin, the "data.cfg" file must be placed in ArdSim's plugin folder (X-Plane/Resources/plugins/ArdSim).



Input/Output Pin Color legend

Here is the color scheme for Arduino pins in the ArdSimX Configurator for different types of input and output devices.

When making a configuration, click an assigned Arduino pin to change its parameters or clear it. Pins marked with the white dot cannot be clicked.

Inputs

- Toggle Switch [ one input Pin ].

- Click Button [ one input Pin ].

- Mode Switch Button ( Encoder mode switch, Memory button, Counter button) [ one input Pin ]

- Encoder, Direct connection [ 2 input Pins ].

- Encoder, Port connection [ one output Pin ].

- Axis Input on analog input Pin.

- Rotary Switch on analog input Pin.


Outputs

- LED with direct connection (or digital output) [ one output Pin ]

- Register "S" output for Serial LEDs (or digital outputs) [ one output Pin ]

- 7-Segment display output, the "S" signal [ one output Pin for one multi-digit display]

- Stepper motor output (without sensor) [ one output Pin ]

- Stepper motor output/input (with sensor) [ one output Pin, one input Pin ], sensor connects to the input pin with white dot.

- Analog Gauge output (coil ammeter) [ one output Pin ]. Only Arduino PWM pins can be used.

- Servo output (reserved, not included in the library yet) [ one output Pin ]


Common Pins

- Encoder Port [ two input Pins for all connected encoders]

- Registers "D" and "L" outputs [for all connected multi-digit 7-Segment displays and Serial LEDs ]

- Stepper motors DIR output [ one output Pin for every stepper connected]


- Matrix row pins

- Matrix column pins


© Copyright 2012-2016 - SimVim Design