基于BLE智能锁的设计
基于BLE智能锁的设计(论文13000字)
摘要:在日常的生活中, 住宅与部门的安全防范多以加锁的办法来解决。若使用传统的机械式钥匙开锁,人们需携带多把钥匙, 极不方便, 且钥匙丢失后,安全性低。具有防盗报警等功能的电子密码锁代替机械式密码锁已成必然。为满足人们对锁的使用要求,增加其安全性,用密码代替钥匙的密码锁应运而生。密码锁具有安全性高、成本低、功耗低、易操作、记住密码即可开锁等优点。目前使用的电子密码锁大部分是基于单片机技术,以单片机为主要器件,其编码器与解码器的生成为软件方式。本系统由STC89C51单片机系统(主要是STC89C51单片机最小系统)、4×4矩阵键盘、蓝牙模块、LCD1602显示和报警系统等组成,具有设置、修改六位用户密码、超次报警、超次锁定、密码错误报警等功能。
关键词:密码锁;单片机;蓝牙
Design and implementation of BLE intelligent lock
Abstract: In daily life, housing and departments of security precautions to add locks to solve. If the use of traditional mechanical key unlock, people need to carry more keys, inconvenient, and lost keys, low security. It is inevitable that electronic combination lock with anti-theft alarm function replaces mechanical combination lock. In order to meet people's requirements for the use of lock and increase its security, the password lock which replaces the key with the password came into being. Password lock has high security, low cost, low power consumption, easy to operate, remember the password can unlock the advantages.At present, most electronic password locks are based on single chip microcomputer technology, which is the main device, and the encoder and decoder are generated into software.This system is composed of STC89C51 single chip microcomputer system (mainly STC89C51 single chip microcomputer minimum system), 4×4 matrix keyboard, bluetooth module, LCD1602 display and alarm system, etc., with the functions of setting and modifying the password of six users, super alarm, super lock, password error alarm and so on. [版权所有:http://DOC163.com]
Key words: Combination lock; Single chip microcomputer; bluetooth
[资料来源:http://www.doc163.com]
目 录
1 引言 1
1.1选题背景 1
1.2蓝牙智能控制锁简介 1
1.3蓝牙智能控制锁的发展趋势 1
1.3.1蓝牙智能控制锁在中国的市场发展 1
1.3.2民用智能锁的发展 2
1.3.3企业智能锁的发展 2
1.3.4智能锁的分类 3
1.4 蓝牙智能锁的发展前景 3
2 蓝牙智能锁 4
2.1蓝牙简介 4
2.2市场上主要的连接技术 5
2.3低功率蓝牙模块分析 5
2.4低功耗蓝牙的优势 5
2.5 BLE蓝牙模块 6
2.5.1模块工作方式 6
2.5.2模块设计目的与特点 7 [资料来源:http://Doc163.com]
2.5.3串口透传(桥接模式) 9
2.5.4连接间隔调整 9
2.5.5模块重命名 9
2.5.6波特率调整 10
2.5.7获取物理地址 MAC 10
2.5.8模块复位 10
2.5.9测试模式 10
3 系统总体设计方案 11
4 系统硬件设计 11
4.1 设计原理 11
4.2 单片机STC89C51简介[12] 11
4.3 AT24C02存储芯片 13
4.4 液晶显示模块 14
4.5 键盘设计 15
4.6 声音提示模块 15
5 系统软件设计 16
5.1 主模块部分 16
5.2 键盘扫描子程序 18
5.3 系统模块密码设置子程序 19
5.4开锁子程序 20
6 调试与运行 21
小结 24
致谢 27