基于单片机的交通灯设计

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

本科生毕业设计

基于单片机的智能交通灯设计—— 硬件模块设计

201×年5月

独创性声明

本人郑重声明:所呈交的毕业论文(设计)是本人在指导老师指导下取得

的研究成果。除了文中特别加以注释和致谢的地方外,论文(设计)中不包含

其他人已经发表的研究成果。与本研究成果相关的所有人所做出的任何贡献均

已在论文(设计)中作了明确的说明并表示了谢意。

签名:__________________ ________年______月_____日

授权声明

本人完全了解××有关保留、使用本科生毕业论文(设计)的规定,即:

有权保留并向国家有关部门或机构送交毕业论文(设计)的复印件和磁盘,允

许毕业论文(设计)被查阅和借阅。本人授权×××可以将毕业论文(设计)

的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复

制手段保存、汇编论文(设计)。

本人论文(设计)中有原创性数据需要保密的部分为(如没有,请填写“无”)

学生签名:

年 月 日

指导教师签名:

年 月 日

基于单片机的智能交通灯设计

摘要

系统采用两块STC89C52芯片为核心控制器件、三色LED灯作为信号灯状态显示、以两位共阴七段显示数码管描述系统各方向信号灯状态保持的时间。

由按键开关完成上电初始化操作,各LED灯状态保持时间使用倒计时的显示方式,最大显示时间为99S。两组左转绿、绿、红、黄三色LED灯分别作为南北、东西方向信号灯显示模块,另外四组红、绿两色LED灯分别作为东西、南北方向人行横道交通信号指示灯,至此本设计可以应对交叉路口交通信号系统的基

本控制情况。在此之外,为了真实的模拟交叉路口的交通情况,在另一块单片机电路上设计了一条东西方向循环流动的流水灯来模拟车辆通行时的情况。当接

收到交通灯主电路信号后流水灯根据交通规则作出相应的反应。

关键词:交通信号灯;单片机;LED灯;数码显示;流水灯

Design of Intelligent Traffic Lights Based on Single Chip Computer

—— Hardware module design

ABSTRACT

The system USES two STC89C52 chips as the core control device, the three-color LED light as the signal of the signal, and the seven segments of the seven segments show the time for the digital tube to describe the state of the light. Completed by key-press switch on electricity initialization, the state of LED lights to keep a lot of time using the countdown display mode, the biggest display time of 99 s. Two groups of left turn green, green, red and yellow color leds lights display module respectively as the north-south, east-west direction, the other four groups of red and green LED lights as something pedestrian crossing traffic signal lamp, north and south direction, thus this design can handle basic control of traffic lights at the intersection. In the outside, in order to more realistic simulation of the intersection traffic conditions, in another piece of single-chip microcomputer circuit design direction of a thing when circulating water lights to simulate the traffic situation. When the signal of the main circuit of the traffic light is received, the running water light will respond accordingly.

key words:traffic light; Single chip microcomputer; LED lamp; Digital display; Running water light

目录

1. 绪论 (1)

1.1 课题研究背景 (1)

1.2 应对交通拥挤问题的策略 (1)

2. 系统的整体设计 (2)

2.1 交通信号系统 (2)

2.1.1 交通管控体系的构成 (2)

2.1.2 交通信号控制原理 (2)

2.1.3 本文中所涉及到的交通规则 (3)

2.2系统功能概述 (4)

2.3 方案的设定与论证 (5)

2.4 系统工作原理 (6)

3. 系统硬件设置 (7)

3.1 单片机的选择 (7)

3.2 单片机的基本结构 (8)

3.3 单片机外围电路设计 (10)

3.3.1 复位电路设计 (10)

3.3.2 外部晶振时钟电路设计 (10)

3.3.3 按键模块 (11)

3.3.4 显示模块电路设计 (12)

3.3.5 东西方向信号灯控制下的流水灯电路 (12)

4. 系统调试分析及结果 (13)

4.1 硬件仿真软件 (13)

4.2 设计实物的制作 (14)

5. 总结与展望 (15)

相关文档
最新文档