基于WIFI的门禁系统的设计
基于WIFI的门禁系统的设计(任务书,外文翻译,论文12100字)
摘 要
在科技不断进步的今天,人们深刻的认识到科技决定生活质量。方便,高效,省时是这个时代的主题,也是科学发展的方向。近年来,WIFI科技迅速发展已然融入人们的生活之中。科技水平的飞速提升也使得用户更加追求门禁系统的保密性与安全性,而以往生产的锁具却因为各种诸如成本太高,钥匙易丢失,密码量小和安全性低的原因无法满足人们的需求。面对不断贴近人们生活的WIFI技术和对锁具要求的日益提高,设计一款用手机输入密码通过WIFI网络控制的门禁系统是可行的。本设计是以STC89C52RC单片机芯片为主控芯片,辅以安卓手机,WIFI模块,液晶显示屏和继电器模块,实现了从手机输入密码到继电器门锁开门的功能,且手机可以控制多个门锁。此外系统还拥有在用户输入密码错误三次后报警的功能。本文采用软硬件联调的方法实现了本设计,细致介绍了从系统需求到设计构思,从功能模块到电路搭架,以及从程序流程到软件编程。本文所设计的门禁系统是以STC89C52RC这款高性价比的芯片为核心构思的,STC89C52RC单片机易于监控,延时、中断、计数等功能齐全且可通过C语言编程实现操作。经过调试和测试,本文设计的基于WIFI的门禁系统操作效果良好,具有一定的实用和参考价值。 [资料来源:http://doc163.com]
关键词:STC89C52RC WIFI 门禁系统 密码锁
Design and implementation of access control system based on WIFI
Abstract
Today, with the continuous progress of science and technology,people are deeply aware that science and technology influence the quality of life.Convenient, efficient and saving time are not only the theme of this times, but also the direction of scientific development.The development of science and technology also makes people improve door forbidden system confidentiality and security, but previous lock can not meet people's needs ,because of such as cost is too high, key is easy to lose, small amount of passwords and low security reasons .Facing the WIFI technology close to people's lives increasingly and the lock request is increasing day by day , using a mobile phone to input a password through the WIFI network control access control system design is feasible.This design is uses stc89c52rc MCU chip as main control chip, supplemented by an Android phone, WIFI module, LCD display and a relay module, the realization of the from the mobile phone input password corresponding unlocking relay function,and the mobile phone can control a plurality of door locks.At the same time, the system also has function of the alarm after the user input password mistake three times.In this paper, the method of hardware and software is used to realize the design.From the system requirements to the design concept, from the functional modules to the circuit frame, and from the program process to the software programming are described in detail.This access control system design is based on the high cost of STC89C52RC chip as the core idea, the use of STC89C52RC MCU chip is easy to monitor, delay, interrupt, counting and other functions and can be achieved through the C++.After debugging and testing, the design of the WIFI based access control system has good operation effect and certain practical value.
[资料来源:http://www.doc163.com]
Key Words: STC89C52RC; WIFI; Access control system;Password lock
[版权所有:http://DOC163.com]
目录
摘 要 1
Abstract 1
第一章 引 言 1
1.1 设计简介 1
1.2 设计内容 2
1.3 论文结构 3
第二章 系统的总体设计方案 5
2.1 系统的功能介绍 5
2.2 系统的整体框图 5
2.3 系统设计思路 6
2.4 系统各单元模块功能 6
第三章 系统硬件模块设计 7
3.1手机终端模块 7 [资料来源:www.doc163.com]
3.2 WIFI模块 7
3.2.1无线组网 8
3.2.2地址绑定 9
3.2.3工作模式 9
3.2.4 网络协议 9
3.2.5 收发测试 9
3.2.6 WIFI设置 10
3.3 处理模块 10
3.3.1 串口 10
3.3.2 单片机芯片 11
3.3.3 振荡电路 12
3.3.4 复位电路 12
3.4 显示模块 13
3.5 继电器门锁模块 14
3.6 警示模块 16
3.7设计总图 17
第四章 系统软件设计 18
4.1 系统主程序流程设计 18
4.2 系统部分软件设计 19
4.2.1 单片机软件设计 19
4.2.2 串口软件设计 20
4.2.3 液晶屏软件设计 20
4.2.4 报警模块软件设计 21
第五章 实物调试 22
[资料来源:http://Doc163.com]
5.1 实物展示 22
5.2 调试错误分析 24
5.2.1 手机端错误分析 24
5.2.2 晶振电路错误分析 24
5.2.3 液晶屏显示错误分析 24
5.3 系统测试结果 24
5.3.1 系统通电待机 24
5.3.2 输入正确密码 25
5.3.3 输入错误密码 26
总结 28
参考文献 29
致谢 31
[资料来源:http://doc163.com]