Hi,
I am trying to build a circuit for a project I am working on. I have a light sensor which gives me a digital signal. I have a circuit to compare this with a threshold value and generate a 0 or 1 output. There is another mechanical switch is 1 when closed and 0 when open. Based on these two inputs (input A from the comparison and input B from the mechanical switch) I need to generate an output for a motor based on the following logic.
A B Final Output
1 0 1 (positive voltage)
1 1 X (no voltage)
0 0 X (no voltage)
0 1 0 (negative voltage)
This is slightly similar to the XOR gate I think except for the last combination...is there any circuit that can be built to operate on this logic?
I don't have any knowledge about electronics (I am a mechanical engr myself) so I'd appreciate it a lot if someone can help! Thanks!
I am trying to build a circuit for a project I am working on. I have a light sensor which gives me a digital signal. I have a circuit to compare this with a threshold value and generate a 0 or 1 output. There is another mechanical switch is 1 when closed and 0 when open. Based on these two inputs (input A from the comparison and input B from the mechanical switch) I need to generate an output for a motor based on the following logic.
A B Final Output
1 0 1 (positive voltage)
1 1 X (no voltage)
0 0 X (no voltage)
0 1 0 (negative voltage)
This is slightly similar to the XOR gate I think except for the last combination...is there any circuit that can be built to operate on this logic?
I don't have any knowledge about electronics (I am a mechanical engr myself) so I'd appreciate it a lot if someone can help! Thanks!