• Register
  • Login
  • Search 4 million + Products
    this message might be for you!

    This simple code lock circuit described here is of an electronic combination lock for daily use. It responds only to the roght sequence of four digits that are keyed in remotely. If a wrong key is touched, it resets the lock. The lock code can be set by connectiong the line wires to the pads A, B, C and D in the figure. For example, if the code is 1756, connect line 1 to A, line 7 to B, line 5 to C, line 6 to D and rest of the lines-2,3,4,8 and 9 to the reset pad as shown by dotted lines in the schematic.

    Schematic of the code lock circuit

    code lock circuit schematic

    The code lock circuit is built around two CD4013 dual-D flip-flop ICs. The clock pins of the four flip-flops are connected to A, B, C and D pads. The correct code sequence for energisation of relay RL1 is realised by clocking points A, B, C and D in that order. The five remaining switches are connected to reset pad which resets all the flip-flops. Touching the key pad switch A/B/C/D briefly pulls the clock input pin high and the state of flip-flop is altered. The Q output pin of each flip-flop is wired to D input pin of the next flip-flop while D pin of the first flip-flop is grounded.

    If correct clocking sequence is followed then low level appears at Q2 output of IC2 which energises the relay through relay driver transistor T1. The reset keys are wired to set pins 6 to 8 of each IC. (Power-on-reset capacitor C1 has been added at EFY during testing as the state of Q output is indeterminate during switching on operation.)

    This simple code lock circuit can be usefully employed in cars so that the car can start only when the correct code sequence is keyed in via the key pad. The code lock design can also be used in various othee application.

    ask a question

    45 Responses to "Simple Code Lock Circuit"

    1. more notes can be given with function description

    2. pls i need parts list.

    3. i need the operation of above elements

    4. i m working on the project mobile bug.so, plz, send me the layout of mobile bug on my mail addres.

    5. plz, send me complete info abt simple code lock

    6. can you send me e pcb? please!

    7. plz give me more information & notes about electronic lock……….

    8. can your circuit be programmed in terms that the password could be reset?? Thnx 😀

    9. please tell me about part list…and can i attached LCD with this?if yes then how?

    10. i have made the circuit but i need the idea how to check its proper operation i.e how this code is taken by an encoder and help in accessing its application

    11. c1 and c2 increase the value of capacitor for better result….

    12. sir please give more notes and description on this topic

    13. how does this circuit works?? and i want more applications….please send as soon as possible

    14. could you mail me a parts list for this please?

      many thanks

    15. sir..plz plz give more discription about ths ckt.
      Send me the working .
      I want to knw all abt ths ckt..
      As soon as possible

    16. i am working in this project please send me more description in my mail. thanks

    17. plz send me more detail of project.


    19. can this be done with a 74ls373 while pressing the wrong button the latch is turned on!

    20. Cn u send m the pcb layout and more info .about the simple code lock circuit

    21. .Plz response to my comment quickly ………hi nid pcb layout of dis circuits

    22. IS this circuit taking care of Debounsing effect

    23. please send the working process of the ckt to my mail id
      and also the switching sequence please

    24. we need operation of the above circuit it is not working

    25. heyy guyzz i want this code lock by using 4 ICs that 4013 so can i get diagram ??

    26. please send me the detailed info of the circuit to my mail id.

    27. plz send me detailed info of the circuit to my mail id.

    28. how can i implement this poject practically plz rply

    29. can you please send me more detailed information of the circuit? I really need this for our project. and also send the working process of the circuit to my mail id
      and the switching sequence please. thank you.

    30. i am working on this project can yu please send me more information and more details.ASAP

    31. Am done with this project only how to write a report help

    32. I am working on this project,please give me clear details about working of this project.

    33. Ndayishimiye Yves Rafiki says: on August 26, 2014 at 2:27 pm

      If is possible can you send for me a function of each components in my e-mail?

    34. Pls, send more details to me. i actually saw a circuit similar to this but with 555 timer and motor included. Thanks.

    35. Please send me some more info, maybe describe what the components do. Probably a noob question but why are the incorrect code buttons connected to set pins? Wouldn’t that override the clock mode and set all outputs to 1?

    36. Musjay Best project jaaey hai electronic lock ka or other project ka be pata dan…..

    37. kalyani mulawar says: on March 15, 2015 at 4:30 am

      Can you send me PCB layout plz?

    38. Hello!
      I made this project for a class in school. If there is some more documentation of this project I would be realy glad if you could send it to me.
      Thank you!

    39. please send me details…Is it require to press correct sequence at a time, or one by one..

    40. Please sir I need more datails about the simple door lock tanks

    You need to log in if you need to post comments on ElectroSchematics.com or register if you do not have an account.