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
carlos_novallas
Posts: 2
Hello everyone! Some time ago I started my cockpit simulator project with Airbus A320 OEM panels. In a long and difficult path I already have the pin-outs of some of the overhead panels but I have the following problem:

In the original panel, the bulbs of all the annunciators are connected with a common anode (one or two pins supplying 5VDC) and then each bulb has its specific GND pin. To control the panel with Mobiflight through Arduino I have directly connected the external power supply of the panel to the 5V pin and then each of the GND pins to one of the digital pins of the Arduino Mega, then the GND pin of Arduino back to the power supply.

With this system, it happens that the bulbs are on by default and turn off when the corresponding offset is activated (the opposite of what should happen). I know how Mobiflight works because I have used it on another occasion in a DIY project (wonderful software in fact).

My question is: Is there a way to reverse how this works? Maybe using the Sim Variable transformation option?

Thank you very much for reading this, I hope for your help!
2023-09-26 00:41
Avatar
Hekla
From: Denmark
Posts: 20
that is the way the arduino works - all is input untill you initialise.

https://arduino.stackexchange.com/questions/66654/what-is-the-default-setting-for-a-digital-output-pin
FSX/PMDG on WIN7
Usually fly online as 1W4C
Does NOT use the privacy-violating DISCOGS.
2023-09-26 10:27
Avatar
carlos_novallas
Posts: 2
Yes, I understand but, when clicking on the "test" button of the corresponding outup in Mobiflight program, the light turns off. Should that be the expected behavior?
2023-09-27 13:23
icon