【正文】
基于單片機(jī)的(數(shù)顯)交通燈控制系統(tǒng)設(shè)計(jì) 1 課程設(shè)計(jì)報(bào)告 題目 : 基于單片機(jī)的(數(shù)顯)交通燈控制系統(tǒng)設(shè)計(jì) 課 題 類 別: 設(shè)計(jì) □ 論文 □ 學(xué) 生 姓 名: 學(xué) 號(hào): 班 級(jí): 專業(yè)(全稱): 指 導(dǎo) 教 師: 小 組 成 員 : 2021 年 6 月 16 日 基于單片機(jī)的(數(shù)顯)交通燈控制系統(tǒng)設(shè)計(jì) 2 目錄 摘要 ………………………………………………………………… 3 一、 設(shè)計(jì)背景 ……………………………………………………… 4 二、 方案分析與對(duì)比 ……………………………………………… 4 方案分析 … ………………………………………………… 4 方案對(duì)比 … …………… … ………………………………… 4 三、 智能交通燈控制系統(tǒng)的硬件設(shè)計(jì) …………………………… 4 STC89S5單片 介 …… ……… … ……………………………… 4 控制器的原理框圖 …… … ………………………………… 8 緊急轉(zhuǎn)換電 …… ……… … ……………………………… 8 四、 智能交通燈控制系統(tǒng)的軟件設(shè)計(jì) …………………………… 10 交通燈的軟件設(shè)計(jì)流程圖 …………… … ……………… 10 控制器的軟件設(shè)計(jì) … ………… … ………… … ………… 10 五、 系統(tǒng)分析及改進(jìn)措施 ………………………………………… 12 六、 心得體會(huì) ……………………………………………………… 13 參考文獻(xiàn) …………………………………………… 14 附錄 ………………………………………………… 14 基于單片機(jī)的(數(shù)顯)交通燈控制系統(tǒng)設(shè)計(jì) 3 摘要 : 自從 1858 年英國(guó)人,發(fā)明了原始的機(jī)械扳手交通燈之后,隨后的一百多年里,交通燈改變了改變了交通路況,也在人們?nèi)粘I钪姓紦?jù)了重要地位,隨著人們社會(huì)活動(dòng)日益增加,經(jīng)濟(jì)發(fā)展,汽車數(shù)量急劇增加,城市道路日漸擁擠, 交通燈更加顯示出了它的功能,使得交通得到 有效管制,對(duì)于交通疏導(dǎo),提高道路導(dǎo)通能力,減少交通事故有顯著的效果。 近年來,隨著科技的飛速發(fā)展,電子器件也隨之廣泛應(yīng)用,其中單片機(jī)也不斷深入人民的生活當(dāng)中。 本 模擬交通燈 系統(tǒng)利用單片機(jī) STC89C52 作為核心元件 ,實(shí)現(xiàn)了 通過信號(hào)燈根據(jù)區(qū)域車流 現(xiàn)實(shí)對(duì)路面狀況的智能控制。 從一定程度上解決了交通路口堵塞、車輛停車等待時(shí)間不合理、急車強(qiáng)通等問題。系統(tǒng)具有結(jié)構(gòu)簡(jiǎn)單、可靠性高、成本低、實(shí)時(shí)性好、安裝維護(hù)方便等優(yōu)點(diǎn),有廣泛的應(yīng)用前景。 本模擬系統(tǒng)由單片機(jī)硬 /軟件系統(tǒng),兩位 8段 數(shù)碼管 和 LED燈顯 示系統(tǒng)。和復(fù)位電路控制電路等 組成,較好模擬了,交通路面的控制。 關(guān)鍵詞:交通燈 單片機(jī) 數(shù)碼管 Abstract: In 1858, since the invention of primitive mechanical a wrench to the traffic lights, the more than a hundred years, the traffic lights changed to change the traffic and transport in their everyday lives as an important position, increasing social and economic development and the car has drastically increased, the roads are crowded, and the traffic lights more of its functions, the effective control, for otherwise, the road leading to improve the capability to reduce traffic accident is a notable In recent years, as technology evolved, eelctronic pieces also widely used, which are monolithic integrated circuits into the life of the people of the traffic lights. the simulation system as a core element of monolithic integrated circuits stc89c52 made by the light on the basis of regional traffic stream reality of the road conditions of the intelligent control. from the extent to solve the traffic congestion or vehicle parking at the waiting time is not reasonable, is a car with the problems. System has a simple structure, high reliability, costs and timely, and install safeguard it conveniently advantages of a wide application prospect. The analog systems it is monolithic integrated circuits software system, two of 8 the tube and the system led display. and unset control of electrical circuits, simulations, and the road. traffic control 基于單片機(jī)的(數(shù)顯)交通燈控制系統(tǒng)設(shè)計(jì) 4 隨著微控技術(shù)的日益完善和發(fā)展,單片機(jī)的應(yīng)用在不斷走向深入。它的應(yīng)用比定導(dǎo)致傳統(tǒng)的控制技術(shù)從根本上發(fā)生變革。也就是說單片機(jī)應(yīng)用的出現(xiàn)是對(duì)傳統(tǒng)控制技術(shù)的革命。它在工業(yè)控制、數(shù)據(jù)采集、智能化儀表、機(jī)電一體化、家用電器等領(lǐng)路得到了廣泛應(yīng)用,極大的提高了這些領(lǐng) 域的技術(shù)水平和自動(dòng)化控制。因此單片機(jī)的開發(fā)應(yīng)用已成為高技術(shù)工程領(lǐng)域的一項(xiàng)重大課題。因此了解單片機(jī)知識(shí),掌握單片機(jī)的應(yīng)用技術(shù)具有重大的意義。 當(dāng)前 ,在世界范圍內(nèi) ,一個(gè)以微電子技術(shù) ,計(jì)算機(jī)的通訊技術(shù)為先導(dǎo)的 ,一信息技術(shù)及信息產(chǎn)業(yè)的信息革命時(shí)期。而計(jì)算機(jī)技術(shù)怎樣與實(shí)際應(yīng)用更有效的結(jié)合并有效地發(fā)揮其作用是科學(xué)界最熱門的話題 ,也是當(dāng)今計(jì)算機(jī)應(yīng)用中空前活躍的領(lǐng)域。本文主要從計(jì)算機(jī)的應(yīng)用上來實(shí)現(xiàn)十字路口交通燈智能化的管理 ,用以控制過往車輛的正常運(yùn)作。 2 方案分析與對(duì)比 方案分析 通過分析可以知道,所要設(shè)計(jì)的交通燈信號(hào)控 制電路 要能夠適應(yīng)于有一條干道和一條支干道的匯合點(diǎn)形成的十字交叉路口。能夠做到主、支的紅綠閃亮的時(shí)間不完全相同。在路燈變紅燈的過程中能夠用黃燈進(jìn)行過渡,似的行駛過程中的車輛有足夠的時(shí)間聽下來。還要求主﹑支干道各設(shè)立一組計(jì)時(shí)顯示器,能夠顯示相應(yīng)的紅﹑綠﹑黃的倒計(jì)時(shí)。 方案對(duì)比。 實(shí)現(xiàn)路口交通燈系統(tǒng)的控制方法很多 ,可以用標(biāo)準(zhǔn)邏輯電路器件,可編程序控制器和單片機(jī)等方案來實(shí)現(xiàn)。 用單片機(jī)方案來實(shí)現(xiàn)的話,模型可以由電源電路 、單片機(jī)主控電路、無線