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
Julesta
Posts: 129
Hello

the question is: How many LCD 16x2 can I use with MB?. I use 2 at the moment and all is OK, but the third do not work. MB detect it, but makint text nothing happen.

Any help?

Thanks!
2020-11-29 00:05
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Julesta,

you can use up to 2 LCDs per module in MF. 2 is the limit. MF-wide you can use 40 LCDs if you use 20 modules.
Grüße,
Stephan (Time: UTC+2)
2020-11-29 13:16
Avatar
Julesta
Posts: 129
Thanks Stephan...I supposed it. 4 LCD=4x2560. ¿eh?:w00t: :w00t: :w00t: It´s a pitty my friend

Greetings
2020-11-29 16:11
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Negative!

If you can connect 2 LCDs per 2560 then you only need 2 2560 for your 4 LCDs
Grüße,
Stephan (Time: UTC+2)
2020-11-29 23:58
Avatar
Julesta
Posts: 129
Thank you Stephan

Yes. I know that each 2560 can use 2 LCD, but it´s a problem of space. If I´ll could represent in a LCD of 20x4 8 values, I´ll could, in a little space 10x4cm to have together:

NAV1, NAV1 STBY
NAV2, NAV2 STBY
COM1,COM1 STBY
COM2,COM2 STBY

and after that with 2 encoders my radio perfect and compact. But... if you told me now that only 7 values in a LCD 20x4, I´getting sad and frustrated again. I must then program again (is a hard work use C++, offset of FSUIPC, etc, etc and forgetme of MB. MB make me the live more easy, but for me, it has a lot of limitations at the moment. I can remember that programed the 2560 with MB was very comfortable and easy compared with LINK2FS that is a difficult method and you need to know program in C++, but very strong and stable.

I´m sending a photo of my cockpkit with 4 arduinos (2 UNO, 2 2560) with one 2560 I control Pilot Automatic (programed with LINKS2FS) , HEADING, ALTITUDE, VSPEED, SPEED, COURSE, TEMPERATURE and TIME. In 1 LCD(16x2) with 1 encoder and a 1- 8 positions interruptor.
Other ONE control: com1, com2, com1 stby, com2 stby, dem1, dem2,adf and transponder. In 1 LCD(16x2) with 1 encoder and a 1 8 positions interruptor.
Other ONE all the GPS500
Finally using MOBIFLIGHT with a 2560, I programed all lights, buttons, gear, flaps (1 servo), etc, that you see in the photo.
All concentred in 56x6x10 cm. The GPS also in 56x6x10 (down). I can put in a little space but I did similar to the upper module. Also I have a Chrono (right down), with 1min and 2 minutes very useful in the airplanes that FS do not have chrono (aproaches circuit) programed by myself in C++.

With all this I can perfectly pilot FSX any airplane, and also in FS2020 all the lights and buttons (MB 2560), but no LCD and encoders using the same HW. Because that I´m trying to use MB for displays, but I´m boring and frustrated and I thinking to leave it after FS2020, FSUIPC and MB 10.1 will be more stable and flexible. .

Un cordial saludo desde Spain! and congratulations for your clever an easy method of control FS.

One photo.
https://www.dropbox.com/s/7levyyvhk5rfpwe/IMG_1142.JPG?dl=0
[Last edited by Julesta, 2020-11-30 11:46]
2020-11-30 11:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

As i said in other Topics already......

I Hope Sebastian will increase the Placeholders to 8 ( or to 7) To make this directly Possible.

Until then ( or if he realy not want to increase the limits) we can solve this within Mobiflight ( No programming needed)
The Key is to Build a Config that use the value of 2 Other Configs and combine it to one longer string !
Then THIS Config is used as a Placeholder in the LCD Config and include BOTH Values at once!

For Example :
Config 1 Include COM1 lets say 123.45 (Value without decimal is 12345 )
Config 2 Include COM1 Stby. LEts say 129.30 .... without decimal 12930

Now Our Config 3 use 2 Placehodlers.... Config1 as A Config 2 as B
Transform : a*100000+b
So 12345*100000 = 1234500000 .... +12930 = 1234512930

In the Display Config you now use Config3 as a Placeholder .... For example Symbol %
In Display you write e.g. : COM1: %%%%% COM1 Sby : %%%%%
The System will fill now 12345 to the first 5 Placeholders and 12930 to the second.

******************
I hope you understand..... Simply "combine" 2 Values together into one long value..... And then "split" the Placeholder on the Display!
Good Luck !
2020-11-30 13:14
Avatar
Julesta
Posts: 129
Thanks Pizzman

I can understand it, but...I don´t know HOW to add a+b in MB. If I use the first config for a (a*100000) and the second config with b in the third config... what I must use?. I can use config 3, but I don´t know how to tell to MB that the third config is a*100000+b... I can´t add several configs or I do not know how to do this or I can´t understand correctly your explanation.

I know that you are friendly and I don´t want to bother you very much, but I´m ready to learning from you. Please.

Many thanks about ALL YOUR HELP. I´am appreciated it very much.

Saludos cordiales my friend!

************************
Before get an answer from you, I was working and thinking about your idea. At last: EUREKA!!!!!!. I did it.

I was thinking about your idea and working continuosly. I created a variable that was the add of COM1+COM1 STBY. After, in LCD display I give a caracter to this variable in the LCD display config, and I fill the display as you told me. After that, I had maked 3 similar with COM2, NAV1 and NAV2. Now I have the display full with EIGHT different values and all work fine.

Now I´m going to put 4 Encoders and 4 Buttons to change frecuencies.

Really, you are a CLEVER boy, my friend. Your idea was simple, but perfect. Simple, because after to know what button to push all is easy!.:w00t: :w00t: :w00t: The problem as ever, is to know what button to push!.:) :) :)

