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.

Go to page 1Go to page 012Go to page 2Go to page 2
Avatar
Banzai
From: France
Posts: 90
hello
i I have a problem with three button and two encoder on my homemade mcp for boeing 737pmdg with P3D
mobiflight does not react to the actions on these interfaces so they are well transmitted to the arduino
logging is enabled
I dontt know what to do anymore I'm going around in circles:cry:
[Last edited by Banzai, 2018-08-17 19:41]
2018-08-15 20:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Sorry for late reply.

If Problem is still exist i need more information.

Does basicly the controll of PMDG work ?
Are there other Devices on THAT Board that work fine ?
Does the devices work in the past in same configuartion ?
Do you try out some stuff like set the Button to another Pin and test there ?
Are more then 1 Board in System active ?

Appology for that couple of questions.... But its not possible to solve your preoblem without knowing the full situation !
Good Luck !
2018-08-22 07:45
Avatar
Banzai
From: France
Posts: 90
Hello

yes the functions of the 737 pmdg works
I only have one card all the pins are to use
there are 17 switch buttons
, 3 on / off toggle switch
6 encoders, 14 leds and 23 display units
at the beginning of the configuration all the encoders and display units worked with the pmdg ,then i add the buttons and leds and that's the trouble to start!
the encoders started to stop working and in the end there was only one left running the "Vspeed" and also several buttons are stopped working
As soon as I added LEDs and buttons the encoders did not respond anymore !!
I tested the connection hardware and everything seems correct I do not understand?:confused:
2018-08-23 00:17
Avatar
Ryan27679
Posts: 52
I think there are limits to the number of inputs and outputs supported by Mobiflight. Someone who actually knows will answer the question soon but it may be worth separating these on to 2 arduinos.
2018-08-23 09:01
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Yes, there are limits for a board:

50 switches or buttons
40 LEDs
2 LCDs

In each case the limit over everything.
50 switches (25 encoders) and 40 LEDs are not possible together, but there are individual limits that can not be exceeded, as a MEGA has max. 54 Pins, but not all are provided by Mobilfight.

If more than the mentioned connections or configs are defined, Mobiflight will accept them (the configs can be entered), but they will not be executed and no error message will appear (happened to me when building the FMC [69 Buttons]) I assigned 52 buttons to a board, where # 51 and # 52 were not executed)

Furthermore, attention must be paid to the power consumption. A maximum of 500mA of power can be drawn per MEGA board. Less is more here. For LEDs, pay attention to high brightness LEDs, which can be operated with 5-10mA. 20 mA / LED is the maximum, not the minimum!

When using stepper motors, you should equip them with a separate power supply to relieve the MEGA. A stepper requires about 200mA - at idle!

When errors occur first always check the voltage (it breaks down if the current is too high), then check the power, then the wiring, then the configs.

If something is reconnected and it comes to errors, restore the faultless state and gradually expand. Then you recognize the mistake right away.

Always make backup copies (elsewhere). Then you can always start again on working configuration files.
Grüße,
Stephan (Time: UTC+2)
2018-08-23 11:31
Avatar
Banzai
From: France
Posts: 90
i am not use the power +5V ON ARDUINO ,
i use a power supply +5v 3A for all the led ,encodeur, and led 7 segment display
with common ground arduino/power supply
2018-08-23 21:20
Avatar
Banzai
From: France
Posts: 90
hello
can i use a common ground for aĺl the led and 7segment and encodeur?
or i do separate them?
thank
2018-08-26 11:22
Avatar
paul_max
From: United Kingdom
Posts: 74
Supporter
Banzai,

Everything must use a common ground: Arduinos, displays, LEDs, power supplies, USB etc.

The only exception is if you use opto isolaters.

Try to use shorter, thicker wire for +5V and 0V (ground) from the power supplies.

Paul
[Last edited by paul_max, 2018-08-26 12:01]
2018-08-26 11:55
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
GND is the common reference potential for all circuit components. All circuit parts that exchange data or potential with each other must have this common GND potential for proper functioning.

Circuits or circuit parts that have nothing to do with each other are usually galvanically (electrically) separated from each other.

For a washing machine usually cable of 1.00 mm² is taken. When the heater is running, a current of 16 A at 230V is normal.
In the model railway usually switching cable of 0.14mm² is taken. Depending on the article connected you have 3-5A current at 18V AC

Now everyone can think for themselves what flows at 5V for currents and what cable strengths are required there. 0.75mm² are generously dimensioned as feeder cables and 0.14mm² should also be sufficient in the sub-distribution.
Grüße,
Stephan (Time: UTC+2)
2018-08-26 13:29
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconBanzai:


I only have one card all the pins are to use
there are 17 switch buttons
, 3 on / off toggle switch
6 encoders, 14 leds and 23 display units



Hhmmm. I not understand your setup !

17 Buttons = 17 Pins
3 On OFF Toggle = 3 Pins
6 Encoder = 12 Pins
14 LED = 14 Pins
Summary.... 46 Pins

23 Display Units ( ?? 7 Segment Max7219 ??)
If Yes in Chain of 8 These are Minimum 3 Chains a 3 Pins = 9 Pins ...... 46+9 = 55 Thats not Possible.

*****

Basicly....
Check your Power setup !
Check for Overlenght Filenames.... this is in 99% of cases the reason for not detected Elements ( whatever they worked before)
I recommend for testing rename your devices on Arduino to for example B1 - B14 for Buttons .... S1-S3 For Switch and so on.
(Shure you can use more then 3 Numbers ... Limit is 12 atm i think... But for testing make it extreme Short.... Also NOT use Signs like "§$%&/(

Please report experience !
Good Luck !
2018-08-26 15:43
Avatar
Banzai
From: France
Posts: 90
I made a test board for my mobiflight configuration
the V4 and V7 works with 40 i/o , and as soon I add an i/o I find error
the arduino work the led flash when i press the switch or encoder but mobiflight dont run the config

[Last edited by Banzai, 2018-08-26 20:07]
2018-08-26 19:50
Avatar
paul_max
From: United Kingdom
Posts: 74
Supporter
Banzai,

Just to confirm, when you say "I/O" do you mean Arduino pins OR components attached to the Arduino?

The maximum limit is 52 pins. There are also limits of 40 input pins (button/switch) and 40 output pins (LED, displays).

You must be close to the limit of 40 input pins or 40 output pins?

Or the i/o names are long, using up too much ram in the Arduino.

Paul
2018-08-26 20:37
Avatar
Banzai
From: France
Posts: 90
hello
i use 52 pins of arduino
but i can not made more than 40 configuration in mobiflight (addition of input/output)
also i have malfunction on my hardware (encoder,switch or led)
i try change the lenght of name but nothing has change!!
i check the voltage its ok!
2018-08-27 16:10
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi Banzai,

look above, message #9885. This are the limits.

If you change the length of the names, you should save these chnges on the module(s) ( if you change the devicenames) and into the files on your HDU (if you change the config-names).

If you have defined 52 pins, then you declared too many. All declarations in a total over 50 will be ignored, more than 40 outputs will be ignored, more than 50 inputs will be ignored. If you mix in- and outputs you can always use 50 declarations for inputs minus the number of outputs (max. 40).
Grüße,
Stephan (Time: UTC+2)
2018-08-27 16:42
Avatar
Banzai
From: France
Posts: 90
Ok so i do addition another one arduino ?
2018-08-27 17:20
Go to page 1Go to page 012Go to page 2Go to page 2