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
Jeffrey_Pilot
Posts: 24
Hi guys,

I'm curious if I can use this pushbutton on the encoders in mobiflight?

I would like to engage for example the airspeed button when I press the pushbutton, and change the speed by rotating the encoder!
Is it possible to make both functions working with 1 encoder?

2 pictures of the encoder: http://prntscr.com/gnfl5g and http://prntscr.com/gnflat

Thank you all:)
2017-09-20 13:11
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Jeffrey

Basicly this is possible.... But you have to check out some things.... ( I not see a Encoder like this until now)

1. You have to know HOW Your encoder workes.... I don´t know the Encoder you show us on the picture.
A Standard Encoder with ONE Shaft and ONE Pushputton got 5 Pins ... ( Encoder A - Encoder B - GRD Encoder - Switch +5v - Switch GRD )
Your photo shows it have 9 Pins. .... That can have lots of different reasons.... If its a DUAL Encoder ( With 2 individual shafts) ? Or maby it´s a Encoder that have 2 Layers and can controll two different circuts..... Maby it work for Encoder with additional 5v ..... Maby it´s a 4BIT Encoder instead of 2 Bit like we use with mobiflight !
Same with switch.... Maby it´s a Push AND Pull Button ( witch would explane the additional pin there)

So... YOU Have to find out WHAT Encoder you have and how it work ..... If Possible find out the exact name and search for a data sheet.... There you see all the information you need to set the Encoder ( and you see if the encoder can basicly work with Mobiflight at all).
Otherwise you have to Test the encoder (Multimeter or a LED Testboard) to find out WHAT Pin is controlling WHAT Function .

2. The Software Part.....
When your encoder workes then you can simply set a Input Command to every Function ( Left Right/ Button Push/ Button Release).
Here the qeustion is... What Simulator (FSX P3D Xp11) and what aircraft ( Standard or a AddOn) . Normaly everything should be possible.... But in some AddOns it can be much more difficult.

Summary.... If you have fun with elctrical Stuff and testing/research then check out your Encoder..... If Not and you just need a simple Encoder with a Push Button i would recommend to buy a standard one..... That is Plug&Play and work after 2 Minutes perfectly.... For example this... https://www.reichelt.de/?ARTICLE=73923&PROVID=2788&wt_mc=amc141526782519998&gclid=EAIaIQobChMIvLuwzPCz1gIVipPtCh0UbgDhEAYYASABEgK27_D_BwE

If you need more help... Just ask !
Good Luck !
2017-09-20 15:31
Avatar
Jeffrey_Pilot
Posts: 24
Hi Pizman:)
Again thanks for your reply!

Yes I was wondering aswell about the 9 pins on the encoder.
I will check it tonight if i can get it working. I'll let you know what is the result:)

Thanks for your good explainations.

Regards Jeffrey
2017-09-20 16:04
Avatar
Jeffrey_Pilot
Posts: 24
Hi Pizman,

The encoders are working, rotation and push.
3pins for the rotation, 2 pins for the on/off
When I press the encoder, the QNH is going to STD, but when I rotate the encoder the QNH value is not changing.
Think I need to set a different offset to change the QNH value.
Can you confirm if this is the right offset: 0x0EC6 ?

Regards Jeffrey
2017-09-21 10:43
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Dear Jeffrey.

Basicly i think you know you have to add TWO Devices in the Setting/Device/Upload Menu.....
You must set a "Button" with the 1 Pin of Pushputton..... AND You have to create a additional Device "Typ Encoder" with the 2 Lines you got from the Encoder.
( The 2 Grounds 1 of Encoder and 1 of Pushbutton must be set to a ground of the Arduino.)

In the Configs you need TWO Inputs Entrys, too.
Simply see the Button and the Encoder as 2 Absolutly different things....

If i understand you right the Push Button Config still workes fine....
So simply make a new config... Use the Encoder as Device and make a Command for ON LEFT and ON RIGHT.

******
About the Offset....
It looks correct.... But note the Value you use must be a IF Function to work fine....
You must know whats the Lower and Upper End to pretect a "overdrive" of Vallue. A Little advanced and you have to try out a bit for finding the right Function
Alternate i would recommend to work with "EVENT ID" ( If you work with FSX or P3D ).
Try Out ...
iconQuote:

KOHLSMAN INC 65883
KOHLSMAN DEC 65884



Finaly please NOTE : This Stuff is for Standard Aircrafts.... Mostly AddOns like PMDG work with own logics..... There you need to use other Offsets or Events !
Get shure your used Aircraft accept the standards ..... or check this out if you want to controll a complex AddOn Aircraft !
Good Luck !
2017-09-21 16:38
icon