【正文】
? 20mA 或 0? 20mV,輸出信號(hào)可以直接傳送到 A / D 的單片機(jī)放大后,大小為 0? 4V。 8℃,濕度測(cè)量精度為177。但是 在農(nóng)業(yè)控制系統(tǒng) , 其通信距離的數(shù)十公尺或幾公里 ,所以RS232 / RS485 轉(zhuǎn)換器通過 PC 機(jī)與單片機(jī)之間的通信來實(shí)現(xiàn)。系統(tǒng) 通過 分別收集環(huán)境信息的方式,每個(gè)監(jiān)控和控制模塊,并通過 RS485 接口 將其發(fā)送到主機(jī) PC。 單片機(jī),作為數(shù)據(jù)存儲(chǔ) 空間 較 小,單一的顯示接口,有限的信息 容 量,但其 有較高的性價(jià) 比,因此它作為前端的數(shù)據(jù)采集和控制單元 為 PC使用,它有大量的數(shù)據(jù)存儲(chǔ),豐富的軟件,方便的人機(jī)交互等 優(yōu)點(diǎn) 。in the wizard of device configuration,select intelligent modules→ SCM→ current SCM of HEX→ serial port,and then ser parameters for the host puter’s munication. 2) The connection of KingView and database:Database is the core of the software,that not only contains the definition of variables,realtime parameters and the historical parameters,but also is needed by parameters alarming,fuzzy calculating,reporting ,and desktop database is used as records database of the system,and by using SQL,it is operated by KingView via procedure is :to create data variables in KingView to create a body of records to establish a data source of ODBC to create query screens and make the screen connected with Microsoft Access2021,the functions of SQLConnect(),SQLSelect(),SQLLast(),SQLNext(),SQLFist(),SQLPrew(),SQLInsrt(),and so on,should be implemented in the mand language,and then realtime storage and inquiry of data are pleted. 3) Software design of PC :For the control system of greenhouse,data storage capacity of the PC is unlimited,so if the existing mature software modules are include into the system,it both be relaxed and can improve the system software of software consists of control module and management module. Software of the system consists of the main control interface,auxiliary,databases, typical main interface of monitoring and control of PC is shown in . V. CONCLUSION According to the economic bearing capacity of farmer in Qinhuangdao ,with the existing technology of monitoring and control of environment parameters of greenhouse,a masterslave distributed automatic control system of greenhouse environment in which PC is taken as the host puter is system has following characteristics: 1) With the large amount of data storage of PC,fuzzy control expert system is easy of data storage,modification and system upgrading. 2) By using KingView to develop software of PC,the system reliability is improved,and the development cycle is shorten,and a friendly humanputer interface is get. 3) A distributed and modular structure is used in the system,it makes the system maintenance easier and adapts to production needs more. The monitoring and control modules of the slave are connected to the host through the RS485 bus based on needs,then the control of greenhouse in partition or block can be achieved. ACKNOWLEDGMENT This work is supported by Agricultural Science and Technology Achievement Transformation Fund Project. 基于主從分布式新的溫室環(huán)境參數(shù)監(jiān)測(cè)和控制系統(tǒng) 根據(jù)實(shí)際在農(nóng)村地區(qū)的溫室環(huán)境參數(shù)的監(jiān)測(cè)和控制,主從分布式測(cè) 量和控制系統(tǒng)的設(shè)計(jì)需要, 以 其中一臺(tái)計(jì)算機(jī)作為主機(jī) , 該系統(tǒng)由 PC、 土壤水分測(cè)量和控制模塊 , 溫度 、 濕度 、 CO2 監(jiān)測(cè)和控制模塊 組成 。 output is 4~20mA or 0~20mV。at the height of in the main entrance,a water tank is set,of which the solenoid of drip tube should be set based on the need and controlled by module of soil moisture content。a module of soil moisture content will be added in the middle of the greenhouse according to the actual condition。measurement error is less than 2%。and can achieve fuzzy control of greenhouse parameters by using the history curve of environment parameters stored in the specific database and adopting the agricultural expert system. The software of SCM of the slave is developed by Keil C51 to achieve realtime collecting,processing,uploading of the parameters and accept the fuzzy control instructions from the host puter and plete local control of the device. A. Program design of the control module The software of the subslave machine of soil moisture module,that include the m