基于单片机控制温湿度的系统外文及翻译_第1页
基于单片机控制温湿度的系统外文及翻译_第2页
基于单片机控制温湿度的系统外文及翻译_第3页
基于单片机控制温湿度的系统外文及翻译_第4页
基于单片机控制温湿度的系统外文及翻译_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、new environment parameters monitoring and control system for greenhouse based on master-slave distributedabstract-according to the actual need of monitoring and control of greenhouse environment parameters in rural areas,a master-slave distributed measurement and control system is designed,in which

2、pc is taken as the host. the system consists of pc ,soil moisture measurement and control module,temperature and humidity, and co2 monitoring and control module. in the system,pc has large amount of data storage which is easy to make use of fuzzy control expert system,configuration software-kingview

3、 is used to develop software for pc,by which the development cycle is shorten and a friendly human-computer interaction is provided.each monitoring and control module consists of stc12 series of microcontrollers,sensors,relays etc.different modules are select based on the need if system to achieve c

4、ontrol greenhouse in partition and block.i. introductionto modern indoor agriculture, the automatic measurement and control of environment parameters is the key to achieve crop yield and quality of greenhouse.in recent years,facilities agriculture develops vigorously in our country,matched with it,t

5、he monitoring and control instrument of greenhouse have also made certain development.after nearly 10 years of unremitting hard work,our research team of measurement and control system of agriculture environment parameters,designed an intelligent measurement and control system of distribution combin

6、ed of greenhouse which can be popularized in the vast rural areas.this system is mainly control of temperature,humidity,co2 concentration,soil moisture and illumination of greenhouse.of scm,as the data storage is small,display interface is single,amount of information is limited,but its capability p

7、rice ratio is high,so it is used as a front unit of data acquisition and control;and of pc,it has a large amount of data storage,rich software,convenient human-computer interaction,and so on.if we use outdated and low-priced pc,taking the pc as the upper machine,taking the different function control

8、 modules composed of multiple microcomputers as the lower machines,then a master-slave distributed and intelligent control system bases on microcomputer is made up,by which both better monitoring and control,display and data collection or management are achieved,but also lower cost of system is get

9、according to the actual need.ii system structure and principlethe most marked feature of the distribution combined and intelligent control system greenhouse is that of incorporating with data acquisition, control and management as a whole,module combination, simple structure,convenient human-compute

10、r interaction,and using technology of intelligent expert fuzzy control,which can adapt to a variety of crop management control in greenhouse.the basic structure of the system is shown in fig.1.the structure of the distributed system is composed of two layers:the upper and lower.in the top-price pc i

11、s taken as the host to make system management and experts fuzzy operation in intelligent,and to provide a friendly human-computer interface,and to realize the united monitoring and management of greenhouse; the lower is composed of a series of modules of different function,and in each module,a singl

12、e chip of at89c is adopted as the lower machine,rs485 is used to communicate pc with all at89c,and then the collection,processing and control of the greenhouse parameters is achieved.each function module is completely isolated in electrical,any failure on the nodule does not produce any effect on ot

13、her modules.the system collects separately ways of environment information through each monitoring and control module,and sends it to host pc through the rs485 interface.and in the pc configuration control system,the acquired parameters are compared with the values of setting,then according to a var

14、iety of expert intelligent fuzzy control system of crops at different growth stages,the fuzzy control instructions on the environment temperature,humidity,co2 concentration,soil water content and the corresponding operation instructions or alarm are given.the system is applied in rural greenhouses i

15、n qinhuangdao.usually at 1/4 near east and west end in a greenhouse,and at the height of 1.5m from the ground in the middle in the northern half (near the wet curtain) and the southern half (near the fan ),a module of air temperature and humidity ,co2 concentration and a module of soil moisture cont

16、ent are set;a module of soil moisture content will be added in the middle of the greenhouse according to the actual condition;at the height of 1.5m 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 co

17、ntent;and the pc is placed in the main entrance to the greenhouse.iii . hardware designa. the cp and communication systemin the distributed system of data acquisition and control,as the micro control unit is limited in data storage and slow in calculating of complex functions,so pc is used and the m

18、aster-slave module is adopted in the system,that is a system of,taking pc as the host and taking the scm systems located in the scene as slave.in this distributed system,communication is the key to it.generally,the serial port of pc is standard rs232,of which transmission distance is shorter.but in

19、agriculture control system.its communication distance is of tens of meters or several kilometers, so rs232/rs485 converter is used to achieve communication between the pc and scm.to reduce investment,both considering the user convenience and friendly human-computer interaction,low-price pc of above

20、486 and below piv is adopted;and considering the operation of configuration software,it is required that memory is 64m or above and hard disk is 10gb or above.b. the control modules of temperature and humidity,illuminance and co2 concentrationeach control unit consists of scm,sensors,signal processi

