1、 摘 要 -I- 学学 号:号: 毕 业 设 计 说 明 书毕 业 设 计 说 明 书 GRADUATE DESIGN 设计题目:设计题目:基于单片机的智能交通灯控制系统的设计基于单片机的智能交通灯控制系统的设计 学生姓名:学生姓名: 专业班级专业班级: 学学 院:院:电气工程学院电气工程学院 指导教师:指导教师: 讲师讲师 大学信息学院 -II- 摘 要 随着现代社会对交通运输的日趋依赖, 交通灯成为了人们生活中不可或缺的 一部分。传统的交通灯控制系统虽然在一定程度上可以满足指挥路口交通的需 要, 但随着城市规模的不断扩大, 原有的交通灯控制系统已经表现出明显的缺点: 红绿灯时间相对固定,不
2、能伴随车流量的改变而调整红绿灯的显示时间。 本设计以AT89S51单片机为核心,外接外围电路构成基本电路,使硬件电路 能适应所完成的控制功能。在Keil软件中编写C语言程序,最后用Proteus软件进 行仿真,基本实现了智能交通灯的模拟。该系统可控制红、绿、黄灯按时间依次 变换, 并有倒读秒功能。 在此基础上, 通过传感器对车流量的情况进行数据采集。 将采集的数据传送给控制中心,进行分析比较。根据比较的结果,将具体的车流 量转换成两相位车流量大小的比值。根据比值转换成对红绿灯时间的控制,使交 通信号灯时间可根据车流量改变,提高了交叉口的通行效率。 关键词:单片机;交通灯;倒计时显示;传感检测
3、目 录 -III- Abstract As modern society increasingly rely on for transportation, traffic lights has become the indispensable part of peoples life. Although to some extent, the traditional traffic light control system can meet the needs of command intersection traffic, but with the enlargement of city s
4、cale, the original traffic light control systems have shown obvious disadvantages: traffic light time is relatively fixed, not along with the change of the flow adjustment of traffic lights show time. This design uses AT89S51 microcontroller as the core, constitute the basic circuit, external periph
5、eral circuit that can be adapted to control the functions performed by hardware circuit. In Keil software written in C language program, and finally with the Proteus software simulation, the basic realization of the intelligent simulation of traffic lights. The system can control red, green, yellow
6、light according to time, in turn, transform, and has function of seconds. On this basis, through the sensor to the situation of traffic data collection. Will collect the data transmitted to the control center, carries on the analysis comparison. According to the result of comparison, the specific traffic into two phase flow is the ratio of the size. Translated into traffic lights time according to the ratio control, make the traffic lights time may be changed according to the number