Arduino-based Input/output software
for DIY home cockpit simulator
ArdSimX - Getting started
- Prepare an Arduino board and any toggle switch to test digital inputs.
- If Ethernet connection will be used, attach Ethernet module to Arduino board.
- Connect your Arduino to USB port of the main X-Plane PC.
- In Arduino IDE Menu "Examples" find "ArdSimX 1.2x", open the "ArdSimX" sketch.
- If using USB connection, comment or delete the #include <Ethernet.h> line.
- Upload code to Arduino ( first, select a correct model of Arduino board in IDE menu! ).
Testing communication for ArdSimX Library
- Connect the toggle switch to pin #5 of your Arduino. The sample data.cfg file in ArdSimX plugin folder will be used.
- Start X-Plane, open ArdSimX plugin "Status" screen. Enable USB checkbox if USB is used. Otherwise the plugin will not scan USB ports.
- You will see connection status and a rotating bar during the search process (the plugin scans the IPs or USB ports if enabled).
- When Arduino responds and is configured you will see the message "Connected to" and the list of Arduino boards.
(including the number of inputs/outputs configured for each board numuber).
- When you throw a switch connected to pin #5 you should see a message from this Arduino #1 in the status screen: D5+ / D5-.
- You will see how the Pitot switch toggles in the on-screen panel and the on-board LED of your Arduino switches On/Off accordingly.
In these screenshots you can see the board with LAN connection only and two boards connected with USB and LAN:
Note: If an Arduino board configured for USB communication has been physically connected to USB port while X-Plane was already running,
you need to press "Reconnect", to find the newly connected USB.
Please note: having USB enabled in ArdSimX will prevent you from uploading a program code to your Arduino. To upload code without exiting X-Plane, disable USB in the "Status" window. After uploading the code to Arduino, enable USB again.
When you've made sure that your ArdSimX is working with your Arduino, you can start configuring it for your own inputs and outputs.
- When you reset Arduino (or upload code), the plugin renews Arduino configuration and receives the current state of input controls.
- When you use "Reconnenct" or restart the plugin it reconnects to all Arduino boards and receives the current state of controls.
- If you have changed the config file while X-Plane is running you should press "Reconnect" button to read the new config.
If you see "Connection status - Awaiting connection" message and a rotating bar in ArdSimX Status window for too long (more than 30 sec) try using "Reconnect" button and/or reset Arduino with the on-board "reset" button and wait for connection.
If the plugin still didn't find your Arduino board, see troubleshooting (or contact us).