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
missamo80
Posts: 32
I've had success getting parking brake LED/switch working, COM1 LED display, and COM1 MHz/KHz adjustment all working thanks to the tutorials and some prior threads in this forum. It's so cool :)

I'm struggling, unfortunately, to get a basic momentary switch working to swap COM1 frequencies. As best I can tell the button press never registers with Mobiflight as I don't see any event for it in the Mobiflight log.

These are the switches I'm using (they're ones I had laying around): https://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=149948. I've wired it as shown on this page to pin 41 of the Arduino (I've also tried pin 8), with the other leg connected to a common ground on my breadboard: https://www.instructables.com/id/Arduino-Button-Tutorial/. The button is added as a device and uploaded to the Arduino. I've added an input that references the device, offset 0x3110, 4 bytes, mask value with 0xFFFFFFFF, set value 66372. The input is active and I've hit run.

But nothing happens. I'm pretty sure it's at the button level since I see no log event for it being pressed or released (I do see log events for everything else, like my switch).

I feel like I'm missing something super basic here. Anyone have any ideas? Thanks!
2020-09-06 04:30
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
If you got the Logging Mode ON ( Eg. in DEBUG mode) then the Press and also the release MUST showed in the String below.
If NOT then your button not work.

1. Check if you create the Device on that Pin.

2. The Picture looks strange. Normaly the 2 conenctions are from UP to DOWN..... Maybe the switch is connected 90° turned in the picture. Try to wire the 2nd Cable on the oposit side of the Input wire ( so not Left to Right..... try Up to Down) Most easy if you got a Multimeter scanner. then you can check the lines.

3. The used Input is wrong overall ( Not the problem cause you have no Input Signal). Whatever if your switch would work, this Input will occure in a error.
THIS is a EventID..... Here we not use the Offset. Choose Input Typ "EventID" and there you can define the Number of ID ( 66372 in your case)
If you like to use a Offset the correct one for Radio Swap is 3123 but thats more difficult cause this is a advanced "bitwise" Offset. So use the Event Id !
Good Luck !
2020-09-06 15:57
Avatar
missamo80
Posts: 32
Looks like it was a breadboard error on my part and ground wasn't connected. :blink: It's working now.
2020-09-06 18:04
icon