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
Cocool57
Posts: 4
Hello, I hope you can help me, I've been trying to get my Encoder to work for a week.

Installation:
P3D v4 with PMDG 737
Mobiflight
Registered FSUIPC
3 kinds of encoders tested
Arduino Mega 2560 v3

Ok here is what I did:

I plugged one 7 segments into the board and it works for the CAPT_CRS.
I hooked up my encoder as follows:
Right pin on (mega pin12)
Center pin on (mega GND)
Left pin on (mega pin11)
Naturally I have configured the card accordingly

In the input tab, Create a CAPT_CRS encoder and configure the on Left tab FSUIPC offset 0x531A bytes 2 and set value -1
Nothing works, I did everything, restart everything, unplug and replug.

In debug mode I have this message

No config found for Encoder: 03x- (LEFT)@SN-efc-714
No config found for Encoder: -%03x- (RIGHT)@SN-efc-714

Thank for your help

Translated by Google
2022-02-23 22:52
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Definitly one issue.... Maybe two....

iconCocool57:


In the input tab, Create a CAPT_CRS encoder and configure the on Left tab FSUIPC offset 0x531A bytes 2 and set value -1


This "Offset" not exist in a official list. Not know where you read this.


The correct Input Typ for PMDG is "EventID"
PMDG not allow Inputs via Offsets !

Please use EVT_MCP_COURSE_SELECTOR_L -----> ID: 70008
Parameters ... 16384 or 8192 ( Representing Mousewheel Up and Down)


***************
Possible second issue.....
Your Logging tell us there is no config for that Encoder But you got one.
So maybe there is a issue in your Configs also technical.

Please create a "new" Config for testing. Please report experience !
Good Luck !
2022-02-24 07:01
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
This also sounds like a wire problem....
Why does your encoder is named different for LEFT and RIGHT ?

Please Confirm... You use the SAME Encoder for Testing that is selected within the Config.
Best way to test....
USe a Empty new MEga..... Only wire one Encoder.... Only build one input Config temporary in a new MCC File.

For me it sounds like a sequence of multiple issues.

I´m online later on Discord.... Feel free to PM me.... then we can figure out together in a Live Seasson.
Good Luck !
2022-02-24 17:19
Avatar
Cocool57
Posts: 4
Hello and thank you for your help, I changed my encoder for a KY-040 encoder and bingo everything works by adding the 5V but is it possible to use other encoders without the 5V?

Thanks again !!
2022-02-24 22:55
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconCocool57:

I changed my encoder for a KY-040 encoder and bingo everything works by adding the 5V but is it possible to use other encoders without the 5V?



LOL :lol:
You said your electrical Setup was fine.... But it was not ! We could save all the time and testing if you had confirmed this correctly before.

Basic Tip for the Future:
If you have a Problem.... ALWAYS split between Hard and Software.
At first use Logging Mode OR use a Sim Command that you have already build and that work with a other Input.
You must always get sure in your testing process that there are no other possible factors... Best way to test a Encoder for example is using a Multimeter.
Then you can get sure there is no other issue like a broke Arduino Pin, A broke Arduino, A broke USB Cable, , a corrupted firmware , a Issue in Mobiflight or a issue in the Config or finally a Issue in the sim.

To awnser your question:
KY40 Encoders need this 5V in case of there internal PCB Logic.... But Mobiflight for sure work with Standard 3 Pin Encoders also.
I don´t know why you ghet in trouble.... Check the Datasheet from your old Encoder. Maybe its a "special one" that not be compatible. Or maybe it was simply broke .
Good Luck !
2022-02-25 09:18
icon