-
-
Couldn't load subscription status.
- Fork 128
Tutorial Setting up 7 segment LED modules with SimConnect Events
WORK IN PROGRESS - COME BACK LATER
The type of 7-segment LED modules supported in Mobiflight is the MAX7219 chip. MAX7219 is an integrated serial input/output common-cathode display driver that is very popular for arduino projects with each chip capable of driving up to eight digits. A commonly found package in all the online stores is the one using this chip with eight numeric display blocks. These complete modules are used often to display numeric information in simulator panels such as speed, or heading settings in an autopilot or the barometric pressure setting for the altimeter.
Here is a picture of these modules and a typical schematic diagram of how they are connected.

In addition to the power and ground wires, only three additional connections (DIN, CS and CLK) are needed to the Mobiflight board digital pins. If needed, several modules data lines can be connected in daisy chain. Because these modules contain a diode to protect the components from erroneously applying the power, the voltage drop introduced by these diodes makes daisy chaining the power connections beyond two or three boards difficult. Individual 5v wiring to each module is the recommended solution. Desoldering the diodes to eliminate the voltage drop is also an option, but more complicated. The data lines do not have this limitation.
Mobiflight can handle up to 8 modules in a daisy chain and up to 4 individual chains for a total capacity of 256 digits per Mega board. Electrically, each module may consume up to 120mA which means only up to about 4 modules can be powered from an Arduino Mega. Any number beyond will require an external 5v power supply.
The MAX7219 modules are connected to the Arduino Mega with only five wires as shown in the diagram below. The three digital pins in the board can be any pins. There is no special requirement for these pins. Make a note of which pins are connected to DIN, CS, and CLK in your LED module, as you will need this information later.
In the previous section, you completed the wiring of your 7-segment display to the Arduino Mega board. Now we will create the device configuration for the display in the board configuration. We assume that you have already uploaded the Mobiflight firmware to your board. If not, you need to complete this step before proceeding. If you don't know how to do this, please refer to the tutorial on how to upload the firmware.
Open Mobiflight Connector and go to the "Mobiflight Modules" window by pressing the button located in the main toolbar.

Mobiflight will display all Arduino boards connected to your PC (if more than one). Your board should be recognized by the application and included in the list of available boards with the blue Mobiflight logo icon. If the board is shown as unknown, you will probably need to upload the firmware and try again.
Select the correct board from the list by clicking on its icon. Press the "Add device" button at the bottom of the window. A drop down list will appear with all the device types. Select "LED 7-Segment".

A new device named "LedModule" will be added to the list of devices connected to your board and the device configuration window for the 7-Segment display will be shown on the right side of the window. Here you will enter the Arduino pin numbers where you connected the DIN, CS and CLK pins of your display module. The "Num" parameter is the number of LED modules connected in daisy chain to these pins. As mentioned earlier, you can daisy chain up to 8 modules and can have up to 8 separate chains. You can also change the device name if desired.

That's it for the device configuration. You should now upload the configuration to your board by pressing the upload button. This will take a few seconds and Mobiflight will confirm when the action is complete. It is a good idea to also save the configuration in a mfmc file by pressing the save button, in case something may happen to your Arduino board.
- 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
- Verifying the WASM module installation and locating the MSFS2024 community folder
- Using a Winwing FCU with MobiFlight
- Using VKB controllers 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
- Workflow for Creating Flight Simulation Panels ‐ Part 1
- 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