What you describe can be done with all discrete logic components, but it will take a lot of chips. If you already have programming and microcontroller experience, this will be much easier in a PIC or Arduino.
What you describe can be done with all discrete logic components, but it will take a lot of chips. If you already have programming and microcontroller experience, this will be much easier in a PIC or Arduino.
And even if you don't, it will be MUCH easier, cheaper and faster to get that experience than to try and do it in hardware - and you can give it much more functionality with little effort.
do you want to hardwire the 6 numbers into the circuit or do you expect to be able to change the code as you wish after the circuit is built?
also, I assume you mean a six digits 2, 5, 7, 0, 8, 6
Not six numbers 24, 92, 33, ...
six digits that are hardwired into the lock is doable with discrete logic chips (one chip per 4-bit digit plus two more chips. A transistor to power the latch opening and an SCR for the buzzer.
if you want reprogrammable values with dip switches, that's not too bad and doable.
if you want multi-digit numbers and software controlled combination so users cannot probe the PCB to determine the combination, you'll need a microcontroller.
Here's a mock-up of a 4-digit combination with hardware determined digits that must match the value of a 4-bit rotary encoder value (encoders far right. Forgive the right-to-left layout flow of the schematic - the pinout of the chips makes it flow better that way.
. Once the digits are set to desired value, the push button is pressed to test the correctness of all encoders. The counter (7469) is cleared if a good combination is entered, otherwise the counter increments. The counter triggers the SCR if two bad combos are hit - the SCR turns on the buzzer until the power is turned off.
the LED on the 7485 chips would be removed for the real circuit - also, the unused inputs would have to be properly connected to ground or positive rail. Capacitors added for decoupling, etc.