没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机的交通灯控制系统设计-毕业论文.doc
0 下载量 60 浏览量
2023-07-01
20:03:50
上传
评论
收藏 690KB DOC 举报
温馨提示
试读
31页
基于单片机的交通灯控制系统设计-毕业论文.doc
资源推荐
资源详情
资源评论
基于单片机的交通灯控制系统设计
摘 要
当你路过一个十字路口时,你是否注意到各个方向车辆和行人有有条不紊的通
过十字路口。这样井然有序的情境靠什么来实现的呢?靠的是交通灯控制系统。在
论文中我使用单片机 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
目 录
摘要 ................................................................I
Abstract..................................................................................................................II
绪论.........................................................................................................................1
1 系统设计方案论证 ...............................................................................................3
1.1 设计方案...........................................................................................................3
1.2 功能概述...........................................................................................................4
2 系统硬件设计......................................................................................................5
2.1 交通灯控制系统组成........................................................................................5
2.1.1 ATC89C51 芯片 .............................................................................................5
2.1.2 交通灯控制系统构成....................................................................................8
2.2 各单元电路模块功能........................................................................................9
2.2.1 时钟电路模块 ...............................................................................................9
2.2.2 复位电路模块 ...............................................................................................9
2.2.3 主控制系统模块..........................................................................................10
2.2.4 信号灯输出控制模块 ..................................................................................11
2.2.5 时间显示电路模块......................................................................................11
2.2.6 系统电源模块电路......................................................................................12
2.2.7 按键输入模块 ............................................................................................13
3 系统软件设计....................................................................................................14
3.1 软件总体流程图 ............................................................................................14
3.2 延时的设定.....................................................................................................15
3.2.1 计数器初值计算..........................................................................................15
3.2.2 相应程序代码 .............................................................................................15
4 系统调试分析及结果.........................................................................................21
4.1 电路板实物的制作..........................................................................................21
4.1.1 印制电路板 PCB 图的绘制 ..........................................................................21
4.1.2 实物的制做 .................................................................................................21
4.2 系统硬件调试 ................................................................................................22
4.3 系统软件调试 ................................................................................................22
4.4 系统总体调试 ................................................................................................23
结论.......................................................................................................................25
致谢.......................................................................................................................26
参考文献 ...............................................................................................................27
附录 1 元器件清单 ................................................................................................29
附录 2 总体电路原理图、PCB ...............................................................................30
附录 3 程序...........................................................................................................31
剩余30页未读,继续阅读
资源评论
智慧安全方案
- 粉丝: 3613
- 资源: 59万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功