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
MASTERP
Posts: 49
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: NW of KPWK, United States
Posts: 1441
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 - FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2016-08-22 05:32
Avatar
MASTERP
Posts: 49
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