Questions regarding my button box project

Hi guys,

I have decided to try and keep myself busy over the holiday period with a project I thought would be straight forward enough (famous last words?).
I want to start by saying my experience with Arduino is extremely limited, same goes with electronics projects in general and basically want to ask those much more experienced to "check my work".

So I am trying to create a "button box" for Elite Dangerous. I plan on having the following components hooked up in a button matrix;

7x 2 Pin SPST Mini Toggle Switches (Seen on schematic R1, C1-5 and R2 C1-2)
2x ASW-07DR 3 Pin SPST Illuminated Toggle Switches (R5, C1-2)
13x 2 Pin Momentary Push Buttons
2x KY-040 Rotary Encoders (Only the push button function is in the matrix, the rotating part of it is separate as seen in the Schematic)

Using an Arduino Leonardo running "Keypad Library" and "Joystick Library"

I am mainly following the video "How to Build a Button Box" by Wim on Youtube but have also scoured the internet for other sources of information.

I am pretty happy with how to setup the arduino its the wiring that gets me worried.

I have created a schematic, please go easy, it is the first one I have ever made. I would just like someone to have a quick look and make sure the diodes are not placed incorrectly etc.
The 2 toggle switches labelled "Silent Running" and "Disengage" are 3 pin illuminated toggle switches, I had to create the symbol myself as I couldnt find one so I apologise if it is incorrectly done, hopefully it is correct (I know I could have made it simple but my brain likes to try and visualise what is going on, and having just a box and 3 pins on it wasnt doing it for me) and my intention for these switches is for the LED to illuminate only when the toggle is "ON".

Most of the stuff I have ordered for this project is hopefully going to arrive before christmas but in the meantime I cant help but try and make sure I am ready prior to starting to play with stuff.

On to my next question;
I plan on swapping out all of the push buttons and the mini toggles for illuminated ones in the future with all except the larger toggles, already shown in my schematic, being set to always illuminate (20 in total). But I need some guidence on whether an arduino could handle this or if it would be easier to use some form of separate power supply (recommendations welcome) to run them all? I believe the LEDs in the switches I want are isolated from the actual switch so they should be able to be powered separately, My plan would have been to just hook the LED pins to the 5v and Gnd pins on the arduino but I am wondering if this would cause some significant dimming?

I have linked the switches below.

DaierTek LED Toggle Switches - Aliexpress
LED Momentary Switches - Aliexpress

Thanks in advance for any guidance and hopefully this isnt too much of a noob post :slight_smile:

  • D0 and D1 are your serial communications pins.

@LarryD

Assuming you're concerned about upload and other communication, OP is planning to use a Leonardo where D0/D1 are not used for comms with the PC.