基于单片机的自动门禁系统设计研究

 2022-09-24 11:08:01

论文总字数:27344字

摘 要

为了设计出符合条件的门禁系统,我以单片机STC89C52、矩阵键盘和LCD1602液晶显示屏为基础。密码锁开机后,在正常情况下,系统会提示输入密码,此时可通过矩阵键盘输入六位密码,按下确认键后,系统可判断密码输入情况。若密码输入正确,会听到“咔”的开锁声,并有开锁指示灯显示,同时自动将开锁信息发送到指定的手机上去;如果密码输入错误,液晶屏提示错误信息,同时提示再次输入,若连续三次输入错误,系统会发出警报,同时将警告信息发送到自己手机上去;该系统可以修改密码,初始密码是123456,按下按钮,更改密码,输入初始密码,然后两个新密码连续输入,更改密码,同时将改密码的信息及新密码发送到指定手机上去;矩阵键盘同时有退格键、上锁键、开锁键、查看密码键等功能,操作方便,可靠性高。

关键词: 门禁系统;STC89C52;密码锁

Automatic Entrance Guard System Based on Single Chip Design Research

Abstract

In order to design conforms to the condition of the entrance guard system, I STC89C52 MCU based, matrix keyboard and LCD1602 LCD screen. Combination lock switch, under normal circumstances, the system will be prompted for a password, at this time by six matrix keyboard input password, press the confirm button, system can judge the password input.If the password you input is correct, will hear the lock of the "cut", and a lock indicator light shows, at the same time automatically unlock information sent to the designated mobile phone; If password input error, the LCD screen prompts error message and prompt input again at the same time, if three consecutive input error, the system will alert and send warning information to your mobile phone at the same time; The system can change the password, the initial password is 123456, press the button and change the password, enter the initial password, and then two continuous input the new password, change password, the information of change password and new password sent to the designated mobile phone; at the same time Matrix keyboard have a backspace key, lock and unlock keys, check the password key functions, convenient operation, high reliability.

Key words: Entrance guard system;STC89C52;Combination lock

目 录

摘要......................................................................................................................................................................I

Abstract...............................................................................................................................................................II

  1. 引言......................................................................................................................................................1

1.1 课题研究的意义与重点.....................................................................................................................1

1.2 自动门禁系统的实现方式.................................................................................................................2

1.3 门禁系统的应用................................................................................................................................4

  1. 系统硬件设计......................................................................................................................................5

2.1 系统原理及框图.................................................................................................................................5

2.2 STC89C52单片机介绍......................................................................................................................6

2.3 矩阵键盘.............................................................................................................................................7

2.3.1 矩阵键盘的结构与工作原理..................................................................................................7

2.3.2 矩阵键盘各按键的功能..........................................................................................................8

2.4 LCD1602液晶显示屏........................................................................................................................8

2.4.1 LCD1602简介.........................................................................................................................9

2.4.2 LCD1602字符显示地址.........................................................................................................9

2.4.3 仿真电路图............................................................................................................................10

2.5 GSM手机模块TC35........................................................................................................................11

2.6 报警模块...........................................................................................................................................11

  1. 系统软件设计....................................................................................................................................13

3.1 程序描述...........................................................................................................................................13

3.2 程序流程图.......................................................................................................................................13

3.2.1 主程序流程图........................................................................................................................13

3.2.2 矩阵键盘程序流程图............................................................................................................14

  1. 程序....................................................................................................................................................15

4.1 程序调试用到的软件.......................................................................................................................15

4.2 KEIL C51简介.................................................................................................................................15

4.3 调试过程...........................................................................................................................................15

第五章 结束语................................................................................................................................................16

致 谢............................................................................................................................................................17

参考文献(References).......................................................................................................................................18

附 录............................................................................................................................................................19

剩余内容已隐藏,请支付后下载全文,论文总字数:27344字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;