In this section, referring to railroad track switches as "turnouts" will avoid confusion with switches contained in a Tortoise.
The overall wiring, control and monitoring the state of the 12 turnouts in the TrainThing layout involve Wabbits, Tortoises, bi-color LEDs, IO Boards and connections to the Raspberry Pi (3A). Each Wabbit decodes the DCC commands to control two turnouts through a Tortoise and sends the turnout state to the Raspberry Pi (3A) which forwards status to the Laptop (4). The interconnection of these elements is shown in the following figure. The dashed lines depict the mechanical connection between a Tortoise and turnout.
The IO board eliminates point-to-point wiring between Tortoise, Wabbit and bi-color LEDs. Like a Wabbit, each board handles the wiring for 2 Tortoises and 2 bi-color status LEDs connected to headers on the left or right sides of each IO board.
In the picture below the red marked terminal is input for +5vdc (ground to the left) to power the status LEDs. The blue terminal block to the right is the input for DCC which power the two turnout frogs and the Wabbit.
Each horizontal 3-pin header next to the two blue terminal blocks are outputs, through female-to-female cables, to red/green bi-color status LEDs, one for each turnout. The two horizontal headers in the middle of the board connect a status LED to one of the two SPDT switches in a Tortoise. The headers and Tortoise cable wiring are symmetrical so if the status LED color does not match the turnout state (Red/Green :: Thrown/Clear) a cable can be unplugged, rotated and plugged back in to correct correlation.
The vertical 3-pin headers connect the DCC signal to the other SPDT switch in the tortoise to select the polarity of the frog of the controlled turnout. For a hot frog, a wire soldered to the frog is connected to one side of the blue terminal block at the top of the board. The vertical headers are also symmetrical so if the polarity of the frog is incorrect, the cable connected to the vertical header can be rotated to correct the polarity.
The 2-pin header connects the DCC signal to the Wabbit J1 pins 7 & 8.
Cabling between IO board and other elements. Note the crossing of pins 3-4 and 5-6 on the Tortoise. This makes the cabling symmetrical so that cables from the Tortoise to interface board can be connected either way to get the desired results.