21、ng circuit,rs485 interface and output circuit.the hardware structure of module of temperature and humidity,co2 concentration is shown in fig.2.co2 concentration is measured by sensor based on ndir technology,measurement is of 02×103mol.through the sensor,control system,by software of digital fi

22、lter,linear interpolation and temperature compensation,the co2 concentration is output as digital adhered to uart protocol,and then is input directly to the scm.the new intelligent sensor of sht11 based on cmosens technology is chosen in the measurement of temperature and humidity.in sht11,the tempe

23、rature and humidity sensors,signal amplification,a/d,i2c bus are all integrated in a chip;it has full-scale calibration,second-line digital output,and humidity measuring range of 0100% rh,temperature measurement range of -40+123.8,humidity measurement accuracy of ±3.0% rh,temperature measuremen

24、t accuracy of ±0.4,the response time of <4s.the illuminance sensor of jy1-tbq-6 of silicon photovoltaic detection is used light measuring.its measurement range is 0200,000 lux;spectral range is 400700(nm) visible light;measurement error is less than 2%; output is 420ma or 020mv;output signal

25、 can be directly send to the a/d of the scm after being amplified to 04v.modules accept the instructions form the the upper,and output via the output circuit .the output circuit consists of optical isolation,the signal driver and the output relays.c. the measurement and control modules of soil moist

26、urewater is a polar medium, the dielectric constant of the soil containing water is mainly determined by the water,when water content is different,the wave impedance is different.the soil moisture is measured by standing wave radio method in this system.based on the theory of engineering electromagn

27、etic field,for lossy medium,the electromagnetic wave impedance as follows: z0=/(1+j/()where is medium permeability,and of soil is 0 is the vacuum permeability; is medium dielectric constant; is medium conductivity; is electromagnetic wave frequency.in the very low audio(<2000hz),the loss tangent

28、of dry soil dielectric is /0.07,if you choose the frequency of the signal source at above 20mhz.then,the imaginary part of the soil wave impedance is neglect,only the real part,which amounts to a pure resistance.soil moisture sensor consists of 100mhz signal source,a coaxial transmission line and a

29、4-pin stainless probe.the electromagnetic waves of signal transmit to the probe along the lines.as the probe impedance and line impedance are different,the superimposition of incident waves and reflected waves forms a standing waves.taking the coaxial transmission line as a lossless uniform line,wav

30、e impedance is z0,zl is the load impedance.then the reflected coefficient of voltage wave at the probe is:= (zl-z0)/(zl+z0)choosing the length of transmission line is l=/4,the maximum and minimum of both ends of the line are umax and umin,then the standing wave radio in the line can be expressed as:

31、s=umax /umin =(1-|)/(1+|)in the way,the soil moisture radio can be measured by measuring the standing wave rate of transmission line.as shown in fig.3.,soil moisture module consists of sensors and controllers,the sensors are subordinated to controllers,controllers can be omitted without the need of

32、irrigation in greenhouse.to simplify the control,irrigation technology of node-type in partition is adopted in the control soil moisture in this system.to a certain extent,the parameters of upper and lower the ground can be decoupled by adopting this technology.iv control system programmingthe softw

33、are of pc is developed by kingview 6.51 of beijing-controlled asia.this configuration software has high reliability,shorter development cycle,perfect capability of graphical interface generation,and friendly human-computer interaction;and can create dynamic images and charts in accordance with the l

34、ayout of equipment in the scene;can visually display the changes of parameters,control status,and can give an alarm when over-limited;and can achieve fuzzy control of greenhouse parameters by using the history curve of environment parameters stored in the specific database and adopting the agricultu

35、ral expert system.the software of scm of the slave is developed by keil c51 to achieve real-time collecting,processing,uploading of the parameters and accept the fuzzy control instructions from the host computer and complete local control of the device.a. program design of the control modulethe soft

36、ware of the sub-slave machine of soil moisture module,that include the main function,subroutines of data acquisition and processing,interrupt handling and communicating etc,read the value of standing wave voltage through the parallel data port and obtained the value of soil moisture content by funct

37、ion calculating.the software of the slave machine of monitoring and control of soil moisture mainly complete data communication with the sub-slave machine,uploading measurement data and current control state to the host computer,accepting the fuzzy control instructions from the host computer and out

38、put the implementation instructions.the software of the slave machine of temperature and humidity,and co2 mainly complete reading data of co2 concentrations and temperature and humidity through the i2c concentration,uploading measurement data and current control state to the host computer,accepting

39、the fuzzy control instructions from the host computer and output the implementation instructions.the structure of the main program and interrupt subroutine of temperature and humidity module are shown in fig.4.the serial interrupt mode 3 is adopted by all slaves to communicate with the host,transmit

40、 the digital collecting and receive instructions.b. program design of pc and fuzzy control system 1) the communication settings of kingview 6.51:in order to ensure the correctness of communication,the upper and lower must follow the same communication protocol,set the communication parameters.usuall

