设计简介:

项目名:基于单片机的多功能密码锁的设计
单片机:STM32F103C8T6
功能简介:
1、通过4*4的矩阵键盘中的0-9为数字键,*为删除键,#为确定键,A为重置密码键,B为一键还原密码键,C为添加指纹,D为删除指纹
2、重置密码过程:管理员密码–>旧密码–>新密码–>再次新密码
3、一键还原:输入管理员密码,直接还原密码123456
4、添加指纹:输入管理员密码,再添加指纹
5、删除指纹:输入管理员密码,再删除指纹
6、通过AT24C02存储密码,实现掉电保存密码
7、当密码输入错误时,语音播报“密码不正确”,当指纹不匹配时,语音播报“指纹不匹配”,当输入密码或指纹总错误次数大于等于3次,进行锁定键盘及指纹模块3分钟,在此期间,每按一次按键都会蜂鸣器报警
8、通过继电器控制门磁锁,模拟开门和关门,当正确解锁时,语音播报“欢迎回家”
9、通过显示屏显示输入的密码(*号表示,防止被偷看),另外,输入密码可以前后加入扰乱码,只要包含正确密码即可
10、通过蓝牙模块可远程手机端进行开锁

总字数:17078

实物链接:点击跳转

设计说明书链接:点击跳转

开题报告链接:点击跳转

答辩PPT链接:点击跳转

摘 要

本毕业论文基于单片机的设计研究旨在探索和实现一种多功能密码锁系统。通过使用STM32F103C8T6单片机作为核心控制器,结合相关硬件和软件技术,实现了密码锁的多种功能,包括密码管理、指纹识别、存储功能、错误处理和门磁锁控制等。在系统设计中,我们采用了4×4矩阵键盘作为用户输入设备,提供了数字键、删除键、确定键以及特定功能键。用户可以通过输入正确的管理员密码来进行密码重置、一键还原密码、添加指纹和删除指纹等操作。系统使用AT24C02芯片实现密码的掉电保存,确保密码在断电情况下能够得到保留。为了增强系统的安全性,我们引入了错误处理机制。当用户输入的密码或指纹不正确时,系统会通过语音播报提示错误,并在连续输入错误达到一定次数后,对键盘和指纹模块进行锁定,同时蜂鸣器会发出报警声。这种设计有效地防止了密码和指纹的恶意尝试破解。另外,我们使用继电器控制门磁锁的开关状态,实现了模拟开门和关门的功能。当密码正确解锁时,系统会通过语音播报欢迎词语,提高了用户体验和安全性。最后,我们在显示屏上显示输入的密码,采用”*”号进行遮蔽,以防止密码泄露。同时,用户可以在输入密码时添加前后的扰乱码,只要包含正确密码即可。

通过对该多功能密码锁系统的设计和实现,我们验证了其在安全性、功能性和用户友好性方面的优势。未来的改进工作可以进一步提升系统的稳定性、扩展更多功能以及优化用户界面,以满足不同场景下的需求。

关键字:单片机;多功能密码锁;STM32F103C8T6;键盘输入;指纹识别;安全性

Abstract

This thesis presents a design and research on a multi-functional password lock system based on a microcontroller. By utilizing the STM32F103C8T6 microcontroller as the core controller and integrating relevant hardware and software technologies, various functions of the password lock system are implemented, including password management, fingerprint recognition, storage capability, error handling, and magnetic door lock control. The system employs a 4×4 matrix keypad as the user input device, offering numeric keys, delete key, confirm key, and specific function keys. Users can perform operations such as password reset, one-key password restoration, fingerprint addition, and fingerprint deletion by entering the correct administrator password. The AT24C02 chip is utilized for power-off data storage, ensuring that passwords are retained in case of power loss.To enhance system security, an error handling mechanism is introduced. When users input an incorrect password or mismatched fingerprint, the system provides audio feedback for error indication. After a certain number of consecutive incorrect attempts, the keyboard and fingerprint module are locked, and the buzzer emits an alarm. This design effectively prevents malicious attempts to crack passwords or fingerprints. Additionally, a relay is employed to control the status of the magnetic door lock, enabling simulation of door opening and closing. Upon successful password unlocking, the system delivers a welcoming message through audio feedback, enhancing user experience and security. Furthermore, the entered password is displayed on a screen with asterisks (*) to prevent password leakage. Users can also add random characters before and after the password for obfuscation purposes, as long as the correct password is included.

Through the design and implementation of this multi-functional password lock system, the advantages in terms of security, functionality, and user-friendliness are validated. Future improvement work can focus on enhancing system stability, expanding functionalities, and optimizing the user interface to meet diverse demands in different scenarios.

Keywords:microcontroller; multi-functional password lock; STM32F103C8T6;keypad input;fingerprint recognition; security

目录

摘 要

Abstract

第1章 引 言

1.1 选题背景及实际意义

1.2 国内外发展历程

1.3 本论文研究目标

第2章 系统设计方案

2.1 主要元器件选择

2.1.1 主控芯片选择

2.1.2 无线控制模块方案选择

2.1.3 显示模块方案选择

2.2 整体设计方案

第3章 硬件设计

3.1 主控电路模块

3.2 矩阵键盘电路模块

3.3 显示模块电路

3.4 存储模块电路

3.5 语音输出模块电路模块

3.6 继电器模块电路

3.7 蓝牙模块电路

3.8 指纹模块电路

3.9 蜂鸣器模块电路

第4章 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 矩阵键盘子流程

4.4 存储模块子流程

4.5 OLED显示流程设计

4.6 蓝牙模块子流程

第5章 功能测试

5.1 整体实物测试图

5.2 密码开锁实物测试

5.3 指纹开锁实物测试

5.4 手机开锁实物测试

5.5 错误超过3次锁屏实物测试

结论

参考文献

致 谢

附录一: 原理图

附录二:PCB

附录三:主程序

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

发表评论

后才能评论

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

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

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

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

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