摘要
针对平交路口交通信号控制的问题设计了基于单片机的交通信号控制仿真器。仿真器的设计分系统硬件设计和软件设计。硬件设计中采用STC89C55单片机为控制器,红外光电对管用于车辆检测模块,通过移位寄存器SN74HC595和SN74HC164实现对16×16点阵的控制并配以按键模块及电源模块;软件设计包括对各主模块及子模块流程图的设计,源代码的编写等。最终实现的模拟装置,可以利用相应按键实现对交通流自动调整、限制左转、单向等交通控制策略的模拟。设计解决了实际中耗资大、不易模拟的难题,并在最大程度上保证交通的安全和畅通。
According to the control problem of traffic signal for the level crossing,a traffic signal control simulator based on microcontroller was designed. The design of the simulator is consisted of hardware design and software design. In hardware design,STC89C55 microcontroller is taken as the controller,and the infrared photoelectric tube is used as the vehicle detection module. The control of 16×16 dot matrix is realized by the shifting register SN74HC595 and SN74HC164,and the key module and power module are matched. The software design includes the designs of each main module and sub modules inflow charts,and the compiling of source code. The implemented simulator can simulate the automatic adjustment,left-turning limitation,oneway passing,and other traffic control strategies of the traffic flow by the corresponding keys. The design can solve the problems of large cost and difficult to simulate in practical,and ensure the safe and unobstructed traffic at the most extent.
出处
《现代电子技术》
北大核心
2015年第21期162-166,170,共6页
Modern Electronics Technique