I am designing a system which only have 2 input (x and y) and the system will unlock when password 10010 is entered, with 100 as y and 10 as x. The sequence of the password is from left to right.
I have done a simple lock and unlock circuit
But I found it difficult to add a reset button to clear all digits entered asynchronously and a X digits detector to show the output of the number of digits of the password currently detected on the X input. Any idea how and where should I add these? And am I on the right track?