基于 51 单片机的电子密码锁设计 Design of electronic code lock based on 51 single chip microcomputer 内容摘要近年来,在我国社会经济不断进步和迅猛发展的背景下,人们的生活水平越来越高,更多的人开始享受高质量的生活。就拿我们家家离不开的锁具来说,从我国古代历史上就有了各种锁的记载和使用,发展到今天人们追求的不单单只是用来锁门的一个工具。人们对于锁的追求体现在一种心理的安全感和使用过程中的先进技术体验上。本课题为电子密码锁设计。该设计采用 STC89C51 控制器来进行关键部分的运作,主要包括主控部分、显示部分、报警部分、电磁锁控制、红外遥控接收以及电源。报警选择蜂鸣器。显示电方案选取 LCD1602 显示相关信息。用户可以通过键盘或者红外遥控输入密码数据,系统判断密码数据是否正确,来完成电子密码锁的开和关,键盘具有更改密码的作用。采用 C 语言进行软件设计,其开发上手容易,通过单片机的专用 Keil 设计工具来实现程序文件的执行,系统软件设计完成后,利用 Proteus 来完成对系统的验证,成功功能验证。并改善设计,完成系统设计要求。关键词: STC89C51 密码锁 红外遥控AbstractWith the rapid development of China's economy and the gradual improvement of national living standards, people have a higher standard of pursuit in all aspects of daily life. Take the locks that our family can't live without as an example. From ancient Chinese history, there have been records and uses of various locks. Today, people are pursuing more than just a tool to lock doors. People's pursuit of locks is embodied in a sense of psychological security and advanced technological experience in the use process.The subject is radio electronic code lock. The project chooses STC89C51 controller to complete the core work, including main control part, display part, alarm part, electromagnetic lock control, infrared remote control receiving and power supply. Alarm selection buzzer. LCD1602 is selected to display the relevant information. Users can input password data by keyboard...