项目编号:mcuclub-jj-001
设计简介:
项目名:智能门禁
项目编号:mcuclub-jj-001
单片机类型:STM32F103C8T6
具体功能:
1、密码输入:首先输入住户门牌号,然后进入输入密码界面,密码正确后,门锁打开,错误后蜂鸣器报警1s,若密码输入错误3次,则蜂鸣器持续报警10s。
可添加门牌号和密码,添加步骤:门牌号—>管理员密码—>新密码—>再次新密码。
可修改密码,修改步骤:门牌号—>管理员密码—>旧密码—>新密码—>再次新密码。
另外,密码是可以掉电保存在AT24C02中。
2、刷卡:通过RFID进行刷卡进入,刷有效卡,门锁打开,无效卡,蜂鸣器报警1s,若无效卡刷3次,则蜂鸣器持续报警10s。可添加卡或删除卡
3、通过4*4矩阵键盘可输入密码,进入不同模式
4、通过显示屏显示数据
总字数:13205
摘 要
当前,随着科技的发展,人们的生活水平得到了很大的提高,使得人们对个人的财产及其个人的人身安全重视程度越来越高,此次设计一款基于单片机的门禁控制器设计,主要是为了解决当前大部分用户使用的密码锁在输入密码锁被旁人盗取,或者存在有人多次输入密码从而盗取用户密码,给用户造成财产损失。
此方案设计给出了以STM32为核心,利用单片机的运算和控制功能,并使用OLED显示密码,用户可以根据当前的需求设置门牌号和密码,然后根据门牌号和密码进行开锁,也可以通过RFID进行刷卡开锁,为了防止密码被不法分子试错打开,监测到密码输入错误3次或者刷卡为无效卡3次,经常蜂鸣器鸣响10s提醒,为了方便用户的使用,用户修改的密码进行断电保持。此外用户可以根据自己的门牌号将自己家的拨码开关拨上去,此时用户只需要在外机通过矩阵键盘输入门牌号,然后确认,最后按下呼叫按键,此时用户家中的进行声光报警提醒,此时用户在家中按下开门按键,此时门自动打开,关闭声光报警。此次设计的电子密码锁具有操作监简单、保密性强、防止密码被不法分子试错打开的优势。
关键字:智能门禁;防试错;RFID刷卡;OLED显示屏;zigbee
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 STM32 as the core, utilizing the calculation and control functions of the microcontroller, and using OLED 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. At this time, the user’s home will receive an audible and visual alarm reminder. At this time, the user presses the door open button at home, and the door will automatically open and turn off the audible and visual alarm. 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; OLED display screen; Zigbee
目 录
1 绪 论 1
2 系统主题设计 4
3 硬件设计 8
4 系统程序设计 14
5 实物的制作与调试 22
6 结 论 30
参考文献 31
致 谢 32
附录 33