hello everyone welcome to digital logic design simulation based project the project topic is room security and automation system this project is presented by empty sergeant borno this course was instructed by through the ground let's explain the scenario there's a detailed lock on the door of your room to enter the room someone must enter a 5 digit pin the lock takes only binary numbers as input if 5 digit pin is given correctly the door unlocks inside the room there's a mohan detector if the motion director detects any movement then the light bulb will be turned on and also check the room temperature if room temperature is high then air condition is also turned on now if someone gives incorrect pin to the system will show wrong pin after giving incorrect pin three times in a row the system will notify the owner and the alarm will go off but if in correct pin is given before three times in a row the counter resets itself that's another security option if the door lock is not checked but there's movement inside the room the alarm will go off and notify the owner to solve this problem let's break down it making a password which has pin checking system that checks five digit input making a counter that can check number of times wrong pin is given making an error that goes off if n number of times wrong pin is given in a row or there's any unexpected movement making light bulb and ac that can be turned on conditionally combining all the above means and small systems together to solve that problem we need something that can check if all the inputs are same or if all the inputs are meshed with the installed values we can use external gate for that we can make a counter using jk flip flop alarm system can be made using few logic gates light bulb and ac can be turned on with logic gates the components we need to assimilate that project to input x nor gate need five we need one five input and gate we need six and two input and gate four not gates two jk flip flops five prop lights and dc dx let's jump to the simulation let me show you how did we choose x nor gate or other gates x nor gat has a unique property that will help us build this project only xnor gate gives output high when both inputs are same it doesn't matter inputs are high or low if they are same the output will be high so as you can see we can set this one this one as a stored value and we can set this one as inserting values this way we can check the inputs with the inserting values and if we take so this will work for only one bit so if we want two bit then can do this now those two values will be acting as input values and these two will be acting as installers so our user value is zero zero and input value is zero then output is high but if the combination doesn't match the output will be low so now we can take as many as our pin we want now let me show now let me show you how the counter works [Music] we'll be using bk flip flops to build the counter we will be taking this clock we are making asynchronous clock so there will be only on clock and we can take this one as our input so in this clock the input will be same for both the flip flops and this will go here but to make counter we normally use negative as the flip flops we don't have a building negative is flip flop here so we will take a note gate and make this a negative edge let's see if that is working properly we have taken dcdhx to show the output [Music] and this is going too fast so we'll use 10 hertz you can see one two three one two three so it's working properly i did two bit asynchronous clock now i will show you the whole project so these are the extrude values these are the inputs we have that taken here motion detector from temperature alarm and the hex counter is here now let's see if all the condition checks here the input are same let me change this a bit it should values is one zero one zero one so this outfit is uh this input is all zero the password is not matching let's check we are using key a to check so the inserted input incorrect and the counter still won let's try another combination this input is also incorrect so the incorrect led source and the counter switch 2 and now we are giving another input and the wrong input so the counter h3 and the alarm goes off now let's try with the correct inputs we have one zero one zero and one let's check we have the input correct now if we have motion inside the room then the light goes on and if the roof temperature is low the air currents will not turn on if the room temperature is high the air condition will turn on another feature of the security is a few days if someone gives correct input report giving three wrong inputs in a row the counter should reset itself so we will try with wrong push again let's change english checking the counter says on giving another wrong input checking counter size two now giving the right input one zero one zero and one let's check the input is correct and the counter resets itself another option was if there's more sun inside the room but the door is not checked then this alarm should go up to do that we will turn off this check and the motion data is high so the alarm thank you everyone this is my project i have another video in this channel where i have explained in details and build this project from scratch what components i am using by using them and every connection i have linked that video in the description thank you for watching