基于单片机的交通灯控制系统设计毕业论文 下载本文

内容发布更新时间 : 2024/9/20 7:57:57星期一 下面是文章的全部内容请认真阅读。

基于单片机的交通灯控制系统设计

摘 要

当你路过一个十字路口时,你是否注意到各个方向车辆和行人有有条不紊的通过十字路口。这样井然有序的情境靠什么来实现的呢?靠的是交通灯控制系统。在论文中我使用单片机STC89C51作为主控单元。通过单片机芯片STC89C51的P1口和P2口分别控制东西方向和南北方向红黄绿灯的点亮。通过单片机芯片STC89C51的RXD和TXD控制数码管的显示时间。采用发光二极管来实现交通灯的点亮,由数码管实现时间的显示。该系统不仅仅具有交通灯的基本功能还有倒计时,还可以通过按键在紧急事件中设置为四个方向都为红灯的紧急模式,也可以通过按键在夜晚设置为四个方向都为黄灯的夜间模式。当然也可以通过按键来设置交通灯的倒计时时间,使系统更加符合实际交通情况。矚慫润厲钐瘗睞枥庑赖。 我设计的交通灯控制系统可以较好的模拟十字路口出现的交通状况,使行人和车辆能有序的通行。我设计的系统成本低,操作简单,性能稳定,实用性较强。聞創沟燴鐺險爱氇谴净。

关键词:交通灯控制系统 单片机 AT89C51 数码管 LED

Abstract

When you pass an intersection, have you noticed that vehicles and pedestrians through the intersection methodical .Such an orderly situation rely on to achieve it? Rely on the traffic light control system. This paper will intr-oduce a single-chip microcomputer ATC89C51 as the main control unit system. Thr-ough the STC89C51 microcontroller chip P1 and P2 port respectively control the east-west and north-south direction red yellow green light. Through STC89C51 microcontroller RXD and TXD control digital tube display time. Light emitting diode is used to realize traffic lights lit, achieved by the digital time display. The system not only has the basic function of the traffic lights and the countdown, you can also through the buttons in the event of an emergency is set to four directions for the red light in emergency mode, can also through the buttons in the night is set to the four directions of yellow light night mode, of course, also can through the button to set the countdown time of traffic light, make the system more in line with the actual situation.残骛楼諍锩瀨濟溆塹籟。 I design the traffic light control system can better simulate the crossroads of traffic, the pedestrians and vehicles to orderly traffic.I designed the system of low cost, simple operation, stable performance, strong practicability.酽锕极額閉镇桧猪訣锥。

Keywords: Traffic Light Control System SCM AT89C51 Digital pipe LED彈贸摄尔霁毙攬砖卤庑。