| Water is essential for the survival and development of all kinds of organisms.In agricultural production activities,soil moisture is the main source of water absorption by crops,and adjusting soil moisture content through irrigation is a key measure to ensure the normal growth of crops.However,the traditional soil moisture monitoring method has single monitoring data and low real-time prediction of soil moisture content,leading to inaccurate calculation of crop water requirements and low utilization rate of agricultural irrigation water.To address these problems,this thesis designs a soil moisture monitoring system based on STM32 and proposes a high real-time method for predicting soil moisture content.The main research contents are as follows:(1)To address the problem of single monitoring data,a soil moisture monitoring terminal based on STM32 was designed,which collects data on both soil moisture content and other major environmental factors affecting the change of moisture content simultaneously,and displays the collected data in real time on an LCD screen.At the same time,a soil moisture background management system was designed,which has the functions of processing and storing soil moisture data,remote configuration of the monitoring terminal related parameters,etc.,so as to facilitate a more intuitive and comprehensive view of soil moisture data and improve the convenience of system maintenance.(2)To address the problem of low real-time soil moisture content prediction,a high real-time method for predicting soil moisture content was proposed.Firstly,the modeling method based on Back Propagation Neural Network model was used to build a soil water content prediction model.At the same time,the Genetic Algorithm and Ant Colony Optimization were introduced to optimize the model parameters to improve the model’s prediction accuracy.Finally,the trained prediction model was ported to STM32,and the data collected by the monitoring terminal was used to make real-time prediction of soil water content,and the prediction results were displayed in real time by LCD screen.This method greatly improves the real-time prediction results.It has been experimentally proven that this system has high stability and reliability and the capacity to accurately monitor real-time soil moisture content and the change tendency of the soil moisture content in actual agricultural production activities,which helps to obtain soil moisture information in a timely and comprehensive manner,providing a basis for accurate irrigation and maintaining healthy crop growth,and has good engineering application value. |