thanks florisla, i’d pretty likely explore this rabbit hole of making a custom (stm32duino) keyboard, i do agree about using an additional 74HC595, it would simplify matters. the only thing would be, would i need that pcb space for anything else? as those 4 ICs pretty much used up the 5cmx7cm perfboard. i’m happy to simply use a bigger perfboard instead.
making a custom keyboard has various (difficult) challenges not related to electronics (even for that matter stm32), among them is making the plate which has lots of considerations as the snap-in groove that cherry mx (and clones) switches allows is only 1.5mm, this give a big problem if one intends to use thick (3-5mm) acrylic plates rather than aluminium plates, then there is handwire vs pcb etc. i’d most likely start a thread on deskority forum for the fabrication parts of it and make a ref-link from here (perhaps cross posting the most interesting parts of it here if it help to complete the picture)
there is apparently quite a lot of interest in making (custom) mechanical keyboards, one of those switches i’ve recently found on aliexpress is from kailh ( a manufacturer based in china)
https://www.aliexpress.com/wholesale?Se … ilh+switch
https://www.aliexpress.com/item/kbdfans … 79716.html
http://www.kailh.com/en/Products/Ks/BOXS/
http://www.kailhswitch.com/mechanical-k … -switches/
there are various youtube videos featuring them, searching for kailh would find them
i noted that recently after checking the prices, the prices actually went up on aliexpress. i’d guess this in part due to demand from buyers wanting to make custom keyboards and based on my google searches, quite a number of commercially sold mechanical keyboards uses kailh switches, i’d guess the parallel demand chased up prices
i think in the early days keyboards is simply ‘a bunch of switches’, the electronics are probably some ‘simple’ logics rather than mcu driven. since the advent of mcus, usb and hid use in keyboards. it become pretty much a necessity to use mcus as keyboards shift to using usb. the good thing is hid is merely a usb protocol and now with better mcus like stm32 f1xx,f4xx, the mcu (stm32) makes that keyboard more than simply a ‘keyboard’
the other thing is with this notion of custom (mechanical) keyboards, keyboard layouts become ‘fluid’, one can re-arrange all the keys to one’s desire e.g. if 1 dislike a qwerty keyboard one could have them lined a-z instead.
the trouble is that the moment one makes a detour away from ‘standard’ keyboards, all the pcb kits that one can find to build ‘custom’ mechanical keyboards simply ‘disappear’, u’d either have to decide on making your own pcb or hand-wire it and the plate becomes the keyboard. the plate can be laser cut on acrylic or preferably aluminium. laser cutting allows literally every keyboard to be different customised to one’s desire