项目编号: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
2 系统主题设计 4
3 硬件设计 7
4 系统程序设计 13
5 仿真测试 20
6 结 论 36
参考文献 37
致 谢 38
附录 39