学 号: 0121009320612
课 程 设 计
题 目 学 院 专 业 班 级 姓 名 指导教师
2012 年 7 月 4 日
0
交通灯控制电路的设计与实现
信息工程学院 通信工程 1006班 王 康 付 琴
武汉理工大学《数字电子技术》课程设计说明书
课程设计任务书
学生姓名: 王 康 专业班级: 通信1006班 指导教师: 付 琴 工作单位: 信息工程学院
题 目: 交通灯控制电路的设计与实现 初始条件:
AT89C52、两位数码管LG3622BH、LED灯(红、黄、绿) 要求完成的主要任务:
在南北、东西方向道路的十字路口分别设置三色灯控制器,红灯亮禁止通行,绿灯亮允许通行,黄灯亮要求压线车辆快速穿越。根据特殊情况,可调设置单
(1)基本部分:
①可用LED作为信号灯模拟交通灯;
②南北方向道路绿、黄、红灯亮的时间分别为60秒、50秒、10秒;
东西方向道路绿、黄、红灯亮的时间分别为60秒、50秒、10秒;
③道路时间指示采用倒计时制,用2位数码管显示。 (2)扩展部分
①按下功能键“1”键,停止计时,数码管显示“00”,同时仅南北方向红灯亮; ②按下功能键“2”键,停止计时,数码管显示“00”,同时仅东西方向红灯亮。
时间安排:7.1:理论设计 7.2~7.3:仿真与焊接电路 7.3:撰写报告 7.4:答辩 指导教师签名: 2012年 6月7日
系主任(或责任教师)签名: 2012年 6月 7 日
1
武汉理工大学《数字电子技术》课程设计说明书
目 录
摘 要 ................................................................................................................... 3 Abstract .................................................................................................................. 4 1.原理电路的设计任务与内容 .......................................................................... 5
1.1 初步设计思路 ......................................................................................... 5 2. 方案论证与比较 .............................................................................................. 6 3. 方案概述 ......................................................................................................... 8
3.1交通灯控制电路的方案设计 .................................................................. 8 3.2交通灯控制电路的原理框图 .................................................................. 8 4. 单元电路设计 ................................................................................................. 10
4.1单片机最小系统 .................................................................................... 10 4.2数码管模块 ............................................................................................ 11 4.3 LED信号灯模块 ..................................................................................... 11 4.4 独立按键模块 ....................................................................................... 12 5. 总电路图 ........................................................................................................ 13 6. 仿真部分 ....................................................................................................... 14
6.1 proteus软件介绍 ................................................................................... 14 6.2仿真结果 ................................................................................................ 15 8. 参考文献 ........................................................................................................ 18
2
武汉理工大学《数字电子技术》课程设计说明书
摘 要
随着城市化的推进,我们对交通工具的要求越来越高,希望舒适快速的交通,可是快速加快的交通负荷也给尘世交通出了比较难题,我们不难发现现在城市交通问题日益凸显严重,尤其在城市街道的十字叉路口,频繁发生交通事故,为了保证交通秩序和行人安全,交通部门在每条街上都安装了一组红、黄、绿交通信号灯。其中红灯亮,表示道路禁止通行;黄灯亮表示该道路上未过停车线的车辆禁止通行,已经过停车线的的车辆继续通行;绿灯亮表示道路允许通行。交通灯控制电路自动控制十字路口的红、黄、绿交通灯。交通灯通过的状态转换,指挥车辆行人通行,保证车辆行人的安全,实现十字路口交通管理自动化。学习了半年的数字电路,深深知道数字电路的强大,在老师布置课题的时候就已经决定选择交通控制灯这个课题了,然后抽了时间去十字路口观察了一下,心里知道了它的工作过程,在这个基础上根据我的水平就开始了设计。
关键字: 交通灯 单片机 AT89C52
3
武汉理工大学《数字电子技术》课程设计说明书
Abstract
With urbanization, we have become increasingly demanding transport, hoping comfortable fast transport, but also fast to speed up the traffic load compared to the earth out of traffic problems, we find now a serious urban transport problems has become increasingly prominent , especially in cities cross the street intersection, frequent traffic accidents, in order to ensure traffic order and safety of pedestrians, the traffic department has installed in every street, a group of red, yellow and green traffic lights. One red light, said the road closed to traffic; yellow light indicates that the road vehicle has not been closed to traffic stop line, stop line has been the vehicle to pass; green light is that the road to allow passage. Automatic traffic light control circuit crossroads of red, yellow and green traffic lights. Traffic lights by the state transition, command vehicles, pedestrians, vehicles and pedestrians to ensure safety, traffic management automation to achieve a crossroads. Half a year studying digital circuits, digital circuits are very aware of the powerful, the teachers arranged when the subject has decided to choose the subject of a traffic control light, then pumping the crossroads of time to observe a moment, knew that the process of its work In this basis, as I began the design level
Key words:
Urbanization, traffic automation design
4