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 2123Go to page 4Go to page 3
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
NICE ! I´m glad it works.

Just for youre information i will explane the problem with synchrinisation.... I think we only talk about this still in german section of this Board.

Mobiflight got a manual Synchro function to set all Switches in Simulator to the same Position as the are in the Home Cockpit. ( Maby when you startup the Sim and the light switch in Simulator is in OFF position... But youre Switch in Cockpit is ON.... then the status must be send again to synchro this.... Mobi use this function to make this posible.)

The Function is easy.... Mobi scan the Status of every Button/Switch Input in youre Homecockpit..... If it´s ON it send the ON PRESS Command ...... If it´s OFF it send the ON RELEASE Command ( If it exist) .

Now for example the ON-ON-ON Switch:
Here we got NO release Commands... every Position got a Configline.... And there is only a "ON Press" for the specific function....
In case of AutoSynchro Mobis still send the Command for current Position and it workes fine. The other two configs are OFF and have no Release... so mobiflight do nothing here.

And now the On-OFF-ON Switch.
Here we work only with 2 switches/Pins instead of 3 and got 2 Configlines ..... Both with an release Command.
If for examplethe switch is in Upper position then Config 1 is ON and Config 2 is OFF...... In Case of Synchro now the 1. Config Send the Parameter for the ON PRESS and shortly later the second Config send the parameter for the "ON RELEASE" (cause it´s off at the moment )
(In Example of ADF/VOR switch.... It´s in VOR Position.... Synchro set it to VOR in Simulator... But next Line Set it to OFF cuae the lower switch means he is currently OFF)
The only way to prevent this is set all On-OFF-ON Switches to the middle OFF position while you use the Auto Synchro function of Mobiflight...... Then Both Configs send there "On Release" Commands.... But as i axplaned in last posting..... This are the same commands on Both Configlines.... So it´s send twice but not make problems at all.


************
Keep cool.... Thats not realy a problem if you know it.... This is just for inforamtion !
Good Luck !
2017-05-03 00:41
Avatar
84park
Posts: 1
I have used the KY040 encoder with no problems with Mobiflight. I did quite a bit of experimenting with the KY040 with Arduino to better understand the encoder behavior. It turned out that many of the decoder software on the web did not work very well, at least with the KY040. I have tried to document my work with the KY040 and Arduino on http://84park.blogspot.com. Click the references to "Mobiflight" or "Rotary Encoder" for the individual pages. I hope this information is useful. Lowell
2017-05-03 16:48
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
i know i always argument against the KY040 Encoder in the Past.....
Today we got conformed from lot´s of users that the KY040 work fine with Mobiflight.... So it´s ok !

For me there are only 2 big nefative aspects until now so i not use them....

1. The Encoders are mounted on a PCB.... And direct below the Encoder there are Power Lines and Electrical elements in the PCB.....
So drilling a Hole through the encoder is not posible.... But Lots of Situation need a Hole ( For a Dual encoder or maby for a longer Shaft in a Deep element. )
2. The additional Power 5v Cable..... A Standard Encoder workes with 3 Cable (4 with a Push Button) .... Simply question... Why should i use a Encoder with 1 additional cable.... More wires in my Project.... More solder work..... 1 Additional Part that can get broke or come to an issue.

Also please understand right..... If you like these Encoders ...Use it and have fun !.... I just wan´t to show up the negative arguments !
Good Luck !
2017-05-03 23:03
Avatar
herly
Posts: 67
Hallo Pizman,

I just bought a seven segment using TM74HC595 and tried to connect it Arduino mega, but the display is not correctly appear. Could you mind to assist me, please how?

Thank you for your assistance

Herly
2017-05-18 14:30
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi herly,

do you want to use the TM74HC595 in connection with MobiFlight or just to gain your experience?
So far as I know 7 segment tubes works along with MobiFlight only with the MAX7219 chip.
Grüße,
Stephan (Time: UTC+2)
2017-05-18 16:16
Avatar
herly
Posts: 67
Hallo Stephan,

I tried already using MAX7219 and it works. As MAX7219 has no 4 digit or rare to find it. I tried to install TM74HCail.595 (has 4 digit), but it can not work. Before I purchased I asked the seller whether this can be connected to arduino and he said no problem. But when this goods arrived and tried to connect to Arduino, the result is fail.

I would say, yes experience refer to seller info.

Regards,
Herly
2017-05-18 17:04
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Did you ask aunt google about the assembling arduino and HC595? The arduino forums seems also to be a good source.

With MobiFlight you can switch off the digits you will not use (or which are not available). So you can also operate one 4 digit 7 segment tube with a MAX. You can adjust this in the "Extras -> Settings" of MF.
Grüße,
Stephan (Time: UTC+2)
2017-05-18 17:59
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Herly

Your seller not give you the wrong information.... you ask him the wrong question B)

So your display will work on a arduino.... But you have to write the code youreself to control it.... Lots of Displays work... But everyone need a own code.
Mobiflight only include the code for the Max7219 at the moment. Thats the fact !

Finaly.... Yes a HC595 workes with Arduino..... But NO, it not workes with Mobiflight !

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

To Youre Problem with 4 Diggits !

there are lots of topics here in this Board we talk about this ( Please use search engine) .
You can for example order Display Tubes with removeable Diggits.... https://www.amazon.de/8-Digit-Display-MAX7219-Digital-Control/dp/B00P9277BE
Simpley pull of the 4Diggit Blocks and cable them to the PCB ( Set the PCB for example on the Backside of youre panel, far away from the Front Panel)
Alternate you can solder every Display from 1 Diggit to 8 Diggits to this Elements.... Whatever you like !

If you got experience in soldering and good electric skills you can set youre Max7219 youreself.... Buy the raw Chip and the parts and solder youreself !
Everything is posible here ! ( But this is little tricky... I would recommend to use this removeable tubes or the "LED Matrix" Boards !
Good Luck !
2017-05-18 19:00
Avatar
slammer88
From: LTBJ, Turkey
Posts: 160
Hey guys,

Is it possible to use encoders which are not KY-040, i mean the ones without that little PCB underneath ?
2017-11-06 18:42
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
You can use every encoder you want. Look only on the ratio off 1:1
Grüße,
Stephan (Time: UTC+2)
2017-11-06 18:55
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconslammer88:

Hey guys,

Is it possible to use encoders which are not KY-040, i mean the ones without that little PCB underneath ?



Yes.... I would say thats already recommend....

I not understand why so much users here use the KY040 ???
The easy Encoders without PCB are... Cheaper.... Easyer to handle.... You need 1 wire less .... And you can drill holes in it for a dual switch.
After all.... I personaly NOT recommend using KY040 Encoders !
Good Luck !
2017-11-07 15:54
Go to page 1Go to page 2123Go to page 4Go to page 3