I used some packing foam to mockup some possible layouts.



Layout 1 is the most compact, but would require a board of similar size or smaller. My desktop tower is on the right side of my desk so I kind of want the board to be on the right side, like layout 2. Layout 3 is an option but I probably won't do that one. The advantage of layout 2, besides having the board where I prefer, is that there is room to accommodate larger boards like the pico. I have a piece of perf board that is the exact length for a pico, which is convenient.

Since I will be using the pro micro, there will be some extra space on the bottom right if I use this layout. Keeping the encoders and pro micro close is helpful since I can just solder some headers onto the encoders and stick them into the perf board. I'll have to see the height I get using female headers soldered into the perf board and see if it gives enough clearance for the right most key switch, otherwise I'll have to do some cutting.
The switch plate is super floppy, I'll need to stiffen it along the transverse axis somehow. I've read some people 3d print thick switch plates, and reduce it to 1.5mm thick (the standard switch plate thickness) where the switches click into the plate. I could also just add some stiffening elements along the top and bottom edges and add foundations to support the middle of the switch plate. Thinking about it, having the plate sandwiched between a top and bottom enclosure piece should stiffen the plate pretty well since its so small.
The hardest part will be wiring the screen and key switches in a neat way. I think the 5v pin is on the right side of the board so I'll need to experiment with wiring layouts. Ideally the wiring will be on the bottom of the perf board so everything can be hidden under a top plate.
I'll need to find a good way to secure the screen. The Adafruit Macropad case I made has a separate piece that sits on top of the pcb, and the screen rests on top of it, with the ribbon cable coming from a slot underneath. It would be nice to have the top of the enclosure all one piece, but that might not be feasible for 3D printing. If I position the switch plate to be at the height of the encoders, I could possibly have a top piece that takes care of the display, encoders, and switch plate. I need another plate that covers the perf board and is about flush with the top of the female headers that will accept the pro micro. There will likely be a gap between the two plates unless the length of the female headers matches the height of the encoder module below the input shaft, in which case I can use male header pins for the encoder without using the female ones on the perf board. I could also hand wire the encoders but that sounds like it would be a lot of work. Usually I enjoy the CAD portion of projects but this one sounds not as fun. I'll need to look for existing models of all my components, but having cheap no name Amazon parts makes that a bit tougher.
The more I look at layout 1 though, the more I like the full use of space and larger encoder spacing. I'll have to do some more thinking.
This is a situation that calls for learning how to design PCBs but this project has technically been in progress since last year so I might just do that for something else.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.