I am looking for a way to stack 2 PCBs on top of each other, with the top PCB flush with the bottom one (similar to castellated modules). However, I am looking for a solution that can be easily disconnected and can be automatically assembled by an inexpensive fab house. The PCBs also need to be somewhat precisely aligned.
I had a look at mill-max press fit pins and samtec bottom insertion sockets with alignement pegs, which could be useful for the bottom PCB (female) but not sure how to connect the top PCB (male)
Edit: some more details The connector is for low-speed protocols (e.g. 10MBps SPI). Ideally should support at least a hundred mating cycles. Mating height on the other side is less important


