基于单片机的(数显)交通灯控制系统设计.docx
课程设计报告
题目:基于单片机的(数显)交通灯控制系统设计
目录
摘要 3
一、设计背景 4
二、方案分析与对比 4
2.1方案分析 4
2.2方案对比 4
三、智能交通灯控制系统的硬件设计 4
3.1STC89S5单片
介 4
3.2控制器的原理框图 8
3.3紧急转换电 8
四、智能交通灯控制系统的软件设计 10
4.1交通灯的软件设计流程图 10
4.2控制器的软件设计 10
五、系统分析及改进措施 12
六、心得体会 13
参考文献 14
附录 14
摘要:
自从1858年英国人,发明了原始的机械扳手交通灯之后,随后的一百多年里,交通灯改变了改变了交通路况,也在人们日常生活中占据了重要地位,随着人们社会活动日益增加,经济发展,汽车数量急剧增加,城市道路日渐拥挤,交通灯更加显示出了它的功能,使得交通得到有效管制,对于交通疏导,提高道路导通能力,减少交通事故有显著的效果。
近年来,随着科技的飞速发展,电子器件也随之广泛应用,其中单片机也不断深入人民的生活当中。本模拟交通灯系统利用单片机STC89C52作为核心元件,实现了通过信号灯根据区域车流现实对路面状况的智能控制。从一定程度上解决了交通路口堵塞、车辆停车等待时间不合理、急车强通等问题。系统具有结构简单、可靠性高、成本低、实时性好、安装维护方便等优点,有广泛的应用前景。
本模拟系统由单片机硬/软件系统,两位8段数码管和LED灯显示系统。和复位电路控制电路等组成,较好模拟了,交通路面的控制。
关键词:交通灯单片机数码管Abstract:
In1858,sincetheinventionofprimitivemechanicalawrenchtothetrafficlights,themorethanahundredyears,thetrafficlightschangedtochangethetrafficandtransportintheireverydaylivesasanimportantposition,increasingsocialandeconomicdevelopmentandthecar
hasdrasticallyincreased,theroadsarecrowded,andthetrafficlightsmoreofitsfunctions,theeffectivecontrol,forotherwise,theroadleadingtoimprovethecapabilitytoreducetrafficaccidentisanotable
Inrecentyears,astechnologyevolved,eelctronicpiecesalsowidelyused,whicharemonolithicintegratedcircuitsintothelifeofthepeopleofthetrafficlights.thesimulationsystemasacoreelementofmonolithicintegratedcircuitsstc89c52madebythelightonthebasisofregionaltrafficstreamrealityoftheroadconditionsoftheintelligentcontrol.fromtheextenttosolvethetrafficcongestionorvehicleparkingatthewaitingtimeisnotreasonable,isacarwiththeproblems.Systemhasasimplestructure,highreliability,costsandtimely,andinstallsafeguarditconvenientlyad