毕业设计说明书
课题名称: 单片机控制智能交通信号灯
系 别 电气电子工程学院 专 业 机电一体化 班 级 机电0833 姓 名 学 号 指导教师
起讫时间:2011 年2月21 日~2011 年4月15日(共8 周)
摘 要
近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。
十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那么靠什么来实现这井然秩序呢?靠的就是交通信号灯的自动指挥系统。交通信号灯控制方式很多。本系统采用MSC-51系列单片机ATSC51和可编程并行I/O接口芯片8255A为中心器件来设计交通灯控制器,实现了能根据实际车流量通过8051芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯闪烁警示(交通灯信号通过PA口输出,显示时间直接通过8255的PC口输出至双位数码管);车辆闯红灯报警;绿灯时间可检测车流量并可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。
关键词:
单片机 交通灯 闯红灯 检测车流量
Abstract
In recent years, with the rapid development of science and technology, the
application of SCM is unceasingly thorough, it causes the traditional control test technology increasingly updates. In real-time detection and automatic control of microcomputer application system, often as a core component single-chip microcontroller, only to use knowledge is not enough, should according to specific hardware structure, software and hardware combined with improved.
Crossroads transports, pedestrian roar, driveways, garage, orderly pedestrian humanitarian. So what to achieve this by an orderly order? Lean is the traffic lights automatic command system. The traffic lights control many ways. The system USES the MSC - 51 series microcontroller ATSC51 and programmable parallel I/O interface chip 8255A as the center device to designing traffic light controller, realized by the 8051 according to actual traffic can chip set red, green P1 mouth burning time function; Traffic light cycle lighted, countdown with 5 seconds (yellow lights flashing warning lights signal output by PA mouth, display time directly through 8255 PC mouth output to double a digital tube); Vehicles; red light alarm Green time can be detected by two-seat cars and digital tube display. This system practical, simple operation, function expansion is strong.
keyword
microcontroller affic lights jaywalk traffic volume