摘要:随着世界各地经济的快速发展,人类的生活节奏不断加快,出行也愈发频繁,导致交通在人类的日常生活中地位越来越高。为了减少了交通事故的发生,提高了疏导交通流量和道路通行的能力,需要有一种好的智能交通灯系统。因为单片机具有实用性强、操作简单、扩展功能强等优势,本文主要完成一个基于单片机的智能交通灯控制系统的设计。文本选用AT89C51作为核心控制元件,通过结合数码管、LED灯、红外传感器、蜂鸣器、按键、三极管等元件完成了十字路口交通灯的一些状态显示,较好的模拟了现实生活中十字路口可能出现的一些交通情况。又根据各个硬件模块的结构,采用C语言软件编程、调试、分析其功能,通过软硬件结合来完善此次设计。70593
毕业论文关键词:智能交通灯;单片机;C语言
Design of Intelligent Traffic Light System
Abstract:With the rapid development of economy around the world, the pace of human life is accelerating, coupled with the frequent travel of human beings, leading to traffic in the daily life of human status is getting higher and higher. In order to reduce the occurrence of traffic accidents, and improve the capacity of traffic flow and road traffic, a good intelligent traffic light system is needed. Because the Single Chip Micyoco has the advantages of strong practicability, simple operation and strong expansion function, this paper mainly completes the design of intelligent traffic light control system based on Single Chip Micyoco. The design of the use of AT89C51 as the core control components, through the combination of nixie tube, LED lights, infrared sensors, buzzers, buttons, transistors and other components to complete some of the state lights at the crossroads traffic lights, better simulation of real life some traffic conditions may occur at the crossroads. According to the structure of each hardware module, using C language software programming, debugging, analysis of its function. Through the combination of hardware and software to improve the design.
Keywords: Intelligent traffic lights;Microcontrollers;C language
目录
1 绪论 4
1.1 课题背景与研究意义 4
1.3 本文的主要工作与内容安排 5
2 智能交通灯系统的硬件电路设计 6
2.1 智能交通灯系统总体设计方案 6
2.1.1 系统基本构成 7
2.1.2 系统方案的设计与论证 7
2.1.3 十字路口交通信号灯具体的控制要求 8
2.1.4 系统设计实现的功能 10
2.2 单片机 11
2.2.1 AT89C51单片机的主要引脚功能 12
2.2.2 AT89C51芯片内部结构 13
2.3 智能交通灯系统的硬件设计 14
2.3.1 系统硬件电路构成 14
2.3.2 系统硬件电路设计以及工作原理 16
3 智能交通灯系统的软件设计 21
3.1 软件设计应用环境 21
3.2 交通灯倒计时设定 22
3.3 系统主要程序说明 23
3.3.1 主程序 23
3.3.2 数码管显示程序