The lack of soil resources and the complex and changeable climate in some areas of China restrict the development of traditional agriculture.Therefore,in order to promote the modernization of agriculture,the construction of greenhouse has become an important solution.In recent years,the development of greenhouse construction is very rapid,thanks to the development and maturity of virtual instrument technology,sensor technology and wireless communication technology,the greenhouse is developing in the direction of intelligence.The greenhouse environment monitoring and control system can not only make agricultural production get rid of the limitation of natural conditions,realize the off-season listing of agricultural products,but also improve the efficiency of agricultural production and management,reduce the cost of manual management,and realize the rational allocation of resources.Therefore,intelligent greenhouse has broad development space and practical promotion value in the future.In order to realize the functions of remote real-time monitoring,environmental data storage,abnormal data alarm and precise control of greenhouse environment,this paper designs an intelligent greenhouse environment monitoring and control system based on La BVIEW.The system uses La BVIEW as the programming software to develop the user platform;The network data acquisition controller is used as the middle-end processor,The analog acquisition terminal is connected to the temperature and humidity,CO2 and light intensity sensors to collect the environmental data in real time.The relay output terminal is connected to the fill light,fan and other output devices for precise control of the greenhouse environment;The communication between the program and the network data acquisition controller is based on wireless Wi-Fi communication technology,and the data is transmitted by TCP/IP transmission protocol.The main contents of this paper are as follows:(1)Design of monitoring system:The monitoring program uses La BVIEW to design a visual user interface,realizes the function of remote real-time monitoring of the environment and abnormal data alarm,and notifies the user of abnormal environment by sending abnormal mail.Using MySQL database as used as the storage software to realize the storage of environmental historical data and abnormal data,the user interface designed by La BVIEW can call the database to query the environmental data,so that the user can understand and analyze the changes of the greenhouse environment in each time period;(2)Design of control system:The control program designs two control modes:automatic and manual.The automatic control program can automatically control the greenhouse environment,or switch to manual mode to send relevant instructions to query or control the running state of the output device.The control system also reserves the relay output port,and the user can expand the output equipment according to the greenhouse environment control requirements.(3)System operation test:The monitoring and control system is tested by system test.The operation results show that the system meets the design requirements of environmental monitoring and control system.The real-time data displayed on the main interface of the monitoring platform is the same as the actual environmental parameters,and the image curve is smooth.The database can successfully store the environmental historical data and abnormal data,and when the environmental data is abnormal,the mailbox can successfully receive the abnormal alarm messages sent by the monitoring system.The control system can freely switch the control mode.After the control program issues control instructions,the network data acquisition controller can correctly control the operation of different output devices according to the instructions.The design of the system provides a new solution for the monitoring and control of greenhouse environment.Compared with the previous intelligent greenhouse environment monitoring and control system,it has the advantages of low cost,simple operation and comprehensive function. |