道闸系统设计(控制软件部分)毕业论文
2022-06-05 21:54:03
论文总字数:44663字
摘 要
道闸系统是用来管理车辆出入的系统。近年来随着社会的进步,道闸系统市场需求量大,应用非常广泛,对道闸系统的研究设计颇为必要。
目前的道闸系统有基于生物识别方式、密码识别方式和卡片识别方式三种类型。非接触性IC卡与读卡器之间是通过无线电波来完成读写操作,它可靠性高、操作方便、加密性能好。本文设计了一个基于卡片识别方式的道闸系统。
本文阐述了道闸系统的整体结构,设计了各个模块和主控程序的设计方案。方案包括显示模块、步进电机模块、刷卡模块等部分。采用了分模块设计的方法,先进行了主函数的设计,再对各个模块程序进行设计。AT89C52单片机作为整个系统的控制核心,控制外围电路协调工作,实现了对该小区车辆的通行和记录功能。为了避免卡片识别方式出现故障时车辆无法进出的现象,该系统设置了手动控制和无线遥控控制两种方式。本文细致描述了道闸系统的工作原理和软件程序的设计过程。
整个系统的控制程序结构明晰,在道闸系统中能够正常运行。经实际测试证明,该程序能够满足系统所要求的功能。
关键词:AT89C52 门禁系统 步进电机 非接触式IC卡 停车场
The Design of the Barrier System (Software Control Section)
Abstract
Barrier systems are systems which are used to manage vehicles’ access. In recent years, with the progress of society, barrier systems market demand is great, the application is very extensive, systematic study and design the barrier design are quite necessary.
There are three types of barrier systems based on biometrics, passwords and card. The card and card reader through radio waves to complete the read and write operation. It has high reliability and good encryption performance .It can be easily operated. We have designed a barrier system which is based card identification.
This paper describes the overall structure of the barrier system. The system includes a display module, stepper motor module, a card module. The method uses a sub-module design, the first for the design of the main function, and then each module program design. AT89C52 microcontroller controls the peripheral circuit coordination as the core of the system. It achieved the passage of the cell vehicle and recording functions. In order to avoid the phenomenon that vehicles can not pass when a failure of card identification occurs, the system sets two control modes :the manual control and wireless control. This paper describes the operating principle of the barrier system and the design process of the software program in detail.
The structure of the control program is clear in the entire system .It can run well on the barrier system. The practical test proves that the program can meet the program meet the requirements of the system.
Key Words : SCM;AT89C52; Barrier System; Motor; Noncontact IC card; Parking lot
目录
摘 要 I
Abstract II
第一章 绪论 1
1.1道闸系统简介 1
1.2 道闸系统的发展 2
1.3研究内容 4
1.4 本论文内容安排 4
第二章 道闸系统的方案设计 6
2.1 系统功能介绍 6
2.2. 硬件方案 7
2.3 软件方案 11
2.4 系统软件流图 13
第三章 道闸系统软件设计 16
3.1 程序设计中可能遇到的问题 16
3.2主程序设计 17
3.2.1 主程序编程思路 17
3.2.2 主程序流程图 17
3.3 显示模块设计 20
3.3.1 编程思路 20
3.3.2 程序流程图 21
3.4 步进电机模块设计 23
3.4.1 编程思路 23
3.4.2 程序流程图 23
3.5读卡模块设计 25
3.5.1编程思路 25
3.5.2 程序流程图 26
3.6 其他模块设计 27
第四章 软硬件联调 32
4.1软硬件联调注意事项 32
4.2步进电机模块调试 33
4.3 LCD1602模块调试 35
4.4 红外对射模块调试 39
4.5 整体调试 41
第五章 总结与展望 43
参考文献 45
致 谢 47
附录1 硬件原理图 48
1 显示模块硬件原理图 48
2 步进电机模块原理图 49
3 无线遥控模块原理图 49
4 单片机系统原理图 50
5 红外对射模块原理图 51
附录2 实物图 52
附录3 源程序 53
请支付后下载全文,论文总字数:44663字