天津**大学2014届本科生毕业设计论文
天津**大学有问题可以
企鹅号1366715589
毕业设计(论文)
题目:交通灯控制系统设计
姓 名 学 院 电子与信息工程学院 专 业 电子信息工程 指导教师 职 称 副教授
2014 年 5月10 日
天津**大学2014届本科生毕业设计论文
摘 要
随着科技与经济的飞速发展,城市机动车辆与日俱增,城市交通问题越来越引起人们的关注,人、车、路之间的关系的协调成为必须面临及解决的重要问题。
城市交通控制系统是城市交通数据监测、交通信号灯控制与交通疏导的计算机综合管理系统,它是现代城市交通监控指挥系统中最重要的组成部分。然而,随着城市交通量的迅速增长和高速道路的系统研究和控制的缺乏,有些道路出现出现超负荷运行的情况。因此,如何采用合适的交通控制方法,最大限度利用修建的城市道路,缓解主干道与匝道、城区同周边地区的交通拥堵状况。为此,进行了深入的研究,
在车辆通行繁忙的十字路口要实现有条不紊的行车秩序,这就要采用有效的交通信号灯控制系统。交通信号灯控制方式很多。本系统采用 51系列单片机STC89C52和可编程并行I/O接口芯片89C52为中心器件来设计交通灯控制器,实现了十字路口红黄绿灯交替运行,并对放行和禁行时间进行倒计时显示,本系统实用性强、操作简单、扩展功能强。
关键词:单片机;STC89C52;红绿灯
天津**大学2014届本科生毕业设计论文
Abstract
With the rapid development of science and economy, city motor vehicles increasing, city traffic problems caused by more and more people's attention, coordinate the relationship between human, vehicle, road is a must to face and solve important problems.
City traffic control system is a city traffic data monitoring, traffic signal control and traffic management computer system, it is the most important part of the modern city traffic control system. However, with the rapid growth of city traffic and high speed road and control, some roads appear overload situation. Therefore, how to use the appropriate method of traffic control, the maximum utilization of city road construction, ease traffic jams situation with the surrounding area of the main road and the ramp, the city. Therefore, in-depth study,
In vehicle traffic busy crossroads traffic order to achieve everything in good order and well arranged, this will be the traffic signal lamp control system. A lot of traffic signal control. The system adopts 51 Series MCU STC89C51 and programmable parallel I/O interface chip 89C52 centric devices to design the traffic light controller, realized the crossroads red yellow green light alternately, and the release and the forbidden time countdown display, the system practical, simple operation, strong function expansion.
Keyword: MCU; STC89C52; traffic lights
天津**大学2014届本科生毕业设计论文
目 录
第一章 绪论 ............................................. 1
1.1交通灯的背景与设计意义 ........................................ 1
1.1.1交通灯的背景 ............................................. 1 1.1.2设计意义 ................................................. 1 1.2设计的目的 .................................................... 1 1.3交通灯国内外发展现状 .......................................... 2 1.4交通灯的功能与作用 ............................................ 2
第二章 系统总体方案设计 ................................. 4
2.1交通灯控制系统设计方案 ........................................ 4 2.2交通灯控制系统的功能描述 ...................................... 5
2.2.1倒计时显示 ............................................... 5 2.2.2车流量的检测与调整 ....................................... 6 2.3交通灯控制系统的基本构成及原理 ................................ 6
第三章 系统硬件设计 ..................................... 8
3.1单片机简介及其外围电路 ........................................ 8
3.1.1单片机型号选择及简介 ..................................... 8 3.1.2单片机最小系统电路 ...................................... 10 3.2系统硬件电路构成 ............................................. 11 3.3系统工作原理及电路图 ......................................... 12 3.4信号灯显示模块 ............................................... 13 3.5倒计时显示模块 ............................................... 14 3.6车流量检测控制模块 ........................................... 16
第四章 软件设计 ........................................ 17
4.1主程序流程图 ................................................. 17 4.2红绿黄灯相互转换流程图 ....................................... 20 4.3车流量检测流程图 ............................................. 23
第五章 调试及性能分析 ................................... 25
天津**大学2014届本科生毕业设计论文
5.1红绿黄交通灯控制调试 ......................................... 25 5.2车流量检测调试 ............................................... 25 5.3STC89C52调试及性能分析 ....................................... 25 5.4分析总结 ..................................................... 26
结 论 .................................................. 27 参考文献 ................................................ 28 附 录 .................................................. 29 谢 辞 .................................................. 58