| With the rapid development and progress of science and technology,in recent years,the application of Internet of Things technology in smart agriculture has become more and more extensive,especially the use of Internet of Things technology to monitor the temperature,humidity and soil nutrients of crop soil environment,so that users can Reasonable adjustments should be made in the case of soil shortage of water and fertilizer to ensure normal growth and development of crops.In order to monitor the soil moisture information in real time,a set of wireless soil moisture data acquisition system based on Bluetooth is constructed in this paper.The system takes STM32 embedded microcontroller as the hardware core,uses air temperature and humidity sensor,soil Sensors and soil multi-parameter sensors collect various data of the soil environment,and then send the collected data through the Bluetooth module or ZigBee module for users to receive and view the data on the mobile terminal or PC.Among them,the Bluetooth data transmission mode is suitable for scenarios such as greenhouses with small data collection area and short data transmission distance,and the ZigBee data transmission mode is suitable for scenes with large data collection area and long data transmission distance such as in the wild.The system uses Bluetooth mode by default.For data transmission,users can switch modes according to actual needs.The system is also equipped with an alarm module and an irrigation control module.When a certain parameter value of the soil environment exceeds a certain range,the corresponding LED light will light up to alarm,and when the soil moisture is lower than the set minimum value,the buzzer will sound the alarm.,At the same time,the relay pulls in to trigger the water pump to pump water for irrigation.When the soil humidity reaches the set maximum value,the buzzer stops alarming and the water pump stops working.In this way,the automatic collection,monitoring and irrigation intelligent management platform of soil moisture data is realized.The author of this paper has carried out data collection and transmission tests on the system in two different scenarios,indoors and outdoors.Considering the reliability of the test results,the test uses multiple sets of data for comparative analysis.The experimental results show that the sensor collects soil moisture data quickly and accurately,the Bluetooth and ZigBee data transmission is real-time and efficient,the system runs stably and reliably,and can monitor soil moisture in real time,which verifies the feasibility and practicability of the system,Has good practical application value. |