I'm new to Arudino but willing to take a dive down the rabbit hole and see what it's all about. I started to build an American Truck Simulator button box and ran into a slight hiccup. I can't seem to understand creating a matrix table. I am using the Pro Micro and here is what my box currently looks like. If someone can explain to me the wiring diagram using the matrix method i would greatly appreciate it.
What is, "the matrix method"?
the columns and rows
...and what is this?
Please read this and attempt to post again, the right way:
A schematic, and specs for the types of switches (momentary, latching) etc will make your job a lot easier.
I have 6 Toggle Switches, 8 Momentary Push buttons and 1 ignition switch the Ignition switch has 3 prongs which is for power supply, output power and starter. Sorry if im not explaining correctly i am a complete beginner.
That’s a good start.
For you to move on to the code, you need to specify the pins and wiring arrangement of the switches.
Toggle switches and the ignition on/off switch must be wired individually, or through a shift register (multiplexer) if necessary, as more than one switch can be on at a time.
All the other momentary buttons and starter switch can be wired as a matrix to reduce the number of pins required. Search for switch matrix
There are other possible arrangements, but these are the simplest to understand.
I came up with this for the matrix and the diagram would be starting from top to bottom 1-14 and 15 being the ignition. I hope I'm on the right track. I appreciate your explanation.
Thank You
A3.pdf (80.7 KB)
awesome link thank you, its starting to be clear to me. ![]()
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


