Arduino Leonardo matrix 5x4

No, I am not connecting nothing more than the button box to the Leonardo, and the board is exactily that one.

Are you making these to sell?

No, just to my use.

I use to have this button box with 2 Joystick zero delay boards (no coding needed) 12 buttons each, but they conflict in 2 of my games. So I am trying to put 24 buttons in one board.

Shouldn't be much of an issue to make. Can you solder? Do you have wiring pigtails for the buttons?

I am not very perfect but, yes I can solder, already done some solder but I can connect the buttons with terminals and the board with connectors. No problem at all.

This is going to be the button box, at the center it will have a tablet to emulate a dashboard.

Cool. Label each type of switch on that picture, please. I can help from there.
Do you have any terminal blocks? You will need some diodes too.

Send product links for the other types of switches.

This is the front of thr BB

6 pins momentary I think it is this one
https://pt.aliexpress.com/item/1005004621032150.html?spm=a2g0o.productlist.main.9.7aa358a0euhm8T&algo_pvid=97ec70d5-137c-48dd-a8f6-a6bbab8e957d&aem_p4p_detail=2024012216102312071492946956520004152165&utparam-url=scene%3Asearch|query_from%3A&search_p4p_id=2024012216102312071492946956520004152165_1

Cant find the Big switch. It has 4 pins (only connect 2)

And the diodes and terminal blocks?

Terminal blocks, I have. Diodes I dont. Do I need them?

Not absolutely, but you really should.

Got to go teach a math lesson, back in a bit.

And I have to go sleep. I am from Portugal and here pass 20 from 12PM. Sleep hour. Tomorrow I will come here and see what do you have to say. Many thanks, you are awsome.

You have to count each on off on as 2 buttons. As such, you have 17 + 3 + 4 = 24 buttons. I'd use a 4 by 6 button grid. as you can read it faster than a 5 by 5 grid, and because you are using a Leonardo which has an odd port configuration.

I will draw a picture tomorrow and help you put together the code, but you will need to buy some 1N4001 diodes (one for each button) and 10k resistors (at least 4).

Good morning and thank you very much for your help. I will nuy the diodos and the resistors. Many thanks for your time and help. Do I need to buy anything else?

You need to be able to make connections to the backs of the switches and down to your terminal blocks, so whatever pinch connectors are needed, wire, and 11 terminal blocks with at least 7 connection points. Also, some heat shrink tubing of various small sizes would be useful.

I have all that. But I am in doubt with the Terminal Blocks. What kind of terminal blocks are you talking about?