We run anywhere from 4-10 sensors from Banner Engineering (Photoelectric and RFID). They use 12V power and have a PNP output. Each sensor is 4 wires (12V, GND, NO, NC). Our goal is that we can run the M12-A Euro Style QD directly from the sensors, into some sort of PCB that sits on top of a RoboRIO. We want to use the M12 connectors because they are so reliable and a solid connection.
My thinking for the PCB is that we supply it with 12V power and ground, then that gets distributed to the 10x M12 connectors on the board. Here is the female PCB board connector I am looking at and here is the cable I am using with it.
In terms of signals, I need some way to reading the 12V signals and transmitting that the RoboRIO - I can use SPI, RS232, or I2C. I would like if I could read in the NO and NC for all the sensors, and then pick which value to use in code (I want to choose NC or NO depending on the situation and what should happen if the sensor gets disconnected).
What would be the best way to read in and transmit these signals? I was thinking about using a Teensy, but then I would need voltage dividers for all 20 inputs (which might end up being the solution).
I don't have any experience designing PCBs, but I think this will be a good way to get into it.