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
monkeysuncle
From: Lake Peekskill, NY, United States
Posts: 22
Hi, I'm trying to drive 7 rotary encoders, with their switches with one Arduino Mega. I have seen conflicting information in my info searching. Basically:

-Can an Arduino Mega handle 7 encoders?
-Which pins should I be using?
-Which pins should I avoid?

Thanks, Dave
2020-02-24 19:56
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Please Check the FAQ section in Main Menue or by this link..... https://www.mobiflight.com/en/documentation/faq.html

Basicly.....
20 Encoders are Possible on a Board. ( So 7 are no Problem)
Up to 50 Input Buttons are work fine. ( So your 7 are OK, too)
A summery of 50 Input Pins is allowed as i know ( In your case 14+7=21 .... No Problem finaly)
If you alos use Output on that Board get sure you not overrung 53 Overall Pins ( Basicly we can use more with newest reelease and Analog support.... But this is Buggy at the moment.)


Summary....

Use Pin 02-53 ( NOT USE Pins 00 and 01 at any time) ...... And Not use Analog Pins until we Fix the issues there.
Your Setup with 7 Encoders and Push Buttons should be working fine !
Good Luck !
2020-02-26 03:25
icon