41、y in communication,master-slave mode is adopted in style and responder is adopted in the process.that is ,the master sent a command to the slave first,then et slave give an answer after receiving the command,thus once communication is completed.in kingview ,a scheduled polling method is adopted to d

42、o reading and writing between the lower machine by pc.in the project browser of kingview,first,click device com1;in the wizard of device configuration,select intelligent modulesscmcurrent scm of hexserial port,and then ser parameters for the host computers communication.2) the connection of kingview

43、 6.51 and database:database is the core of the software,that not only contains the definition of variables,real-time parameters and the historical parameters,but also is needed by parameters alarming,fuzzy calculating,reporting ,and displaying.access2003 desktop database is used as records database

44、of the system,and by using sql,it is operated by kingview via odbc.the 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 connection.to connected with microsoft access2003,the functions of sqlc

45、onnect(),sqlselect(),sqllast(),sqlnext(),sqlfist(),sqlprew(),sqlinsrt(),and so on,should be implemented in the command language,and then real-time storage and inquiry of data are completed.3) software design of pc :for the control system of greenhouse,data storage capacity of the pc is unlimited,so

46、if the existing mature software modules are include into the system,it both be relaxed and can improve the system reliability.the software of software consists of control module and management module.software of the system consists of the main control interface,auxiliary,databases,etc.a typical main

47、 interface of monitoring and control of pc is shown in fig.5.v. conclusionaccording to the economic bearing capacity of farmer in qinhuangdao ,with the existing technology of monitoring and control of environment parameters of greenhouse,a master-slave distributed automatic control system of greenho

48、use environment in which pc is taken as the host computer is developed.the 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 syst

49、em reliability is improved,and the development cycle is shorten,and a friendly human-computer 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

50、connected to the host through the rs485 bus based on needs,then the control of greenhouse in partition or block can be achieved.acknowledgmentthis work is supported by agricultural science and technology achievement transformation fund project.基于主从分布式新的温室环境参数监测和控制系统根据实际在农村地区的温室环境参数的监测和控制,主从分布式测量和控制系

51、统的设计需要,以其中一台计算机作为主机,该系统由pc、土壤水分测量和控制模块,温度、湿度、co2监测和控制模块组成。在该系统中,电脑有大量的数据存储的功能,它很容易利用模糊控制专家,配置组态软件组态王用来开发pc软件,具有开发周期缩短和友好的人机交互的优势。每个监测和控制模块包括stc12系列的微控制器、传感器、继电器等等。如果系统实现控制温室在分区和块,需要选择不同的模块。一,简介现代化农业的室内,环境参数的自动测量和控制是实现作物产量和品质的关键。在近年来,设施农业在我国蓬勃发展,与之匹配的,具有监测和控制仪器的温室也有取得了一定的发展。近10年的不懈努力,我们的研究团队在农业环境参数的测

52、量和控制系统上,设计了一个智能测量和控制系统相分布结合的温室,可以在广大农村地区适用。这个系统主要是控制温度、湿度、二氧化碳浓度、土壤水分和照明温室。单片机,作为数据存储空间较小,单一的显示接口,有限的信息容量,但其有较高的性价比,因此它作为前端的数据采集和控制单元为pc使用,它有大量的数据存储,丰富的软件,方便的人机交互等优点。 如果我们使用过时的和低价的电脑,以pc机作为上位机,以不同的功能控制模块和多个微型计算机作为降低机器,然后组成一个基于微机的主从分布式和智能化控制系统,既更好的监视和控制、显示和数据收集或管理的实现,而且费用低,系统会根据实际的需要选择。二,系统结构及原理最显着的特

53、点是分配和智能控制系统温室相结合,这将作为一个整体,模块组合结构简单,方便的人机交互与数据采集,控制和管理,并采用模糊控制技术的智能专家,可以组成适应多种作物管理控制的温室。其基本结构系统是图1所示。分布式系统的结构是由两层组成:上部和下部。由最佳价格pc被取为主机,使其能够智能系统管理和专家模糊运算,并提供一个友好的人机界面,并实现统一的监控和管理的温室;下部是由一系列不同功能的模块,并且在每个模块中,一个单一的芯片作为下位机采用at89c52,rs485则用于与所有at89c52 pc进行通信,然后实现收集,处理和控制的温室参数。每个功能模块是完全地电气隔离,任何失败的结节不会对其他模块产

