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
e4rthdog
Posts: 10
Can i connect 2 LCD 20x4 displays (I2C) and handle them from MF?

I have seen the solution of having 2 pages of info and maybe i will follow this if i cant have 2 LCDs connected.

Thanks.
2022-01-03 20:34
Avatar
Whiteknuckle157
From: Bayern - Bibertal, Germany
Posts: 50
Yes, you can.
Connect them as advised for I2C (may need pull up resistor). Change address on one module and set the address in mobiflight.

cheers
2022-01-04 00:03
Avatar
e4rthdog
Posts: 10
So you mean something like this for wiring and just change the address in one of the LCDs?

2022-01-04 08:17
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
icone4rthdog:

Can i connect 2 LCD 20x4 displays (I2C) and handle them from MF?



Yes and "maybe No" .....

Basically .... You can Handle Hundrets of LCD 20x4 if you like.... The Number of Arduino Megas is not limited by MF (Only by windows) ..... So if you need e.g. 10 Displays and you use 10 Megas ( 1 Display each) .... Then this work without any disadvantage !

*************

Whatever ... Lets talk about the Limitations and Whiteknuckles Comment and your linked Picture

Correct!
Mobiflight allow up to TWO LCD Devices per one Arduino Board .
Setup as you expect.... Both share the SDA,SCL Pins and both must be set ( mostly by jumpers on the I2C Controler) to two DIFFERENT Adresses.
In MF you finally create 2 Devices and choose for there correct Adress.

PROBLEM:
In the past (Prior current 9.2) there was a "buffer overflow" that occure in freezing LCD´s .... specially if TWO of them was in use on one Board.
Sebastian fix this as i know.... So e.g. 2x 16x2 is now possible without trouble.
BUT
I´m not sure if the Buffer still is enough if you use two large 20x4 ( That would need ~~200 byte of Buffer) .
(( @Seb... You can comment this yourself ))
*************

I recommend:
If you plan with only one Mega..... You can try it. It "should" work .... And it work garantee with 2 smaller Displays... With large ones i´m not sure

If a second Mega and a USB Hub is no problem to you ( may you still plan for multiple Megas and a lot of Buttons/LED) then i would set only One Display per Board.
This work 100% Confirmed without problems !
Good Luck !
2022-01-04 12:11
Avatar
e4rthdog
Posts: 10
iconpizman82:

Hi
I recommend:
If you plan with only one Mega..... You can try it. It "should" work .... And it work garantee with 2 smaller Displays... With large ones i´m not sure

If a second Mega and a USB Hub is no problem to you ( may you still plan for multiple Megas and a lot of Buttons/LED) then i would set only One Display per Board.
This work 100% Confirmed without problems !



Thank you very much. That was what i was looking for.. I will start with one mega and 2 LCDs and if i get issues i will just add a second Mega...

I am receiving my stuff tomorrow so i will be getting onto it soon enough.
2022-01-04 14:23
icon