-
-
Notifications
You must be signed in to change notification settings - Fork 104
Using third party Arduino based hardware with MobiFlight
There is a chance you could stop your hardware working by changing the firmware.
You are doing the following procedures at your own risk.
Before you start, ensure you can reload the manufacturers firmware.
This is an example using the RealSimGear GNS530, which uses an Arduino Mega internally.
RealSimGear is a registered trademark of RealSimGear Inc.
The GNS530 was detected by MobiFlight during start up. With the name Default and the type of Arduino Mega 2560.
The board was flashed with the MobiFlight firmware without any issues.
A button device was added to each digital pin, using the name of the pin.
Arduino Mega configuration file with all digital pins set as inputs.
All.Inputs.mfmc renamed as a txt file
All inputs file loaded into MobiFlight
MobiFlight needs to be running Offline with Logging set to Debug. Clicking on Extras, Settings on the menu allows you to set:
- Logging enabled
- Log Level Debug
- Offline Mode enabled
When each button is pressed on the RealSimGear GNS530, you will see which pin is activated in the Debug Window at the bottom of the MobiFlight program.
Here you can see buttons 32 through to 37 were pressed.
The rotary encoders appear as a double button press.
Here an encoder is connected to pins 52 and 53.
Once you know which pin is connected to which button, you can make a new module configuration.
You can test your configuration by checking the output of the Debug window and pressing the buttons.
The Input Config can now be created.
Remember to switch of debugging and offline mode when you have finished
The firmware files can be downloaded from the Firmware section of this page.
RealSimGear Firmware download page
Ensure MobiFlight is not running, even in the system tray.
Otherwise MobiFlight could block access to the serial port.
The RealSimGear Firmware Update Utility does not recognise the GNS530 with the MobiFlight firmware loaded.
Therefore we need to reload the firmware using the avrdude utility.
From a command prompt run this command, with -PCOM1 for com port 1 or in this example com port 4 with -PCOM4 at the end of the command line.
"C:\Program Files (x86)\RealSimGear Firmware Utility\Data\Loader\avrdude" -C “C:\Program Files (x86)\RealSimGear Firmware Utility\Data\Loader\avrdude.conf” -v -pATmega2560 -cwiring -b115200 -D -Uflash:w:"C:\Program Files (x86)\RealSimGear Firmware Utility\Data\RSG Firmware\Binary\RealSimGear-Arduino-3.2.4-GNS530.ino.mega.hex":i -PCOM4
The output should be like this.
The GNS530 will now be recognised by the RealSimGear Firmware Update Utility.
The GNS530 will now work with the RealSimGear software as before.
- MobiFlight Connector Installation
- Mobiflight Connector BETA version installation
- Modules
- MobiFlight Connector Files Structure
- MobiFlight Connector Uninstall
- Modules Reset to factory default
- Verifying the WASM module installation and locating the MSFS2020 community folder
- Using a Winwing FCU with MobiFlight
- Providing logs from MobiFlight
- MobiFlight Connector How does it work
- Mobiflight Connector Main Window
- Flash module with MobiFlight firmware
- Input and Output devices
- Joysticks
- Midi Boards
- Sim Variables (for Output)
- Input Actions
- Merging configuration files
- Disabling specific COM ports
- Examples Output LEDs
- Examples Input Switch
- Example 7 segment display
- Example Servo motor
- Controlling LEDs with an output shift register
- Adding lots of buttons with an input shift register
- Beginner's guide to input multiplexers
- Key Matrix with standard MobiFlight and Multiplexers
- Tutorial Easy Driver and x.27 or x.40 Stepper Motor
- Tutorial for Airbus VS display via 7-Segment LED Module
- Example Analog Input Potentiometer
- Baron G58 Tutorial Gear, Flaps, Mags, ELT Input Output Programming
- Using Mobiflight to control arduino-based 3rd party panels (RealSimGear GNS530)
- How to use a VNH2SP30 DC motor shield with MobiFlight
- Using 3D printer mainboards
- Playing sounds by sending keystrokes to AutoHotKey
- Using the selector knob on a Honeycomb Bravo
- Using an adjustable 12 position switch as a GA starter
- Brightness of LCD displays with I2C
- Using three-position switches
- Transponder with one Rotary
- MSFS2020 RPN Tips and Tricks
- MSFS2020 Using the Custom Input Code Box
- MSFS2020 Install WASM module and Event List
- MSFS2020 How to Create and Use User Defined Lvars
- MSFS2020 How to Create a Blinking LED configuration
- MSFS2020 User Defined WASM Module Events Best Practices
- MSFS2020 Developer Mode, Model Behavior dialog and Console window
- MSFS2020 PMDG 737‐700 List of Events that require use of FSUIPC7
- MSFS2020 PMDG 737‐700 Calibrate throttle idle and reverse thrust using interpolation (Valkyrie)
- MSFS2020 PMDG 737-700 Chrono unit functions implemented in Mobiflight
- Configuring PMDG 737 Parking Brake Lever Auto-Release with a Servo in Mobiflight
- Using encoder to drive a value back and forth within a given range
- Adding a custom board to MobiFlight
- User guide - Community Board and Custom Devices
- Developing your own custom devices/boards