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
JuanJose1
From: Alcala de Guadaira, Spain
Posts: 45
Please, I need help to connect korry switch on-off from 6 pins to mega card
yo
2018-06-03 12:06
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
Here in forum maby nobody work with high expensive Korry Original switches.... Most users build this DIY for less then 1$ per switch.

But pretty shure we can help you.... So we need some Informations. Do you have a DataSheet ??

If yes give it to us or tell us exact TypNumber of Switch and manifactor so we can search for it.

ELSE:
If Not you need to explane us full function for the switch. Is it a ON/OFF ? Momentary or not ? Is a LED include.... And How many LED ?
Good Luck !
2018-06-03 15:32
Avatar
JuanJose1
From: Alcala de Guadaira, Spain
Posts: 45
How do you build a DIY? Sorry but I'm very new and I need all the help.
yo
2018-06-03 20:51
Avatar
JuanJose1
From: Alcala de Guadaira, Spain
Posts: 45
How do you build switches?
yo
2018-06-03 21:20
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi JuanJose1,

so we can help you, we need information about your Corry switch, as pizman already asked.

Without this information it will be difficult
Grüße,
Stephan (Time: UTC+2)
2018-06-04 07:37
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconJuanJose1:

How do you build a DIY? Sorry but I'm very new and I need all the help.



DIY means "Do It Youreself"

Here you got lots of possible technics to make a corry switch.

The question is.... What machines you got ? If you have a 3D Printer it´s easy.... If you have a good Saw a Stand-drilling machine then a other technic can be used.... If you have a CNC Machine or a lasercutter another technic is recommend.

Basicly you build the Element in 3 parts....

1. The mechanicle Switch
Here you fix a cheap microswitch to the self build corry ( mostly backside) .... You can use a ON/OFF Momentary for a easy Push Button. If you need a larger Way of Push you maby need a special switch or you build a system with a spring and a shaft. ( Lots of ways) .

2. The Light System
Here you normaly need to build a indipendent housing for the xx LED. Most Corry got 2 chambers. For example the MCP of Boeing got Corrys with 2 LED.... The Upper is mostly a White LED and is controlled by Backlight System.... The Lower is a Green LED and will show the Status of the function... controlled by the Sim.
HERE there exist again lots of ways to build this.... Whatever you got the right machines.

3. The Label
To get the print label you got basicly 2 ways....
Professional system is to engraved it by a CNC Machine or Lasercutter. Use a thin Acrylglass ( Maby 2-3mm) and paint it BLACK. Then you engrave the Text so the Black color is gone on the text area. If you light it now from Back then Only your text is lighted.
Alternate is to print it on a "Overhead Projector foil". This can be done good with a HP LaserPrinter or other printers, too.
Problem here... The light is also see through in Black areas. Some Guys print simply 3-4 labels and clue it together.
This work but not look professinal finaly.

Summary...
Without machines you get no good result and a Original switch is more professional. But with good machines you can make this in a perfect way verry cheap !

Check Google and serach for "Korry Switch DIY"
For example This..... https://www.simucockpit.fr/a320/13-fabriquer-ses-korry/13-making-the-korry-switches/

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

About your switches.... Again ! Give us details and we can help you to wire it to mega !
Good Luck !
2018-06-04 12:10
Avatar
JuanJose1
From: Alcala de Guadaira, Spain
Posts: 45
ok gracias
yo
2018-06-04 19:32
Avatar
elledejonge
Posts: 12
iconpizman82:

About your switches.... Again ! Give us details and we can help you to wire it to mega !



I bought a korry button from homecockpits.fr for the TERR ON ND . I now know there seems no FSUIPC connection for this so i tried it as A/THR.
But the lights do not respond . As a am new in this i probably do something wrong with Mobiflight and the Arduino. Its a button/switch momentary with 5 positions, and 2 lights ( white and green) i connected it ( according homecockpits ) as follows pin 1 = +5V pin 2=to arduino pin 41 (and configured this in Mobiflight) pin 3=white led GRND pin 4= green led GRND pin 5 = +5V. It seems the arduinop board react on the push and the A/THR goes on off (i know the trick with on/off if($=1,0,1)) but the lights do not respond. They both stay ON. I have the idea i need to connect them also to the arduino to follow the flightsimilator positions, but do not know how. Can you maybe help me sort this out ?? thxs
2021-03-06 09:49
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Your reported Result is logical !

Whatever i not fully understand the Pin Logic.... Why 2 GRD and 2 5V but only one Button Pin ? If the GRD is shared for the Button ( looks so) then it should be also shared for the both LED.... Means only 1x GRD 1x Button and 2x 5v LED ....
Otherwise if it´s not shared then there should be 6 Pins.... One IN and OUT for each LED and Button.... So 3x GRD finaly !
I need to see the Datasheet to check this. Your system can be correct or not. Not possible to confirm without see a shematic !


About Situation:
Your LED (as you still think about) will light always if you connect them Directly to 5V .
The key is to use the LED as a OUTPUT.

Create in Mobiflight 2 Devices..... Typ OUTPUT LED PIN . Use e.g. Pin 20 and 21 for that.
Then wire the 5V lines to these Pins ( instead of 5v) .
Now the LED are powered by these 2 Pins.

