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
MASTERP
Posts: 55
Hi Sebastian,
Could you please help with 2 questions below:

1. I am wondering which pin could be used to assign button on Arduino Mega 2560?
I heard that using PWM pin from 2-12 for a button may damaged the chip, is that correct?

2. Is there anyway to use 1 pin for 10 buttons offset ? I am making an Airbus MCDU with 72 buttons and I really want to use single Mega 2560 for all the button?
I found on the internet that there are a way to assign multiple button on 01 pin with resistors, is this possible with MobiFlight ?

Many Thanks,
Vu
[Last edited by MASTERP, 2016-07-19 08:15]
2016-07-19 04:47
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
If you want to use resistors to be able to use more than one button per pin, then I think you had to use an analogue input.
This is currently not supported.

I advice you to rethink about having a second arduino. It will be less effort and hassle to get everything working.
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-08-22 05:32
Avatar
MASTERP
Posts: 55
Thanks Sebastian,
Finally I got my MCDU working fine with Mobiflight and 2 Arduino Mega 2560.
Sometimes the button bounce with Arduino, but in general it works fine :)
Here is its video in action.
https://youtu.be/AyzxYKkS_Jo


iconDocMoebiuz:

If you want to use resistors to be able to use more than one button per pin, then I think you had to use an analogue input.
This is currently not supported.

I advice you to rethink about having a second arduino. It will be less effort and hassle to get everything working.

2016-09-19 08:02
icon