【正文】
第一章 緒 論 .............................................................................................................................4 國內(nèi)外智能產(chǎn)業(yè)發(fā)展概況 ...........................................................................................4 智能樓道燈操作說明 ...................................................................................................4第二章 元器件的介紹 .............................................................................................................5 單片機(jī)的選擇 ...............................................................................................................5 單片機(jī)的主流系列及機(jī)型選擇 ...................................................................................5 管腳介紹 .......................................................................................................................6 總線結(jié)構(gòu) .......................................................................................................................8 紅外發(fā)射二極管 ...........................................................................................................9 一體化紅外接收管 .....................................................................................................10 LED 燈 .........................................................................................................................12 LED 用 途 介 紹 ..........................................................................................................13 LED特 點(diǎn) ...................................................................................................................14 色 溫 及 顏 色 的 應(yīng) 用 ................................................................................................15第三章 系統(tǒng)硬件設(shè)計(jì) ...........................................................................................................18 系統(tǒng)的整體硬件圖 .......................................................................................................18 一體化紅外接收電路 ...................................................................................................18 紅外發(fā)射模塊電路圖 .............................................................................................19第四章 系統(tǒng)軟件設(shè)計(jì) ...........................................................................................................20 程序流程圖 ..................................................................................................................20 系統(tǒng)的匯編程序代碼 ...............................................................................................20結(jié) 論 ............................................................................................................................................22致 謝 ............................................................................................................................................23參考文獻(xiàn) .....................................................................................................................................24基于 STC89C52 單片機(jī)紅外樓道燈系統(tǒng)設(shè)計(jì)摘要: 本文設(shè)計(jì)的題目是基于單片機(jī)的紅外樓道燈設(shè)計(jì),使用 STC89C52 型單片機(jī)調(diào)制出 38KHZ 的信號(hào),驅(qū)動(dòng)紅外二極管。本文對系統(tǒng)進(jìn)行了模塊化處理,系統(tǒng)的硬件電路包括主機(jī)、紅外發(fā)射、電源模塊、LED 燈指示模塊 4 個(gè)主要部分。當(dāng)檢測到人的時(shí)候,紅外線被反射回來,被紅外一體化接受管接收到,紅外一體化接收管接收到信號(hào)后輸出一個(gè)低電平,這個(gè)低電平傳送給單片機(jī)中斷,并執(zhí)行中斷處理程序。關(guān)鍵詞: 單片機(jī) STC89C52;LED;中斷;紅外檢測Design of Infrared Obstacle Avoidance Trolley System based on STC89C52Abstract: This design topic is based on SCM infrared corridor lights design, uses STC89C52 type of 38KHZ microcontroller modulation signal, driving the infrared diode. This article on the system modular processing, system hardware circuit including host, infrared emission, the power modules, LED lamp instruction module four major parts. The mainframe mainly adopts singlechip microcontroller smallest system posed STC89C52, infrared emission is through the monolithic I / O mouths modulation 38KHZ signal, driving the infrared diodes, make its send lubricious infrared, as control signal. When detect person, infrared reflected back by infrared integration accept tube, received, infrared integration after receiving