And finaly in Mobiflight you create 2 Configs ( OUTPUT) Typ LED..... You use these Pins as Device.
And in that configs you define When the LED should be ON.
For example one LED could use the Offset you use for the Input Button.
If the Offset is "1" your LED will light.... If it´s "0" the LED is OFF.


In case i not know that system and not know when the LED must be ON or OFF i can not tell you what offset should be used.
Tell me exactly what the LED should do.... Then i can help you more!
Good Luck !
2021-03-06 13:45
Avatar
elledejonge
Posts: 12
:)
iconpizman82:


Thxs for the quick answer. I had the 3 GRND connected to one GRND on the breadboard. and i tought also that maybe i needed the LEDS connected to Mobiflight so later i tried this with the GRND pins. made 2 devices and 1 button. but did not realise to put the 5V to this like you suggest. I will try this out tomorrow. I have a pdf from the connector. will try to send this tomorrow with the trial result. again thxs.
Keep up the good work. Love Mobiflight ( even when i am still not good with it) :)

2021-03-06 18:37
Avatar
elledejonge
Posts: 12
i forgot to reply on what the LEDS should do. For TERR ON ND the white led should be light up when the switch is OFF (green OFF) . The green LED should light up when the switch is ON (white OFF)
2021-03-06 18:40
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Thats pretty easy....

iconelledejonge:

i forgot to reply on what the LEDS should do. For TERR ON ND the white led should be light up when the switch is OFF (green OFF) . The green LED should light up when the switch is ON (white OFF)



You still got a indicator.... the Offset you write with the Button Input i think. If not... You need finaly a Indication what mode is currently acitve in Sim ( ON or OFF).
Normaly this Offset is Boolean..... Means it´s "1" for ON .... or its "0" for OFF.

In that case... Your LED Configs ( the 2 Outputs) BOTH use this Offset Adress.
The ON LED will work without any rework (Green LED) .... Cause this offset show "1" it it should be ON and it show "0" if it should be OFF.

The White LED must be inverted... So we use the same Offset BUT we need to rework the value.
We like now that it should be Outputed "1" if Original Value is "0" and it should show "0" if original Value is "1"
This is done by a simple Transform.... if($=1,0,1) .... OR via Compare... IF Value = 1 THEN 0 ELSE 1

Then also your White LED work.... It simply light if Offset is 0 and is OFF aslong Offset is 1
Good Luck !
2021-03-06 22:52
Avatar
elledejonge
Posts: 12
iconpizman82:

Thats pretty easy....

Thxs i have it working now. I actually got confused about the 2 white dots on the TERR ON ND button. I checked on the SIM. They are not there. I noticed it was on the TERR ON ND button of OpenCockpits. But looks like in real live only GREEN ON/OFF.
I also learned that the diagram from Homecockpits for these Korry Buttons have to be read different for Mobiflight . In stead of (as i got the diagram from them) In common Anode ,
1- Pin push (+5v)
2-Ground push (-)
3-Ground led
4-Ground led
5-+5V leds

its actually
1=GRND
2=Signal ( for switch i used 41) ,
3=Signal for LED ( i used 2),
4=Signal for led ( i used 4)
5=+5V.

And i followed your advice about the offset value. Because TERR ON ND is not available yet ( or maybe trough programming on the developers mode ??) i - for the mean time i will use the button for ATHR, till i have build my FCU (at least i will try)
Thxs for the aqurate answers.

2021-03-07 11:06
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Just a last electrical note.

1. The White LED .... Some Aircrafts work with a ON/OFF System. E.g. Some Switches in a B747 or B777 Overhead. Mean they got 2 LED ( e.g. a Green and a Red one )
If Function is ON then the Green LED light the engraved "ON" Section..... If Switch is OFF then the Red LED light the other "OFF" engraved Area.
BUT
Mostly the Korrys are used for a Backlight Logic! Look for example here.


Here the "upper" light green LED illuminate the labels of the Function. Like the "HDG SEL" Characters.
The "lower" half with the "checkerboard" optics is the real ON/OFF indication. These only light if Sim shows ON or OFF in a Offset.
The Upper ones are controlled all together with only one power line and are conncted to the Panel Backlight. So they have no configs that read a offset.

So in your case maybe the White Area is build to use the Label Text ( and is lightet at all time) and the Green Area is build for the indication.

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

2. Reverse the System.

For the SWITCH this is no problem. Cause a Switch is just a opener/closer . Its no Mater if Pin A is 5v and Pin B is GRD or reversed. ONLY if one Pin is a shared Pin ( e.g. if the GRD Pin from the switch is also used for the LED in some manifactur systems)..... THEN its important to use them in correct sequence.

The Problem is the LED part. Cause a LED have a fixed direction ( like every other Diode).
If you swap the connections and set the anode to the LED Cathode side and the cathode to the LED Anode port, then the LED will no longer light up. Here the polarity must be correct !!

If your LED light with both directions it have a electrical system inside the switch that provide this. Else your korrys are already common cathode and "Homecockpits" send you simply the wrong Diagram.

At last.... There is a easy trick ( we use in Hispapanels for example). If a system is based on Common Anode BUT you need Cathodes for Mobiflight you simple desolder the LED´s and turn it 180° and solder them back.... Then also the LED direction is inverted and you gan swap the Pins, too.
Good Luck !
2021-03-07 17:18
icon