Are you suggesting something like this?
Second try is much closer.
- Not sure which is ground and which is input. (see test procedure below)
There are two DPDT switches on the other side of the PCB. (orange rectangles with 6 pins)
Contacts are labeled for the left switch.
- Purple group has conductive traces between A1, A2, COM1, and COM2.
-- Solder one wire to any of the four purple group contacts. (all four are connected by the traces)
- Red group has a conductive trace between B1 and B2.
-- Solder a second wire to either of the two red group contacts. (both are connected by the traces)
- Connect one of the wires to RasPi ground and connect the other to the GPIO input.
How to tell which groups are ground:
1. Ensure no power is applied to the PCB . . . unless you
want to fry your multimeter.
2. Set your multimeter to continuity or ohms.
3. Set the switches so the internal contacts are on the purple and yellow groups.
*** Note that one switch will be open in the up position and the other will be open in the down position. ***
4. Verify that you have no continuity between purple group and red group. (left switch is in the open position/up)
5. Verify that you have no continuity between blue group and yellow group. (right switch is in the open position/down)
6. One of these four pairs of groups will have continuity (connection) through the PCB's ground.
Touch one multimeter lead to one group and the other lead to the other group.
Whichever pair gives you a beep (or <2 ohms) are your two ground groups.
- Purple + Blue
- Purple + Yellow
- Red + Blue
- Red + Yellow
Scott