In recent years,with the rapid development of IoT cloud services,the rapid update of wireless communication networks and the more and more perfect automation technology provides a new direction for the new greenhouse strawberry cultivation.In this paper,through the online IoT cloud service technology and offline intelligent control technology,a research on the greenhouse strawberry cultivation system based on MQTT was carried out.The main content includes the following aspects:First,through the system’s requirements for data transmission rate,transmission distance,communication method,power consumption,price,etc.compared with many IoT chips such as ESP32,ESP8266 was selected as the core data collection and communication module of the system.Use its official Node MCU SDK for Lua language programming.ESP8266 uploads the collected environmental data of greenhouse strawberries to the cloud platform,and stores,analyzes,and transfers the corresponding data on the cloud platform.Secondly,due to the time-varying and hysteretic nature of environmental factors in strawberry cultivation,this paper uses a fuzzy control algorithm to improve the overall control accuracy of the system.By formulating the corresponding linguistic variable membership function,and then fuzzifying the collected data,performing fuzzy inference through the formulated fuzzy rule table,and then defuzzifying the obtained output fuzzy quantity to obtain an accurate output value.The realization results show that the strawberry plants adopting this system are growing well.Then,based on cost considerations,this article chose the Alibaba Cloud IoT platform as the on-cloud part of the system.On the cloud platform,the MySQL database was used for data storage,and the MQTT protocol was used as the data transmission between the cloud platform and ESP8266.The generated fuzzy rule control table is input to the cloud,and the cloud sends the corresponding rule output to the ESP8266 and the ESP8266 forwards the corresponding controller.Finally,a simple web platform and App are added to realize the visual monitoring of system data. |