EL-93IntermediatePremiumCounter circuits
Sequential Code Lock: Push-Button Code with the CD4017
Press four buttons in the right order: the red LED goes out, the green LED lights and the lock stays open. Touch one of the trap buttons in between and everything starts over. The order is kept by the CD4017 counter: only the button connected to whichever output is 1 at that moment can move the counter on by one step. Four diodes keep the buttons apart from each other. This is a game and learning circuit, not a real security lock.
0.0(0)

It is built with a 9 V battery, one CD4017, eight push buttons, four 1N4148 diodes, four resistors, two capacitors and two LEDs. The code is S6, S3, S7, S4: each correct button sits between a Q output and the clock input and produces a clock pulse only when its turn comes. S1, S2 and S5 are traps; they and S8 set the reset input to 1. When the counter reaches Q4, the red LED goes out and the green one lights. What you learn: keeping a state with a counter, isolating with diodes, switch bounce and power-on reset. It is not a real lock.
Premium Content
This circuit's build steps, how-it-works guide and FAQ are open to Premium members.
- Build Steps
- How It Works
- Frequently Asked Questions
