My current project involves having between 8 and 24 inputs into a micro controller (for which I am receiving help with learning how to programme).
This is a theoretical question about possibilities, so I know which way I can go with the design of PCBs (layouts etc). The number of inputs will be set when the system is built, therefore I can have a different programme for 12 input channels and 16 input channels for instance. I would like to use the micro controller to generate a 4-20mA loop, each input channel provides a voltage step towards the 4-20mA loop. I believe 1-5 volts is the way to go because I am using a micro controller with 5V supply.
The other feature that I would like to incorporate is 2 sets of 2 out of 3 voting logic. The input channels would need to be selectable, eg 1,2,3 or 2,3,4 or 3,4,5. I know the micro controller already has logic functions but from what I can understand, there is not enough function for 2 sets of voting logic. I think this feature is a little easier for me as I have already done this with logic gates, and switches. I am thinking that a switch on 3 inputs of the micro controller, one for channels 1,2,3, one for channels 2,3,4 and one for channels 3,4,5. The user selects which set of channels they want to use with one of the switches, the programme will run the voting logic on the desired channels and output to a relay and LED.
Any general help on if this is possible would be great, especially with the 4-20mA.
This is a theoretical question about possibilities, so I know which way I can go with the design of PCBs (layouts etc). The number of inputs will be set when the system is built, therefore I can have a different programme for 12 input channels and 16 input channels for instance. I would like to use the micro controller to generate a 4-20mA loop, each input channel provides a voltage step towards the 4-20mA loop. I believe 1-5 volts is the way to go because I am using a micro controller with 5V supply.
The other feature that I would like to incorporate is 2 sets of 2 out of 3 voting logic. The input channels would need to be selectable, eg 1,2,3 or 2,3,4 or 3,4,5. I know the micro controller already has logic functions but from what I can understand, there is not enough function for 2 sets of voting logic. I think this feature is a little easier for me as I have already done this with logic gates, and switches. I am thinking that a switch on 3 inputs of the micro controller, one for channels 1,2,3, one for channels 2,3,4 and one for channels 3,4,5. The user selects which set of channels they want to use with one of the switches, the programme will run the voting logic on the desired channels and output to a relay and LED.
Any general help on if this is possible would be great, especially with the 4-20mA.