基于单片机的交通灯毕业设计论文

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于单片机的交通灯毕业设计论文

摘要

根据STC10F04单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动控制交通灯及时间显示的方法。同时给出了软硬件设计方法,设计过程包括硬件电路设计和程序设计两大步骤,对在单片机应用中可能遇到的重要设计问题都有涉足。本文对十字路口状态预设为三种,一种是正常状态,一种是紧急状态,另一种是方程式状态。增设路段遇忙调整时方程式控制状态和紧急情况处理模块,通过手动控制开关按钮A0和A1方便系统在正常状态和紧急状态、方程式控制间来回切换,进一步完善了交通灯控制系统。并分别用红、黄、绿灯的不同组合来指挥两个方向通车与禁行,用LED数码管作为倒计时指示,实时的控制当前交通灯时间使LED显示器进行倒计时工作并与状态灯保持同步,在保持交通安全的同时最大限度的提高交通能顺畅交替运行。本文介绍了控制基本原理以及控制的表现,同时,论述了系统中交通现状、交通管理、交通规则及背景信息。

关键词:自动控制,时间显示器,外部中断,延时,方程式控制

Abstract

According to the characteristics of single-chip STC10F04 and traffic lights in the actual control of the characteristics of this paper, a single-chip automatic control with traffic lights and the method of time display. At the same time, given the hardware and software design methodology, design process, including the hardware circuit design and program design two major steps in the single-chip applications that may be encountered in the design of the important issues are involved. In this paper, the default state of the crossroads for three, one is the normal state is a state of emergency, and the other is a state formula. Additional sections of busy status adjustment formula and an emergency control module Through the manual control switch button convenience A0 and A1 system in the normal state and a state of emergency, the equation between the control switch back and forth, and further improve the traffic light control system. And were red, yellow and green light to direct different combinations of traffic in both directions and cut-line, with LED digital tube as a countdown to the instructions, real-time control of the current time for traffic lights to LED countdown display work and to keep pace with the state of light in the to maintain safety while minimizing the increase in traffic to alternate running smoothly. This paper introduces the basic principles of control, as well as the performance of control at the same time, traffic on the system status, traffic management, traffic regulations and background information.

Key words:automatic control; time display; external interrupt; delay; control equation

目录

摘要 (1)

Abstract (2)

目录 (3)

1 绪论 (4)

1.1 交通灯研究的背景和意义 (4)

1.2 交通灯国内外发展概况 (4)

2 系统工作原理及设计方案 (7)

2.1 交通灯的工作原理 (7)

2.2 交通灯总体设计方案 (7)

3 硬件系统设计 (11)

3.1 硬件系统组成 (11)

3.1.1 单片机最小系统 (11)

3.1.2 信号显示驱动电路 (15)

3.1.3 键盘输入电路 (16)

4 交通灯系统详细设计 (18)

4.1 软件总体设计思想 (18)

4.2 交通控制算法实现 (20)

4.3 系统初始化模块 (21)

4.4信息显示模块 (22)

4.4.1 信号灯模块 (22)

4.4.2 LED倒计时显示子程序 (26)

4.5键盘扫描模块 (29)

5 调式总结 (37)

6 致谢 (38)

参考文献 (39)

附录 (40)

附录一程序清单 (40)

附录二交通灯PCB图 (48)

附录三交通灯电路原理图 (49)

相关文档
最新文档