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
theflyguy
From: ETSE, Germany
Posts: 9
I've read in the FAQ's that MobiFlight is currently limited to 50 Buttons per Arduino Board. Are the Pins used by Encoders (left, right, push) included in this Number or are they on top so that I could use all 69 Pins of the Arduino?
2021-02-20 12:32
Avatar
krok
From: LFEN, France
Posts: 29
Supporter
hi,

read this -> https://www.mobiflight.com/en/documentation/faq.html
2021-02-20 13:47
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi,

you can not use 69 pins, only 68 - from pin #2 up to pin #69. That are 68 pins at all. The pins #0 and #1 may not be used they are the serial interface to upload the config and the firmware.
Then you can use 20 Encoders (with 40 pins) except the button pins, they are additional (40 encoder-pins + 20 button-pins = 60pins)
Grüße,
Stephan (Time: UTC+2)
2021-02-20 14:48
Avatar
theflyguy
From: ETSE, Germany
Posts: 9
Thanks. I was just confused where the Limit of 50 Buttons - as mentioned in the FAQ - come from, because the Arduino Mega offers more Input Pins than 50, and I can choose any PIN from 2 to 69 in the MobiFlight Configuration Dialogue. And because Enocers are treated by Mobiflight as a different Input Type I was hoping that I could use more than 50 Pins in total.

As already said in my other Thread, I want to build a G1000 Box, and I've calculated that I'll need 58 Input Pins for that. 30 Buttons and the Rest for the Encoders. 68 should be more than enough then, to also have Mode Switches and some Status LEDs connected.
2021-02-20 16:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
I´m not sure but i think the FAQ is outdated maybe.

The Limitation of 50 Buttons is related to a older Version. Until 2019 Mobiflight not support Analog Pins . So the 54 Digitals (minus Pin 0 and 1) was 52 Pins in total. Pins 20/21 Optional as IC2 for LCD means there was 50 Pins available.

This is a Quote of the current Firmware !
iconQuote:


#if MODULETYPE == MTYPE_MEGA
#define MAX_OUTPUTS 40
#define MAX_BUTTONS 69
#define MAX_LEDSEGMENTS 4
#define MAX_ENCODERS 20
#define MAX_STEPPERS 10
#define MAX_MFSERVOS 10
#define MAX_MFLCD_I2C 2
#endif



Whatever this also makes no sense cause there are only 68 Pin in total..... But this means you can use MORE then 50 Buttons !


EDIT: https://bitbucket.org/mobiflight/mobiflightfc/issues/311/wrong-number-for-max-button-devices-in-faq
[Last edited by pizman82, 2021-02-20 18:51]
Good Luck !
2021-02-20 18:42
icon