I built a 14-channel block detector using current transformers and a PIC microcontroller. Since this is a conventional system, it controls relays to reduce power to blocks to keep trains separated. In the attached photo, the controller is in the center and the current transformers are mounted separately under the table.