摘 要
由于近年来汽车数量的增加,为了使司机能够方便快捷地找到停车场的停车位,本文设计了一个模拟停车场停车位管理和终端显示系统.以STC89C52单片机为核心,采用红外辐射开关实时监控停车车辆.结合RFID射频识别技术,构建智能停车场管理平台,同时通过蓝牙完成停车位信息的无线传输.本系统实现了即时计算可停放车辆数量并显示有效停车位的功能.运行和测试后,系统运行稳定,功耗低,非常实用.
本系统由STC89C52单片机工作电路模块,红外对管传感器检测块,LCD1602液晶显示电路模块,LED指示灯电路和电源电路组成.通过红外对管模块实时检测车位是否占用,然后51单片机根据红外线对管的检测状态发送给液晶显示器,液晶显示器接收到单片机的信息,实时显示车位是否被占用,车位被占用数,空车位数,显示车位的停车费用,并有状态指示灯指示那些车位是否已停车,给车主提供一个高效便捷的停车环境的同时也能提高整个停车场的利用率.
关键词:STC89C52;单片机;模拟记录;流量统计;LCD1602
Abstract
Due to the increase in the number of cars in recent years, in order to enable drivers to easily find the parking space, this paper designed a simulated parking space management and terminal display system. With the STC89C52 single-chip machine as the core, the infrared radiation switch is used to monitor the parking vehicles in real time. Combined with RFID radio frequency identification technology, an intelligent parking lot management platform is built, and the wireless transmission of parking space information is completed through Bluetooth. This system enables the function of instantly calculating the number of parking vehicles and displaying an effective parking space. After running and testing, the system is stable, low power consumption and very practical.
The system consists of STC89C52 single chip working circuit module, infrared pair sensor detection block, LCD1602 LCD circuit module, LED indicator circuit and power supply circuit. Through the infrared pipe module real-time detection whether the car is occupied, and then 51 single chip according to the infrared pipe detection state sent to the LCD monitor, LCD monitor received single chip information, real-time display whether parking space is occupied, parking space occupied, empty parking number, display parking fee, and status indicator indicates whether the parking space has stopped, to provide owners with an efficient and convenient parking environment but also can improve the utilization rate of the whole parking lot.
Key words: STC89C52; MCU; simulation record; flow statistics; LCD1602
目录
摘 要 I
Abstract II
第一章 绪论 1
1.1研究的背景及意义 1
1.2系统概述 2
第二章 系统方案设计 2
2.1电源模块的设计 3
2.2传感器的选择 3
2.3主芯片的的选取 3
第三章 硬件电路设计 4
3.1微处理器电路模块 4
3.2显示模块 5
3.2.1液晶简介 6
3.2.2指令说明 6
3.2.3显示电路原理图 7
3.3报警部分 7
3.4停车位模拟停车模块 8
第四章 软件程序设计 9
4.1主程序设计 9
4.2倒计时中断程序设计 10
4.3键盘中断程序设计 11
4.3.1增加键 11
4.3.2减少键 12
第五章 系统分析与调试 13
5.1 keil运行图 13
5.2 proteus仿真图 13
5.3实物图 14
第六章 成果总结 15
结束语 16
参考文献 17
附 录 18
主程序 18
Lcd显示函数 22