Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and a repetitive description thereof will be omitted.
The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other means, components, materials, devices, etc. In such cases, well-known structures, methods, devices, implementations, materials, or operations will not be shown or described in detail.
Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The terms "first," "second," and the like in the description and claims of the present application and in the foregoing drawings are used for distinguishing between different objects and not for describing a particular sequential order.
The technical solutions of the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, not all, of the embodiments of the present application. All other embodiments obtained by a person skilled in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the field of agricultural planting production, some technical schemes generally adopt sensors to detect parameters such as soil conductivity EC, soil temperature and soil humidity. However, the inventor of the present application has found that the current soil sensor has some problems:
1. the current soil sensor cannot simultaneously measure a plurality of parameters such as soil conductivity EC, soil temperature and soil humidity;
2. the current soil sensor generally adopts a pointer type dial plate to display a detection result, or the soil sensor outputs an analog signal, so that the data interaction of the measurement result cannot be intuitively carried out;
3. when the current soil sensor detects the soil conductivity EC by adopting a frequency domain reflection method, the current soil sensor is easily interfered by a high-frequency signal, the detection precision is generally 3 percent, and the precision is relatively low;
4. when the current soil sensor detects the soil conductivity EC by a radioactive method, each soil needs to be calibrated in the detection process, and the human health hazard caused by radioactive ionizing radiation is avoided in the use process.
5. The current soil sensor has the problems of large volume, complex structure and high cost.
Based on the above problems, the present application provides a method and an apparatus for detecting soil parameters, and a soil parameter sensor. The technical scheme that this application provided can detect a plurality of parameters of soil conductivity EC, soil temperature and soil humidity simultaneously to a soil parameter detecting system and device that the integration level is high, and high accuracy and low cost are provided.
Fig. 1 shows a flow chart of a soil parameter detection method according to an exemplary embodiment of the present application. As shown in fig. 1, the detection method includes steps S100 to S500. It is understood herein that the soil parameter detection method provided herein is performed by a soil parameter detection device, wherein the soil parameter detection device is configured with at least a first probe, a second probe, and a third probe.
In step S100, the soil parameter detecting device receives an initial signal of the temperature of the soil acquired by the first probe.
According to an exemplary embodiment, the first probe is connected to a temperature measuring module, the first probe is inserted into a preset position in soil, and the first probe obtains an initial signal of the temperature of the soil through the temperature measuring module. It is understood that the temperature measuring module may be a thermistor, and the initial signal of the temperature of the soil may be a change signal of the thermistor according to the temperature of the soil.
In step S200, the soil parameter detection device determines temperature information of the soil based on the temperature initial signal.
For example, the soil parameter detection device converts an initial temperature signal (e.g., a change signal of a thermistor) of soil obtained by a temperature measurement module into a Digital temperature signal by an Analog-to-Digital Converter (ADC), and restores a soil temperature value to obtain soil temperature information.
In step S300, the soil parameter detecting device sends a humidity conductivity initial signal to the second probe, so that the second probe transmits the humidity conductivity initial signal to the soil.
For example, the soil parameter detection device performs system initialization before performing soil parameter detection. After the system is initialized, a soil temperature detection thread and a humidity conductivity detection thread are started.
According to an example embodiment, steps S100 to S200 and step S300 may be performed simultaneously, or may be performed sequentially according to a certain preset order. That is, the soil temperature detection thread and the humidity conductivity detection thread can be performed simultaneously or sequentially according to a certain preset sequence, which is not limited in this application
In step S300, the soil parameter detecting device starts a humidity conductivity detection thread and sends a humidity conductivity initial signal to the second probe. It is understood herein that the humidity conductivity initial signal is a characterization signal referring to humidity conductivity information. If the soil parameter detection device generates a step signal and transmits the step signal to the second probe, the potential of the second probe for transmitting the step signal is positive.
Inserting the second probe into the soil at a predetermined location such that the step signal on the second probe is transmitted through the soil.
In step S400, the soil parameter detection device receives a humidity conductivity reflection signal obtained by the third probe, where the humidity conductivity reflection signal is formed by the humidity conductivity initial signal transmitted by the second probe being reflected by the soil, and a potential of the third probe for receiving the reflected step signal is negative at this time.
For example, the step signal sent by the second probe is reflected in the transmission process of the soil, the step signal changes after being reflected by the soil, the third probe acquires the current step signal and transmits the step signal after being reflected by the soil, namely, the humidity conductivity reflection signal to the soil parameter detection device, wherein the third probe is connected with the reference ground of the soil parameter detection device through the analog switch.
In step S400, the soil parameter detection device determines humidity conductivity information of the soil according to the humidity conductivity initial signal and the humidity conductivity reflection signal based on a time domain reflection method.
According to an exemplary embodiment, a Time Domain Reflectometry (TDR) is a method of measuring impedance using reflected energy of a pulse fed into a transmission line. According to the technical scheme, the soil humidity and the soil conductivity EC are measured by using the difference of the propagation speeds of electromagnetic waves in different media. For example, after the pulse electric wave generated by the soil parameter detection device is transmitted in the soil through the second probe, the pulse electric wave changes, and the soil humidity and the soil conductivity EC are determined through a corresponding algorithm by determining the change of the pulse electric wave.
Through the above exemplary embodiment, according to the technical scheme of the application, the initial temperature signal of the soil is obtained through the first probe, and the temperature information of the soil is determined according to the initial temperature signal. According to the technical scheme, the humidity conductivity initial signal is sent to the soil through the second probe, so that the humidity conductivity initial signal is transmitted in the soil, and the third probe obtains a humidity conductivity reflection signal formed by the humidity conductivity initial signal through soil reflection. The technical scheme of the application is based on the time domain reflection method, the humidity conductivity information of the soil is determined according to the humidity conductivity initial signal and the humidity conductivity reflection signal, and the method has the advantages of being fast, accurate, capable of continuous in-situ measurement, free of radiation and the like.
This application technical scheme adopts the time domain reflection method, through the second probe as signal transmission end, the third probe is as signal reception end, the receiving terminal receives the reflection signal that changes after the soil reflection, so can make this application technical scheme can detect the reflection signal behind the soil with simple structure relatively, thereby can determine the parameter quantity in the soil according to initial signal and reflection signal, like the humidity conductivity parameter in the soil, thereby obtain humidity conductivity information.
Optionally, in step S500, the soil parameter detecting device performs an operational amplification process on the humidity and conductivity reflected signal, and determines a humidity and conductivity signal difference according to a voltage difference and a phase difference between the humidity and conductivity reflected signal and the humidity and conductivity initial signal after the operational amplification process.
For example, after the soil parameter detection device receives the humidity conductivity reflection signal transmitted by the third probe, the operation amplifier performs operation amplification on the humidity conductivity reflection signal. The humidity and conductivity reflected signal after the operational amplification processing is processed by a peak detection module to obtain a voltage difference and a phase difference between the humidity and conductivity reflected signal and the humidity and conductivity initial signal. The soil parameter detection device calculates temperature data and conductivity data according to the voltage difference and the phase difference by using a time domain reflection method, so that humidity conductivity information can be determined.
Optionally, fig. 2 shows another flowchart of a soil parameter detection method according to an exemplary embodiment of the present application. The detection method comprises a step S100 to a step S900. Steps S100 to S500 are described in detail above, and are not described herein again.
As shown in fig. 2, in step S600, the soil parameter detecting device adjusts the potentials of the second probe and the third probe.
According to an exemplary embodiment, the soil parameter sensing device switches the electric potential of the second probe and the third probe after finishing the sensing of the humidity-conductivity information once in step S500. For example, the soil parameter sensing device may be configured such that the potential of the second probe is negative and the potential of the third probe is positive.
For example, the soil parameter detection device switches the positive and negative electrodes of the second probe and the third probe at a preset frequency (for example, a frequency of 10 KHz) in a detection thread, for example, after the soil parameter detection device completes one detection of the humidity and conductivity information, or switches the positive and negative electrodes of the second probe and the third probe after a preset time (for example, 0.1 ms). So set up, can reduce the electrochemical reaction of probe, improve soil parameter detection device's life.
In step S700, the soil parameter detection device starts the humidity conductivity detection thread again, and sends a humidity conductivity initial signal to the third probe. If the soil parameter detection device generates a step signal and transmits the step signal to the third probe, the potential of the third probe for transmitting the step signal is positive.
In step S800, the soil parameter detection device receives the humidity conductivity reflection signal obtained by the second probe, where the humidity conductivity reflection signal is formed by the humidity conductivity initial signal transmitted by the third probe being reflected by the soil, and the potential of the second probe for receiving the reflected step signal is negative at this time.
For example, the step signal sent by the third probe is reflected in the transmission process of the soil, the step signal changes after being reflected by the soil, the second probe acquires the step signal at the moment and transmits the step signal after being reflected by the soil, namely the humidity conductivity reflection signal, to the soil parameter detection device, and the second probe is connected with the reference ground of the soil parameter detection device through the analog switch.
In step S900, the soil parameter detecting device determines the humidity conductivity information of the soil according to the humidity conductivity initial signal and the humidity conductivity reflection signal based on a time domain reflection method. The detection principle is described in detail in step S400, and is not described herein again.
Through the above exemplary embodiment, according to the technical scheme of the application, the soil parameter detection device can automatically and circularly detect the humidity and conductivity information by adjusting the potentials of the second probe and the third probe, so that the humidity and conductivity information can be measured in real time, and the detection efficiency is improved.
Optionally, in step S500 and/or step S900, the soil parameter detection device further stores temperature information and humidity conductivity information.
For example, a storage module is arranged in the soil parameter detection device, and the temperature information and the humidity conductivity information of the soil detected by the soil parameter detection device are stored in real time.
Optionally, in step S500 and/or step S900, the soil parameter detection device further receives an information acquisition instruction of an external information acquisition device, and sends the temperature information and the humidity conductivity information to the information acquisition device according to the information acquisition instruction.
For example, the soil parameter detection device that this application provided is fixed to be set up in the farming planting environment (like green house), and temperature information and humidity conductivity information in soil are detected and are stored to soil parameter detection device real-time. When a user needs to acquire temperature information and humidity and conductivity information in current soil, the user is in communication connection with the soil parameter detection device through an external information acquisition device (such as an upper computer) and sends an information acquisition instruction to the soil parameter detection device. The soil parameter detection device receives and executes the information acquisition instruction, and sends temperature information and humidity conductivity information to an information acquisition device (such as an upper computer).
Through the above example embodiment, the technical scheme provided by the application can realize simultaneous measurement of temperature information and humidity conductivity information in soil, and can realize real-time data uploading, for example, data uploading can be performed at any time according to an information acquisition instruction of an external information acquisition device.
Optionally, in step S500 and/or step S900, the soil parameter detection device is in communication connection with the information acquisition device by using an RS485 communication module, and is electrically isolated from the information acquisition device by using an isolation power supply.
Fig. 3 shows a prior art electric field disturbance diagram. As shown in fig. 3, in some solutions of the prior art, when a plurality of probes (sensors) detect the same piece of soil simultaneously, a positive electric field (EC +) and a negative electric field (EC-) between the plurality of probes (sensors) interfere with each other, thereby affecting the measurement accuracy of the EC value.
According to the technical scheme, the RS485 communication module is in communication connection with the information acquisition device, and the isolation power supply and the information acquisition device (such as an upper computer) are adopted to realize electrical isolation. For example, the isolation power supply can ensure that the 5V voltage input by the information acquisition device (such as an upper computer) is not electrically connected with the 5V voltage used in the soil parameter detection device. Therefore, communication between the buses of the RS485 can not cause crosstalk between the ECs, so that a plurality of probes (sensors) can measure the same soil at the same time, the detection efficiency is improved, the electrical interference on the probes can be reduced, the electrochemical reaction of the probes is reduced, and the service life of the probes can be prolonged.
According to another aspect of the present application, a soil parameter sensor is provided. The soil parameter sensor can simultaneously detect a plurality of parameters of soil conductivity EC, soil temperature and soil humidity, and has the characteristics of high integration level, low cost, simple structure, high precision and the like.
Fig. 4 shows a schematic structural diagram of a soil parameter sensor according to an exemplary embodiment of the present application. Referring to fig. 4, the soil parameter sensor 1 includes a printed circuit board 10, a first probe set 20, a second probe set 30, a control module 40, a temperature circuit module 50, and a humidity conductivity circuit module 60.
According to an exemplary embodiment, as shown in fig. 4, the first probe set 20 includes at least a first probe 21. The second probe set 30 includes at least a second probe 31 and a third probe 32. The first probe 21, the second probe 31 and the third probe 32 are arranged on the printed circuit board 10 in parallel and are detachably connected with the printed circuit board 10.
For example, the first probe 21, the second probe 31, and the third probe 32 are fixed on the printed circuit board by a saddle card and screws.
Optionally, the first probe 21, the second probe 31, and the third probe 32 are made of 304 stainless steel, so that the probe provided by the present application has low temperature resistance, wear resistance, corrosion resistance, oxidation resistance, and the like, thereby improving the environmental adaptability of the probe.
According to an exemplary embodiment, the control module 40 is configured to perform MCU-centric control for transmitting detection instructions of soil parameters (e.g., temperature, humidity conductivity).
As shown in fig. 4, the temperature circuit module 50 is disposed on the printed circuit board 10 and connected to the first probe 21. The temperature circuit module 50 is used for detecting the temperature information of the soil through the first probe 21 according to the detection instruction of the control module 40.
For example, the soil parameter sensor 1 performs system initialization before soil parameter detection. After the system is initialized, a soil temperature detection thread and a humidity conductivity detection thread are started.
Optionally, the temperature circuit module 50 includes a thermistor, a temperature detection device, and an analog-to-digital converter.
The first probe 21 is inserted into a preset position in soil, and the first probe 21 obtains a temperature initial signal of the soil through a temperature detection module. It is understood that the initial signal of the temperature of the soil may be a signal of the thermistor detected by the temperature detecting device according to the temperature of the soil.
The temperature circuit module 50 converts the soil temperature initial signal (for example, the change signal of the thermistor) acquired by the temperature detection module into a temperature digital signal through analog-to-digital conversion by using an analog-to-digital converter ADC, and restores the soil temperature value, thereby obtaining the soil temperature information.
According to an exemplary embodiment, as shown in fig. 4, the humidity conductivity circuit module 60 is disposed on the printed circuit board 10 and connected with the second probe 31 and the third probe 32. The humidity conductivity circuit module 60 is used for detecting the humidity conductivity information of the soil through the second probe 31 and the third probe 32 according to the detection instruction of the control module 40.
For example, soil parameter sensor 1 turns on a moisture conductivity detection thread, which sends a moisture conductivity initiation signal to second probe 31. It is understood herein that the humidity conductivity initial signal is a characterization signal referring to humidity conductivity information. For example, the control module 40 generates a step signal and transmits the step signal to the second probe 31 through the humidity conductivity circuit module 60, and the potential of the second probe 31 for transmitting the step signal is positive.
Second probe 31 is inserted into the soil at a predetermined location such that the step signal on second probe 31 can be transmitted through the soil.
The humidity conductivity circuit module 60 receives the humidity conductivity reflection signal obtained by the third probe 32, where the humidity conductivity reflection signal is formed by reflecting the humidity conductivity initial signal transmitted by the second probe 31 through soil, and at this time, the potential of the third probe 32 for receiving the reflected step signal is negative.
For example, the step signal sent by the second probe 31 is reflected in the transmission process in the soil, the step signal changes after being reflected by the soil, the third probe 32 acquires the step signal at this time, and transmits the step signal after being reflected by the soil, that is, the humidity conductivity reflection signal to the humidity conductivity circuit module 60, wherein the third probe 32 is connected with the reference ground of the soil parameter sensor through the analog switch.
Optionally, the soil parameter sensor 1 determines the humidity conductivity information of the soil according to the humidity conductivity initial signal and the humidity conductivity reflection signal based on a time domain reflection method.
According to an exemplary embodiment, a Time Domain Reflectometry (TDR) is a method of measuring impedance using reflected energy of a pulse fed into a transmission line. According to the technical scheme, the soil humidity and the soil conductivity EC are measured by using the difference of the propagation speeds of electromagnetic waves in different media. For example, after the pulse electric wave generated by the control module 40 of the soil parameter sensor 1 propagates in the soil through the second probe 31, the pulse electric wave changes, and the soil humidity and the soil conductivity EC are determined by determining the change of the pulse electric wave through a corresponding algorithm.
Optionally, the humidity conductivity circuit module 60 includes an operational amplifier, a peak detector circuit, and an analog-to-digital converter.
For example, after receiving the humidity conductivity reflection signal transmitted by the third probe 32, the humidity conductivity circuit module 60 performs an operational amplification process on the humidity conductivity reflection signal through an operational amplifier. The humidity and conductivity reflected signal after the operational amplification processing is processed by a peak detection module to obtain a voltage difference and a phase difference between the humidity and conductivity reflected signal and the humidity and conductivity initial signal. The control module 40 calculates temperature data and conductivity data from the voltage difference and the phase difference using a time domain reflectometry method, so that humidity conductivity information can be determined.
Through the above example embodiment, the soil parameter sensor provided by the application acquires the initial temperature signal of the soil through the first probe, and determines the temperature information of the soil according to the initial temperature signal. The soil parameter sensor provided by the application sends a humidity conductivity initial signal to the soil through the second probe, so that the humidity conductivity initial signal is transmitted in the soil, and the third probe acquires a humidity conductivity reflection signal formed by the humidity conductivity initial signal through soil reflection. The soil parameter sensor provided by the application determines the humidity conductivity information of the soil according to the humidity conductivity initial signal and the humidity conductivity reflection signal, and has the advantages of high integration level, rapidness, accuracy, continuous in-situ measurement, no radiation and the like.
Optionally, the control module 40 is also used to adjust the potential of the second probe 31 and the third probe 32.
According to an example embodiment, the control module 40 switches the potentials of the second probe 31 and the third probe 32 after finishing the detection of the humidity conductivity information once. For example, the control module 40 configures the potential of the second probe 31 to be negative and the potential of the third probe 32 to be positive. The principle of the humidity conductivity circuit module in the case where the potential of the second probe 31 is negative and the potential of the third probe 32 is positive is the same as above, and will not be described herein again.
For example, the soil parameter sensor 1 switches the positive and negative electrodes of the second probe 31 and the third probe 32 at a preset frequency (for example, a frequency of 10 KHz) during the detection process, for example, after the soil parameter sensor 1 completes one detection of the humidity and conductivity information, or switches the positive and negative electrodes of the second probe 31 and the third probe 32 after a preset time (for example, 0.1 ms). By such arrangement, the electrochemical reaction of the probe can be reduced, and the service life of the soil parameter sensor 1 can be prolonged.
Through the above example embodiment, the soil parameter sensor can automatically and circularly detect the humidity and conductivity information by adjusting the potentials of the second probe and the third probe, so that the humidity and conductivity information can be measured in real time, the detection efficiency is improved, and the service life of the soil parameter sensor is prolonged.
Optionally, the control module 40 further comprises a storage unit 41. The storage unit 41 is used to store temperature information and humidity conductivity information in real time.
Optionally, soil parameter sensor 1 further comprises a housing 70. The housing 70 is used to enclose the printed circuit board 10.
According to the technical scheme, the soil parameter sensor 1 is subjected to plastic shell treatment, as shown in fig. 4, the soil parameter sensor 1 can have environmental adaptability by arranging the shell 70.
Alternatively, as shown in fig. 4, the first and second probe sets 20 and 30 are disposed on the same side of the housing 70.
Optionally, the junction of the housing 70 and the first and second probe sets 20 and 30 is provided with a sealing ring. The sealing ring is used for encapsulating the sealant.
For example, the sealing ring is encapsulated by the sealing glue, so that the soil parameter sensor 1 can achieve the waterproof and dustproof effects of IP68 level, the electrochemical reaction of the probe is further avoided, and the service life of the soil parameter sensor 1 is prolonged.
According to another aspect of the application, a soil parameter detection device is also provided. Fig. 5 is a schematic structural diagram of a soil parameter detection device according to an exemplary embodiment of the present application. As shown in fig. 5, the soil parameter detection device 2 includes the soil parameter sensor 1 and the information acquisition device 90 as described above.
As shown in fig. 5, the information acquiring device 90 is connected to the soil parameter sensor 1 for acquiring the temperature information and the humidity conductivity information from the storage unit of the soil parameter sensor 1.
For example, the soil parameter sensor 1 provided by the present application is fixedly disposed in an agricultural planting environment (such as an agricultural greenhouse), and the soil parameter sensor 1 detects and stores temperature information and humidity conductivity information in soil in real time. When a user needs to acquire temperature information and humidity and conductivity information of current soil, the user is in communication connection with the soil parameter sensor 1 through an external information acquisition device 90 (for example, an upper computer) and sends an information acquisition instruction to the soil parameter sensor 1. The soil parameter detection device receives and executes the information acquisition command, and sends the temperature information and the humidity conductivity information to the information acquisition device 90 (e.g., an upper computer).
Through the above exemplary embodiment, the technical scheme provided by the application can realize simultaneous measurement of temperature information and humidity conductivity information in soil, and can realize real-time data uploading, for example, data uploading can be performed at any time according to an information acquisition instruction of an external information acquisition device.
Optionally, the soil parameter sensor further includes an isolation power supply 80 for electrically isolating the control module 40 from an external power supply.
Optionally, the soil parameter sensor 1 further includes an RS485 communication module 100, and the information acquisition device 90 is in communication connection with the soil parameter sensor 1 through the RS485 communication module 100.
Optionally, the communication protocol adopted by the RS485 communication module 100 is a Modbus communication protocol.
For example, the RS485 communication module is used to communicate with the information acquisition device 90, and the isolation power supply 80 is used to electrically isolate the information acquisition device 90 (e.g., an upper computer). For example, the isolation power supply 80 may be configured such that the 5V voltage input by the information acquisition device 90 (e.g., an upper computer) is not electrically connected to the 5V voltage used inside the soil parameter sensor 1. Therefore, communication between the buses of the RS485 can not cause crosstalk between the ECs, so that a plurality of probes (sensors) can measure the same soil at the same time, the detection efficiency is improved, the electrical interference on the probes can be reduced, the electrochemical reaction of the probes is reduced, and the service life of the probes can be prolonged.
Finally, it should be noted that the above-mentioned embodiments are only preferred embodiments of the present application, and are not intended to limit the present application, and although the present application is described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the above-mentioned embodiments, or equivalents may be substituted for some of the technical features. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.