设计简介:
项目编号:mcuclub-dz-180
单片机类型:STC89C52
具体功能:
1、通过4*4的矩阵键盘中的0-9为数字键,*为删除键,#为确定键,A为切换模式按键(可切换是密码开锁还是指纹开锁)
2、重置密码过程:管理员密码–>旧密码–>新密码–>再次新密码
3、添加指纹:输入管理员密码,再添加指纹
4、删除指纹:输入管理员密码,再删除指纹
5、通过AT24C02存储密码,实现掉电保存密码
6、当输入密码或指纹总错误次数大于等于3次,进行锁定键盘及指纹模块3分钟,在此期间,每按一次按键都会蜂鸣器报警
7、通过继电器控制门磁锁,模拟开门和关门
8、通过LCD12864显示屏显示输入的密码(*号表示,防止被偷看),另外,输入密码可以前后加入扰乱码,只要包含正确密码即可
总字数:15417
实物链接:点击跳转
仿真链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
基于单片机的指纹密码锁控制系统设计
摘要
本论文旨在应对传统家用机械锁存在的问题,满足日益增长的信息化需求。随着电子产品行业的迅猛发展,指纹密码防盗锁成为备受青睐的选择。针对市场对密码锁的高要求,本研究基于STC89C52系列高端单片机作为核心控制器,结合LCD12864显示屏、指纹模块和密码模块,设计了一套完整的指纹密码锁控制系统。该系统具备以下主要特点:键盘布局:采用4×4矩阵键盘,包括数字键0-9、删除键*、确定键#以及模式切换键A,实现密码开锁与指纹开锁的切换。安全重置密码:管理员密码-旧密码-新密码-再次确认新密码的重置密码过程,保障密码的安全性。指纹管理:管理员可输入密码进行指纹添加或删除,增加系统的灵活性与管理员权限。数据存储:使用AT24C02存储器实现密码的掉电保存,确保密码数据不会因掉电而丢失。安全锁定机制:当密码或指纹输入错误次数达到3次时,系统会自动锁定键盘和指纹模块3分钟,并发出蜂鸣器警报,增强安全性。门锁控制:通过继电器控制门磁锁,模拟实现安全的开门和关门功能。密码保护:LCD12864显示屏显示输入密码,使用*号遮挡密码字符,且可加入前后扰乱码,提高密码的保密性。这一指纹密码锁控制系统整合了先进的电子技术,强化了家庭安全和便捷性,满足了不断增长的信息化需求。通过应用创新的技术手段,本研究为安全门锁领域提供了一种现代化的解决方案,对于改善人们的生活环境具有积极意义。
关键词:指纹密码锁;STC89C52单片机;安全重置密码;控制系统;数据存储;锁定机制
Abstract
This paper aims to address the issues with traditional household mechanical locks and meet the growing demands of informationization. With the rapid development of the electronic products industry, fingerprint-password anti-theft locks have become a favored choice. In response to the high requirements of the market for password locks, this study is based on the high-end STC89C52 series single-chip microcontroller as the core controller, combined with the LCD12864 display screen, fingerprint module, and password module, to design a complete fingerprint-password lock control system.The system possesses the following main features:Keyboard Layout: Utilizing a 4×4 matrix keyboard including numeric keys 0-9, * as a delete key, # as a confirm key, and A as a mode switch key (for toggling between password and fingerprint unlocking).Secure Password Reset: A password reset process of administrator password – old password – new password – confirmation of new password is implemented to ensure password security.Fingerprint Management: Administrators can input passwords to add or delete fingerprints, enhancing system flexibility and administrator privileges.Data Storage: Using the AT24C02 memory, passwords are stored to prevent data loss due to power outage.Security Locking Mechanism: After three incorrect attempts of entering passwords or fingerprints, the system automatically locks the keyboard and fingerprint module for 3 minutes while sounding a buzzer alarm, enhancing security.Door Lock Control: The door magnetic lock is controlled through a relay to simulate secure door opening and closing functions.Password Protection: The LCD12864 display screen shows entered passwords with characters masked by “*”, and optional added pre/post scrambling characters for enhanced password confidentiality.This fingerprint-password lock control system integrates advanced electronic technology, strengthening home security and convenience, thus meeting the ever-growing demands of informationization. Through the application of innovative technological methods, this study provides a modern solution for the security door lock domain, contributing positively to improving people’s living environments.
Keywords: Fingerprint-password lock; STC89C52 microcontroller; Secure password reset; Control system; Data storage; Locking mechanism.
目录
基于单片机的指纹密码锁控制系统设计 I
摘要 I
Abstract II
第一章 绪论 7
第二章 设计思路与方案选择 9
第三章 硬件设计 13
4 系统程序设计 20
第五章 实物测试 26
第六章 实物测试 29
第七章 总结与展望 32
致谢 33
参考文献 34
附录 36