ArduLock is a project to operate a deadbolt with a servo or electric strike plate with a relay by entering a pin on a keypad. The pin is stored in eeprom and can be changed using the keypad instead of re-flashing the arduino and the pin change will survive a reboot.

 

Code: https://github.com/jjfalling/ardulock