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
hrings
Posts: 136
I am building an 737 overhead and use here 3 Arduino mega.
When entering device it is easy up to no pin 13 but after that you have to select pin numbering for each number thereafter.
Is it possible to make it so it starts on the next number after last used.
It is very annoying that it every time after passing pin 22 it always starts on number 14 and you have to select yourself for each number.
Otherwise I LOVE MF
HenningR
2020-04-25 10:21
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I personal think the current system is the most logical....
Free Pins in Sequence from low to high if i´m right.

Let me ask.... If you startup on a new Board with Pin 50 and you reach after some devices the "end" of the Mega..... what should be shown then ?? Restart from Beginning ?
I also not understand what is the Problem. Why do you let the Pins between 14 and 22 Empty ? Simply use them directly behind.... then the Problem not occure.

And if not possible in case of wire logic i think you have 2 ways.

1. Simply accept the current system
2. create FAKE Devices.... For example Buttons or LED ( take care to not reach Limit for Button/LED ) . With that Trick you can also solve your problem. At the End you can delete them again !
Good Luck !
2020-04-25 14:26
Avatar
hrings
Posts: 136
Do you mean that I can use the pins from 14 to 21 at the same matter as I use 2-13 and 22 to 53
I have 2ea Mega 2560 boards that should cover all the lights on 737 fwd overhead. Am I also alowed to use the analog pins from A0 to A15.
Mean I have seen something on the forum.
Otherwise the trick to use fake is a good one.
Is the complete devise set up saved in the mfmc file or is it only the mcc file that store the data
Is there a limit to how many leds (warning lights) I can have on each board?
Henning
2020-04-26 01:40
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
So Many Questions..... I try to awnser all ;)

iconQuote:

Do you mean that I can use the pins from 14 to 21 at the same matter as I use 2-13 and 22 to 53


YES Why Not. All Pins Are Digital IO ..... Only Pin 20/21 are used for IC2..... But when you not crete a LCD Display Device then they are also just I/O Pins and can be used.

****

iconQuote:

Am I also alowed to use the analog pins from A0 to A15.


In theroy this is inplemented last patch but this is still BUGGY ..... I recommend to NOT use AnalogPins until next MF Release when this is solved.
Also maby not plan your hardware for this.... If problem can not be solved maby the analog support get removed completly.

*****

iconQuote:

Is the complete devise set up saved in the mfmc file or is it only the mcc file that store the data


Both is wrong.
Basicly the device Information ( That are used by Mobiflight) are just saved on the MEGA .... The MFMC File is Optional and is not be used by Mobiflight itself ( Just a backup for the users) ....
(So In theory the MFMC file include all the device Settings BUT it is not used by Mobiflight !)

Sure... In the MCC file there is written that Config X should use DeviceY on MegaZ ..... But this is just like a "Link" ....
If you send me your MCC File and i use it on my Mobiflight then i get a warning that the used devices are not connected ( Cause i not own your Mega) .... BUT the file work also for me if i just define in each config a device i got on my Mega.

******
iconQuote:

Is there a limit to how many leds (warning lights) I can have on each board?


Check the FAQ .... Currently 40LED per Board. (as i know)
Good Luck !
2020-04-26 09:48
Avatar
hrings
Posts: 136
Thanks for that answers.
To the last question How many Leds. I was searching the web for that but did not find also is it then possible to use the remaining pins f.inst. to connect switches.
I am unable to find such limitations on the forum and web.
HenningR
2020-04-26 10:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Click on Documentation in the Main Bar on Top of this page (Tutorials, Documentation, Download, Forum).... Then Click on FAQ
Or use this Link https://www.mobiflight.com/en/documentation/faq.html

To question.... Basicly YES.

Whatever.... If you still plan for a second Mega in case you got more devices and can not fit them all at one board.... THEN i would recommend to "split" the LED´s.

Sure if you use low current LED and your 40 devices not reach a Limit like 500mA then cou can also use them on one Board.... But i plan conservative here and think its not needed to power a Mega to e.g. 400mA and a other that have buttons only use nearly no power. But thats only my personal Opinion!
Good Luck !
2020-04-26 20:12
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Sorry pizman, I would like to disagree.

A maximum of 40 outputs are possible per MF board, regardless of how much electricity they consume. So it is not possible to use 50 low-current LEDs - at 41 nothing works. Or has Sebastian lifted this limit?

It is correct to use the remaining pins as inputs (buttons, switches, encoders) until the maximum number is reached. As far as I know, this is 56.
Grüße,
Stephan (Time: UTC+2)
2020-04-26 20:22
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Sorry that was a missunderstanding!

iconhrings:

f.inst[/b]. to connect switches.


I thought he ask me " Can i use the remaining Pins ( After setup 40 LED) for other Stuff..... And there the awnser is YES..... he can set e.g. 13 Switches.

So Stephan is right.... In software settings you can set 40 LED and you try to connect also 6 Servo Motors on the Remaining Pins.... But then the board is pretty sure overpowerd.
Simply Rule.... ALL Devices on the Board should not use more then 500mA ( USB Limit) OR 800mA (Maximim Limit of Mega)

Extremly.... if you use High Power LED with a value of 25mA then the Limits are still reached with 20/32 LED.
[Last edited by pizman82, 2020-04-28 19:32]
Good Luck !
2020-04-26 23:26
icon