摘 要
随着国内汽车在道路上越来越多,而传统的汽车监测技术各有优缺点,本次设计专门针对提高对道路上汽车监测的准确性和可靠性,而进行的一次汽车道路监测系统设计。在本次的道路车辆流量检测的开发设计中,主控芯片采用一款8位单片机STC89C52,设计单片机最小系统电路,蜂鸣器电路以及键盘电路,红外线反射电路、LCD显示电路来完成整体系统的硬件设计。其中单片机最小系统完成单片机程序运行的基础;蜂鸣器电路的设计是完成警报任务的;键盘电路是完成车辆安全距离壁障功能距离的设定,LCD显示器用于显示车辆避障的实时数据。利用红外线发射的原理来统计车辆的数量。软件是通过C语言程序设计来完成整个只能避障的工作的。通过红外线实时测量传输数据,具有较高的安全性,并且系统设置了车流量安全预警功能。本设计成本低廉,功能实用。
关键词:车流量检测;STC89C52;警报
Abstract
As more and more domestic cars on the road, and the traditional auto monitoring technology each have advantages and disadvantages, this design specifically for improving the accuracy and reliability of the cars on the road monitoring, and for a car of the road monitoring system design.In the maintenance of engineering machinery development of electrical system of intelligent obstacle avoidance design, the main control chip using a 8-bit microcontroller STC89C52, single chip microcomputer minimum system circuit design, buzzer circuit and keyboard circuit, infrared reflection circuit, LCD display circuit to complete the system hardware design. The single chip microcomputer minimum system to accomplish the foundation of the single-chip microcomputer program is running, Buzzer alarm task is the design of the circuit; Keyboard circuit is complete vehicle safety distance walls function distance setting, LCD is used to display real-time data for vehicle obstacle avoidance. Software is accomplished by C language programming the only obstacle avoidance. Measured by infrared real-time data transmission, with high security, and the system set up user security warning distance. The design cost is low, function and practical.
目录
第一章 引言……………………………………………………………………………………………. 4
1.1 选题背景…………………………………………………………………………………… 4
1.2 课题的目的和意义……………………………………………………………………… 4
1.3设计的目标…………………………………………………………………………………. 4
第二章 系统设计方案……………………………………………………………………………… 4
第三章 系统模块选型……………………………………………………………………………… 4
3.1距离传感器选型………………………………………………………………………….. 4
3.1.1 遥控指令编码规律……………………………………………………………. 4
3.1.2 数据的脉冲编码……………………………………………………………….. 4
3.2 显示器选型………………………………………………………………………………… 4
3.3单片机的选型……………………………………………………………………………… 4
第四章 硬件实现及单元电路设计……………………………………………………………. 4
4.1 显示器选择………………………………………………………………………………… 4
4.1.1 LCD1602与单片机连接……………………………………………………. 4
4.1.2 LCD1602与单片机安装方法…………………………………………….. 4
4.2传感器选择…………………………………………………………………………………. 4
4.2.1红外线传感器电路…………………………………………………………….. 4
4.2.2红外线传感器安装…………………………………………………………….. 4
4.3 晶振电路……………………………………………………………………………………. 4
4.3.1 晶振电路安装…………………………………………………………………… 4
4.4 复位电路……………………………………………………………………………………. 4
4.4.1 复位电路安装…………………………………………………………………… 4
4.5 按键控制电路…………………………………………………………………………….. 4
4.5.1 按键安装………………………………………………………………………….. 4
第五章 主程序设计…………………………………………………………………………………. 4
第六章 结论……………………………………………………………………………………………. 4
第七章 致谢……………………………………………………………………………………………. 4
参考文献…………………………………………………………………………………………………. 4