The unit should be powered with 12-14 V DC. The power and the serial signal is connected via the connectors X9 and X10. I use 6-pin headers and wire them symmetrically. In this way I can use standard ribbon cable and ribbon cable contacts without thinking of polarization. I mount two identical contacts to allow daisy chain connection. The serial input is protected with a resistor and clamped with a zener diode. This allows direct operation from the PC serial port, but standard TTL levels can also be used.
Schematic
Figure 1. Signal module schematic.
Circuit board
I build the modules on Veroboard. I need too few to justify the manufacturing of a real circuit board. Below is a picture of the wiring and component placement, seen from the solder side:
Figure 2. Component placement and wiring, seen from the solder side.
Here is a picture of the module. On some modules (like this one), the 1.0 µF capacitor C2 is a surface mounted capacitor on the solder side. Note the green wire going over the outgoing wires. This is used to fix the outgoing wires to the board.
Figure 3. The component side of the module.
Serial communication protocol
The serial communication is 9.6 kbaud, 8 bits, no parity. A command sequence to a module consists of an address byte followed by one or several command bytes.
Figure 4. Serial command protocol.
PIC program
The PIC processor program for the decoder can be found here:
Signal connector
A connector for the signals is shown below:
Figure 5. Signal connector.