Sincerelly. Your idea was great and clever, and it´s an idea for me that will help me a lot with my proyect. I´ll use in others problems similar to this.

I´m very happy now. THANKS!.:thumbup:

Come to Spain (Bilbao) and I´ll invite you for a dinner!. And We´ll drink a bottle (or 2...) of Rioja red wine from 2016.:D :D :D
[Last edited by Julesta, 2020-11-30 16:41]
2020-11-30 13:57
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Did you check the I2C-address? Every LCD has an unique Address, so if you let the modules unchanged it may be that both modules have the same ID what can not work
Grüße,
Stephan (Time: UTC+2)
2020-12-02 22:44
Avatar
Julesta
Posts: 129
Thanks

Yes I did it. This is the first that I do when I connect I2C module. To give an ID different soldering jumpers. Now all is working. I do not know whats matter before...

At last, I´ve a 2560 with 2 LCD 20x6 and 7 encoders connected to FS2020. Each time that aI start MB, nothing work. I´have to stop and run 1 time for the first LCD work, and for the second 4!!!!. ¿?¿?¿¿. After that, all is working Ok. When I use it with FS2020 all is working, but...it´s too slow and sometimes FS2020 shut off. Perhaps all is too new yet. With FSX all is very fast.

A new question, please:

In the configuration of several config, there is a PARAM... What can I do with it?. I´m trying to program the encoder fast left&right, but I do not know how to do this. I use into PARAM -100 and +100, but I can´t see differences.

Sincerely,
2020-12-03 17:53
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
The problem is that not all airplanes support the fast option. So you can leave this opton
Grüße,
Stephan (Time: UTC+2)
2020-12-03 22:43
Avatar
Julesta
Posts: 129
Ok. Thanks. Stephan
2020-12-04 10:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
NOTE:
Not Mix Up "Parameter" and "Value"

A "Parameter" is used in a EVENT Input ..... A "Value" is used in a OFFSET Write These are 2 fully different Systems !

At first.... a Input "+100" or "-100" will NEVER work..... Whatever as Parameter or as Value. Cause we can not say "+/- 100" we must tell Mobiflight from WHAT wvalue it should add or subtract those 100 ..... So it must look like "$-100" in that case.

For better understanding.

A Event ID ( Taht use Parameter) is mostly like a Macro.... It execute simply a premade action. For example it Decrease the AP Altitude by 100ft. Here the Parameter is no matter. Cause it simply do this action one time if you execute it. Thats why it do the same whatever you say +100 +1000 + 99999 . It simply trigger the event.

A OFFSET Input will send the Value to a Offset . Here we can say "$+100" . MEans it use current Value ($) add 100 and send the result back to the Sim !

****************
Summary: As Stephan said.... The Key is to have a AddOn that support a Offset Input or much better a AddOn that support multiple EventID for different increment Steps !
Good Luck !
2020-12-04 15:57
icon