This is one section of a project I'm working on. A user can choose between DPDT functionality (so having "DeviceI" be a motor that goes forward and reverse) or the alternative option to add another sensor (SensorII).
The DPDT requires two +VccRelays. So the relays on the left can be effectively thought of as Vcc. This is my current design. It works. (I implemented and tested it.) It's for powering interchangeable sensors.
Although, I want the user have less switches to screw up. So I figure there's a way to replace the two switches on the right (SW2 & SW4).
A⊕B = C = D'?
Without the truth table, intuitively, I think this will work:
I tried to make it easier to understand where the switch labels have corresponding letters (where A matches everywhere with A, and B with B). The user has two options: either change all the switches to position "A" or to position "B" (on each of the four switches). If they choose position "A", they get one DPDT powered device, nothing else. If they choose position "B", they get to power two regular devices.
Like that? Did I go wrong somewhere? (I changed "Device" to "Motor" so it's more intuitive to understand; it's just like switching the polarity of a DC motor.)
If it's kosher, I would buy the CD4070B XOR and the CD4081B AND. Before this section of the project, the user has the option to power the device by either 5 or 12V. My second question is if these (3 V ~ 18 V logic high) gates can handle ~13.5V. Vcc could either be 5 or 12V depending on what sensor the user chooses.