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
Ilirio
Posts: 38
Hi,

I'm building the Hispapanels MCDU for A320 (FBW mod). As I had to design an adapter board in order to connect the Hispapanels, I thought that it could be wonderful to not only use BRT/DIM buttons to adjuust backlight brightness in the sim (via Mobiflight) but also to adjust backlight in real MCDU, but I'm finding some trouble to find a valid design.

So, my starting point is as follow:

- Both BRT/DIM buttons are connected to GND and to two different MEGA pins
- Integrated LED in MCDU buttons are 12V

My first idea was to use a digital UP/DOWN digital potentiometer (along with a BD139 transistor), but I couldn't find such a potentiometer for 12V. The second design I found used a MOSFET and a capacitor, as in the image below:



However, in that design one of the pushbuttons is connected to 12V which is not the case. I have some electronics background, but not enough to make a redesign of any of the solutions above to match my needs.

Can anybody help me? Thank you very much!!
2022-05-16 12:00
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconIlirio:

I thought that it could be wonderful to not only use BRT/DIM buttons to adjuust backlight brightness in the sim (via Mobiflight) but also to adjust backlight in real MCDU,



If you still like to controll also the Virtual System Brightness then the most profitable way is to controll the Real Dimmer ( Mosfet i exepct) via the Virtual System.

Idea;

The 2 Buttons ONLY controll the Virtual Brightness .... means they are just Input Buttons on a Arduino controlled by Mobiflight.
If Buttons are pressed we send a single "Inc or Dec Brightness Command into the virtual Cockpit. ( Like you do already now)

The Brightness of the Real Panel finally is controlled with a Electrical System ( Most use Mosfets as i know). It receive a PWM Signal from Mobiflight that tell it how bright we need the lights.

Finally this signal is done by a LED Output ( On a PWM Pin) .
You Create in MF a Output Config ... And you use as Device this LED Output Pin you define .
Enable PWM Mode in that Config.
Now read the "Brightness Status Variable" from the Sim and use a Formula to bring this Value into the needed 0-255 Format we use for PWM Signals.

Example: ( I not know the Sim Variable value range.... So this is just a example! )
E.g. Sim Brightness is a value of 0-1023 then simply say $/4 .
Result:
If Sim Value = 1023 (Full ) /4 = 255
255 in PWM means 100% .
So your Output send Signal to Mosfet to be Full Bright.

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

NOTE:
Most experiece here have "Tuomas" from our Discord Support Team.
Please Contact him on Discord ( Orange Color) He pretty sure can guide you better like me.
Good Luck !
2022-05-16 13:58
icon