基于STC89C52的停车场车位管理系统仿真设计 毕业论文+仿真电路文件+程序代码
摘 要由于近年来汽车数量的增加,为了使司机能够方便快捷地找到停车场的停车位,本文设计了一个模拟停车场停车位管理和终端显示系统.以STC89C52单片机为核心,采用红外辐射开关实时监控停车车辆.结合RFID射频识别技术,构建智能停车场管理平台,同时通过蓝牙完成停车位信息的无线传输.本系统实现了即时计算可停放车辆数量并显示有效停车位的功能.运行和测试后,系统运行稳定,功耗低,非常实用.本系统由STC89C52单片机工作电路模块,红外对管传感器检测块,LCD1602液晶显示电路模块,LED指示灯电路和电源电路组成.通过红外对管模块实时检测车位是否占用,然后51单片机根据红外线对管的检测状态发送给液晶显示器,液晶显示器接收到单片机的信息,实时显示车位是否被占用,车位被占用数,空车位数,显示车位的停车费用,并有状态指示灯指示那些车位是否已停车,给车主提供一个高效便捷的停车环境的同时也能提高整个停车场的利用率.关键词:STC89C52;单片机;模拟记录;流量统计;LCD1602AbstractDue 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目录摘 要 IAbstract II第一章 绪论 11.1研究的背景及意义 11.2系统概述 2第二章 系统方案设计 22.1电源模块的设计 32.2传感器的选择 32.3主芯片的的选取 3第三章 硬件电路设计 43.1微处理器电路模块 43.2显示模块 53.2.1液晶简介 63.2.2指令说明 63.2.3显示电路原理图 73.3报警部分 73.4停车位模拟停车模块 8第四章 软件程序设计 94.1主程序设计 94.2倒计时中断程序设计 104.3键盘中断程序设计 114.3.1增加键 114.3.2减少键 12第五章 系统分析与调试 135.1 keil运行图 135.2 proteus仿真图 135.3实物图 14第六章 成果总结 15结束语 16参考文献 17附 录 18主程序 18Lcd显示函数 22