Welcome to the matrix. Matteo's latest hand wired one.ماء wrote:good mat33o
but how to connect a cable to each switch
Do you have a picture
Instead of separate wires for every key, you make an X-Y grid out of them. Then you only need enough pins on your controller for Rows + Columns instead of Rows * Columns. Makes a lot of difference when dealing with around a hundred switches.
What your controller then sees is something like this.
That's the one Alfa147x is working on for his Filco Minila mod. Filco was lazy and used more columns than necessary, so he's taking the opportunity to optimise his matrix properly!
The only downside to a matrix is that you need diodes to protect against ghosting and masking. You've heard of N key rollover? Diodes are how you achieve that.
Fortunately diodes are cheap and you can use them as some of the wires in the matrix.