Hi,
I have a requirement of attaching the six inputs at 12-24V to the microcontroller. At the moment I am using MOSFET switches. But to reduce the number of components used, cost and miniaturize the overall PCB size, I am thinking to use a not very traditional circuit setup.
I was thinking of using ULN2004Q IC to receive the inputs at 12V and connect the outputs of ULN2004 to the microcontroller inputs.
I have seen many examples where the pin output of microcontroller is connected to ULN2004 inputs but not other way around. But I saw one commercially available product which did this and was working fine.
I tried this using a bare minimum circuit and reading the output from ULN2004 using Arduino and it worked just fine.
I want to have some expertise opinion if this a good strategy?
Note: for example purpose only I have shown 1 input, I have total 6 inputs.