54、生任何影响。系统通过分别收集环境信息的方式,每个监控和控制模块,并通过rs485接口将其发送到主机pc。并且由pc配置控制系统,额定参数的设定值进行比较,然后根据专家智能模糊控制系统测量作物在不同生长阶段的各种环境的温度,湿度,co2浓度,土壤含水量进行相应的操作指令或报警,模糊控制指令。在秦皇岛农村大棚。通常在一个温室的近东和西区的1/4区域,距离地面为1.5米的中间北部的一半(近湿帘)和南部的一半(风扇附近的),设置一个模块检测空气温度、湿度、二氧化碳浓度和土壤水分含量,根据实际情况,将土壤含水量模块添加在温室的中间;在高度为1.5米的主入口,设置一个水箱,其中的电磁阀滴水管应根据土壤水分

55、含量的需要设置和控制,并且将电脑放置在主入口的温室内。三,硬件设计a.cp和通信系统分布式系统中的数据采集和控制:由于微型控制单元局限于在数据存储和计算复杂,所以电脑所的使用和主从模块系统所采用的,这是一个系统,以pc机作为主机,以单片机作为子机。在这种分布式系统中,通信是关键。通常,pc机的串行端口是标准的rs232,传输距离较短。但是在农业控制系统,其通信距离的数十公尺或几公里,所以rs232 / rs485转换器通过pc机与单片机之间的通信来实现。减少投资,既考虑用户方便和友好的人机交互,低价电脑的上面和下面采用piv 486,并考虑组态软件的操作,内存是必须是64m以上,硬盘是10gb

56、以上。b.控制模块的温度和湿度,照明度和co2浓度每个控制单元包括供应链管理(scm),传感器,信号处理电路,rs485接口和输出环节。此模块的温度和湿度,二氧化碳浓度的硬件结构示于图2。基于ndir技术测量co2浓度的传感器,测量范围是02×103摩尔。通过传感器,控制系统,利用软件数字滤波、线性插值和温度补偿,得到二氧化碳的浓度,依附数字uart协议,然后直接输入单片机。新的智能传感器sht11基于选择cmosens技术测量温度和湿度。在sht11,温度和湿度传感器、信号放大,a/ d,i2c总线全部集成在一个芯片上,它有满刻度校准,第二行数字输出并且湿度测量范围为0100rh,

57、温度测量范围为-40+123。8,湿度测量精度为±3。0rh,温度测量精度为±0。4,响应<4的时间。jy1-tbq-6的照度传感器的硅光伏检测是使用光测量。它的测量范围为0200000勒克斯;光谱范围为400700(nm)的可见光;测量误差是小于2,输出为4 20ma或020mv,输出信号可以直接传送到a / d的单片机放大后,大小为04v。模块接受指令形成上层,输出通过输出电路。输出电路包括光学隔离、信号驱动,输出继电器。c.土壤水分的测量和控制模块水是一种极性介质,土壤的介电常数包含水,主要是由水决定,当水含量是不同的,波阻抗不同。在这个系统中,土壤水分测量是通

58、过驻波无线电的方法。基于工程电磁场理论,有损介质,如下的电磁波阻抗: z0=/(1+j/()其中,是介质渗透性,土壤和是0是真空磁导率;是介质的介电常数,是介质电导率;是电磁波频。在非常低的音频(< 2000 hz),损耗角正切的干土介质是/0。07,如果你选择的信号源的频率高于20兆赫兹。然后,虚部的土壤波阻抗忽视,只有真正的一部分,这相当于一个纯电阻。土壤水分传感器由100 mhz信号源,同轴传输线和插件不锈钢探针组成。电磁波信号沿着线传输到探头。由于探针阻抗和线路阻抗不同,入射波和反射波的叠加形成驻波。以同轴传输线作为无损耗均匀线,波阻抗为z0,zl是负载阻抗。然后,在探针的电压波

59、的反射系数是:= (zl-z0)/(zl+z0)选择传输线的长度为l=/ 4时,该行的两端的最大和最小umax和umin时,然后驻波无线电行中,可以表示为:s=umax /umin =(1-|)/(1+|)按照这种方式,土壤水分无线电可以通过测量传输线的驻波率得到。如图3所示。土壤水分模块包括传感器和控制器,传感器服从控制器,控制器可以被省略,而不需要灌溉温室。在这个系统中,分区节点为了简化控制、灌溉技术,采用控制土壤水分技术。在一定的程度上,这个参数的上部和下部地面可采用该技术解耦。四,控制系统编程该pc软甲的开发由北京组态王6。51控制。这个配置软件具有可靠性高,开发周期短,完美的图形界面生成能力,以及友好的人机交互,可以按照创建动态图像和图表可以直

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论