機電一體化專業畢業設計

十字路口車輛穿梭,行人熙攘,車行車道,人行人道,有條不紊。那么靠什麼來實現這井然秩序呢?靠的就是交通信號燈的自動指揮系統。交通信號燈控制方式很多。本系統採用mcs-51系列單片機at89c51為中心器件來設計交通燈控制器,實現了能根據實際車流量通過8051晶片的p3口設定紅、綠燈燃亮時間的功能;紅綠燈循環點亮,倒計時剩5秒時黃燈閃爍警示(交通燈信號通過p1口輸出,顯示時間通過p0口輸出至雙位數碼管)。本系統設計周期短、可靠性高、實用性強、操作簡單、維護方便、擴展功能強。

關鍵字: 交通燈;單片機;mcs-51

abstract

in recent years, with the rapid development of science and technology, the application of  scm is going deep, driving the traditional detection techniques to renew day by day. in the real-time examination and in the automatic control monolithic integrated circuit application system, the monolithic integrated circuit often took a core part uses. the monolithic integrated circuit aspect knowledge is only insufficient, but should also act according to the concrete hardware architecture software and hardware union, to be improved.

the intersection vehicles shuttle, the pedestrian is bustling, car dealership traffic lane, person sidewalk, methodical. then depending on what to realizes this orderly order?  the traffic lights on the automatic control system. there are great number kinds of modes to control the traffic lights. the system uses a series of mcs-51 as the center at89c51 single-chip device designed to control the traffic lights, so as to realize the function of setting red, green light time by 8051 chip’s p3 port according to the actual traffic flows, lighting the red-light and green-light by turn and lighting the yellow-light to warm while 5 secondsleft(outputting the traffic light signal by p1,outpuing the time by p0 and showing the time on double-digits nixie tube). short of the design cycle, high reliability, practical, simple operation, easy maintenance, the expansion of powerful is this system.

key words : scm mcu; traffic light;mcs-51

目 錄

畢業設計任務書 i

畢業設計進度計畫表 ii

摘 要 iii

第一章  緒論 1

1.1課題研究背景與意義 1

1.2論文研究內容及結構安排 1

第2章  系統總體方案 3

2.1總體方案設計 3

2.2軟硬體平台介紹 4

第3章  系統設計與仿真 10

3.1顯示部分電路模組設計 10

3.2時鐘部分電路模組設計 10

3.3按鍵模組設計 11

第4章  總結 12

致  謝 13

參考文獻 14

【附錄1】 i 15

【附錄2】 ii 16

第一章 緒論

1.1課題研究背景與意義.

1.1.1背景:

隨著工業化水平與經濟的提高,交通問題成為我國社會主義發展的重大問題,交通事故也在我們身邊出現的次數越來越多,而城市道路交通問題的核心就是對十字交叉路口交通信號的控制。

1.1.2意義:

人們對十字路口交通信號的控制方法大致有如下兩種方式:其一是建立城市交通流的數學模型,提出最佳化算法,二是根據模糊控制的方法,根據十字路口交通的車輛數確定某一相位的綠燈初始時間和綠燈延長時間,對交通燈的控制實現了一定的模糊化。因此,結合我國城市道路交通的實際情況,開發出真正適合我們自身特點的智慧型信號燈控制系統是當前的主要任務,以最大限度地減少了十字路口的車輛平均延誤時間,提高了路口通行能力,從而達到緩解交通擁擠的目的。因此,有許多設計上作者為改善城市交通環境設計了許多方案,而大多數都為交通指揮燈,本電路也正是基於前人設計的基礎上進行改進的。由於交通的各種矛盾的不斷出現,人們總是儘可能的把各個歷史階段當時最新科技成果套用到交通控制系統中來,從而促進了交通控制技術的不斷發展。

1.2論文研究內容及結構安排

1.2.1研究內容

1.由一條主幹道和一條支幹道的匯合點形成十字交叉路口,為確保車 輛安。全、迅速地通行,在交叉路口的每個入口處設定紅、綠、黃三色信號燈。紅燈亮靜止通行;綠燈亮允許通行;黃燈亮則給行使中的車輛有時間停靠到禁行線外。按下列7點要求設計一交通燈控制系統: