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
Lightfoot66
Posts: 1
I am trying to get the tutorial "How to Make A Flight Simulator Trim Wheel with MobiFlight| Captain Bob" working but it fails every time I try to increment the encoder.
I am using Arduino Uno R3 to connect to MSFS 2020 (Steam edition).
I did the first one of Bob's tutorials using a button to operate the Parking Brake and turn on a LED. That worked fine.
I replaced the switch used in that with a KY-040 encoder. The push button on the encoder worked fine on the Parking Brake.
Then I added the rotary part from the tutorial mentioned above.
Start the app. Everything appears to run fine.
Push the button on the encoder and Parking Brake activates along with LED.
But when I turn the encoder shaft MobiFlight pops up an error "Connection to FSUIPC got lost". Only way to reset things is to shut MobiFlight down.

Running with debug log on I do get a lot of messages but it doesn't indicate why its having a problem.

Here is what log looks like after failure:
12/04/2023 14:26:21(969): Fsuipc2Cache.Connect(): No FSUIPC found.
12/04/2023 14:26:31(977): <AutoConnectTimer_TickAsync>d__105.MoveNext(): AutoConnect sim.
12/04/2023 14:26:31(985): Fsuipc2Cache.Connect(): No FSUIPC found.
12/04/2023 14:26:39(107): ExecutionManager.mobiFlightCache_OnButtonPressed(): MobiFlight Uno => ParkingBrake => PRESS => executing "Parking Brake Switch"
12/04/2023 14:26:39(165): MobiFlightOutput.Set(): Command: SetPin <2,13,255;>.
12/04/2023 14:26:39(287): ExecutionManager.mobiFlightCache_OnButtonPressed(): MobiFlight Uno => ParkingBrake => RELEASE => executing "Parking Brake Switch"
12/04/2023 14:26:39(347): MobiFlightOutput.Set(): Command: SetPin <2,13,0;>.
12/04/2023 14:26:41(972): <AutoConnectTimer_TickAsync>d__105.MoveNext(): AutoConnect sim.
12/04/2023 14:26:41(979): Fsuipc2Cache.Connect(): No FSUIPC found.
12/04/2023 14:26:51(974): <AutoConnectTimer_TickAsync>d__105.MoveNext(): AutoConnect sim.
12/04/2023 14:26:51(981): Fsuipc2Cache.Connect(): No FSUIPC found.
12/04/2023 14:26:53(41): ExecutionManager.mobiFlightCache_OnButtonPressed(): MobiFlight Uno => TrimWheel1 => RIGHT => executing "Trim Wheel"
12/04/2023 14:26:57(590): MobiFlightOutput.Set(): Command: SetPin <2,13,0;>.
12/04/2023 14:26:57(591): SimConnectCache.ClearSimVars(): SimVars Cleared.
12/04/2023 14:26:57(591): ExecutionManager.mobiFlightCache_OnButtonPressed(): Error excuting "Trim Wheel": FSUIPC Error #9: FSUIPC_ERR_NOTOPEN. The connection to FSUIPC is not open.
12/04/2023 14:26:57(592): ExecutionManager.mobiFlightCache_OnButtonPressed(): MobiFlight Uno => TrimWheel1 => RIGHT => Config not executed, MobiFlight not running
12/04/2023 14:26:57(592): ExecutionManager.mobiFlightCache_OnButtonPressed(): MobiFlight Uno => TrimWheel1 => RIGHT => Config not executed, MobiFlight not running

I am confused by the message saying "No FSUIPC found" but it executes the button push but when the econder "Trim Wheel" is activated it has a connection failure.
2023-12-04 21:31
icon