MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
niekvdc
Posts: 3
I want to use Mobiflight to make the COMM1 and NAV1 radio's so I have 4 7-segments of 8 digits. I guess that each 7-segment display has its own CS-input, but that the Clock and Data-In signals are common for all the displays. Still Mobiflight forces me to assign CLK and DIN pins for each 7-segment display. That seems a waiste. Does anyone know if there is a way around this?
Regards,
Niek
2020-06-10 21:03
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Niek,

that is so correct. At least if you connect each MAX chip (i.e. 8 digits) to MobiFlight individually. Then it goes without saying that you need the 3 connections for each MAX chip (plus 5V and GND).
However, if you build the MAX chips in a chain, you only need these 3 lines for the 1st chip. These lines are then passed on to the next board at the end of the board. The principle can be seen on page 13 of the data sheet (https://datasheets.maximintegrated.com/en/ds/MAX7219-MAX7221.pdf).
When building a chain with the small Chinese PCBs, there is something to consider. The 5V must not be looped through the boards, then nothing works from the 3rd display. The reason for this is the diode D1 on the circuit boards, which serves as reverse polarity protection.
These can either be unsoldered and replaced with a wire bridge, or each board is individually supplied with 5V. GND, however, can be looped through.
When building a chain with MobiFlight, make sure that the number of boards in the chain is specified when setting up the device (Menu -> Settings -> MobiFlight Module) to the right of DIN, CS and CLK, select the number in the Num field.
The boards must then be entered accordingly in the Config Wizard.
Grüße,
Stephan (Time: UTC+2)
2020-06-10 23:31
Avatar
niekvdc
Posts: 3
Hi Stephan,
Thanks! That was very helpful.
I see now that there is only one CS for the whole chain. Now it works.

All the best,
Niek
2020-06-11 12:07
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
To avoid Confusion.....

iconniekvdc:

I guess that each 7-segment display has its own CS-input, but that the Clock and Data-In signals are common for all the displays. Still Mobiflight forces me to assign CLK and DIN pins for each 7-segment display.



Take care if your setup is compatible with Mobiflight. !

With Single Chip usage ( No chain) Mobiflight need for each board all 3 single lines.... Means each Chip got its OWN CLK, CS, DIN
If you use a Chain then the Whole Chain got only 3 Lines from the Mega.... So here (whatever 1-8 chips are in use) all share also ONE CS.


Last week a user from Italia show us a special logic ( used for SimVim) .... Here its different.
This board technical not build a real chain.... Each Chip work as a single device....
BUT..... Those Boards share already DIN and LOAD..... Only CLK is single here.
(Sounds like your reported situation)

Means whatever its not chained, all Chips would recive the same signals..... but the CLK manage what display execute the data and what disply "ignore" the Data.
THIS is not compatible with Mobiflight.
If you got those Boards with PCB lines in that way you must rework the system (solder/desolder some stuff)!
Good Luck !
2020-06-11 17:17
icon