遥控密码锁的设计

目录
一、 引言 3
(一)课题背景和意义 3
(二)电子密码锁发展趋势 3
二、 确定总体设计方案 4
(一)电子密码锁设计的具体要求 4
(二)选定总体设计方案 4
三、 系统硬件设计 5
(一)设计原理 5
(二)单片机STC89C51简介 5
(三)AT24C02存储芯片 8
(四)LCD显示模块 9
(五)键盘设计 10
(六)声音提示模块 11
(七)继电器控制模块 12
(八)红外接收模块 12
四、 系统软件设计 14
(一)主程序流程图 14
(二)子程序流程图 14
(三)软件调试 17
五、 焊接注意事项 18
六、 结论 19
参考文献 20
附录一 原理图 21
附录二 仿真图 20
附录三 电子密码锁程序源代码 21
摘要
随着人们的生活水平的日益提高,人们对安全的需求也越来越重视,基于此种现状,传统的机械锁已经由于它本身的技术限制以及安全性能逐渐为大众所抛弃,一种新型的电子密码锁也就应运而生了。由于科学技术的迅速发展,人们对日常生活中的安全要求越来越高。为满足人们对锁的使用要求和安全性,便出现了安全性高、成本低、功耗低、易操作且用密码替代钥匙的电子密码锁。
本文是设计一种新型的基于单片机技术的电子密码锁装置。采用STC89C51单片机为核心控制模块,输入装置采用矩阵式4×4键盘,显示模块采用LCD1602液晶显示模块 ,此外还有相应的报警模块等组成。系统具有正常的设置密码、修改密码以及输入密码错误次数达到一定数值后自动报警并进行锁定的功能。其中,在正确输入密码后显示模块会正常显示OPEN,如果密码输入错误则会显示ERROR,倘若输入错误密码次数超过3次,则矩阵键盘会自动锁定。本设计方便易行、价格低廉,符合设计要求。
关键词 STC89C51单片机 LCD1602液晶显示器 电子密码锁 4×4矩阵键盘
Abst
 *好棒文|www.hbsrm.com +Q: ^3^5^1^9^1^6^0^7^2^* 
正常的设置密码、修改密码以及输入密码错误次数达到一定数值后自动报警并进行锁定的功能。其中,在正确输入密码后显示模块会正常显示OPEN,如果密码输入错误则会显示ERROR,倘若输入错误密码次数超过3次,则矩阵键盘会自动锁定。本设计方便易行、价格低廉,符合设计要求。
关键词 STC89C51单片机 LCD1602液晶显示器 电子密码锁 4×4矩阵键盘
Abstract
With the improvement of peoples living standard, people demand more and more attention to security, based on this situation, the traditional mechanical locks have been due to technical limitations and safety performance itself gradually abandoned by the public, a new electronic locks also came into being. Because of the rapid development of science and technology, people in daily life increased security. In order to meet the requirements of people use to lock and security, giving rise to a high security, low cost, low power consumption, easy to operate and replace the key with a password of electronic locks.
This article is based on the design of a new single-chip technology electronic lock device. Using STC89C51 microcontroller core control module, an input device using a matrix 4 × 4 keyboard, the display module LCD1602 LCD module, in addition to the corresponding alarm modules and other components. The system has a normal setup password, change passwords and password wrong number of automatic alarms and locking feature reaches a certain value. Wherein, after the correct password is entered the display module will display properly OPEN, if the password input error appears ERROR, if the number of incorrect password is entered more than 3 times, the matrix keypad locks automatically.
Key words STC89C51SCM LCD1602 Monitor Electronic password lock 4×4 keyboard
一 、引言
(一)背景和意义
鉴于使用的单片机具有以下几个方面的优点,比如说具有较小的体积,较低的功耗以及相对较高的性价比和强大的数据及运算处理能力,因此,凭借其强大的性能,单片机的使用范围越来越广。在本文中,利用单片机强大的数据采集以及处理功能,来实现电子密码锁的防盗功能。通过本次的毕业设计,能够使我更好地掌握单片机的性能技术指标,也初次实地动手进行电路焊接调试,锻炼了自己的动手能力。
随着大家的生活水平逐渐提高,大家对安全的要求也越来越重视。从古至今,锁一直在人们的生活中扮演者重要的角色,它是人们守护家门的铁将军,而随着社会科技的进步,人们对锁具的要求也是水涨船高。而锁具既要具有安全可靠的

版权保护: 本文由 hbsrm.com编辑,转载请保留链接: www.hbsrm.com/dzxx/txgc/1371.html

好棒文