设施农业智能化控制系统设计—西红柿生产控制设施农业智能化控制系统设计— 西红柿生产控制设施农业智能化控制系统—西红柿生产控制摘要设施农业是指通过自动化控制方式,调节温室内的温度、湿度、通风、光照等环境因子,营造出最适宜农作物生长的环境状态,以实现高产、高效为目的的现代农业生产。
由于温室是一个复杂多变的非线性、大滞后的动态环境系统,很难采用传统的PID控制算法去建立数学模型,因而,本文采用了模糊控制算法对温室环境进行综合控制。
本文研究的主要内容如下:(1)分析了主要环境因子对农作物生长的影响,总结出西红柿生长在不同浓度等环境状态。
时期所需最适宜的温度、湿度、光照度和CO2(2)温室系统的模糊控制策略采用查表算法,使用温度误差作为模糊控制器的输入量,天窗、遮阳网、风机和湿帘等作为系统的输出控制量,系统选用三角隶属函数,并按照模糊控制规则进行相关设计。
(3)温室结构采用了上下位机联级控制模式,上位机控制界面用VB程序编写,实现数据存储、实时数据显示、发送控制参数等功能。
下位机完成温室浓度和土壤水分等参数的检测和控制。
内温度、湿度、CO2(4)完成了温室中传感器的布局和选型,及传感器输出电流电压转换接口电路的设计。
研究了温室输出执行机构的操作规则与传感器输入量之间的对应关系。
通过实践表明,基于上下位机模式的温室控制系统,将单片机技术、串行通信技术和传感检测技术综合运用,温室系统得到了较好的控制效果。
关键词: 智能温室模糊控制设施农业西红柿Agricultural facilities intelligent control system -tomato production controlABSTRACTAgricultural facilities is which through automated control adjust the temperature inside the greenhouse, humidity, ventilation, light and other environmental factors, to create the most suitable environmental conditions for crop growth, in order to achieve productive and efficient for the purpose of modern agricultural production. Because the greenhouse is a complex and dynamic environment system, it is difficult to set up mathematical model to control using the traditional way of PID. For the fuzzy control algorithm, equation of state objects is not required, which is also suitable for controlling the nonlinear, time-varying delay system. Therefore, fuzzy control algorithm is adopted to control greenhouse, and for example in summer Greenhouse control, by fuzzy control algorithm to achieve effective and reasonable control of the ambient temperature.(1) By analyzing the effects of major environmental factors on the growth of crops, the tomatoes grown in different periods required is summed up for the optimum temperature, humidity, light intensity and CO2 concentration and other environmental status.(2) Greenhouse makes use of look-up table algorithm in fuzzy control strategy, temperature error as the fuzzy controller input, and sunroof, shade net, fans and wet curtain, etc., as the system’s output. Greenhouse system selects triangle membership function, and in accordance with the relevant rules of fuzzy control design.(3) Greenhouse structure is using the up and down PC control mode, PC control interface with VB programming, which has the function of data storage, real-time data display, transmission control parameters and other functions. The lower PC complete testing and control the greenhousetemperature, humidity, COconcentration and soil moisture and other2parameters.(4) Sensor layout and selection is completed in greenhouse, and the sensor output current-voltage conversion circuit of the interface design also. The correspondence is studied between the operating rules and the sensor actuator in the greenhouse.Through practice shows that greenhouse system has been better control effect, based on lower and upper PC in greenhouse control system, the MCU technology, serial communication technology and integrated use of sensing technology.KEY WORDS: Intelligent Greenhouse; Fuzzy Control; Agricultural facilities; Tomato production摘要 (1)第一章绪论 (7)1.1 选题背景和意义 (7)1.2 国内外设施农业现状及发展趋势 (8)1.2.1 国外现状及发展趋势 (8)1.2.2 国内现状及发展趋势 (8)1.3 课题的提出和研究内容 (10)1.3.1 课题来源 (10)1.3.2 课题研究内容 (10)第二章温室环境因子研究及模糊控制 (11)2.1 温室环境因子的研究 (11)2.1.1 温度对作物生长的影响 (11)2.1.2 水分对作物生长的影响 (12)2.1.3 光照度对作物生长的影响 (13)浓度对作物生长的影响 (14)2.1.4 CO22.2 模糊控制算法的设计与实现 (14)2.2.1 模糊控制的基本原理 (15)2.2.2 模糊控制器的设计步骤 (16)2.2.3 模糊控制器结构的确定 (16)2.2.4 模糊化 (17)2.2.5 模糊控制规则的制定 (21)2.2.6 模糊推理决策算法的设计 (22)2.2.7控制量的解模糊化 (23)2.3 本章小结 (24)第三章控制系统方案的总体设计 (25)3.1 控制系统方案研究 (25)3.2 控制系统总体结构 (27)3.3 数据采集系统设计 (28)3.3.1 温湿度采集系统设计 (29)3.3.2 光照度采集系统设计 (31)浓度采集系统设计 (32)3.3.3 CO23.3.4 土壤水分采集系统设计 (33)3.4 温室执行机构设计 (34)3.4.1 温湿度控制机构 (34)3.4.2 补光机构 (36)3.4.3 CO补给 (37)23.5 本章小结 (38)第四章下位机系统设计 (39)4.1 下位机系统硬件电路设计 (39)4.1.1 单片机系统 (39)4.1.2 显示电路 (41)4.1.3 串行通信电路 (42) (45) (47) (48)4.2 下位机系统软件设计 (50)4.2.1 软件设计内容 (50)4.2.2 下位机系统主程序设计 (50)4.2.3 时钟子程序设计 (51)4.2.4 数据采集子程序设计 (51)4.2.5 通信子程序设计 (54)4.3 本章小结 (55)第五章上位机系统软件设计 (57)5.1 上位机设计构想 (57)5.2 上位机界面设计 (57)5.2.1 主界面窗口 (58)5.2.2 子界面窗口 (58)5.3 本章小结 (61)第六章系统现场测试 (62)第七章结论与展望 (65)参考文献 (66)附录A 时钟子程序 (71)致谢 (75)攻读学位期间发表论文情况 (76)第一章绪论1.1 选题背景和意义设施农业是指采用现代化工程技术手段,对作物生长环境进行必要的干预控制,以达到完全或部分摆脱对自然环境的依赖,实现农作物高效生产的一种农业控制方式。