基于单片机的门禁密码锁设计

 2022-10-18 10:10

论文总字数:15366字

摘 要

在平时生活和工作中,锁发挥了重要的作用,比如,住宅和部门、单位档案、财务报表和一些个人资料的保存等都得到了更频繁的处理,它提高了人们的安全感。当使用传统的机械钥匙打开锁时,通常会有几把钥匙,这是不方便使用的,而且携带又不方便,且当钥匙丢失时,钥匙的安全性会大大降低。不可避免的是,带有防盗警报器功能的电子密码锁将取代低数字和低安全性的机械锁。随着科学技术的发展,日常生活中对安全设备的需求越来越大。为了满足人们使用锁的要求,并提高它们的安全,使用密码而不是密钥创建的密码锁。密码锁的优点如下,例如:高安全性、低成本、低功耗、容易操作等。

因此,研究和开发高机密性的电子密码锁电路代替传统锁已成为当务之急。为此,设计了一个控制电路为门禁密码锁的控制系统,利用控制芯片为STC89C52的单片机和记忆密码输入电路,并与矩阵键盘模块、LED指示灯模块、继电器驱动模块、射频模块等连接一起,控制程序用C语言来编写主控芯片,以完成密码输入和修改。在管理员模式下,该电路能多次修改密码,超过3次密码输入错误,电路报警。测试表明,该电路能够满足密码锁基本控制要求,具有一定的实用价值。

关键词:单片机;射频卡;电子密码锁

Design of Access Control Code Lock Based on Single Chip

 Microcomputer

Abstract

In daily life and work, locks play an important role, such as residential and departmental, unit files, financial statements and some personal data preservation have been processed more frequently, which improves people's sense of security. When using traditional mechanical keys to open a lock, there are usually several keys, which are inconvenient to use, and inconvenient to carry, and when the key is lost, the security of the key will be greatly reduced. Inevitably, electronic password locks with anti-theft alarm functions will replace low-digital and low-security mechanical locks. With the development of science and technology, there is a growing demand for safety equipment in daily life. In order to satisfy people's requirement of using locks and improve their security, password locks are created by using passwords instead of keys. The advantages of password locks are as follows: high security, low cost, low power consumption, easy operation and so on.

Therefore, the research and development of high-confidentiality electronic cipher lock circuit to replace the traditional lock has become an urgent need. For this purpose, a control system with access control circuitry as password lock is designed. The control chip is STC89C52 microcontroller and memory circuitry input circuit. It is connected with matrix keyboard module, LED indicator module, relay driver module and radio frequency module. The control program is written in C language to complete the password input and modification. In the administrator mode, the circuit can modify the password many times, more than three times the password input error, circuit alarm. Tests show that the circuit can meet the basic control requirements of password lock, and has a certain practical value.

Keywords: SCM; RF card; electronic code lock

目录

第一章 引言 1

1.1 选题背景和意义 1

1.2 国内外研究现状 1

1.3 本设计的安排 2

第二章 总体方案 3

2.1 设计方案论述 3

2.1.1 选题论证 3

2.1.2 方案选取 3

2.2 外围器件 4

2.2.1 单片机的选择 4

2.2.2 LCD的选择 4

2.3 RFID模块的选择 6

2.4 语言选择 7

第三章 软件硬件设计 8

3.1 硬件部分 8

3.1.1 对Alitim Designer的认识 8

3.1.2 主要模块 10

3.2 软件部分 12

3.2.1 对软件Keil的认识 12

3.3 主程序流程图 12

3.4 键盘扫描模块 13

3.5 系统模块密码设置子程序 14

第四章 软硬件问题及解决办法 16

4.1 硬件部分 16

4.1.1 设计过程中出现的问题 16

4.1.2 设计及调试中问题解决办法 17

4.2 软件部分 17

4.2.1 在设计过程中出现的问题 17

4.2.2 设计及调试中问题解决办法 18

第五章 结束语 19

致谢 20

参考文献 21

附录 22

第一章 引言

1.1 选题背景和意义

剩余内容已隐藏,请支付后下载全文,论文总字数:15366字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;