【正文】
畢業(yè)設(shè)計(jì) 題 目: 基 于 單片機(jī)的自動(dòng)開關(guān)窗 設(shè)計(jì) 姓 名: xxx 專 業(yè): 電子信息工程 班 級(jí): 電信 N09 學(xué) 號(hào): 20204567942 指導(dǎo)教師: xxxx 導(dǎo)師職稱: 年 月 日 I 誠(chéng) 信 聲 明 我聲明,所呈交的論文是本人在老師指導(dǎo)下進(jìn)行的研究工作及取得的研究成果。據(jù)我查證,除了文中特別加以標(biāo)注和致謝的地方外,論文中不包含其他人已經(jīng)發(fā)表或撰寫過(guò)的研究成果,也不包含為獲得 ______ 或其他教育機(jī)構(gòu)的學(xué)位或證書而使用過(guò)的材料。我承諾,論文中的所有內(nèi)容均真實(shí)、可信。 論文作者簽名: 簽名日期: 年 月 日 II 授 權(quán) 聲 明 學(xué)校有權(quán)保留送論文交的原件,允許論文被查閱和借閱,學(xué)??梢怨颊撐牡娜炕虿糠謨?nèi)容,可以影印、縮印或其他復(fù)制手段保存論文,學(xué)校必須嚴(yán)格按照授權(quán)對(duì)論文進(jìn)行處理,不得超越授權(quán)對(duì)論文進(jìn)行任意處置。 論文作者簽名: 簽名日期: 年 月 日 III 基于單片機(jī)的自動(dòng)開關(guān)窗設(shè)計(jì) 摘 要 隨著科學(xué)技術(shù)的飛速發(fā)展,更多改善人們生活環(huán)境和提高生活質(zhì)量的高科技產(chǎn)品將會(huì) 進(jìn)入了人們的日常生活。同時(shí),科技的進(jìn)步帶動(dòng)了社會(huì)的快速發(fā)展,使得人們的生活節(jié)奏也加快了,在快節(jié)奏的生活下人們總會(huì)因各種各樣的原因忘記一些瑣事,因此智能化的家具是社會(huì)發(fā)展必然的選擇。目前家庭中的許多電器都已被貼上看智能化的標(biāo)簽,例如熱水器、洗衣機(jī)、空調(diào)等,為提高人們的生活質(zhì)量做出了貢獻(xiàn)。但讓人感到遺憾的是家庭生活中重要的組成部分 —— 窗戶,卻遲遲沒(méi)有跟上社會(huì)快速發(fā)展的步伐。現(xiàn)在應(yīng)用最廣泛的窗戶采用的任然是最原始的—— 人工關(guān)閉的方式,不具備自動(dòng)防雨、防霧等人性化的功能。 本次設(shè)計(jì)的 自動(dòng)開關(guān) 窗戶系統(tǒng)能通過(guò)其數(shù)據(jù)檢測(cè)傳 感電路不斷循環(huán)檢測(cè)室外濕度及 煙霧濃度 ,當(dāng)室外濕度達(dá)到一定時(shí)(下雨時(shí))窗戶自動(dòng)關(guān)閉,防止潮濕空氣或雨水進(jìn)入房間;當(dāng)室外煙霧達(dá)到一定值時(shí)窗戶自動(dòng)關(guān)閉。 關(guān)鍵詞: 單片機(jī),自動(dòng)窗, 傳感器 Microcontrollerbased automatic switch window design Abstract With the rapid development of science and technology, more to improve people39。s living environment and Hightech products will improve the quality of life into the daily lives of people. At the same time, the advancement of technology has led to the rapid development of society, so people also accelerated the pace of life in the fastpaced life, there will always be due to a variety of reasons to fet some of the chores, intelligent furniture is the inevitable choice for social development. Many electrical appliances in the family have been affixed point of view intelligent labels, such as water heaters, washing machines, air conditioning, to make a contribution to improve people39。s quality of life. It is regrettable that important parts of family life windows, have been slow to keep up with the rapid pace of development of the munity. Is the most primitive to the most widely used windows any contingent artificial closed, do not have automatic rain, fog and other userfriendly features. The design of the automatic switch windows system through its data detection sensor IV circuit continuous cycle detection outdoor humidity and smoke concentration, when the outdoor humidity reaches a certain time (when it rains) windows automatically shut down to prevent moist air or rain to enter the room。 when the out door smoke windows closed automatically when a certain value is reached. Keywords: MCU, Automatic window, Sensor V 目錄 摘 要 .......................................................................................................................... III Abstract ........................................................................................................................ III 1 緒論 ............................................................................................................................ 1 課題的背景 ...................................................................................................... 1 課題的意義 ...................................................................................................... 1 自動(dòng)窗發(fā)展現(xiàn)狀 .............................................................................................. 2 2設(shè)計(jì) 的任務(wù) 與 特點(diǎn) ..................................................................................................... 3 本設(shè)計(jì)的主要任務(wù) .......................................................................................... 3 本設(shè)計(jì)的特點(diǎn) .................................................................................................. 3 3 自動(dòng)窗的構(gòu)成及各模塊 ............................................................................................ 4 自動(dòng)窗的構(gòu)成 ................................................................................................. 4 單片機(jī) .............................................................................................................. 4 步進(jìn)電機(jī)及其驅(qū)動(dòng) .......................................................................................... 8 DHT11 傳感器 .................................................................................................. 9 MQ2煙霧傳感器 ............................................................................................ 9 ADC0832 ......................................................................................................... 10 LCD1602 液晶顯示 ........................................................................................ 11 4 軟件設(shè)計(jì) .................................................................................................................. 11 主程序流程圖 ............................................................................................... 11 各部分子程序 ............................................................................................... 12 濕度檢測(cè) ............................................................................................ 12 LCD1602 顯示 ..................................................................................... 13 5系統(tǒng)組裝及調(diào)試 ....................................................................................................... 15 組裝步驟 ........................................................................................................ 15 整體原理圖 ................................................................................................... 15 元器件清單 ................................................................................................... 15 焊接及注意事項(xiàng) .............................