【正文】
基于 51 單片機的智能窗戶設(shè)計 【摘 要】 隨著電子技術(shù)的發(fā)展和人民生活水平的不斷提高,智能窗已經(jīng)越來越多地被用到了現(xiàn)代智能化建筑中,提供住戶一個安全、方便的環(huán)境。據(jù)統(tǒng)計,在未來的幾年內(nèi),安裝智能窗的用戶將不斷增加。本 次 設(shè)計的智能窗戶系統(tǒng)能通過其數(shù)據(jù)檢測傳感電路不斷循環(huán)檢測 室外濕度及溫度,當(dāng)室外濕度達(dá)到一定時(下雨時)窗戶自動關(guān)閉,防止潮濕空氣或雨水進(jìn)入房間;另外可設(shè)置自動關(guān)閉窗戶或開啟窗戶時間,到了設(shè)定時間會自動關(guān)閉或開啟窗戶;可設(shè)置是否自動根 據(jù)濕度變化自動開啟關(guān)閉窗戶或者根據(jù)設(shè)置時間自動開啟或者關(guān)閉窗 戶 。 【關(guān)鍵詞】 智能窗戶; 單片機; 溫度檢測; 濕度檢測; 1 【 Abstract】 With the development of electronic technology and the continuous improvement of people39。s living standard, the intelligent window has been increasingly used in modern intelligent building, to provide a safe, convenient resident environment. According to statistics, in the next few years, the installation of smart windows users will continue to increase. The design of intelligent window system through the data detecting sensing circuit continuous detection of circulating outside humidity and temperature, when the outside humidity reaches a certain time ( when it rains ) close the window automatically, prevent the moist air or water into the room。 also can be set to automatically close the windows or window opening ti me, to set the time automatically open or close the window。 you can set whether to automatically according to the changes of temperature and humidity automatically open and close the windows or according to the set time automatically open or close the window。 when the window outside the person near infrared alarm to be generated when the antitheft function. Also can control the keyboard, directly control window switch, select the display parameter types. 【 Key words】 intelligent window single chip microputer temperature detection humidity detection 2 目 錄 第 1章 緒論 ...................................................................................................................................... 3 智能窗戶綜述 .................................................................................................................... 3 智能窗戶研究現(xiàn)狀 ............................................................................................................. 3 第 2章 設(shè)計的目標(biāo)任務(wù) .................................................................................................................... 4 本文主要工作設(shè)計 ............................................................................................................. 4 ................................................................................................................ 4 第 3章 設(shè)計方案論證 ................................................................................................................... 5 溫濕度檢測方案 ................................................................................................................... 5 窗戶控制系統(tǒng)設(shè)計方案 ........................................................................................................ 6 限位開關(guān)控制系統(tǒng)設(shè)計方案 ................................................................................................. 7 第 4 章 硬件電路設(shè)計 ........................................................................................................................ 8 最小系統(tǒng)電路設(shè)計 ............................................................................................................. 8 ............................................................................................................. 8 .............................................................................................................. 11 顯示電路設(shè)計 .................................................................................................................... 11 ..................................................................................................................... 12 光電開關(guān)電路設(shè)計 .............................................................................................................. 13 .................................................................................................................. 14 第 5章 軟件設(shè)計 ........................................................................................................................... 15 主程序流程圖 .................................................................................................................. 15 各部分子程序 .................................................................................................................. 15 第 6章 系統(tǒng)組裝與調(diào)試 ................................................................................................................. 19 基本電路板檢查 ................................................................................................................. 19 主控模塊調(diào)試 .................................................................................................................... 19 軟件調(diào)試 ........................................................................................................................... 19 ............................................................................................................................ 19 結(jié)束語和致謝語 ............................................................................................................................... 21 參考文獻(xiàn) ......................................................................................................................................... 22 附( 一 ) : 原理圖 ............................................................................................................................. 23 附(二): PCB板 .............................................................................................................................. 25 附(三):程序 ................................................................................................................................ 26 3 第 1 章 緒論 智能窗戶綜述 智能窗戶一般是指安裝了先進(jìn)的防盜、防劫 、防雨 系統(tǒng)技術(shù)的門窗。 起初智能窗戶在一些公共場所、高檔商品房、商場中運用廣泛,但隨著科學(xué)技術(shù)的飛躍發(fā)展,生活水平的不斷提高,人們對安全、舒適、健 康的生活需求變得日益迫切。而近年來,智能家居概念已經(jīng)逐漸深入到國民的生活之中,且