【正文】
控、小型無(wú)線網(wǎng)絡(luò)、無(wú)線抄表、門(mén)禁系統(tǒng)、工業(yè)數(shù)據(jù)采集系統(tǒng)、身份識(shí)別、小型無(wú)線數(shù)據(jù)終端、安全防火系統(tǒng)、無(wú)線 232數(shù)據(jù)通信 、 數(shù)字音頻、圖像傳輸?shù)阮I(lǐng)域中。 單片機(jī) 是 專為工業(yè)測(cè)量與控制而設(shè)計(jì),具有 集成度高、可靠性高、性價(jià)比高的優(yōu)勢(shì), 它給人 們 帶來(lái)的方便也是不可否定的, 采用它制成的監(jiān)測(cè) 控制 系統(tǒng)非常之多。 溫室大棚測(cè)控系統(tǒng)是實(shí)現(xiàn)溫室生產(chǎn)管理自動(dòng)化、科學(xué)化的基本保證。 圖 玻璃溫室 在 2021年 4月 14日,遼寧省成功研制出了 “ 內(nèi)保溫組裝式溫室 ” 。 圖 薄膜溫室 第二種玻璃溫室,它是源于早期引進(jìn)的荷蘭 VENLO溫室,由于荷蘭屬于寡日照地區(qū),對(duì)透光要求高,因此,玻璃的高透 光性非常適合于高光作物的種植。它的優(yōu) 點(diǎn)是 保溫性能好,運(yùn)行成本低 ;缺點(diǎn)是 透光率低 。 以下將簡(jiǎn)要地介紹幾種溫室大棚。 尤其對(duì)于 我國(guó)北方地區(qū)無(wú)霜期短, 冬天日夜溫差大, 而長(zhǎng)江流域地區(qū)雖然冬季能生產(chǎn)一些耐寒蔬菜,但種類單調(diào),且若遇冬季寒潮或夏秋暴雨,連綿陰雨等災(zāi)害性天氣,則早春育苗和 秋冬蔬菜生產(chǎn)都可能會(huì)受到較大的損失,影響蔬菜的供應(yīng)。 參 考 文 獻(xiàn) ............................................................... 29 附錄一:實(shí)物圖及 PCB ....................................... 錯(cuò)誤 !未定義書(shū)簽。 Temperature monitoring。 AT89S51。 經(jīng)過(guò)軟件仿真和硬件實(shí)驗(yàn) ,本設(shè)計(jì) 實(shí)現(xiàn)了對(duì)大棚溫度的監(jiān) 測(cè)和控制,監(jiān)測(cè)距離 大于200m。 下位機(jī)軟件采用了 C51高級(jí)語(yǔ)言進(jìn)行程序設(shè)計(jì) , 實(shí)現(xiàn)軟件編程的模塊化和獨(dú)立性 , 具有良好的可測(cè)試性和可靠性 。 在無(wú)線接收 端, 利用 LCD液晶顯示模塊進(jìn)行相關(guān)數(shù)據(jù)顯示 , 并且單片機(jī)可通過(guò) RS232接口與計(jì)算機(jī)通信 , 進(jìn)行溫度的檢測(cè) 與控制。 在硬件方面 , 對(duì)硬件的各個(gè)環(huán)節(jié)都進(jìn)行了仔細(xì)的分析、選取和設(shè)計(jì) 。 它的原理 是利用溫度傳感器將溫室大棚內(nèi) 的溫度 發(fā)給 單片機(jī)處理, 最后再通過(guò)無(wú)線傳輸模塊、 RS232 總線將采集的數(shù)據(jù)傳送到計(jì)算機(jī),進(jìn)行 溫度的 顯示 、處理 和報(bào)警。 摘要 隨著大棚技術(shù)的普及,溫室大棚數(shù)量 的 不斷增多, 對(duì)其溫度 的控制就顯得非常重要, 而利用科學(xué)技術(shù)改善大棚溫度監(jiān)測(cè)條件是符合社會(huì)主義新農(nóng)村建設(shè)的指導(dǎo)思想的, 因此, 開(kāi)發(fā)一種能夠?qū)崟r(shí) 、 準(zhǔn)確地 處理溫度信息的 無(wú)線 測(cè)控系統(tǒng)就 變得 很有必要。 本課題是基于單片機(jī)并采用 1wire總線技術(shù)和無(wú)線傳輸技術(shù),設(shè)計(jì)一種應(yīng)用于溫室大棚的溫度測(cè)控系統(tǒng)。 整個(gè)系統(tǒng)設(shè)計(jì)分為硬件 和軟件兩部分 。 系統(tǒng)以單片機(jī) AT89S51為控制核心 , 采用 溫度傳感器 DS18B20進(jìn)行數(shù)據(jù)采集 ,通過(guò)無(wú)線收發(fā)模塊進(jìn)行無(wú)線傳輸。在軟件方面 ,分為下位機(jī)軟件與上位機(jī)軟件兩部分 。上位機(jī)軟件采用 C++ Builder作為開(kāi)發(fā)環(huán)境 , 實(shí)現(xiàn)與下位 機(jī)通信、數(shù)據(jù)處理與顯示等功能 。 【關(guān)鍵詞】 : 溫室 大棚 ; AT89S51; DS18B20; 溫度監(jiān)控 ; 無(wú)線 傳輸 ┊┊┊┊┊┊┊裝┊┊┊┊┊┊┊訂┊┊┊┊┊┊┊線┊┊┊┊┊┊┊ 1 ABSTRACT As the greenhouse technology bees more and more popular, and the number of the big sheds is on the rise, the control of its temperature bees very important. Moreover, to keep pace with the modern technology, improving the condition of the monitoring is very necessary, which is fit for the guiding ideology of the socialism new countryside construction. Under this background, developing a wireless monitoring system with realtime performance and accuracy has gained much attention. This subject is put forward based on MCU, the 1wire technology and wireless transmitting technology, a temperature monitoring system applied in the greenhouse was devised. The working principle of this project is the utilization of the temperature sensors, which transfers the temperature of the sheds to MCU, finally by wireless transmit module, RS232 Bus transmitting the data to the puter, carrying out the temperature’s display, process and alarm. The whole system consists of the hardware and software two parts. For the hardware aspect, this has been made a carefully analysis, collection and design on the every segment of the hardware. The system uses AT89S51 chip as the core of the control, chooses the temperature sensor DS18B20 to collect the data, then through wireless transceiver module transmit it and in the wireless receiver, selects LCD module to display related data, corresponding with the puter through RS232 interface, achieving the monitoring and control of the temperature. In the software, it can be divided into two parts: host puter and slave puter. In the slave puter, using C51 advanced language to program, making it modularized and independent, as well as possessing well testability and reliability. The host puter uses C++Builder as the development environment, implementing the munication, data processing and display with the puter. Through software simulation and hardware experiment, this system successfully pletes the wireless monitoring of the hothouses, fulfilling the measure and the control of the greenhouse’s temperature. Key Words: Hothouses。 DS18B20。 Wireless transmit Module 2 目 錄 1前言 ..................................................................... 1 .............................................................. 1 .............................................................. 1 .......................................................... 2 2 系統(tǒng)總體設(shè)計(jì)方案 ......................................................... 3 ......................................................... 4 系統(tǒng)組成 ............................................................. 4 系統(tǒng)性能指標(biāo) .......................................................... 6 3 硬件電路設(shè)計(jì) ............................................................. 6 .............................................................. 6 .......................................................... 6 .................................................. 6 ...................................................... 7 ......................................................... 10 ............................................................. 10 4 軟件設(shè)計(jì) ................................................................ 13 ............................................................. 13 ....................................................... 13 ....................................................... 16 5系統(tǒng)調(diào)試及結(jié)果分析 ....................................................... 21 硬件電路的調(diào)試 ...................................................... 21 系統(tǒng)可靠性及抗干擾設(shè)計(jì) ............................................. 24 系統(tǒng)實(shí)時(shí)性 .......................................................... 25 6總結(jié)及問(wèn)題探索 ........................................................... 27 ................................................................. 27 ............................................................. 28 致謝 ...................................................... 錯(cuò)誤 !未定義書(shū)簽。 附錄二:中英文翻譯 ....................................................... 31 1 溫室大棚溫度無(wú)線測(cè)控系統(tǒng)的設(shè)計(jì) 1 前言 課題來(lái)源 溫室 大棚 是農(nóng)業(yè) 設(shè)施 的重要組成部分, 利用 溫室大棚栽培蔬菜可 以 促進(jìn)其早熟和豐富其產(chǎn)量,延長(zhǎng) 蔬菜的供應(yīng)期, 是擴(kuò)大蔬菜生產(chǎn)、實(shí)現(xiàn)周年供應(yīng)的一種有效途徑,是發(fā)展 三高 農(nóng)業(yè)、振興農(nóng)村經(jīng)濟(jì)的組成部分,是我國(guó) 農(nóng)業(yè) 走向現(xiàn)代化、科學(xué)化 的標(biāo)志之一。而利用塑料棚進(jìn)行蔬菜栽培可利用保護(hù)設(shè)備在冬、春、秋進(jìn)行 蔬菜生產(chǎn),以獲得多樣化的蔬菜產(chǎn)品。第一種是薄膜溫室大棚 2, 屬于連棟溫室中造價(jià)比