基于单片机交通灯的控制

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1基于单片机交通灯控制摘要交通控制系统是近现代社会随着物流、出行等交通发展产生的一套独特的公共管理系统。要保证高效安全的交通秩序,除了制定一系列的交通规则,还必须通过一定的科技手段加以实现。本文在对目前交通控制进行深入分析的基础上,运用检测传感、实时调整智能化控制的实现技术,将传感器监测、实时调整车辆通行时间的算法与单片机控制作用相结合,提出了基于单片机的交通控制系统设计方案。十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。单片机的交通灯控制系统由STC89C52单片机、交通灯显示、LED倒计时、紧急处理、时间模式手动设置等模块组成。系统除基本交通灯功能外,还具有通行时间手动设置、可倒计时显示、急车强行通过、交通异常状况判别及处理等相关功能。理论证明该系统能够简单、经济、有效地疏导交通,提高交通路口的通行能力。本设计主要做了如下几方面的工作:一是确定系统交通控制的总体设计,包括,十字路口具体的通行禁行方案设计以及系统应拥有的各项功能,二是硬件电路、显示电路等的设计和基本功能要求。三是进行软件系统的设计。对于本系统,本人采用单片机C语言编写,总体上完成了软件的编写。关键词:单片机;STC89C52;交通灯;记时;2ABSTRACTTrafficcontrolsystemisamodernsocietywiththelogistics,travelandothertransportationdevelopmentofauniquesetofpublicmanagementsystem.Toensuresafeandefficienttrafficorder,inadditiontothedevelopmentofaseriesoftrafficrules,itmustbethroughsometechnologicalmeanstoachieve.Inthispaper,thecurrenttrafficcontrolforin-depthanalysis,basedontheuseofdetectionsensors,real-timeadjustmenttoachieveintelligentcontroltechnology,sensormonitoring,real-timeadjustmentstotrafficcontrolalgorithmandtheroleofsingle-chipcombinationisproposedbasedonmicrocontrollertrafficcontrolsystemdesign.Crossroadsshuttlevehicles,pedestriansbustling,cardealersDrive,peoplewalkways,orderly.Thenrelyontoachievethedisciplineoftheorderthen?Relyontheautomatictrafficlightisthechainofcommand.8051bythetrafficlightcontrolsystem8051,trafficlightdisplay,LEDcountdown,trafficdetectionandadjustment,compliancetesting,emergencytreatment,timemodemanuallysettheothermodules.Inadditiontobasictrafficlightsystemfunctions,butalsowiththepassageoftimemanuallyset,youcancountdownshow,emergencyvehicleforcedthrough,trafficdetectionandadjustment,identificationandhandlingoftrafficanomaliesandotherrelatedfunctions.Thesystemisabletoprovethetheoryissimple,economic,efficientflowoftraffic,improvetrafficintersectiontrafficcapacity.Thisdesignmadethefollowingmainaspects:First,determinetheoveralltrafficcontrolsystemdesign,including,specificpassageforbiddingintersectiondesignandthesystemshouldhavethefunction,andsecond,thesensorhardwarecircuits,displaycircuitdesignandbasicfunctionalrequirements.Third,thesoftwaresystemdesign.forthissystem,IusedtheMCUassemblylanguage,theoverallcompletionofthesoftwarewaswritten.Keywords:SCM;trafficlights;STC89C52;timing;detection3目录1.概述..........................................................................................................................................11.1单片机交通控制系统的选题背景................................................................11.2单片机交通控制系统选题的现实意义........................................................11.3国内外研究现状及其发展............................................................................31.3.1国内外交通控制技术.......................................................................31.3.2交通控制存在的问题........................................................................31.4单片机交通控制系统主要研究的内容.......................................................42.单片机交通控制系统总体设计..............................................................................................52.1单片机交通控制系统通行方案设计.............................................................52.2单片机交通控制系统的功能要求...............................................................62.2.1倒计时显示.......................................................................................72.2.2时间手动设置...................................................................................72.2.4紧急处理...........................................................................................72.3单片机交通控制系统的基本构成及原理...................................................73.系统硬件电路的设计..............................................................................................................83.1系统硬件总电路构成及原理.......................................................................83.1.1系统硬件电路构成...........................................................................83.1.2系统工作原理...................................................................................83.2单片机的选择...............................................................................................93.2.1单片机的概述...................................................................................93.2.2STC89C52RC芯片的主要性能..........................................................93.2.3STC89C52RC芯片的内部结构框图..................................................93.2.4STC89C52RC芯片最小系统............................................................103.3硬件介绍及连接...........................................................................................113.3.1八段LED数码管..............................................................................113.3.2其它器件..........................................................................................124.系统软件程序的设计...............................................................................................................144.1程序主体设计流程.......................................................................................1444.2系统软件的理论基础知识.........................................................................154.2.1定时器原理...........

1 / 39
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功