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! 

icon
Avatar
jojo86
Posts: 4
Hi,
I did a GNS530 for FS2020.
When I press my push buttons (just press and release immediately), mobiflight debug show the key with repeat values :

Exemple :
Debug 02/11/2022 16:30:58 Config found for Button: OBS (PRESS)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (RELEASE)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (PRESS)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (RELEASE)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (PRESS)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (RELEASE)@SN-cb7-b45

Instead of :
Debug 02/11/2022 16:30:58 Config found for Button: OBS (PRESS)@SN-cb7-b45
Debug 02/11/2022 16:30:58 Config found for Button: OBS (RELEASE)@SN-cb7-b45

How can I solve this problem ?
Thank you very much.
2022-11-28 11:04
Avatar
slammer88
From: LTBJ, Turkey
Posts: 157
By connecting a small resistor between the input and the button/switch like 150ohm or something.
2022-12-05 14:09
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
Is this Button on Pin 13 of a Arduino Mega Mini ?
Good Luck !
2022-12-07 19:25
Avatar
jojo86
Posts: 4
iconslammer88:

By connecting a small resistor between the input and the button/switch like 150ohm or something.


Ok, but where do I connect it ?
Between Wich pin ?
2023-03-06 15:57
Avatar
jojo86
Posts: 4
iconpizman82:

Is this Button on Pin 13 of a Arduino Mega Mini ?



Hi, it's for all my buttons...
Maybe I need to add pull up resistor ? Or pull down ?
Do you have a plan ?
2023-03-06 15:57
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 5979
Supporter
iconjojo86:

iconpizman82:

Is this Button on Pin 13 of a Arduino Mega Mini ?



Hi, it's for all my buttons...



Thats strange.

There can be sometimes a Button with a flickering connection. But "all my buttons" ??

At first i would do some research. Maybe there is a issue on the Arduino Firmware if this happens always the same way ( 3 times Press and 3 times release).
Is this "effect" always the same ?

If its real Bouncing then it would be not straight.... Sometimes no bounce sometimes 1,2 or 3. But not always 3.
Good Luck !
2023-03-06 17:13
icon