in a project that I am developing, I have a plastic cube with metal contacts, like this:
The cube is 2cm x 2cm x 2cm. The metal contacts are nails with ~2.5mm diameter.
The center metal contacts (5 in a + shape) are designed to be a code (5 bits), and each plastic cube will have a different code. The 6th pin is a reference pin, so that the user can place the cube in all rotations. The cube has magnets on the corners so it stays in place on the pcb board.
I want to be able to detect the metal contacts with a PCB, but I don't know the best way to do it. Currently I am thinking on a design like this (sorry for the low quality):
In the image it shows 6 pads but there will be 9 in a 3x3 arrangement The center 5 are the code-pins, and the outer 4 are so that the reference pin is detected, and through software the pins are rotated accordingly.
I would then detect the metal contacts because they would short the pad. I have seen this design in portable consoles, but using silicone membranes to make the contact. Would this design work at all? If not, what is a good solution? Also, can anyone tell me how this type of "connector" is called? I can't find anything online. Thanks!