1、 I 基于单片机的电子密码锁设计基于单片机的电子密码锁设计 摘要摘要 在日常的生活和工作中, 住宅与部门的安全防范、单位的文件档案、财务报表以及 一些个人资料的保存多以加锁的办法来解决。若使用传统的机械式钥匙开锁,人们常需 携带多把钥匙, 使用极不方便, 且钥匙丢失后安全性即大打折扣。具有防盗报警等功能 的电子密码锁代替密码量少、安全性差的机械式密码锁已是必然趋势。随着科学技术的 不断发展,人们对日常生活中的安全保险器件的要求越来越高。为满足人们对锁的使用 要求,增加其安全性,用密码代替钥匙的密码锁应运而生。密码锁具有安全性高、成本 低、功耗低、易操作、记住密码即可开锁等优点。 目前使用的电子
2、密码锁大部分是基于单片机技术,以单片机为主要器件,其编码器 与解码器的生成为软件方式。 本系统由AT89S52单片机系统(主要是AT89S52单片机最小系统)、44矩阵键盘、 24C02掉电存储芯片、LCD1602显示和报警系统等组成,具有设置、修改六位用户密码、 超次报警、超次锁定、密码错误报警等功能(本设计由P0口控制LCD显示,密码正确显 示input password correct! 密码错误显示input password error!超过三次输入错 误自动锁定。由P1口控制矩阵键盘含有0-9数字键和A、B功能键。)。本系统成本低廉, 功能实用。 关键词关键词: AT89S52;
3、LCD1602; 电子密码锁; 44矩阵键盘 II The Electronic combination lock design based on single chip microcomputer Abstract In the day-to-day living and working in the residential sector and the safety precautions, units of paper files, financial statements, and some personal information to the preservation of mor
4、e than locking the solution to the problem. If the use of traditional mechanical key to unlock, people often need to carry more keys, a very inconvenient to use, and after the loss of key security that is greatly reduced. With anti-theft alarm function instead of the password is less electronic lock
5、, security, poor mechanical lock is an inevitable trend。 With the continuous development of science and technology, in the daily lives of people on insurance safety devices increasingly demanding. To meet the requirements of the use of locks to increase their security, with a password instead of the
6、 password key lock came into being. Password lock is safe, low cost, low power consumption, easy to operate, Remember the password to unlock it , and other advantages. At present the use of electronic locks are mostly based on microprocessor, main devices MCU, the encoder and decoder built into software. SCM system from the system (Mainly AT89S52 microcontroller minimum system) , 4 4 Matrix keyboard, LCD display and alarm system, With the settings, modify the six user password, Ultra alarm