基于单片机智能门禁系统毕业设计 联系客服

发布时间 : 星期一 文章基于单片机智能门禁系统毕业设计更新完毕开始阅读b81a79bdcd22bcd126fff705cc17552706225e73

河南科技大学毕业设计(论文)

摘 要

门禁系统采用89S52 单片机作为控制核心,外围加蜂鸣器控制电路、开门指示灯电路、电控锁控制电路以及8位数码管显示电路等。门禁系统主要组成:由CPU、复位电路、电源指示、工作指示、振荡电路、蜂鸣器电路、门控锁电路、出门按钮、读卡模块、显示模块等组成。采用射频卡完成刷卡进门,按钮出门功能。其门禁系统的工作原理:当刷卡时,蜂鸣器响一下,如卡权限获得允许,显示模块显示卡号,同时继电器动作将门锁打开,指示灯点亮,延时一段时间后继电器再次动作将门锁锁闭,指示灯熄灭。当按下出门按钮时,继电器动作将门锁打开,指示灯点亮,延时一段时间后继电器再次动作将门锁锁闭,指示灯熄灭。程序中增加了射频卡权限判断,当遇到合法卡时显示卡号,门锁打开,延时10s自动关闭,非法卡不显示卡号门锁不开。本系统设计简单、性能优良,具有一定的实用性。

关键词:门禁;电控锁;控制

I

河南科技大学毕业设计(论文)

Intelligent access Control System

ABSTRACT

Access control system with 89S52 microcontroller as control core, peripheral and buzzer control circuit, door led circuit, electronically controlled locking control circuits, as well as 8-bit digital display circuit. Access control system components: by the CPU, reset circuit, power indicates, work instructions, oscillating circuit, buzzer circuit, door locking circuit, go button, the card module, display module, etc. RF card to complete the credit card button go out the door. Its access control system works: when you swipe your card, buzzer, such as card access permission, display module displays the card number and relay the door open, light is lit, the delay for a period of time after the relay will lock lock again to action, led is off. When you press the go button, the relay opens the door, light is lit, the delay for a period of time after the relay will lock lock again to action, led is off. Radio frequency card program to increase the competence to judge, when faced with legitimate card display card number, door open, self-closing delay 10s, illegal card does not show card number lock does not open. The system is simple, excellent performance, has some relevance.

KEY WORDS: Access control; Electric Lock; control

II

河南科技大学毕业设计(论文)

目 录

前 言 ................................................................................................ 1 第1章 系统设计 ............................................................................... 2

1.1系统方案的比较 .................................................................... 2

1.1.1选题论证 ...................................................................... 2 1.1.2方案选择 ...................................................................... 3 1.2 CPU的选择 ........................................................................... 4 1.3关于卡的选择 ........................................................................ 4 第2章 硬件电路的设计 ................................................................... 5

2.1基本原理 ................................................................................ 5 2.2资源分配 ................................................................................ 5 2.3最小系统设计 ........................................................................ 6 2.4各部分电路原理 .................................................................... 8

2.4.1 门控锁电路 ................................................................. 8 2.4.2 蜂鸣器电路 ................................................................. 9 2.4.3 控制工作指示灯 ....................................................... 10 2.4.4 出门按钮 ................................................................... 11 2.4.5 读卡模块 ................................................................... 12 2.4.6 显示模块 ................................................................... 16

第3章 设计方案的分析 ................................................................. 17

3.1中断系统 .............................................................................. 17 3.2方案的作用 .......................................................................... 18 3.3方案的优越性 ...................................................................... 19 第4章 软件设计 ............................................................................. 20

4.1 流程图 ................................................................................ 21 4.2 子程序分析 ......................................................................... 23

4.2.1显示程序 .................................................................... 23 4.2.2延时程序 .................................................................... 24

结 论 .............................................................................................. 26 谢 辞 ................................................................................................ 27

III

河南科技大学毕业设计(论文)

参考文献 .......................................................................................... 28 附 录 .............................................................................................. 29

1.元件清单 ................................................................................ 29 2.原理图 .................................................................................... 30 3.程序清单 ................................................................................ 31 外文资料翻译 .................................................................................. 39

IV