Logic Buttons from Left to right
button (1,2,3,4,5)
To Lock
in order
Set 1 -> 1
clock 2
clock 3
clock 4
clock 5
To unlock
Set 1->0
repeat clock steps.
FUNCTIONALITY
If zero is carried across all D Flip Flops, hammer will unlock. The push button(switch) on the top right represents a switch that closes when handle is pulled. The load is microwave oven transformer electromagnet( search youtube there are lots) and has 2 18 volt Drill batteries for voltage supply. Super High current!!!
REFERENCE:
http://www.circuitstoday.com/digital-code-lock