Good day this is my first real Arduino project. I have a 2560 mega and i already created/3d printed a button panel for as birthday present for a buddy. I would love some help figuring out the wiring for my project. As i understand mobiflight does not allow arrays.
I've made a simple image with switches present.
Do i need 2 pins per switch or could i link up grounds like in a electrical setup?
In the image there's a potentiometer that is not in the drawing as it will be for a 12 volt backlight system for the lettering.
Depends.
If the switch is just a toggle (on-off), then 1 Arduino pin will do.
Connect all center contacts to ground and one other contact to an Arduino pin.
If the switch has three positions (on-off-on), the you need two Arduino pins.
Again center contact to ground, but them two outer contacts to two pins.
Leo..
The way the forum works is you do your best building the project and the code. When you get stuck then ask for help. See the pinned post re 'How to get the most from the forum' for guidance re wiring diagrams and posting code.