A kind of soil humidity sensor and its working method based on oscillation circuit
Technical field
The present invention relates to geology testing equipment fields, and in particular, to a kind of soil moisture sensing based on oscillation circuit
Device and its working method.
Background technique
Existing soil moisture content measurement method with TDR (Time-Domain Reflectometry, time domain reflection technology) and
Based on FDR (Frequency-Domain Reflectometer, frequency domain reflection technology).Wherein, the working principle of TDR technology is
Using electromagnetic wave in the medium of differing dielectric constant the different characteristic of transmission rate, by precise measurement electromagnetic wave from transmitting terminal
To the time difference of receiving end, so that the transmission rate of electromagnetic wave in the soil is obtained, so that counter release dielectric constant, and in turn
To volumetric water content of soil (i.e. humidity value).And FDR technology is to be propagated in the medium using electromagnetic pulse principle according to electromagnetic wave
Frequency measures the apparent dielectric constant of soil, and obtains volumetric water content of soil in turn.
Although existing FDR and TDR technology effectively, all exists, the linearity is low, precision is vulnerable to such environmental effects, electricity
The problems such as road is complicated, equipment is costly complicated with in-site installation process, applicability is limited.
Summary of the invention
For aforementioned problem of the prior art, the present invention provides a kind of soil humidity sensor based on oscillation circuit and
Two electrode plates and the soil between two electrode plates are considered as the parallel plate capacitor of a capacitance to be measured by its working method
Then device utilizes the relationship and capacitance of oscillation circuit frequency and capacitance and the relationship of dielectric constant, pass through to obtain and vibrate
The frequency values in circuit, can be back-calculated to obtain the dielectric constant of soil, and then obtain the humidity value of soil, can so exclude tradition
The not high defect of the linearity in FDR and TDR method can fast implement quick, the accurate and stable measurement of soil moisture.This
Outside, the soil humidity sensor also has the characteristics that circuit structure is simple, low in cost and application is convenient, practical, just
In actually popularization and use.
On the one hand the technical solution adopted by the present invention provides a kind of soil humidity sensor based on oscillation circuit, packet
Include plane-parallel capacitor, inductance, oscillation module, counting module and processing module, wherein the plane-parallel capacitor includes two electricity
Pole plate and the insulating part for being fixedly connected with two electrode plates, while so that two electrode plates is parallel to each other, and respectively as the parallel-plate electricity
The two poles of the earth of container;The two poles of the earth of the plane-parallel capacitor and the inductance in parallel constitute an oscillation circuit, and make the oscillation
Circuit is sequentially connected in series the oscillation module, the counting module and the processing module.
Optimization, the oscillation module include the voltage controlled oscillator amplifier of model MC100EL1648D, first capacitor,
8th capacitor, the 9th capacitor, first resistor and 3rd resistor;The 8th pin connection described the of the voltage controlled oscillator amplifier
One end of three resistance, it is in parallel between the other end of the 3rd resistor and the first pin of the voltage controlled oscillator amplifier described in
Oscillation circuit;The second pin of the voltage controlled oscillator amplifier is connected with third pin, is then separately connected the described of ground connection
The 9th capacitor of 8th capacitor and ground connection;The 5th pin and the 7th pin of the voltage controlled oscillator amplifier are connected, so
The first capacitor of ground connection is connected afterwards, while being sequentially connected in series the first resistor and DC power supply;The voltage controlled oscillator is put
The 6th pin ground connection of big device, output end of the 4th pin of the voltage controlled oscillator amplifier as the oscillation module.
Optimization, the counting module includes 12 grade of two mechanism ripple counter, the 4 of model MC74HC4040AD
Resistance and the 7th resistance;Input terminal of tenth pin of 12 grade of two mechanism ripple counter as the counting module, and
It is separately connected one end of the 4th resistance and one end of the 7th resistance, the other end of the 4th resistance and 12 grades described
16th pin of two mechanism ripple counters is separately connected DC power supply, the other end ground connection of the 7th resistance;Described 12
8th pin of two mechanism ripple counters of grade is grounded, described in the 11st pin connection of 12 grade of two mechanism ripple counter
The control output end of processing module, 12 output pins of 12 grade of two mechanism ripple counter are as the counting module
Output end.
Optimization, the processing module includes the singlechip chip of model STM8L151C8T6-48, third capacitor and the
Five resistance;Control output end of the second pin of the singlechip chip as the processing module, and it is separately connected described
One end of one end of three capacitors and the 5th resistance, the other end of the 5th resistance connect DC power supply, the third electricity
The other end of appearance is grounded.
Optimization, pre- frequency division module is in series between the oscillation module and the counting module.It advanced optimizes,
It is in series between the oscillation module and the pre- frequency division module or between the pre- frequency division module and the counting module
Capacitance.The pre- frequency division module uses the pre-distributor of model MC12080D.
Optimization, the outer surface of the electrode plate is equipped with zinc coat.
On the other hand the technical solution adopted by the present invention provides a kind of aforementioned soil moisture sensing based on oscillation circuit
The working method of device includes the following steps: that plane-parallel capacitor is inserted into soil to be measured by S101.;S102. start oscillation mode
Block motivates oscillation circuit, generates oscillator signal;S103. the oscillator signal is imported into counting module, passes through count module
The counting of block obtains the frequency measurement f of the oscillator signal;S104. the processing module acquisition frequency measurement f, and from
The local electrode plate suqare S and distance between plates d for reading plane-parallel capacitor, then calculates Jie of soil to be measured according to following formula
Electric constant ε:
In formula, ε0For permittivity of vacuum, L is the inductance value of inductance in oscillation circuit;S105. it is calculated according to following formula
The humidity value of soil to be measured
Then the humidity value is exported
Optimization, when being in series with pre- frequency division module between the oscillation module and the counting module, then according to such as
Lower formula calculates the permittivity ε of soil to be measured according to following formula:
In formula, ε0For permittivity of vacuum, L is the inductance value of inductance in oscillation circuit, and λ is the pre- frequency dividing of pre- frequency division module
Than.
To sum up, using a kind of soil humidity sensor and its working method based on oscillation circuit provided by the present invention,
Having the following beneficial effects: (1), two electrode plates and the soil between two electrode plates are considered as a capacitance to be measured by it
Then plane-parallel capacitor utilizes the relationship and capacitance of oscillation circuit frequency and capacitance and the relationship of dielectric constant, lead to
The frequency values for obtaining oscillation circuit are crossed, the dielectric constant of soil can be back-calculated to obtain, and then obtain the humidity value of soil, it so can be with
The defect that the linearity is not high in tradition FDR and TDR method is excluded, the quick, accurate of soil moisture can be fast implemented and is stablized
Measurement;(2) single-point single-depth in certain area coverage, the quick soil humidity measuring of the more depth of multiple spot may be implemented;
(3) it is exported using Transistor-Transistor Logic level serial digital signal, can have very strong anti-interference ability, have remote transmittability;(4)
The soil humidity sensor also has the characteristics that circuit structure is simple, low in cost and application is convenient, practical, convenient for real
It promotes and uses in border.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the structural block diagram of the soil humidity sensor provided by the invention based on oscillation circuit.
Fig. 2 is the circuit diagram of the soil humidity sensor provided by the invention based on oscillation circuit.
Fig. 3 is the flow chart of work methods of the soil humidity sensor provided by the invention based on oscillation circuit.
In above-mentioned attached drawing: 1, capacitor 101, electrode plate 2, oscillation module 3, counting module 4, processing module 5, pre- point
Frequency module.
Specific embodiment
Hereinafter reference will be made to the drawings, describes the soil provided by the invention based on oscillation circuit in detail by way of example
Humidity sensor and its working method.It should be noted that being used to help understand for the explanation of these way of example
The present invention, but and do not constitute a limitation of the invention.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A, individualism B exist simultaneously tri- kinds of situations of A and B, the terms
"/and " it is to describe another affiliated partner relationship, indicate may exist two kinds of relationships, for example, A/ and B, can indicate: individually depositing
In A, two kinds of situations of individualism A and B, in addition, character "/" herein, typicallying represent forward-backward correlation object is a kind of "or" pass
System.
Embodiment one
Fig. 1 shows the structural block diagram of the soil humidity sensor provided by the invention based on oscillation circuit, Fig. 2 shows
The circuit diagram of soil humidity sensor provided by the invention based on oscillation circuit, Fig. 3 show provided by the invention based on vibration
Swing the flow chart of work methods of the soil humidity sensor in circuit.The soil based on oscillation circuit provided in this embodiment is wet
Spend sensor, including plane-parallel capacitor 1, inductance L1, oscillation module 2, counting module 3 and processing module 4, wherein described flat
Parallel plate capacitor 1 includes two electrode plates 101 and being fixedly connected with the insulating part of two electrode plates 101, while keeping two electrode plates 101 mutual
In parallel, and respectively as the two poles of the earth of the plane-parallel capacitor 1;The two poles of the earth of the plane-parallel capacitor 1 and the inductance L1 are simultaneously
Connection constitutes an oscillation circuit, and the oscillation circuit is made to be sequentially connected in series the oscillation module 2, the counting module 3 and described
Processing module 4.
As shown in Fig. 1 to 2, in the structure of the soil humidity sensor, the plane-parallel capacitor 1 is for being inserted into
In soil to be measured, thus two electrode plates 101 and the soil between two electrode plates can be considered as a capacitance to be measured together
Plane-parallel capacitor;The oscillation circuit is used to realize the generation of oscillator signal using LC oscillation principle;The oscillation module
For motivating to the oscillation circuit, oscillator signal is generated;Based on the counter is carried out by the frequency to oscillator signal
Number, obtains the frequency measurement of oscillator signal, and the frequency measurement is sent to the processing module and is handled;The place
Module is managed for the capacitance of the plane-parallel capacitor 1 according to the frequency measurement Extrapolation and the dielectric of soil to be measured
Constant, and then according to the relationship of classical soil dielectric constant and soil moisture content, it is back-calculated to obtain the humidity value of soil to be measured (i.e.
Soil moisture content).In addition, as shown in Figure 1, further including providing electric energy support for modules in the soil humidity sensor
Power module.
As shown in figure 3, the working method of the soil humidity sensor based on oscillation circuit can be, but not limited to include
Following steps: plane-parallel capacitor is inserted into soil to be measured by S101.;S102. start oscillation module, oscillation circuit is carried out
Excitation generates oscillator signal;S103. the oscillator signal is imported into counting module, by the counting of counting module, described in acquisition
The frequency measurement f of oscillator signal;S104. processing module obtains the frequency measurement f, and reads parallel plate capacitor from local
The electrode plate suqare S and distance between plates d of device, then calculate the permittivity ε of soil to be measured according to following formula:
In formula, ε0For permittivity of vacuum, L is the inductance value of inductance in oscillation circuit;S105. it is calculated according to following formula
The humidity value of soil to be measured
Then the humidity value is exported
From there through the soil humidity sensor and its working method, it is not high that the linearity in traditional FDR and TDR method can be excluded
Defect can fast implement quick, the accurate and stable measurement of soil moisture.Further, it is also possible to realize in certain area model
Interior single-point single-depth, the quick soil humidity measuring of the more depth of multiple spot are enclosed, while the soil humidity sensor also has electricity
The features such as line structure is simple, low in cost and application facilitates, it is practical, it promotes and uses convenient for practical.
Optimization, the oscillation module 2 includes the voltage controlled oscillator amplifier of model MC100EL1648D, first capacitor
C1, the 8th capacitor C8, the 9th capacitor C9, first resistor R1 and 3rd resistor R3;The 8th of the voltage controlled oscillator amplifier draws
Foot BIAS connects one end of the 3rd resistor R3, the other end of the 3rd resistor R3 and the voltage controlled oscillator amplifier
The oscillation circuit in parallel between first pin TANK;The second pin VCC1 and third pin of the voltage controlled oscillator amplifier
VCC2 is connected, and is then separately connected the 8th capacitor C8 of ground connection and the 9th capacitor C9 of ground connection;The voltage controlled oscillation
5th pin AGC of device amplifier and the 7th pin VEE2 is connected, and then connects the first capacitor C1 of ground connection, while successively
Connect the first resistor R1 and DC power supply VCC;6th pin VEE1 of the voltage controlled oscillator amplifier is grounded, the pressure
Control output end of the 4th pin OUT of oscillator amplifier as the oscillation module 2.As shown in Fig. 2, the voltage controlled oscillator
Amplifier U3 is a kind of existing product that can be integrated with voltage controlled oscillation function and signal amplifying function, and it is voltage-controlled so to can use its
Oscillation functions motivate the oscillation circuit, generate oscillator signal, and believe the oscillation using its signal amplifying function
It number amplifies, so that subsequent module is able to carry out identifying processing.In addition, the 3rd resistor R3 is used to generate oscillating current,
The first capacitor C1, the 8th capacitor C8 and the 9th capacitor C9 are used to be used as shunt capacitance, protect the voltage-controlled vibration
Swing device amplifier is not influenced by external communication signal, the oscillator signal finally generated from the voltage controlled oscillator amplifier
Four pin OUT output.
Optimization, the counting module 3 includes 12 grade of two mechanism ripple counter, the 4 of model MC74HC4040AD
Resistance R4 and the 7th resistance R7;Tenth pin CLOCK of 12 grade of two mechanism ripple counter is as the counting module 3
Input terminal, and it is separately connected one end of the 4th resistance R4 and one end of the 7th resistance R7, the 4th resistance R4's
16th pin VCC1 of the other end and 12 grade of two mechanism ripple counter is separately connected DC power supply VCC, and the described 7th
The other end of resistance R7 is grounded;8th pin GND of 12 grade of two mechanism ripple counter is grounded, 12 grade of two mechanism line
11st pin RESET of wave counter connects the control output end of the processing module 4,12 grade of two mechanism ripple count
Output end of 12 output pins of device as the counting module 3.As shown in Fig. 2, 12 grade of two mechanism ripple counter
U1 is a kind of existing product that can be counted to the clock signal frequency of input, can be with 12 bit of synchronism output
According to (frequency measurement counted to get may be up to 4.096kHz), so that the processing module carries out that operation is counter to be pushed away.In addition, institute
State the 4th resistance R4 and the 7th resistance R7 for stablize come self-excited oscillation circuit direction oscillator signal (i.e. be used as clock signal
The measured signal of input).
Specifically, the processing module 4 includes singlechip chip, the third capacitor C3 of model STM8L151C8T6-48
With the 5th resistance R5;Control output end of the second pin PA1/NRST of the singlechip chip as the processing module 4, and
It is separately connected one end of the third capacitor C3 and one end of the 5th resistance R5, the other end connection of the 5th resistance R5
The other end of DC power supply VCC, the third capacitor C3 are grounded.As shown in Fig. 2, the third capacitor C3 and the 5th resistance R5 is used
It in stablizing control signal to be output, is resetted accurately to control the counting module 3, that is, controls 12 grade of two machine
Ripple counter processed is resetted.It is also shown in FIG. 2, the 15th to 18 pins of the singlechip chip (PE1~
PE4), the 41st to 44 pins (PC2~PC5) and the 25th to 28 pins (PB1~PE4) draw as input
Foot is docked with 12 output pins of 12 grade of two mechanism ripple counter respectively, and the frequency of input reflection oscillator signal is surveyed
12 bit binary datas of magnitude;47th pin (PE6) of the singlechip chip and the 48th pin (PE7) are respectively
As the input terminal of external data and the output end of internal data, for carrying out wire communication with external equipment, input calculates ginseng
Number (such as electrode plate suqare S and distance between plates d of plane-parallel capacitor etc.) or export soil moisture value, can be, but not limited to
It is defeated using Transistor-Transistor Logic level (transistor transistor logic, transistor-transistor logic level) serial digital signal
Out, there can be very strong anti-interference ability, have remote transmittability.
Specifically, being in series with pre- frequency division module 5 between the oscillation module 2 and the counting module 3.Such as Fig. 1 and Fig. 2
It is shown, since the maximum count value of the counting module 3 is limited, such as the maximum count of 12 grade of two mechanism ripple counter
Value is 4096, it is difficult to meet high-frequency count demand, therefore the prevention frequency module 5 of connecting, can reduce subsequent counter module 3
Output numerical value is prevented from counting and be overflowed, it is ensured that counts correctness.As what is advanced optimized, at this time according to following formula according to such as
Lower formula calculates the permittivity ε of soil to be measured:
In formula, ε0For permittivity of vacuum, L is the inductance value of inductance in oscillation circuit, and λ is the pre- frequency dividing of pre- frequency division module
Than.
It advanced optimizes, between the oscillation module 2 and the pre- frequency division module 5 or in the pre- frequency division module 5
Capacitance is in series between the counting module 3.As shown in Fig. 2, in the oscillation module 2 and the pre- frequency division module 5
Between be in series with the 6th capacitor C6, be in series with the 5th capacitor C5 between the pre- frequency division module 5 and the counting module 3, point
It Yong Yu not dc component in oscillation-damped signal.The pre- frequency division module 5 can be, but not limited to using model MC12080D
Pre-distributor.As shown in Fig. 2, the pre-distributor is that (1.1GHz is for the pre-divider high-frequency input signal of 1.1GHz a kind of
The maximum operation frequency of the pre-divider), it can be by configuring its third pin SW1, the 6th pin SW2 and the 7th pin SW3
Level pre- frequency dividing ratio is set.As shown in Fig. 2, the third pin SW1 is configured to low level, the 6th pin SW2 matches
It is set to high level, the 7th pin SW3 is configured to low level, and thus settable pre- frequency dividing ratio is 40, the frequency that can be measured
Measured value can reach 40 × 4.096kHz, meet basic measurement demand.
Specifically, the outer surface of the electrode plate 101 is equipped with zinc coat.By the way that the zinc coat is arranged, electricity can be prevented
Pole plate gets rusty, and avoids influencing electrode characteristic and capacitance, especially in the electrode plate when being inserted into soil to be measured.
To sum up, soil humidity sensor and its working method based on oscillation circuit provided by the present embodiment have such as
Down the utility model has the advantages that (1) its parallel-plate that two electrode plates and the soil between two electrode plates are considered as to a capacitance to be measured
Then capacitor utilizes the relationship and capacitance of oscillation circuit frequency and capacitance and the relationship of dielectric constant, passes through acquisition
The frequency values of oscillation circuit, can be back-calculated to obtain the dielectric constant of soil, and then obtain the humidity value of soil, can so exclude to pass
The not high defect of the linearity, can fast implement quick, the accurate and stable measurement of soil moisture in FDR and TDR method of uniting;
(2) single-point single-depth in certain area coverage, the quick soil humidity measuring of the more depth of multiple spot may be implemented;(3) it uses
The output of Transistor-Transistor Logic level serial digital signal, can have very strong anti-interference ability, have remote transmittability;(4) soil
Humidity sensor also has the characteristics that circuit structure is simple, low in cost and application is convenient, practical, promote convenient for practical and
It uses.
As described above, the present invention can be realized preferably.For a person skilled in the art, religion according to the present invention
It leads, designs various forms of soil humidity sensors based on oscillation circuit and its working method does not need creative labor
It is dynamic.These embodiments are changed, modified, replaced, integrate and become without departing from the principles and spirit of the present invention
Type is still fallen in protection scope of the present invention.