1、 基于基于 51 单片机的交通灯设计单片机的交通灯设计 摘要摘要 随着人们社会活动的日益频繁,交通在人们的日常生活中的地位越来越高, 而传统的交通灯存在很多缺陷,功能和维护上都不能满足城市交通道路高速发展 的要求,因此对交通灯的研究是很有理论与实践的必要性的。 本文主要介绍了一个基于 AT89C51 单片机的交通灯信号控制系统,详细描述 了利用AT89C51单片机实现的硬件连接、 软件编程以及系统流程进行了详尽分析, 对关键部分的电路也进行了介绍。该系统利用了单片机的延时电路、按键复位电 路、时钟电路等电路,可以方便地实现十字路口交通灯控制器的设计。 仿真结果表明,该系统除了可以显示交通灯各种
2、状态,完成倒计时功能,还 可以实时采集车流量相关数据,进行计算与智能化控制,与传统交通灯相比更具 有实用性强、操作简单、扩展性强等优点,对于疏导交通流量、提高道路通行能 力有明显效果。 关键字关键字:AT89C51 控制系统;实时采集;智能化控制 Abstract As peoples social activities have become increasingly frequent, the position of traffic is higher and higher in peoples daily life, while the traditional traffic light
3、 has many defects, its maintenance can not meet the rapid development of city traffic demand, so the research of the traffic lights is necessary on a rational theory and practice. This paper introduces a traffic signal control system based on AT89C51 microcontroller which detailedly described the us
4、e of AT89C51s hardware connection, software programming and system flow, the circuit of key parts were also introduced in this paper. The system uses a delay circuit, SCM button reset circuit and clock circuit designed the crossroads traffic light controller easily. The simulation results show that,
5、 except that the system can show the various states of the traffic lights, complete the countdown function, it also can collect traffic data, calculation and intelligent control. Compared with traditional traffic light it has more strong practicability, more simple operation, expansion and stronger
6、advantages, it has obvious effect to ease traffic flow, to improve the traffic capacity of the road. Keywords: AT89C51 control system real-time intelligent control 单片机原理及系统课程设计报告 1 1 引言引言 随着生活水平的逐渐提高,汽车进入家庭的步伐也加快了,城市汽车数量的 增多,使得城市道路交通问题越来越重要。交通信号灯的出现,使得交通得以有 效管制,一旦某个路口的交通灯出现故障,就可能会导致严重的交通事故。原来 的交通灯信号控制大都采用继电器实现,存在很多缺陷,功能单一和维护量大使 它远远不能满足目前的需求,因此对交通灯的研究是很有理论与实践的必要性的。 本文介绍了基于 AT89C51 单片机的交通信号灯的工作原理和设计方法。该交 通信号灯由单片机控制电路,显示电路和辅助电路构成,利用 12MHz晶振提供时 钟,可用按键调节当前车流量以控制下一个绿灯时长,并在 LED 上显示倒计时。 提高了分析、设计电路和