Digital code lock using arduino. Circuit diagram, program and theory.