Im currently trying to modified a simple car alarm system (using flip flop ) as shown in the figure below
the above system will trigger and alarm if either the door (D) or any vibration (V) occur to the car and by using flip flop it will remain the alarm on even if the door or the vibration stop.
So what i wanna change here is i want to make it a password safety system. It will compare D and V value if same will let the user login but if wrong for 3 times, user can never login even if the next password entered is correct. So anyone? how do i make it for the flip flop gives a value of 0 for the 1st try, 0 for the 2nd try but 1 for the 3rd try? do i have to use 2 flip flop?
the above system will trigger and alarm if either the door (D) or any vibration (V) occur to the car and by using flip flop it will remain the alarm on even if the door or the vibration stop.
So what i wanna change here is i want to make it a password safety system. It will compare D and V value if same will let the user login but if wrong for 3 times, user can never login even if the next password entered is correct. So anyone? how do i make it for the flip flop gives a value of 0 for the 1st try, 0 for the 2nd try but 1 for the 3rd try? do i have to use 2 flip flop?