freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文-基于車流量檢測的智能交通信號燈的設(shè)計(專業(yè)版)

2025-08-01 11:17上一頁面

下一頁面
  

【正文】 //定時 10ms 中斷一次 TH0 = 0x3c。 //顯示東西設(shè)置的時候 dis_smg[3] = smg_du[nb_time / 10] 。 if(menu_1 = 3) { menu_1 = 0。 //滅 nb_red = 0。 if(flag_jdgz 5) flag_jdgz = 0。 //按鍵消抖動 if((nb_che == 0) amp。 0x1f) != 0x1f) amp。 //亮 nb_yellow = 1。 //滅 nb_red = 0。i++) nb_che_value += nb[i]。 //消隱 smg_we_switch(i)。 break。 //東西、南北的時間 uchar flag_jdgz 。 //南北紅燈 sbit nb_green = P2^6。我能順利完成,與老師和同學(xué)的幫助密不可分。再將 .HEX 文件加載到電路圖中進(jìn)行仿真,仿真圖如圖 所示: 圖 電路仿真圖 由于 E18D80NK 紅外避障傳感器無法在 Proteus 軟件中無法仿真,因此用按鍵產(chǎn)生的低電平來代替?zhèn)鞲衅鳈z測到物體輸出的低電平。在 d 狀態(tài)下,南北方向是通行,東西方向上禁行。如圖 所示: 圖 動態(tài)顯示 本次設(shè)計東西南北方向上總共用到了 8 個 LED 數(shù)碼管,但由于東西方向顯示的時間是一樣的,南北方向顯示的也是一樣的,因此單片機(jī)實際上只需要控制 4 個 LED 數(shù)碼管顯示,由于數(shù)碼管較多,用的是動態(tài)顯示方法, 4 個 LED 數(shù)碼管的 ( a~dp)接單片機(jī)的 8 位 I/O 端的 P0 口, 4 條位選線接 I/O 端 P2 的 4 個端口。當(dāng) x20 時,綠燈通行時間不變;當(dāng)安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) 8 20x30 時,綠燈通行時間增加 10 秒;當(dāng) 30x 時,綠燈通行時 間增加 20 秒。晶體振蕩器通常選擇 60MHz、12MHz或 。總共有五種模式,第一種是東西方向、南北方向全部亮紅燈,這種模式可以對應(yīng)在出現(xiàn)交 通事故時給救護(hù)車讓行。并在一定程度上降低了道路擁擠造成的經(jīng)濟(jì)損失。1 2 定時及計數(shù)程序的設(shè)計 倒計時顯示 安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) II Design of Traffic Lights based on vehicle flow detection Abstract With the development of modern social logistics and the increase of transportation, the public management systemtraffic control system plays a more and more important role in our life. At present, in order to ensure and improve the safety of traffic order, not only the country need to issue a series of traffic laws and regulations, but also need to use certain scientific and technological means to achieve it. The intelligent traffic control system based on single chip is posed of AT89S51 singlechip, traffic display, LED countdown, vehicle flow detection and adjustment, emergency treatment, time mode and other modules. The system not only can execute the basic function of traffic lights, but also can achieve some related functions such as manually set of the transit time, countdown display, the car forced through and traffic detection and adjustment and so on. Key Word: Singlechip。7 車流量檢測電路 18 參考文獻(xiàn) 我國的交通是從新中國成立之后才開始發(fā)展的,起步比較晚,但隨著我國經(jīng)濟(jì)的迅速發(fā)展,交通的需求也急劇增加,對原有的交通控制系統(tǒng)更提出了嚴(yán)峻的挑戰(zhàn)。本次設(shè)計采用的是紅外線檢測器,因為相對于其他的檢測器,紅外線檢測器在實驗室中更易于實現(xiàn)。 這兩個引腳跨接石英晶體振蕩器和微調(diào)電容,構(gòu)成一個穩(wěn)定的自激振蕩器。 本次設(shè)計中,由于檢測車流量使用了兩個紅外線避障礙傳感器,它們的輸出端分別連接著單片機(jī) I/O 端口的 和 端口。 安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) 10 動態(tài)顯示就是將顯示器的段碼線的相應(yīng)端并聯(lián)在一起,由一個 8 位 I/O 端口偶控制,而各顯示位的公共端分別由另一個單獨的 I/O 端口控制。 (3) 狀態(tài) c 是:南北方向上繼續(xù)亮紅燈;東西方向綠燈滅,同時黃燈閃爍,倒計時 5 秒。 (1) 用 Keil 編寫 C 語言程序,根據(jù)流程圖順序編寫。 安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) 18 致 謝 在本次畢業(yè)設(shè)計的過程中,我遇到了很多問題。 //東西紅燈 sbit dx_green = P2^3。 uchar i。 smg_we2 = 1。 for(i=0。i++) dx_che_value += dx[i]。 **************/ if(flag_dx_nb == 0) { if(dx_s 5) { dx_red = 1。 //滅 dx_yellow = 1。 if((P1 amp。 } /********************車計流量程序 *****************/ void che_liuliang() //車計流量程序 { static uchar value1,value2。 /********************設(shè)置函數(shù) *****************/ void key_with() { if(menu_1 == 0) { if(key_can == 2) flag_che = 1。 //滅 } if(flag_jdgz == 3) // 南北紅燈 東西綠燈 { dx_red = 1。 //滅 nb_green = 1。 } dis_smg[0] = smg_du[11] 。 //顯示東西設(shè)置的時候 dis_smg[0] = smg_du[dx_che_value % 10 ] 。 flag_5m_value++。 安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) 31 dx_s = nb_time。 } if(key_can == 3) { dx_time 。 //滅 } if(flag_jdgz == 4) // 南北綠燈 東西綠燈 { dx_red = 1。 //滅 dx_yellow = 1。 nb[miao] += 1。 switch(P1 amp。 //滅 dx_green = 1。 //滅 flag_5m_value = 0。 if(flag_dx_nb == 1) { if(dx_che_value = 30) dx_s = dx_time + 20。 } } /*********************定時器 0、定時器 1 初始化 ******************/ void time0_init() { TMOD = 0X11。 smg_we3 = 1。 smg_we2 = 1。 //南北車計流量 sbit dx_che = P3^4。 ////數(shù)碼管段選定義 0 1 2 3 4 5 6 7 8 9 uchar smg_du[]={0x40,0x75,0x0c,0x14,0x31,0x12,0x02,0x74,0x00,0x10, // A B C D E F 不顯示 0x20,0x03,0x4a,0x05,0x0a,0x2a,0xff}。器件全部焊接好之后,將程序?qū)雴纹瑱C(jī)中進(jìn)行調(diào)試。設(shè)置后進(jìn)入 50ms 掃描程序, 50ms 掃描程序開始后立即刷新顯示模塊。如圖 所示: 安徽新華學(xué)院 2021 屆本科畢業(yè)論文(設(shè)計) 11 圖 按鍵電路 當(dāng) =?0?即開關(guān) S1 閉合時,可設(shè)置紅綠燈時間,且按 S2 增加 1,按 S3減少 1。 LED 數(shù)碼管為 “8”字型,帶小數(shù)點總共八段,每一段對應(yīng)一個發(fā)光二極管,有共陽極和共
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1