摘要:随着科技和人们的生活水平的提高,如何实现家庭防盗这一问题也变得非常的突出,传统机械锁由于构造简单,被撬事件经常发生;电子锁由于其保密性高,使用灵活性好,安全系数高,受到了广大用户的喜爱。 本设计以单片机AT89C52作为密码锁监控装置的检测和控制核心,分为主机控制与从机执行机构(本设计重点介绍主机设计),实现钥匙信息在主机上的初步认证注册、密码信息的加密、钥匙丢失报废等功能。根据51单片机之间的串行通信原理,这便于对密码信息的加密和保护。而且采用键盘输入的电子密码锁具有较高的优势。采用数字信号编码和二次调制方式,不仅可以实现多路信息的控制,提高信号传输的抗干扰性,减少错误动作,而且功率消耗低;反应速度快、传输效率高、工作稳定可靠等。软件设计采用自上而下的模块化设计思想,以使系统朝着分布式、小型化方向发展,增强系统的可扩展性和运行的稳定性。测试结果表明,本系统各项功能已达到本设计的所有要求。
关键词:密码锁,单片机设计,电子锁
Abstract:Along with the science and technology and people's living standard enhancement,how to realize the family guard against theft has become a particularly prominent, the traditional mechanical lock because of simple structure, prizing events it is often seen; electronic lock high because of their confidentiality, the use of flexibility good, high safety factor, by the majority of users of all ages. The design of single-chip AT89C51 as cipher lock monitoring device for the detection and control of the core, the host is divided into control and the slave actuator ( this set focuses on host design ), realize the key information in a host of preliminary registration, password information encryption, key loss and function. According to the51 single-chip serial communication between the principle, it is convenient for the password information random encryption and protection. And the use of keyboard input of the electronic code lock has high advantage. Digital signal encoding and the two modulation modes, which can not only realize the multiplexed information control, to improve anti-interference signal transmission, reduce the mistake action, and low power consumption; fast reaction speed, high transmission efficiency, such as stable and reliable work. The software design uses a top-down modular design concept, to make the system distributed towards miniaturization, the direction of development, enhance the system's scalability and stability. The test results show that, various functions of this system has reached the design requirements for all.
Key words: password lock; singlechip design; electronics lock