项目编号:mcuclub-jj-001

设计简介:

项目名:智能门禁
项目编号:mcuclub-jj-001
单片机类型:STM32F103C8T6
具体功能:
1、密码输入:首先输入住户门牌号,然后进入输入密码界面,密码正确后,门锁打开,错误后蜂鸣器报警1s,若密码输入错误3次,则蜂鸣器持续报警10s。
可添加门牌号和密码,添加步骤:门牌号—>管理员密码—>新密码—>再次新密码。
可修改密码,修改步骤:门牌号—>管理员密码—>旧密码—>新密码—>再次新密码。
另外,密码是可以掉电保存在AT24C02中。
2、刷卡:通过RFID进行刷卡进入,刷有效卡,门锁打开,无效卡,蜂鸣器报警1s,若无效卡刷3次,则蜂鸣器持续报警10s。可添加卡或删除卡
3、通过4*4矩阵键盘可输入密码,进入不同模式
4、通过显示屏显示数据

总字数:12864

摘   要

当前,随着科技的发展,人们的生活水平得到了很大的提高,使得人们对个人的财产及其个人的人身安全重视程度越来越高,此次设计一款基于单片机的门禁控制器设计,主要是为了解决当前大部分用户使用的密码锁在输入密码锁被旁人盗取,或者存在有人多次输入密码从而盗取用户密码,给用户造成财产损失。

此方案设计给出了以STC89C52为核心,利用单片机的运算和控制功能,并使用LCD1602显示密码,用户可以根据当前的需求设置门牌号和密码,然后根据门牌号和密码进行开锁,也可以通过RFID进行刷卡开锁,为了防止密码被不法分子试错打开,监测到密码输入错误3次或者刷卡为无效卡3次,经常蜂鸣器鸣响10s提醒,为了方便用户的使用,用户修改的密码进行断电保持。此次设计的电子密码锁具有操作监简单、保密性强、防止密码被不法分子试错打开的优势。

关键字:智能门禁;防试错;RFID刷卡;LCD1602显示屏

Abstract

Currently, with the development of technology, people’s living standards have greatly improved, making people pay more and more attention to personal property and personal safety. This design of an access control controller based on a microcontroller is mainly to solve the problem of password locks used by most users being stolen by others when entering password locks, or there may be people entering passwords multiple times to steal user passwords, Causing property damage to users.

This solution is designed with STC89C52 as the core, utilizing the calculation and control functions of the microcontroller, and using LCD1602 to display passwords. Users can set the house number and password according to their current needs, and then unlock them based on the house number and password. They can also use RFID to swipe the card to unlock the lock. In order to prevent the password from being mistakenly opened by criminals, it is detected that the password input error is 3 times or the card swiped is invalid 3 times, and the buzzer often sounds for 10 seconds to remind them, For the convenience of users, the password modified by the user is maintained after power outage. In addition, users can turn on their home’s dial switch based on their own house number. At this time, users only need to input the house number through the matrix keyboard on the external machine, confirm, and finally press the call button. The electronic password lock designed this time has the advantages of simple operation supervision, strong confidentiality, and preventing the password from being opened by criminals by trial and error.

Keywords: intelligent access control; Preventing trial and error; RFID card swiping; LCD1602 display screen;

目    录

1 绪   论 1

1.1 研究背景目的及其研究意义 1

1.2 国内外研究现状 1

1.3 实现功能 2

2 系统主题设计 4

2.1 系统框架设计 4

2.2 主要模块方案选择 5

2.2.1 主控模块方案选择 5

2.2.2 显示模块方案选择 5

2.3.4 按键模块方案选择 6

3 硬件设计 7

3.1 主控模块电路 7

3.2 RFID刷卡检测模块电路 9

3.3 存储模块电路 9

3.4 LCD1602显示模块电路 10

3.5 继电器模块电路 10

3.6 矩阵键盘模块电路 11

3.7 报警模块电路 12

4 系统程序设计 13

4.1 编程软件介绍 13

4.2 系统主机主流程设计 14

4.3 存储模块子流程 15

4.4矩阵键盘子流程 17

4.5LCD1602液晶显示子流程 18

5 仿真测试 20

5.1 整体仿真焊接图 20

5.2 密码开锁仿真测试 20

5.3 RFID开锁仿真测试 27

6 实物的制作与调试 30

6.1 整体实物焊接图 30

6.2 密码开锁实物测试 30

6.3 RFID开锁实物测试 34

6 结  论 36

参考文献 37

致  谢 38

附录 39

附录1:原理图 39

附录2:PCB 40

附录3:主程序 41

……………..本设计说明书是配套实物或仿真来写的,完整的设计参考书请购买后下载,购买过程遇到任何问题请联系客服进行咨询。本资料是一次性商品,不支持退货,感谢您对单片机俱乐部的支持……………..

发表评论

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源