1、摘要摘要 随着世界范围内城市化和机动化进程的加快, 城市交通越来越成为一个全球 化的问题。 十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么,靠 什么来实现这井然有序呢?靠的是交通灯的自动指挥系统。 随着科技的发展,单片机的应用正在不断深入,同时带动传动检测技术日益 更新。在实时监测和自动控制的单片机应用系统中,单片机往往作为一个核心部 件来使用,还应根据具体的硬件结构,以及针对应用对象的点的软件结合,加以 完善。 本文介绍了一种基于单片机的交通灯控制系统。 系统采用单片机和七段LED 数码管作为交通灯的控制和显示核心,并通过控制按键对时间进行设置,最终实 现对交通灯各状态持续时
2、间的控制。系统采用上电自动复位,利用八个数码管显 示交通灯各状态的剩余时间,时间显示采用倒计时方式,四组红、黄、绿三色灯 用发光二极管作为模拟交通信号灯,呈四种状态交替出现。系统通过一个直流稳 压电路为系统提供+5V 的直流电源。 该交通系统控制方便,禁行通行时间可调,有一定实用价值。 关键词:单片机; 可调; LED;数码显示 Abstract With the range of urbanization and motorization, the quickening of the process of urban traffic more and more become a global
3、 problem. So, intersection transports, bustling pedestrian, auto lane, a humanitarian, in an orderly way. So what to do this by in order? By the traffic light automatic command system. With the development of science and technology, the application of SCM is unceasingly thorough, it causes transmiss
4、ion detection technology is updated. In real time monitoring and automatic control of the microcomputer application system, the single chip microcomputer often as a core component to use, also should be based on specific hardware structure, and the view of the application to the point of the object
5、software combines, perfect. This paper introduces a control system based on single chip microcomputer traffic lights. The system USES the monolithic and seven period of LED digital tube as the traffic light control and display the core, and through the control buttons to set time, and finally achiev
6、e the duration of the traffic lights state control. The system adopts the automatic reset, and use of eight digital pipe display each state for the rest of the time of the traffic lights, and time display using the countdown, four groups of red, yellow, and green three color lamp using light-emitting diodes as simulation traffic lights, show four state appear alternately. System through a dc voltage circuit for the system to provide the + 5 V dc power supply. The traffic control system is conven