【正文】
編 號: 審定成績: 重慶郵電大學 移通學院 畢業(yè)設(shè)計(論文) 設(shè)計(論文)題目: 基于土壤定時檢測的家庭自動澆花 系統(tǒng)設(shè)計 單 位(系別) : 自動化系 學 生 姓 名 : 楊猛 專 業(yè) : 電氣工程及其自動化 班 級 : 05110901 學 號 : 0511090134 指 導 教 師 : 楊佳義 答辯組 負責人 : 汪紀鋒 填表時間: 2022 年 6 月 重慶郵電大學 移通學院 教務(wù)處制重慶郵電大學移通學院本科畢業(yè)設(shè)計(論文) I 摘 要 本系統(tǒng)設(shè)計的是 基于土壤定時檢測的家庭自動澆花系統(tǒng)設(shè)計, 選用 8 位單片機 AT89C51作為主控芯片。系統(tǒng)采用模塊化思想設(shè)計,主要由控制模塊、濕度傳感器檢測模塊、 LCD 液晶 顯示模塊、控制執(zhí)行模塊、時鐘及復位模塊和報警模塊幾大部分主成。此系統(tǒng)主要設(shè)計思想就是 利用濕度傳感器檢測土壤的濕度,采集的濕度傳送到單片機 處理單元,單片機根據(jù)濕度控制電磁閥自動給花卉澆水。在此過程中無需人為的操作,就能實現(xiàn)自動給花卉澆水,大大的 提高了花卉澆水控制的自動化水平,并具有擴展性好、實用性強、便于操作等特點。 此系統(tǒng)是利用單片機實現(xiàn)自動澆花,使用的方式是濕度澆花。其原理就是根據(jù)一個濕度傳感器對土壤的濕度進行檢測,當檢測的濕度低于設(shè)定的下限濕度時,則啟動報警并開始用水澆花,到了設(shè)定的濕度就停止?jié)不?;當檢測的濕度高于設(shè)定的上限濕度時,則啟動報警但不作動作。且用 LED 燈顯示電磁閥的狀態(tài),在此選取二個 LED 燈,當其中一個顯示紅色燈時,表示電磁 閥不動作,不對花卉進行澆水;另一個為綠色燈時,則表示電磁閥動作,對花卉進行澆水。還能通過按鍵對濕度的上下限和定時時間進行設(shè)置,這樣就能在不同的季節(jié)中花卉可以更好的生長,讓它隨時都處在良好的生存環(huán)境中。 【關(guān)鍵詞】 AT89C51 濕度傳感器 LCD 液晶顯示器 LED 燈 重慶郵電大學移通學院本科畢業(yè)設(shè)計(論文) II ABSTRACT The system design is based on the soil testing regularly family automatic watering system design, chooses 8bit single chip microputer AT89C51 as the main control chip. System adopts modular design thought, mainly by the control module, the humidity sensor detection module, LCD liquid crystal display module, control module, clock module and alarm module, most of the Lord. This system main design idea is to use the humidity of soil humidity sensor detection, acquisition of humidity transmitted to MCU processing unit, SCM according to the humidity control solenoid valve automatic watering flowers. Without artificial operation in the process, can realize automatic watering flowers, greatly improve the automation level of the flower watering control, and has good expansibility, strong practicability, convenient operation and so on. This system is to use single chip microputer automatic watering the flowers, use the way of humidity is watering the flowers. Its principle is based on a humidity sensor to test the soil humidity, when humidity is lower than set the lower limit of the humidity test, start the alarm and begin to water the flowers, the setting humidity stopped watering the flowers。 When humidity is higher than set the upper limit of moisture test, start the alarm but does not make the movement. And state of solenoid valve with LED lights show that the selection in the two LED lights, when one of the red light, said electromagic valve is not action, not watering the flowers。 A second for the green light, the said electromagic valve action, to water flowers. Can also through the buttons on the humidity of the lower limit of time and timing set, so you can in the different season flowers can grow better, to make it all the time in the good living environment. 【 Key words】 AT89C51 Humidity sensor LCD liquid crystal display LED lights 重慶郵電大學移通學院本科畢業(yè)設(shè)計(論文) III 目 錄 前 言 .................................................................................................................................................. 1 第一章 單片機的概述 ...................................................................................................................... 2 第一節(jié) 單片機的發(fā)展歷史 .......................................................................................................... 2 第二節(jié) 單片機未來的發(fā)展 .......................................................................................................... 3 第二章 系統(tǒng)的總體設(shè)計方案 .......................................................................................................... 4 第一節(jié) 設(shè)計內(nèi)容及基本要求 ...................................................................................................... 4 一、設(shè)計內(nèi)容 .............................................................................................................................. 4 二、基本要求 .............................................................................................................................. 4 第二節(jié) 系統(tǒng)框圖 .......................................................................................................................... 4 第三節(jié) 系統(tǒng)設(shè)計方案 .................................................................................................................. 5 第四節(jié) 系統(tǒng)完成的技術(shù)指標 ...................................................................................................... 6 第五節(jié) 系統(tǒng)設(shè)計原則 .................................................................................................................. 6 一、可靠性 ...................................................................................................................................... 6 二、操作維護方便 .......................................................................................................................... 6 三、性價比 ...................................................................................................................................... 7 第三章 硬件電路設(shè)計 ...................................................................................................................... 8 第 一節(jié) 控制電路模塊 .................................................................................................................. 8 一、單片機的基本概念 .............................................................................................................. 8 二、 MS51 單片機內(nèi)部結(jié)構(gòu) ...................................................................................................... 8 三、 MS51 單片機的引腳及功能 .............................................................................................. 9 四、 AT89C51 芯片引腳圖 ....................................................................................................... 10 第二節(jié) 振蕩電路及復位電路 .....................................................................