毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485

上传人:re****.1 文档编号:512117380 上传时间:2023-07-21 格式:DOC 页数:33 大小:264.50KB
返回 下载 相关 举报
毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485_第1页
第1页 / 共33页
毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485_第2页
第2页 / 共33页
毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485_第3页
第3页 / 共33页
毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485_第4页
第4页 / 共33页
毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485_第5页
第5页 / 共33页
点击查看更多>>
资源描述

《毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485》由会员分享,可在线阅读,更多相关《毕业论文基于AT89S51单片机的城市交通灯控制系统设计22485(33页珍藏版)》请在金锄头文库上搜索。

1、摘 要城市交通信号控制是通过对交通流量的调节以达到改善人和货物的安全运输,提高运营效率。交通系统是一个具有随机性、模糊性和不确定性的复杂系统,建立数学模型非常困难,有时甚至无法用现有的数学方法加以描述。目前大多采用的是自适应信号控制,它需要数学建模,且不考虑交通延误、停车次数等。所以经典控制法很难得到满意的效果。而模糊控制是一种无须建立数学模型的控制方法,它能模仿有经验的交警指挥交通时的思路,达到很好的控制效果。近些年来我国的许多学者也都以不同的思路对单个交叉口、交通干线的模糊控制进行了研究,但因研究的局限性,实际中得到应用的寥寥无几,本文实现基于PLC的交通信号的控制系统。 根据前后相流量来

2、决定信号灯配时的模糊控制系统的理论研究成果,用PLC实现单个十字路口交通信号灯模糊控制的方法,以单个十字路口4相位交通灯为例,把PLC作为一个模糊控制器,采用梯形图编程。通过实验保证了系统运行稳定可靠,能根据不同的交通流量进行模糊控制决策,优化信号灯的配时,从而可以有效的解决交通流量不均衡、不稳定带来的问题。近年来随着科技的飞速发展,一个以微电子技术、计算机技术和通信技术为先导的信息革命正在蓬勃发展。计算机技术作为三者之一,怎样与实际应用更有效的结合并发挥其作用。单片机作为计算机技术的一个分支,正在不断的应用到实际生活中,同时带动传统控制检测的更新。在实时检测和自动控制的应用系统中,单片机往往

3、是作为一个核心部件使用,针对具体应用对象的特点,配以其它器件来加以完善。靠的是交通信号灯的自动指挥系统,来实现交通的井然有序。交通信号灯控制方式很多。本系统采用美国ATMEL公司生产的单片机AT89S51,以及其它芯片来设计交通灯控制。实现了通过AT89S51芯片的P1口设置红、绿灯点亮的功能,通过AT89S51芯片的RXD、TXD输入、输出设置显示时间。交通灯的点亮采用发光二极管实现,时间的显示采用七段数码管实现。单片机系统采用的直流供电。为了系统稳定可靠,系统内集成了“看门狗”芯片,避免了系统因为死机而停止工作的情况发生。系统实用性强、操作简单、扩展性好。关键词: 交通灯 PLC 智能控制

4、AbstractCity traffic signal control is through the adjustment of the traffic flow in order to improve the safety of transport of people and goods, improve operational efficiency. Transport system is a random, fuzzy and uncertainty of complex systems, it is difficult to build mathematical model, some

5、times impossible to use existing mathematical methods described. At present most adaptive signal control is used, it needs mathematical model, without considering traffic delays, number of stops. So the classical control method is very difficult to get a satisfied effect. Fuzzy control is a kind of

6、does not need to establish the mathematical model to control methods, it can imitate experienced police directing traffic, ideas, achieve good control results. In recent years, many Chinese scholars have different ideas of fuzzy control to the traffic single intersection, were studied, but because o

7、f the limitations of the research, application of scanty practice, the implementation of traffic signal control system based on PLC.Decision fuzzy signal control system theory research results according to the method and flow, using PLC to achieve a single traffic lights at the crossroads of fuzzy c

