Properties and the key element for protecting data and archives. With the rapid development of electronic technology, the disadvantages of traditional mechanical locks are gradually magnified, and there is an increasing demand for new electronic password locks in society, with broad prospects. This design is based on a single-chip microcomputer, with the main control chip AT89S51, the display module LCD1602, and the peripheral circuits such as the self-designed matrix keyboard and alarm module. The control program of the main control chip is written in C language, and a set of electronic password control systems with various functions such as key input, display, unlocking, alarm, and password modification has been completed. This thesis describes in detail the functions and design schemes of each module, and provides screenshots of simulation results for each function of the system. Keywords: single-chip microcomputer, electronic password lock, matrix keyboard, LCD display, alarm.