设计简介:
项目名:智能门禁
项目编号:mcuclub-jj-001
单片机类型:STM32F103C8T6
具体功能:
1、密码输入:首先输入住户门牌号,然后进入输入密码界面,密码正确后,门锁打开,错误后蜂鸣器报警1s,若密码输入错误3次,则蜂鸣器持续报警10s。
可添加门牌号和密码,添加步骤:门牌号—>管理员密码—>新密码—>再次新密码。
可修改密码,修改步骤:门牌号—>管理员密码—>旧密码—>新密码—>再次新密码。
另外,密码是可以掉电保存在AT24C02中。
2、刷卡:通过RFID进行刷卡进入,刷有效卡,门锁打开,无效卡,蜂鸣器报警1s,若无效卡刷3次,则蜂鸣器持续报警10s。可添加卡或删除卡
3、通过4*4矩阵键盘可输入密码,进入不同模式
4、通过显示屏显示数据
总字数:11956
摘 要
当前,随着科技的发展,人们的生活水平得到了很大的提高,使得人们对个人的财产及其个人的人身安全重视程度越来越高,此次设计一款基于单片机的门禁控制器设计,主要是为了解决当前大部分用户使用的密码锁在输入密码锁被旁人盗取,或者存在有人多次输入密码从而盗取用户密码,给用户造成财产损失。
此方案设计给出了以STM32为核心,利用单片机的运算和控制功能,并使用OLED显示密码,用户可以根据当前的需求设置门牌号和密码,然后根据门牌号和密码进行开锁,也可以通过RFID进行刷卡开锁,为了防止密码被不法分子试错打开,监测到密码输入错误3次或者刷卡为无效卡3次,经常蜂鸣器鸣响10s提醒,为了方便用户的使用,用户修改的密码进行断电保持。此次设计的电子密码锁具有操作监简单、保密性强、防止密码被不法分子试错打开的优势。
关键字:智能门禁;防试错;RFID刷卡;OLED显示屏
Design of Access Control Based on Single Chip Microcomputer
Abstract
At present, with the development of science and technology, people’s living standards have been greatly improved, so that people pay more and more attention to personal property and personal safety, the design of a single-chip based access control design, mainly in order to solve the current majority of users use the password lock in the input password lock was stolen by others, Or someone may enter the password multiple times to steal the user’s password and cause property damage to the user.
This scheme is designed with STM32 as the core, using the computing and control function of single chip microcomputer, and using OLED to display the password. Users can set the house number and password according to the current needs, and then unlock the door according to the house number and password, and can also unlock the door by swiping the card through RFID. In order to prevent the password from being misopened by criminals, If the password is incorrectly entered for 3 times or the card is invalid for 3 times when the card is swiped, the buzzer will sound for 10s frequently. In order to facilitate the user’s use, the user’s changed password will be kept off. The design of the electronic password lock has the advantages of simple operation supervision, strong confidentiality, to prevent the password from being opened by criminals.
Key words:intelligent access control; Trial and error prevention; RFID swipe card; OLED display
目 录
1 绪 论 1
2 系统主题设计 4
3 硬件设计 7
4 系统程序设计 12
5 实物的制作与调试 17
6 结 论 23
参考文献 24
致 谢 25
附录 26