【正文】
摘 要 在生活當(dāng)中,照明在能耗當(dāng)中所占的比例越來越大,當(dāng)今照明的節(jié)能越顯重要。一個(gè)好的照明控制系統(tǒng),能為人們的生活、學(xué)習(xí)、工作等提供良好的視覺條件,營(yíng)造舒適的光環(huán)境。目前在國(guó)內(nèi)和國(guó)外通常使用的大概有這幾種類型:觸摸型、聲控型、感光型等。 論文主要介紹了基于單片機(jī)的家庭智能 LED 照明燈具的設(shè)計(jì)。設(shè)計(jì)采用單片機(jī)作為控制系統(tǒng),結(jié)合 LED 照明技術(shù)、光感技術(shù)、紅外傳感技術(shù)等實(shí)現(xiàn)了對(duì)照明設(shè)備的智能化控制。智能化照明設(shè)備克服了傳統(tǒng)照明設(shè)備耗能、不便于調(diào)節(jié)光強(qiáng)等缺點(diǎn),實(shí)現(xiàn)了對(duì)光強(qiáng)調(diào)整的人性化、智能化的控制。 硬件設(shè)計(jì)主要包括單片機(jī)控制電路、按鍵電路、 LCD 顯示電路 、 熱釋電傳感器處理電路 。軟件設(shè)計(jì)主要包括單片機(jī)主控程序、 ADC 控制程序的設(shè)計(jì)和 LCD 顯示程序的設(shè)計(jì) 。家庭智能 LED 照明燈具通過人體感應(yīng)模塊(熱釋電傳感器)決定 LED 燈的關(guān)閉和開啟。同時(shí)可以通過光照檢測(cè)電路對(duì)周圍環(huán)境亮度進(jìn)行檢測(cè),進(jìn)而實(shí)現(xiàn)對(duì) LED燈的控制。設(shè)計(jì)通過點(diǎn)亮 LED 燈的個(gè)數(shù)來實(shí)現(xiàn)光照強(qiáng)度的調(diào)整,同時(shí)可用按鍵熄滅或者開啟一組 LED 燈。解決了照明設(shè)備關(guān)閉、自適應(yīng)調(diào)整和自動(dòng)開啟的問題,從而達(dá)到良好的光環(huán)境和調(diào)光效果。 關(guān)鍵詞: 單片機(jī);光敏傳感器;節(jié)能 ; LED 燈;智能控制 ABSTRACT In life, lighting in the proportion of energy consumption which is more and more big, the energy saving of today39。s lighting is more important. A good lighting control system, for people39。s life, study, work, etc. to provide a good visual conditions, and create a fortable light environment. It is usually used at home and abroad about several types: touch type, sound type, photosensitive type etc.. This paper mainly introduces the design of intelligent LED lighting lamps based on single chip microputer. Design uses a microcontroller as control system, bined with the LED lighting technology, optical sensing technology, infrared sensing technology to realize the intelligent control of lighting equipment. Intelligent lighting equipment to overe the traditional lighting equipment, energy consumption, is not easy to adjust the light intensity and other shortings, to achieve the light intensity adjustment of human nature, intelligent control. The hardware design mainly includes the single chip microputer control circuit, the key circuit, the LCD display circuit, the pyroelectric sensor processing circuit. The software design mainly includes the control program of the single chip microputer, the design of the ADC control program and the design of the LCD display program. Home intelligent LED lighting lamps through the human body induction module (pyroelectric sensor) to determine the LED lights off and open. At the same time, the brightness of the surrounding environment can be detected by the light detection circuit, and then the control of the LED lamp can be realized. The design of a number of the LED lamp lit to achieve light intensity adjustment, while keys can open out or a group of LED lamps. To solve the problem of lighting equipment closed, adaptive adjustment and automatic opening, so as to achieve a good light environment and light adjustment effect. Key words: Single chip microputer。 photosensitive sensor。 energy saving。 LED lamp。 intelligent control 目 錄 1 緒論 .................................................................. 1 研究背景與意義 ................................................... 1 國(guó)內(nèi)外研究現(xiàn)狀 ................................................... 1 2 設(shè)計(jì)總體方案 .......................................................... 3 設(shè)計(jì)內(nèi)容與要求 ................................................... 3 設(shè)計(jì)方案選擇 ..................................................... 3 單片機(jī)的選擇 ................................................ 3 人體感應(yīng)檢測(cè)方案的選擇 ...................................... 3 光照檢測(cè)的方案的選擇 ........................................ 3 ADC 芯片的選擇 ............................................. 4 系統(tǒng)總體設(shè)計(jì)方案 ................................................. 4 系統(tǒng)工作原理 ..................................................... 5 3 使用芯片和相關(guān)模塊的簡(jiǎn)介 .............................................. 6 單片機(jī)芯片 ....................................................... 6 LCD 顯示器 LMO1602 ............................................... 7 最小系統(tǒng)模塊 ..................................................... 8 光線接收模塊 ..................................................... 8 AD 轉(zhuǎn)換模塊 ...................................................... 9 光敏電阻 5516.................................................... 10 4 硬件電路的設(shè)計(jì) ....................................................... 11 時(shí)鐘電路 ........................................................ 11 復(fù)位電路 ........................................................ 11 按鍵電路 ........................................................ 12 顯示電路 ........................................................ 12 人體熱釋電傳感器電路 ............................................ 12 LED 燈電路 ...................................................... 13 硬件連接及電路圖 ................................................ 14 5 軟件設(shè)計(jì)及仿真 ....................................................... 15 軟件的總體設(shè)計(jì) .................................................. 15 ADC 控制程序的設(shè)計(jì) .............................................. 15 LCD 顯示程序的設(shè)計(jì) .............................................. 16 按鍵程序的設(shè)計(jì) .................................................. 17 延時(shí)程序的設(shè)計(jì) .................................................. 17 Proteus 仿真效果 ................................................ 17 仿真說明 ................................................... 17 自動(dòng)模式下的仿真效果 ....................................... 18 手動(dòng)模式下的仿真效果 ...................................... 19 人體遠(yuǎn)離時(shí)的效果 .................................