基于NFC的智能门禁系统的设计

 2022-11-26 01:11

论文总字数:17791字

摘 要

随着社会和科技的发展,传统的门锁在安全性和舒适性方面已经不能满足人们的需求。门禁系统是建筑和团队的重要安全工具,智能门禁系统在传统机械门禁系统上做出改良,使用输入密码的键盘或指定的IC卡才能进入建筑,有效提高了建筑的保密性和安全性同时也免去了传统机械门禁的繁琐操作。在智能手机NFC模块日渐普及的今天,基于NFC的智能门禁的安全性和便利性也会被越来越多的用户发现并喜爱。

本文设计了一种基于NFC的智能门锁,通过PN532模块连接Arduino控制引擎,实现门锁和钥匙的智能化,并通过NFC实现了智能门锁与钥匙之间的非接触双向通信和安全控制。本设计为基于Arduino的智能门锁,采用PN532模块作为读卡器、1602字符液晶作为显示屏,实现NFC设备的识别显示及开关门锁。当有NFC设备进入范围时,系统会检测到NFC设备的UID后发送数据到LCD1602液晶屏显示ID并与内置库中的UID进行比对。若库中存在NFC设备中的UID,就会控制舵机转动达成开门的效果。

关键词:NFC;智能门锁;Arduino;PN532;1602液晶;门禁系统

Intelligent access control system based on NFC

Abstract

With the development of society and science and technology, traditional door locks can no longer meet people' s needs in terms of safety and comfort. In this paper, an intelligent door lock based on NFC is designed. The intelligent door lock and key are realized by connecting the Arduino control engine through the PN532 module, and the non-contact two-way communication and security control between the intelligent door lock and key are realized through NFC. The access control system is an important security tool for the building and the team. The intelligent access control system is improved on the traditional mechanical access control system. Only the keyboard of entering the password or the specified IC card can be used to enter the building, which effectively improves the confidentiality and security of the building and eliminates the tedious operation of the traditional mechanical access control. Today, with the increasing popularity of NFC module in smart phones, the security and convenience of intelligent access control based on NFC will also be found and loved by more and more users.

This paper introduces an intelligent door lock based on Arduino, which uses PN532 module as card reader and 1602 character liquid crystal as display screen to realize the identification and display of NFC equipment and switch door lock. When an NFC device enters the range, the system will detect the UID of the NFC device and send the data to the LCD1602 LCD screen to display the ID and compare it with the UID in the built-in library. If the UID of NFC equipment exists in the library, the steering gear will be controlled to rotate to achieve the effect of opening the door.

Keywords: NFC; Intelligent Lock; Arduino; PN532; 1602 LCD; Access Control System

目 录

摘 要 I

Abstract II

第一章 引 言 1

1.1 选题背景与意义 1

1.2 NFC技术简介 1

1.2.1 NFC的概念 1

1.2.2 NFC原理 2

第二章 基于NFC的智能门禁方案设计 3

2.1 设计方案选择 3

2.1.1 显示电路方案 3

2.1.2 NFC电路方案 3

2.1.3 主控板方案 3

2.2 系统总体方案 3

第三章 系统的硬件电路和软件流程设计 4

3.1 控制电路 4

3.2 模块设计 7

3.2.1 PN532简介 7

3.2.2 PN532电路设计 8

3.2.3帧格式 8

3.2.4 PN532重要指令 11

3.2.5 ITEAD PN532 NFC模块 15

3.2.6 PN532 NFC模块与Arduino UNO的连接 16

3.3 MG90S 舵机简介 16

3.4 显示电路 17

3.5 程序结构分析 17

3.6 系统程序流图 18

第四章 程序编写与调试 19

4.1 Arduino IDE简介 19

4.2 使用Arduino IDE编写项目 19

第五章 总结与展望 25

致 谢 26

参考文献 27

附 录 28

第一章 引 言

1.1 选题背景与意义

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

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

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