The purpose of this project is to create a micro-controller based Digital Code Lock that serves the purpose of security. The microcontroller based Digital Code Lock is an access control system that allows only authorized persons to access a restricted area. Security is a prime concern in our day-today life. Everyone wants to be as much secure as possible. An access control for doors forms a vital link in a security chain. The system comprises of a push button keypad connected to the 8 bit microcontroller ATmega328P. The system will allow you to preset a password. The lock will open if and only if the entered password matches the preset one. If the entered password is wrong a buzzer will be activated.