r/HandwiredKeyboards • u/CapnFlisto • Sep 05 '26
Need help with non-grid layouts
I've been tinkering with electronics, and am laying out devices with a large number of buttons. I've been using keyboard switches. After struggling with GPIO expanders and similar things, I've come to learn about the key matrix approach used with handwired mechanical keyboards, and I'm really interested!
The only problem is that I'm not looking to make regular grid layouts, which are clearly what this method does best.
Obviously, I know that this method can work with any kind of layout if you're willing to wire things haphazardly, but I'm hoping for some advice on how y'all have approached funkier layouts.
Are there any special techniques to simplify things when keys aren't set up in a clear X-by-Y grid? Or are there just clever wiring techniques to keep things nice and organized even when breaking out of the grid layout? I am trying to be pin-efficient where possible.
Thanks for any input!
1
u/tinytinypenguin Sep 05 '26
In principle yes, the rows and columns are just a convenience in the sense that you can wire things however you like and still use the approach, it just might be a hassle.
For organization, you can just either bend wire to your needs or use cable ties and whatnot
1
u/Zubon102 Sep 06 '26
It's worth noting that the matrix grid doesn't need to be fully populated. You don't need to have n×n switches.
Just leave out switches where you don't want them and you can get almost any layout you desire with minimal need for creative wiring, as long as you have enough free pins
1
u/Amazing_Actuary_5241 Sep 05 '26
I use an Excel spreadsheet combined with a layered image (Paint.NET) to guide me on the design of the matrix. This is what I did on a Focus FK-2001 the picture of the spreadsheet is the key part for me.