8、ontrol, the single crossroads 4 phase of traffic lights, for example, the PLC as a fuzzy controller, using ladder programming. Through the experiment to ensure the reliable operation of the system, can be fuzzy control decision according to the different traffic flow, optimize signal distribution, w

9、hich can effectively solve traffic imbalance, instability problems.In recent years, with the rapid development of science and technology, a microelectronics technology, computer technology and communication technology as the forerunner of the information revolution is booming. As one of the three co

10、mputer technology, combined with practical application more effective and play its role. Single chip microcomputer as a branch of computer technology, has been applied to real life, and promote the traditional control detection update. In real-time detection and automatic control system, SCM is ofte

11、n used as a core component, according to the characteristics of the specific application object, match with other devices to be perfect. Relying on the automatic command system of traffic signal lamp, traffic in order to achieve. A lot of traffic signal control. This system uses the American ATMEL c

12、ompany AT89S51 microcontroller, and other chip to design the control of traffic lights. Through the implementation of the AT89S51 chip set P1 mouth red, green light function, through the AT89S51 chip RXD, TXD input, output is set to display the time. Traffic lights lit by the light emitting diode, t

13、he time display using seven digital tube. DC power supply used in SCM system. In order to the system is stable and reliable, the system integrates watchdog chip, to avoid the system crashed and stop work because of the situation. The system practical, simple operation, good scalability.Key words:The

14、 traffic lights PLC intelligent control 目 录摘 要IABSTRACTII1 引言12 交通管理方案论证22.1 设计任务22.2 方案介绍23 交通灯系统硬件设计53.1 单片机概述53.2 系统构成53.3芯片选择与介绍64 交通灯软件设计114.1 程序设计流程图114.2延时的设定134.3 程序的主控制循环调用154.4 对现有程序的扩充155实验平台175.1实验平台175.2实验步骤17结 论19致 谢20参考文献21附 录221 引 言今天,红绿灯安装在各个道口上,已经成为疏导交通车辆最常见和最有效的手段。但这一技术在19世纪就已出现了。

15、1858年,在英国伦敦主要街头安装了以燃煤气为光源的红,蓝两色的机械扳手式信号灯,用以指挥马车通行。这是世界上最早的交通信号灯。1868年,英国机械工程师纳伊特在伦敦威斯敏斯特区的议会大厦前的广场上,安装了世界上最早的煤气红绿灯。它由红绿两块以旋转式方形玻璃提灯组成,红色表示“停止”,绿色表示“注意”。1869年1月2日,煤气灯爆炸,使警察受伤,遂被取消。1914年,电气启动的红绿灯出现在美国。这种红绿灯由红绿黄三色圆形的投光器组成,安装在纽约市5号大街的一座高塔上。红灯亮表示“停止”,绿灯亮表示“通行”。1918年,又出现了带控制的红绿灯和红外线红绿灯。带控制的红绿灯,一种是把压力探测器安在

16、地下,当车辆接近时,红灯便变为绿灯;另一种是用扩音器来启动红绿灯,司机遇红灯时按一下喇叭,就使红灯变为绿灯。红外线红绿灯当行人踏上对压力敏感的路面时,它就能察觉到有人要过马路。红外光束能把信号灯的红灯延长一段时间,推迟汽车放行,以免发生交通事故。信号灯的出现,使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。1968年,联合国道路交通和道路标志信号协定对各种信号灯的含义作了规定。绿灯是通行信号,面对绿灯的车辆可以直行,左转弯和右转弯,除非另一种标志禁止某一种转向。左右转弯车辆都必须让合法地正在路口内行驶的车辆和过人行横道的行人优先通行。红灯是禁行信号,面对红灯的车辆必须在交叉路口的停车线后停车。黄灯是警告信号,面对黄灯的车辆不能越过停车线,但车辆已十分接近停车线而不能安全停车时可以进入交叉路口。随着经济的发

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 基础医学

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号