资源描述
无锡城市职业技术学院
中文题目 交通十字路口红绿灯控制系统
英文题目Traffic crossroads traffic light control
system
姓 名
所在系部 电子信息工程系
所学专业 电气自动化
班级名称 自动化6980
学 号
指导教师
日 期 2015年05月 6日
目录
摘要 3
Abstract 4
一、引言 5
二、设计功能与运行要求 5
(一)十字路口交通灯控制实际情况 5
(二)交通灯变化顺序表 5
(三)结合十字路口交通灯实际情况设计交通灯模拟控制系统 6
1.正常模式 6
2.车流较大模式 6
3.紧急情况处理 6
三、硬件设计 6
(一)传感器选择 6
(二)可编程控制器的选择 7
(三)I/0端口分配 7
(三)I/0端口接线图 7
四、软件设计 10
(一)交通灯流程图设计 10
1. 10
2. 10
3. 10
(二)梯形图设计 10
1. 10
2. 10
3. 10
五、结论 13
致谢 14
参考文献 15
附录 16
摘 要
摘要:随着信息技术和半导体工业的发展,基于各种检测技术、计算机技术、电子技术与术的智能交通系统成为了改善当前恶劣交通状况的有效手段。系统的设计中,主要使用了PLC可编程序控制器和传感器相结合的一种智能控制方法,使用压轴式传感器采集车辆脉冲,用PLC高速计数器对脉冲进行计数,本文使用了FX2N系列家族最为先进的可编程控制器.根据取得的数据运用一定的智能控制原则自动调节红绿灯的时间长度,最大限度地减少车辆停留现象,较好地解决了车流量不均衡、不稳定问题。
关键词:交通灯;可编程控制器;PLC;FX2N
Abstract
Abstract: with the development of information technology and semiconductor industry, intelligent transportation system based on a variety of detection technology, computer technology, electronic technology and operation has become the effective means to improve the current poor traffic conditions. The design of the system, the main use of an intelligent control method of PLC programmable controller and sensor combination, the use of the finale collection vehicle pulse sensor, count the number of pulses in PLC high speed counter, this paper uses FX2N series family of the programmable controller is advanced. Based on the length of time the control principle of automatic adjustment of the red green data obtained use of certain intelligence, minimizing the vehicle stop phenomenon, solve traffic imbalance, instability.
Keywords:traffic light; programmable logic controller; PLC; FX2N一、引言
进入第二十一世纪以来,随着工业的发展和生活便利性的需求越来越高,越来越多的汽车尤其是私家车的数量。交通问题越来越严重,到处都是交通堵塞,虽然道路建设在一定程度上,缓解交通压力,但由于土地资源有限,是不能从根本上解决问题。因此交通科学和智能化管理已成为提高交通条件目前的重要切入点。
目前,有许多交通灯的设计方案,利用PLC实现对交通灯控制系统设计中的应用;设计与实现方法,一个交通信号灯的单片机的应用。目前,国内的交通灯通常位于十字路口,醒目位置上红色的,绿色的,黄色的三种颜色指示灯。随着最后的倒计时显示控制交通流量。在一般情况下安全驾驶,交通可以发挥作用,但实际驾驶过程中,有许多缺点:1两车道的车辆转向释放的时间相同,在十字路口,经常一条主要道路,许多车辆,释放时间应该更长;其他车道为道路旁,车辆较少的时间要短,释放。2两条道路的红绿灯时间不能随着时间的改变而修改。
交通信号灯的出现,交通得到缓解,对于交通通行流量,提高道路通行能力,减少交通事故有很好的效果。为了实现交通管理,力求先进科学。随着交通灯控制系统实现了可编程控制器的控制,以及系统软件,硬件设计方法,实验证明该系统实现简单,经济,有效缓解交通拥堵,提高交通容量。结合交通的实际情况阐述了交通灯控制系统的工作原理,给出了一种简单实用的城市交通灯控制系统的PLC设计在工业自动化的可编程控制器是非常重要的,在各个行业的广泛应用。随着科学技术的发展,可编程控制器日益得到完善,加上小,价格低,可靠性高,在现代工业中的作用更加突出了。
交通信号灯的设置在交通路口可以有效清除,为交通参与者的安全的有力保障。但随着社会的快速发展,经济,交通灯,原有的控制系统已不能适应当前的交通状况。如何改善交通灯控制系统,可以适应目前的交通状况,成为一个研究课题。
二、设计功能与运行要求
(一)十字路口交通灯控制实际情况
南北人行道,绿灯亮24S,绿灯闪3S,红灯亮69S。
东西主干道,红亮40S,直行绿灯亮24S,直行绿灯闪3S,黄灯亮2S。
南北主干道,直行绿灯亮24S,直行绿灯闪3S,黄灯亮2S,红灯亮40S。东西人行道红灯亮40S,绿灯亮24S,绿灯闪3S,红灯亮69S。
(二)交通灯变化顺序表
1. 南北和东西人行道均设有通行红绿灯。南北人行道通行绿灯应在南北主干道直行绿灯点亮时点亮,当南北主干道直行绿灯闪亮时南北行人道绿灯也要对应闪亮,其它时间为红灯。东西人行道通行绿灯于东西主干道直行绿灯点亮时点亮,当东西主干道直行绿灯闪亮是东西行人道绿灯也要对应闪亮,其它时间为红灯。
2.十字路口交通灯模拟控制系统
在PLC交通灯模拟模块中,主干道东西南北每面都有3个控制灯,分别为:
● 通行灯 (亮时为绿色) ● 准备禁止通行灯 (亮时为黄色) ●禁止通行灯 (亮时为红色) 另外行人道东西南北每面都有2个控制灯,分别为: ● 通行灯 (亮时为绿色) ●禁止直通灯 (亮时为红色)
(三)结合十字路口交通灯实际情况设计交通灯模拟控制系统
当交通灯系统启动开关接通时。
2.1南北向和东西向主干道均设有绿灯亮8S,绿灯闪亮3S,黄灯亮2S和红灯亮15S。当南北主干道红灯点亮时,东西主干道应依次点亮绿灯,绿灯闪亮,黄灯,同理,与其相反的是当东西主干道红灯点亮时,南北主干道依次点亮绿灯,绿灯闪,黄灯
2.2东西向南北向人行道都设为禁止红灯和通行绿灯。南北人行道通行绿灯应在南北主干道绿灯点亮时点亮,当南北主干道绿灯闪亮和黄灯点亮时南北行人道绿灯也要对应闪亮,其它时间为红灯。东西行人道通行绿灯于东西主干道绿灯点亮是点亮,当东西主干道绿灯闪亮和黄灯点亮时东西行人道绿灯也要对应闪亮,其它时间为红灯。
2.3异常交通路口的现象通常是指正常的交通信号控制不能与实际交通情况一致。在现实生活中,交通太多方向的车辆堵塞,而车辆南北方向是非常稀缺的,那么正常的交通信号配时控制会使实际的交通状况。为了解决这个问题,你可以使用一个可以基于车流量自适应控制的交通信号控制系统。控制系统的车流量检测是通过检测器来实现的。该检测器可根据实际情况确定外部流量大小方向的车,并转换成电信号发送这个信息给PLC,PLC将自动启动,根据每个子程序接收信息,并确定控制方案是正常或异常的过程控制。而当传感器接受到车辆的前轮,应需要在南北和东西各个红绿灯处放置拍照功能,且该方向为绿灯时进行一次拍照,直到接受到后轮时进行二次拍照。
2.4紧急车辆如急救车等往往需要紧急通过,而此时需要调节该方向的绿灯,同时调节另外方向的红灯。如车辆强行闯红灯,则立即启动拍照。
系统可以切换成异常状态,如果东西紧急车,可以把东西方向绿灯时间延长15S,南北方向的红灯时间则延长15S,从而来缓解掉东西方向的车流量压力。反之,当是南北车紧急车,同理,把南北方向的绿灯延长15s,东西方向的红灯同时延长15s。紧急车辆如急救车等往往需要紧急通过,而此时需要调节该方向的
三、硬件设计
(一)传感器选择
考虑到东西和南北车流量的问题,生活中往往要根据传感器来判断车流量的大小,从而实现对交通灯对车流量实现调节。而光电传感器不仅检测方法具有很强的精度,反应速度也非常快,而且可测参数多,传感器的结构简单,形式灵活多样,因此光电传感器在检测和控制中应用领域非常广泛。
光电传感器是光电接近开关的简称,它是利用被检测物对光束的遮挡与反射,由同步回路选通电路,从而检测物体是否存在。所有能反射光线的物体都能够被检测到。光电传感器将输入电流在发射器上转换为光信号射出,接收器再根据接收到的光线的强弱,对目标物体有无进行检测。
光电传感器检测十字路口的各方向车流量,检测器会发出一个脉冲传输给PLC,如图1,PLC可以通过脉冲的计数就能够得到各方向的车流量的大小,从而能够调节各方向红绿灯的等候的时间。
PLC
光电传感器
车辆
检测仪的输出
信号的输出
有车辆经过
没有车辆经过
图1 检测器工作原理和波形
将光电传感器安装在距离十字路口30米出较为合适。通过光电传感器的计数,可以统计出在路口为红灯时光电传感器到十字路口交叉口处这一段范围内的车辆数。进而完成对数据的统计工作。十字路口的情况以及光电传感器的铺设状况,如图2。
图2 十字路口光电传感器的铺设情况
(二)可编程控制器的选择
本次实验交通灯,设计的来自FX2N-64MR-001可编程控制器
FX2N-64MR-001是FX2N系列中三菱PLCFX家族中最先进的系列。有高速处理及可扩展大量满足单个需要的特殊功能模块,灵活性和控制能力强,可扩展到256点。
FX2N-64MR-001可编程控制器有着众多优点:1.系统配置既固定又灵活,对系统的稳固具有良好的作用,对交通灯稳定性有着重要保证;2.编程简单,更易的去控制编程 3具有可自由选择,丰富的品种;4.令人更放心的高性能;5.运算速度快6.适用于多种特殊用途;7.外部机器通讯简单化;8.共同的外部设备;9.具有很强的密码保护性,安全性高。
下图是三菱公司的FX2N系列产品的最简单的梯形图例:
END
X000
X001
Y000
X010
(三)I/0端口分配
I/O端口分配表
功能
符号
I/O
启动按钮
SBI
X0
关闭按钮
SB2
X1
设置
SB3
X2
加
SB4
X3
减
SB5
X4
光电传感器
X5
光电传感器
X6
拍照
L0
Y0
拍照
L1
Y1
拍照
L2
Y2
拍照
L3
Y3
南北绿灯亮
L4
Y4
南北黄灯亮
L5
Y5
南北红灯亮
L6
Y6
东西绿灯亮
L7
Y7
东西黄灯亮
L8
Y8
东西红灯亮
L9
Y9
东西行车灯
L10
Y10
南北行车灯
L11
Y11
公共输入、输出端
COM
通过加入五个按键来实现对交通灯的控制,分别为启动开关SB1,关闭开关SB2,按键设置SB3,按键加SB4,按键减SB5。启动和关闭两个按键就是控制系统的启动和停止。设置按键,是来对光电传感器的预设值进行设定的,先按下设置键,再通过加减两个按键对预设值进行调节,最后再按设置键结束。
(四)I/0端口接线图
X0 Y0
X1 Y1
X2 Y2
X3 Y3
X4 Y4
X5 Y5
X6 Y6
Y7
COM Y8
Y9
Y10
Y11
COM
24V
GND
四、软件设计
(一)交通灯流程图设计
1.正常情况下车流量通车
开始
N
南北绿灯亮8s
东西绿灯
Y
东西红灯亮15s
南北绿灯闪亮3s
南北红灯亮15s
东西绿灯亮8s
南北黄灯亮2s
东西绿灯闪亮3s
东西黄灯亮2s
2.根据异常车流量调节红绿灯
比较南北与东西的车流量
南北方向为绿灯,东西方向为红灯,持续40秒
开始
南北的绿灯闪烁3秒后变为黄灯,且黄灯持续2秒,东西为红灯
南北的车流量小于
东西的车流量
南北为红灯,东西为绿灯拍照,计数清零,持续55秒
南北的车流量
大于东西的
比较南北与东西的车流量
南北为绿灯拍照,东西为红灯,持续55秒
车流量
循环比较
南北的车流量小于
南北的绿灯闪烁3秒后变为黄灯,且黄灯持续2秒,东西为红灯
东西的出流量
南北为红灯,东西为绿灯拍照,计数器清零,持续55秒
南北的车流量大
于东西的车流
循环比较
南北的绿灯闪烁3秒后变为黄灯,且黄灯持续2秒,东西为红灯
南北为红灯,东西为绿灯拍照,计数器清零,并且持续55秒
循环比较
南北为绿灯拍照,东西为红灯,持续55秒
量
3.紧急通车
有急车
是
否
南北强通
人为调节
南北绿灯亮
东西红灯亮
人为调节
东西绿灯亮
南北红灯亮
东西强通
开始
正常运行
开始
运行正常时序
判断车流南北或东西是否闯红灯
东西强通拍照
东西绿灯亮23s
东西绿灯闪亮3s
东西黄灯亮2s
南北强通拍照
东西红灯亮28s
南北绿灯亮23s
南北红灯亮28s
南北绿灯闪亮3s
南北黄灯亮2s
(二)梯形图设计
1.正常情况下梯形图
2.根据异常车流量调节红绿灯梯形图
3. 紧急通车
五、结论
随着城市中城市汽车化进程的加快,我国城市中机动车辆的数目呈爆发式的增长。虽然道路建设能一定程度上缓解交通的压力,但因为土地资源有限,却无法从根本上解决问题。因此,交通故障和城市交通拥堵越来越多,直接导致汽车的运行工况恶劣、交通时效低、能源浪费、汽车尾气多余的排放等一系列交通问题,给生活环境造成了巨大的影响,减缓了经济的发展。
PLC用于控制交通灯,可以准确地控制信号灯,目前普遍使用的,尤其是对多岔路口的控制可方便的实现。PLC一般品牌都配备了实时时钟,通过编程控制,可实现全天候无人管理的信号灯。另外,由于PLC本身还具有通讯联网功能,将信号相同的路径的局域网进行统一调度管理,可缩短车辆的等待时间。致谢
感谢我的导师,老师您严谨细致、一丝不苟的作风一直是我工作中、学习中的榜样;您循循善诱的教导和不拘一格的思路给予了我无尽的启迪。
历时将近三个月的时间终于将这篇论文写完,在论文的写作过程中遇到了无数的困难和障碍,都在同学和老师的帮助下度过了。尤其要强烈感谢我的论文指导老师,他对我进行了无私的指导和帮助,帮助我进行论文的修改和改进。另外,在校图书馆查找资料的时候,图书馆的老师也给我提供了很多方面的支持与帮助。在此向帮助和指导过我的各位老师表示最中心的感谢!
感谢这篇论文所涉及到的各位学者。本文引用了数位学者的研究文献,如果没有各位学者的研究成果的帮助和启发,我将很难完成本篇论文的写作。
感谢我的同学和朋友,在我写论文的过程中给予我了很多你问素材。我的学术水平有限,所写论文难免有不足之处,恳请各位老师和学友批评和指正!
参考文献
[1] 王晓军.可编程控制器原理及应用.化学工业出版社.2010.9.4
[2] 杜荔编.微机原理及其接口.清华大学出版社.2011.3.1
[3] 于泉.城市交通信号控制基础.冶金工业出版社.2011.1.1
[4] 周蔚吾.道路交通信号灯控制设置技术手册.知识产权出版社.2009.1.1
[5] 高钦和.可编程控制器应用技术与设计.人民邮电出版社.2004.7.1
[6] 路林吉.PLC应用开发技术与工程实践.人民邮电出版社.2009.4.8
[7] 陈立定.电气控制与可编程控制器.华南理工大学了版社2006.2
[8] 何衍庆.可编程控制器原理及应用技巧.第二版.化学工业出版社.2003.1.1
[9] 廖常初.可编程控制器的编程方法与应用.重庆大学出版社.2001.2.1
[10] 廖常初.PLC梯形图程序的设计方法与技巧.电工技术出版社.2004.9
[11] 廖常初.PLC梯形图的书许控制设计法与顺序功能图.电子技术杂志.2001.第11期
[12] 廖常初.PLC梯形图的顺序控制设计法.电子技术杂志.2001.第10期
[13] 吴建强.可编程控制器原理及应用.哈尔滨工业大学出版社.2011.7.12
[14] 邱公伟.可编程网络通讯及应用.清华大学出版社.2000.3
[15] 郑凤翼.轻松解读三菱FX2N系列PLC原理与应用.机械工业出版社.2011.1
附录
部分系统运行梯形图
您好,为你提供优秀的毕业论文参考资料,请您删除以下内容,O(∩_∩)O谢谢!!!A large group of tea merchants on camels and horses from Northwest China's Shaanxi province pass through a stop on the ancient Silk Road, Gansu's Zhangye city during their journey to Kazakhstan, May 5, 2015. The caravan, consisting of more than 100 camels, three horse-drawn carriages and four support vehicles, started the trip from Jingyang county in Shaanxi on Sept 19, 2014. It will pass through Gansu province and Xinjiang Uygur autonomous region, and finally arrive in Almaty, formerly known as Alma-Ata, the largest city in Kazakhstan, and Dungan in Zhambyl province. The trip will cover about 15,000 kilometers and take the caravan more than one year to complete. The caravan is expected to return to Jingyang in March 2016. Then they will come back, carrying specialty products from Kazakhstan A small art troupe founded six decades ago has grown into a household name in the Inner Mongolia autonomous region. In the 1950s, Ulan Muqir Art Troupe was created by nine young musicians, who toured remote villages on horses and performed traditional Mongolian music and dances for nomadic families. The 54-year-old was born in Tongliao, in eastern Inner Mongolia and joined the troupe in 1975.He says there are 74 branch troupes across Inner Mongolia and actors give around 100 shows every year to local nomadic people. "I can still recall the days when I toured with the troupe in the early '80s. We sat on the back of pickup trucks for hours. The sky was blue, and we couldn't help but sing the folk songs," Nasun says. The vastness of Inner Mongolia and the lack of entertainment options for people living there, made their lives lonely. "The nomadic people were very excited about our visits," Nasun recalls. "We didn't have a formal stage. The audience just sat on the grass. Usually, the performances became a big party with local people joining in." For him, the rewarding part about touring isn't just about sharing art with nomadic families but also about gaining inspiration for the music and dance. Ulan Muqir literally translates as "red burgeon", and today's performers of the troupe still tour the region's villages and entertain nomadic families, but their fame has spread around the world. On May 16 and 17, nearly 100 singers and dancers from the troupe performed at Beijing's Poly Theater. Their show, titled Ulan Muqir on the Grassland, depicted the history and development of the art troupe. "Being from the region allowed me to embrace the culture of Inner Mongolia and being a member of the troupe showed me where I belonged," Nasun, the art troupe's president, who is also a renowned tenor, tells China Daily. During a tour in 1985, he went to a village and met an elderly local man, who told him a story about his friendship with a solider from Shenyang, capital of Northeast China's Liaoning province, decades ago. The solider gave the old man a handmade saddle when they bid farewell. The story inspired Nasun to write Carved Saddle, a song that later became one of his most popular numbers. Now, every year, Nasun recruits young singers and dancers for the troupe. The troupe has also designed a new repertoire, which is mostly based on the daily lives of Mongolian people, especially the lives of nomadic families, and has combined contemporary musical elements with folk songs of the region. Haimu, a 25-year-old khoomei (a local variant of overtone singing) singer, joined the troupe three years ago. Along with a six-member band, he performs fast songs and soft ones that he writes-all while playing the horse-head fiddle."Although I learned the piano since childhood and grew up listening to various kinds of music, to me, the folk music of Inner Mongolia is the root," he says. "Performing in remote villages is pleasant. I feel at home on the boundless grasslands, and the warm people there make me feel fulfilled." The first round of spring auction season in Beijing ended last week, but it failed to create much spring in the art market. Although two pieces of Chinese painting fetched more than 100 million yuan, the decline in trading volume and sale rate showed a downturn this year. In the “Grand View: Chinese Painting Highlight” session at China Guardian 2015 spring auctions, Pan Tianshou’s representative work Eagle, Rock and Flora hit a record auction price of 279 million yuan, while Li Keran’s masterwork Jinggang Mountain fetched 126.5 million yuan, an unexpected high in recent years. However, the trading volume fells to 1.87 billion yuan from 2.22 billion yuan in the same period the year before. The Huangchen 2015 Spring Auctions, which recorded 42.5 million yuan in total sales, experienced the same. The section number went down to 5 from 12 compared to last year. According to expert Shao Jianwu, the art market did not attract much excitement this year due to the booming stock market and the persistent problems of forgery and fake deals. The two pieces of Chinese painting notched up high price this spring due to their own value not due to a revival in the market. "The successful transaction of two works with a hammer price of more than 100 million yuan once again confirms that valuable and rare works of high quality always earn the long-lasting high price. Chinese painting and calligraphy is still the pillar of the market. However, the overall sales rate has dropped slightly, which reflects the demand for the ordinary auction goods has weakened,” said the president of China Guardian’s Hu Yanyan. "Besides, the entry of new buyers also makes certain changes to the direction of purchasing. In a word, the overall market trend is very unpredictable. Although China Guardian 2015 Spring Auctions has achieved remarkable results, it does not mean that the market has walked out of the predicament. We still have to wait for the big economic boom to invigorate the art market.” Even so, the hot pursuit of some special items appeared this spring. A special session of China Guardian Spring Auctions titled “Fine Gilt—Bronze Buddhist Images” achieved a great deal with total sales volume of 41.89 million yuan and 92 percent sale rate. The 5th Shamar Rinpoche Statue from 16-17th century of Tibet was sold for 5.06 million yuan. The Beijing Chengxuan Auctions featured almost 2,800 items of coins and stamps in three sessions with good sale rate. The Huachen Auctions also set a special session of photographs under the condition of large-scale decline of auction sessions. There was a palpable dull thud of disappointment that accompanied the return of the imperial entourage of Zhen Huan to her homeland. It followed a couple years of hushed excitement as Chinese fans were fed tidbits about their proud concubine who was supposed to conquer the high ground of the North American market. Zhen Huan is, of course, the title character of The Legend of Zhen Huan, a 2011 television series that swept China off its feet and later took other Asian countries
展开阅读全文