#FBW panel lighting for overhead, mfd,pad,pedestal and ecam and fou

1 messages · Page 1 of 1 (latest)

jolly vault
#

I think both a rotary encoder and a potentiometer can work. I don't remember exactly what all events there are for FBW integrated lights, but in general both are possible. If it is an encoder, you want to have ( a "increment" and "decrement" event pair, and for potentiometer you want to have one that sets the value directly.

Both are possible, and if some are missing, those can be easily searched and added to hubhop the same way all events were added so far.

scenic kite
#

Guys I have got the Leo bodnar card and waiting for the potentiometer to arrive but I can’t seem to find in the FBW section how to assign the device to the CP Instrument panel PFD,MFD switch in the aircraft. Anyone got a dummies guide please. I am very new to mobiflight

jolly vault
#

please just open a new thread for a different question, and also be a bit more specific on what you try to do, we'll be happy to help, but its best to not mix two questions in one thread 🙂

#

also, welcome 🙂

scenic kite
#

Sorry Tuomas new to discord. I am basically trying to use a potentiometer in the Leo bodnar or ardunio to turn on the cp ND,PFD and ECAM panels with one control so all four panels back lights come bright. I am very new at this so any tutorial or help will be much appreciated. And again sorry for this. I used arduino with X-plane but moved over to fs2020

jolly vault
#

@scenic kite yeah no worries! We have all been new to this, and it is a lot to grasp at once when you get started..

To control many things with one potentiometer, you can have several input configurations, one for each function, but just use the same potentiometer for all.

#

but lets focus on setting one up first,

#

all the preset events can be found from the "filter preset list" in the dialog to set up the input:

#

so set the filters (circled in yellow) to "Fly by wire" for vendor. The FBW presets are a split between A320 and A320-Dev for historical reasons but recently FBW seems to just list the events for the development version, so just leave the "Aircraft" selector at "show all" so you find both, they likely work for devel that most people seem to be using anyway.

#

You can then search for "ECAM" or "PFD" or just "potentiometer" as most use the LIGHT_POTENTIOMETER_SET event that also is a good search match

#

if you click that blue checkmark, you will see the event code. This is a bit over the head at first for sure, it is the Reverse Polish Notation code that MSFS2020 and other derivatives of FSX like Prepar3D also use for panel logic.

#

This hopefully works - if your potentiometer is turning backwards, swap the GND and 5V wires around.

#

Let's first get this working.

#

if you get one set up, just create another configuration for the other light knobs you want to use, and just use the same potentiometer device and they all adjust together.

scenic kite
#

Toumas thank you so much for the explanation and once it arrive post very slow at moment will follow your direction…and thank you again.

jolly vault
#

you can do it with the bodnar potentiometer too

#

but it has a different range of values,

#

so the preset code needs to be adjusted

#

arduino potentiometers go from 0 to 1023

#

joysticks go from 0 to 65535 usually

#

so the code should likely be

@ 655.35 / 0 max 100 min 88 (>K:2:LIGHT_POTENTIOMETER_SET)

for the captain PFD brigthness for example

#

if you ever worked with HP calculators, you know reverse polish notation, and what

@ 10.23 /

does (@ in this means the value read from the joystick) - it is dividing @ with 10.23 to scale the value to 0-100 range that the MSFS potentiometer event expects it to be.

So for a joystick that does 65535 instead of 1023, we divide by 655.35 instead.

#

The "88" is the specific light potentiometer we want to adjust, they most use the same event but with varying number.