Hey all! About a week ago I didn't know what a logic gate was, but once I understood the concept I was hooked. I designed this circuit to be a sort of locking mechanism. Each input has to be pressed in sequence in order for the lock to be disengaged. If an input is pressed out of sequence (i.e. C after A but before B) the system resets.
Here's a diagram (I know its probably not very professional looking)
I just have a few questions. First of all while I understand how logic gates work and interact with each other, one thing I'm having a little difficulty with is the arithmetic. How would one express this circuit algebraically, or with a truth table?
Secondly, and the biggest mystery of all to me is the AND gates in the circuit. While I was trying to figure this circuit out at some point the AND gates made sense to me. However, after I got it to work, in my absent-mindedness I completely forgot what made sense about them. They are what make the total system reset possible after an input being pressed out of sequence, however what boggles my mind is that the output of the AND gates is never actually 1. So what exactly is happening there?
And lastly, I'm kind of curious about some other additions to this circuit I might like to make. Is it possible to make this circuit programmable. In this circuit the sequence is ABCD, but what I'm curious of is whether its possible to keep the circuit as it is and change it to something like CBDA? Also, was thinking about a lock for the lock. That is to say that if the wrong sequence is inputted three or four times in a row, the entire system is shut down and must be reset remotely.
Anyway, if anyone is up to discussing this I'd be very appreciative. Hoping to learn all I can about this.
Here's a diagram (I know its probably not very professional looking)
I just have a few questions. First of all while I understand how logic gates work and interact with each other, one thing I'm having a little difficulty with is the arithmetic. How would one express this circuit algebraically, or with a truth table?
Secondly, and the biggest mystery of all to me is the AND gates in the circuit. While I was trying to figure this circuit out at some point the AND gates made sense to me. However, after I got it to work, in my absent-mindedness I completely forgot what made sense about them. They are what make the total system reset possible after an input being pressed out of sequence, however what boggles my mind is that the output of the AND gates is never actually 1. So what exactly is happening there?
And lastly, I'm kind of curious about some other additions to this circuit I might like to make. Is it possible to make this circuit programmable. In this circuit the sequence is ABCD, but what I'm curious of is whether its possible to keep the circuit as it is and change it to something like CBDA? Also, was thinking about a lock for the lock. That is to say that if the wrong sequence is inputted three or four times in a row, the entire system is shut down and must be reset remotely.
Anyway, if anyone is up to discussing this I'd be very appreciative. Hoping to learn all I can about this.