文档介绍:四川理工学院毕业设计(论文)
基于单片机的门禁系统设计
学生:林风
学号:08021040325
专业:电气工程及其自动化
班级:
指导教师:方宁
四川理工学院自动化与电子信息学院
二O一二年六月
摘要
针对日常生活中小区住宅的安全防范,一般的门锁使用极不方便,为满足人们对门锁的使用需求,增加其安全性,基于单片机的门禁系统应运而生。本设计采用单片机AT89S51作为主控中心,以键盘密码的输入方式实现对门的出入控制,或者通过键盘输入门号的方式,进行对讲方式住户实现开门。适用于普通小区单元楼的进入控制,该系统可实现密码输入开门、语音对讲开门、密码修改、报警和锁定键盘等功能,同时该门禁系统还具有设计方法合理,简单易行,成本低,安全实用等特点,符合一般小区的使用需求,具有推广价值。
关键词: 门禁系统;密码锁;AT89S51;4×4矩阵键盘
ABSTRACT
Contrary to the security for the daily life of the residential district, generally locks is not that convenient to use. In order to meet the users' needs about the security of the a microcontroller-based Access Control System control system came into being. This design based on a microcontroller AT89S51 which works as the control center, keyboard password input achieved the door access control, or by way of keyboard inputing numbers,and way households the door. Applicable to ordinary residential unit building access system can achieve password enter the door, voice to open the door, password changes, the alarm and lock the keyboard and other the access control system also has a rational design method which is so simple, low cost,so safety and with many practical features,which can meet the general needs of the district, also is worth promoting.
Key words: entrance guard system; Combination lock; AT89S51; 4 x 4 matrix keyboard
目录
摘要 I
ABSTRACT II
第1章前言 1
门禁系统的定义 1
门禁系统的发展现状和趋势 2
门禁系统的背景以及研究目的和意义 3
门禁系统研究的主要内容 4
总体设计方案选定 4
门禁系统单片机硬件资源的分配 6
第2章系统的硬件设计 7
单片机最小系统设计 7
AT89S51简介 7
单片机晶振电路 9
单片机复位电路 9
键盘电路 10
显示电路 11
数码管简介 11
驱动芯片简介 12
显示电路设计 13
语音电路 14
MC34118的简介 14
语音电路设计 17
***电路 18
报警电路 19
掉电密码保护 20
AT24C02存储芯片简介 20
掉电密码保护设电路计 21
第3章系统的软件设计 22
系统的总体软件流程 22
各部分的功能实现程序设计 24
初始化程序 24
键盘扫描子程序 24
密码比较和报警程序 26
密码更改程序 27
数码管显示部分驱动程序 28
单片机通讯程序 28