CN108775934A - The indirect metering method of digitlization gas flow based on AMFD algorithms - Google Patents
The indirect metering method of digitlization gas flow based on AMFD algorithms Download PDFInfo
- Publication number
- CN108775934A CN108775934A CN201810801345.5A CN201810801345A CN108775934A CN 108775934 A CN108775934 A CN 108775934A CN 201810801345 A CN201810801345 A CN 201810801345A CN 108775934 A CN108775934 A CN 108775934A
- Authority
- CN
- China
- Prior art keywords
- gas
- gas flow
- flow rate
- pin
- resistance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F1/00—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
- G01F1/05—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects
- G01F1/34—Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects by measuring pressure or differential pressure
Landscapes
- Physics & Mathematics (AREA)
- Fluid Mechanics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Volume Flow (AREA)
Abstract
The indirect metering method of digitlization gas flow based on AMFD algorithms that the present invention relates to a kind of, which solve existing diaphragm gas meter metering devices to be monitored in real time, the big technical problem of measurement error, periodicity is multiplied with diaphragm gas meter fixed volume by detecting the cyclic swing signal and obtains gas flow by it;The present invention is widely used in gas metering technical field.
Description
Technical field
The present invention relates to gas metering technical fields, in particular to a kind of digitlization combustion gas based on AMFD algorithms
The indirect metering method of flow.
Background technology
Currently, diaphragm gas meter, which when in use, needs staff to register one's residence, carries out manually meter reading, the combustion of IC card type membrane type
Gas meter can not accomplish the real-time monitoring of user's gas use state, flow.In winter under summer condition, diaphragm gas meter is still
By the way of volume metering, the metering method to gas company and with generating the loss brought by measurement error per family, and
Temperature and pressure amendment can not be carried out by equation of gaseous state.For gas flow overcurrent, do not close it is fiery, long-term the precarious positions such as be not used, pass
System diaphragm gas meter measuring terminal cannot achieve real-time monitoring.
Invention content
The present invention is exactly that can not be monitored in real time to solve existing diaphragm gas meter metering device, and measurement error is big
Technical problem, providing one kind can be monitored in real time, the small digitlization gas flow based on AMFD algorithms of measurement error
Indirect metering method.
Digitlization gas flow indirect metering method provided by the invention based on AMFD algorithms, includes the following steps:
Step 1, diaphragm gas meter gas outlet gas flow rate is detected by gas flow rate detection module, and gas flow rate is believed
Number it is sent to controller;
Step 2, the gas absolute pressure of gas pressure sensor detection diaphragm gas meter gas outlet, and by gas pressure number
According to being sent to controller;
Step 3, controller judges whether gas flow rate signal occurs saltus step, in case of saltus step, then enters step 4, no
Then go to step 1;
Step 4, controller carries out AMDF calculating by following formula (1) to gas pressure data, show that average amplitude is poor
Function composes D τ,
In formula (1), x (n) is the signal frame plus the rectangular window of a length of N of window, and τ is delay;
Calculated result D τ are marked, are divided according to the gas flow rate signal jumping moment mark point in step 3,
And it stores to array A1Into array An;
Step 5, using spectrum divided by data coincidence point counting method to array A1Inhibit decaying to the signal in An, is pressed down
Spectrum after system decaying, and calculate the spectral sequence L reciprocal of the spectrum after inhibiting decaying1To Ln;
Calculate spectral peak extraction threshold value dv;
Step 6, extraction spectrum peak point equispaced T, T are the period of gas pressure original signal, i.e., inside diaphragm gas meter
Mechanism works alternatively the period;
Step 7, the gas volume amount V of diaphragm gas meter discharge is calculated by following formula (3)n:
Vn=(Ln/T)×H (3)
In formula (3), H indicates the fixed volume of diaphragm gas meter;
Calculate each stage flow value V1To VnAccumulation amount Vsum。
Preferably, in step 5, spectral peak is calculated by following formula (2) and extracts threshold value dv:
dv=dmin+(dmean-dmin)×2 (2)
In formula (2), dminFor the spectrum array A for inhibiting after decaying1Minimum value into preceding 30% point data in An, dmean
For the spectrum array A for inhibiting after decaying1Mean value into preceding 30% point data in An.
Preferably, in step 3, judge that the specific method whether gas flow rate signal occurs saltus step is:
The voltage signal of institute's gas flow rate detection module output carries out A/D acquisitions by controller, when collected A/D values
When generating the saltus step higher than 30 units, then the moment point is regarded as undetermined-firepower transfer point P (0), is then calculated 3 to 5 before P (0)
The mean value MINA=(P (- 2)+P (- 3)+P (- 4))/3 of point calculates equal MINB=(P (2)+P (3)+P of P (0) 3 to 5 points afterwards
(4))/3, if still greater than 30 A/D units of absolute value of the difference between MINA and MINB, P (0) points is regarded and are turned as gas flow rate
It changes a little, judges that saltus step occurs.
Preferably, after step 7, judge whether gas flow rate detection module 40 detects truce, if it is, controller
By gas consumption VsumData be sent to gas company it is wireless/centralized automatic meter-reading terminal.
Preferably, detecting whether the detailed process ceased fire is:
Controller first has to read the A/D values for closing the gas flow rate detection module under fiery state:Vclose, when discovery gas
After the saltus step of 500 or more units has occurred in the A/D values of flow rate detection module, then firing maneuver has occurred in judgement;When discovery gas
The A/D values of body flow rate detection module are fallen after rise to positive and negative 50 unit ranges of Vclose, then are determined as that user has closed fire.
The indirect metering method of digitlization gas flow based on AMFD algorithms that the present invention also provides a kind of, including following step
Suddenly:
Step 1, diaphragm gas meter gas outlet gas flow rate is detected by gas flow rate detection module, and gas flow rate is believed
Number it is sent to controller;
Step 2, the gas absolute pressure of gas pressure sensor detection diaphragm gas meter gas outlet, and by gas pressure number
According to being sent to controller;
Step 3, controller carries out AMDF calculating by following formula (1) to gas pressure data, show that average amplitude is poor
Function composes D τ,
In formula (1), x (n) is the signal frame plus the rectangular window of a length of N of window, and τ is delay;
Calculated result D τ are stored to array A1Into array An;
Step 4, using spectrum divided by data coincidence point counting method to array A1Inhibit decaying to the signal in An, is pressed down
Spectrum after system decaying, and calculate the spectral sequence L reciprocal of the spectrum after inhibiting decaying1To Ln;
Calculate spectral peak extraction threshold value dv;
Step 5, extraction spectrum peak point equispaced T, T are the period of gas pressure original signal, i.e., inside diaphragm gas meter
Mechanism works alternatively the period;
Step 6, the gas volume amount V of diaphragm gas meter discharge is calculated by following formula (3)n:
Vn=(Ln/T)×H (3)
In formula (3), H indicates the fixed volume of diaphragm gas meter;
Calculate each stage flow value V1To VnAccumulation amount Vsum。
Preferably, in step 4, spectral peak is calculated by following formula (2) and extracts threshold value dv:
dv=dmin+(dmean-dmin)×2 (2)
In formula (2), dminFor the spectrum array A for inhibiting after decaying1Minimum value into preceding 30% point data in An, dmean
For the spectrum array A for inhibiting after decaying1Mean value into preceding 30% point data in An.
The present invention also provides a kind of indirect metering device of digitlization gas flow, including diaphragm gas meter and valve body, membrane types
Gas meter, flow meter is equipped with entrance and exit, and valve body includes the sensor attachment portion 5 and main part to link together, sensor attachment portion and
The junction of main part is sealed by O-ring seal;The outlet of diaphragm gas meter passes through pipeline and main part in valve body
Gas feed portion connects, and the gas vent portion of sensor attachment portion is used for and is connect with gas-cooker in valve body;
Sensor attachment portion in valve body is connected with metering module, and metering module includes circuit board, is connected on circuit board
Dsp controller, gas pressure sensor, gas flow rate detection module and power module, the signal output of gas pressure sensor
End is connect with the ADC interface of dsp controller, and the signal output end of gas flow rate detection module and the ADC interface of dsp controller connect
Connect, power module be used for gas pressure sensor, gas flow rate detection module and dsp controller power, the circuit board with
Sensor attachment portion connects.
Preferably, gas pressure sensor is Infineon's DPS310 sensors, two GND of Infineon's DPS310 sensors
Pin is grounded, and VDD pins and VDDIO pins connect power supply VCC, SLK pin and meet clock signal, signal output end SDI pins and DSP
Controller signals receiving interface connects;
Gas flow rate detection module includes field-effect tube Q1, the first thermistor RT1, second thermistor RT2, LM324
Operational amplifier and first resistor R1;One end of first thermistor RT1 is grounded, and the other end passes through resistance R26 and LM324 operations
3rd pin of amplifier connects;One end of second thermistor RT2 is grounded, and the other end and passes through resistance R27 and LM324 operations
5th pin of amplifier connects;The poles G of field-effect tube Q1 are connect by second resistance R2 with dsp controller, and the poles S connect power supply
The pole VCC, D is grounded by third capacitance C3, and first resistor R1 is in parallel with third capacitance C3, the 2nd pin of LM324 operational amplifiers
It is connect with the 1st pin, the 6th pin is connect with the 7th pin, and the 1st pin is connect with the 13rd pin by the tenth resistance R10, and the 7th draws
Foot is connect with the 12nd pin by eleventh resistor R11, is connected by the 14th resistance R14 between the 13rd pin and the 14th pin
It connects, the 12nd pin is grounded by twelfth resistor R12, and the 14th pin is grounded by the 11st capacitance C11, and the 14th pin is as gas
Body flow velocity signal output end is connect with dsp controller, and mono- tunnels power supply VCC pass through concatenated 6th resistance R6, the 7th resistance R7,
Eight resistance R8 ground connection, another way are grounded by 3rd resistor R3, the 4th resistance R4, the 5th resistance R5, LM324 operational amplifiers
Node connection between 3rd pin and the 7th resistance R7 and the 8th resistance R8, the section between the 4th resistance R4 and the 5th resistance R5
Point is connect with the 5th pin of LM324 operational amplifiers;
First thermistor RT1, the second thermistor RT2, first resistor R1, Infineon's DPS310 sensors are located at air-flow
Upstream end, after the first thermistor RT1, the second thermistor RT2 and first resistor R1 are located at Infineon's DPS310 sensors
Side, first resistor R1 is between the first thermistor RT1 and the second thermistor RT2.
The beneficial effects of the invention are as follows:The digitized measurement device is provided, realizes that flow measures indirectly by signal extraction.It can
Solution is transformed as the old table of user, the rear end that metering device need to be only mounted on to existing diaphragm gas meter (need not be to membrane type
Gas meter, flow meter itself is transformed), to replace manual metering mode.Effectively realize the real-time monitoring of user's gas use state
With flow measurement, high certainty of measurement, error is small, has and improves combustion gas industrial economy benefit, improves user's gas safety in utilization
The advantages that.With temperature and pressure debugging functions.
Further aspect of the present invention and aspect are able in the description of the specific implementation mode below with reference to attached drawing
It is clearly stated that.
Description of the drawings
Fig. 1 is the structural schematic diagram of valve body;
Fig. 2 is the functional block diagram of metering device;
Fig. 3 is the circuit diagram of TMS320F28335 type digital signal processors;
Fig. 4 is Infineon's DPS310 sensors and gas flow rate detection module circuit schematic;
Fig. 5 is gas flow rate detection module circuit diagram;
Fig. 6 is the flow chart of metering method;
Fig. 7 is gas pressure signal waveforms;
Fig. 8 be the oscillogram of Fig. 7 go it is dry after oscillogram;
Fig. 9 is to calculate its average magnitude difference function for Fig. 8 to compose the signal waveforms obtained;
Figure 10 is to inhibit spectrogram after decaying;
Figure 11 is the connection diagram of valve body and diaphragm gas meter, gas-cooker;
Figure 12 be gas pressure sensor, gas flow rate detection module channel in valve body position view.
Symbol description in figure:
1. valve screw rod, 2. valve swivel nuts, 3. pistons, 4.O type sealing rings, 5. sensor attachment portions, 6. main parts, 7. pass
Sensor bracket, 8.O type sealing rings, 9. diaphragm gas meters, 10. gas-cookers, 11. natural gas lines, 12. valve bodies, 12-1. gases into
Oral area, 12-2. gas vents portion, 13. hoses, the PCB of 14. circuit boards;
20.DSP controllers, 30. gas pressure sensors, 40. gas flow rate detection modules, 50. power modules, 60. nothings
Line communication module, 70. display modules.
Specific implementation mode
Referring to the drawings, with specific embodiment, invention is further described in detail.
As shown in Figure 1, valve body includes the sensor attachment portion 5 to link together and main part 6,5 He of sensor attachment portion
The junction of main part 6 is sealed by O-ring seal 4.Sensor stand 7 is connect with sensor attachment portion 5, sensor branch
Frame 7 and the junction of sensor attachment portion 5 are sealed by O-ring seal 8.Be connected with piston 3 on main part 6, valve swivel nut 2 with
Main part 6 connects, and valve screw rod 1 is connect with valve swivel nut 2.Valve screw rod 1 is connected with handle.
As shown in figure 11, valve body 12 indicates that valve body shown in FIG. 1, the entrance of diaphragm gas meter 9 pass through pipeline and natural gas
Pipeline 11 connects, and the outlet of diaphragm gas meter 9 is connect by pipeline with the gas feed portion 12-1 of main part 6 in valve body 12, valve
The gas vent portion 12-2 of sensor attachment portion 5 is connect by hose 13 with gas-cooker 10 in body 12.
As shown in Fig. 2, metering device includes dsp controller 20, gas pressure sensor 30, gas flow rate detection module
40, power module 50, wireless communication module 60 and display module 70, signal output end and the DSP of gas pressure sensor 30 are controlled
The ADC interface of device 20 processed connects, and the signal output end of gas flow rate detection module 40 is connect with the ADC interface of dsp controller 20,
Display module 70 is connect with dsp controller 20, and wireless communication module 60 is connect with dsp controller 20, power module 50 be used for
Gas pressure sensor 30, gas flow rate detection module 40, wireless communication module 60, display module 70 etc. power unit supply
Electricity.Display module 70 is used to show the result of calculation of dsp controller 20, provides human-computer interaction interface.Wireless communication module 60 is used
In the data in dsp controller 20 are issued to gas company it is wireless/centralized automatic meter-reading terminal etc. other equipment on.DSP is controlled
Device 20, gas pressure sensor 30, gas flow rate detection module 40, power module 50, wireless communication module 60 and display module
70 are connected on circuit board, which is connected on sensor stand 7.
Dsp controller 20 can select the TMS320F28335 type digital signal processors of TI companies, as shown in figure 3, should
The precision of chip is high, at low cost, small power consumption, and performance is high, and peripheral hardware integrated level is high, and data and program amount of storage are big, and A/D is converted more
It is accurately quick etc..TMS320F28335 has the high speed processing ability of 150MHz, has 32 floating point processing units, and 12 16 logical
Road ADC, I2C communication interface etc..
It is a based on MEMS technology that gas pressure sensor 30, which can select Infineon's DPS310 sensors, the sensor,
Low-power digital formula gas pressure sensor, have ultrahigh resolution.Based on capacitance type sensing principle, DPS310 is prodigious
Also the gas pressure measurement that essence is stablized can be realized in range of temperature.As shown in figure 4, two of Infineon's DPS310 sensors
GND pin is grounded, and VDD pins and VDDIO pins connect power supply VCC, SLK pin and connect clock signal, signal output end SDI pins with
SDAA pins (or other signals receive pin) connection of TMS320F28335 type digital signal processors.Gas pressure sensor
30 detection diaphragm gas meter outlet gas absolute pressures, and pass through I2Pressure value is uploaded to by C communication protocols
The I of TMS320F28335 type digital signal processors2C interface.
As shown in Figures 4 and 5, gas flow rate detection module 40 include the first thermistor RT1, the second thermistor RT2,
LM324 operational amplifiers, first resistor R1;One end of first thermistor RT1 is grounded, and the other end passes through resistance R26 and LM324
3rd pin of operational amplifier connects;One end of second thermistor RT2 is grounded, and the other end and passes through resistance R27 and LM324
5th pin of operational amplifier connects;The poles G of field-effect tube Q1 pass through second resistance R2 and TMS320F28335 type digital signals
The GPIO53 pins of processor connect.The poles S connect the power supply pole VCC, D and are grounded by third capacitance C3, first resistor R1 and third electricity
It is in parallel to hold C3.2nd pin of LM324 operational amplifiers is connect with the 1st pin, and the 6th pin is connect with the 7th pin, the 1st pin with
13rd pin is connect with the 12nd pin by eleventh resistor R11 by the tenth resistance R10 connections, the 7th pin, the 13rd pin with
It is grounded by twelfth resistor R12 by the 14th resistance R14 connections, the 12nd pin between 14th pin, the 14th pin passes through
11st capacitance C11 ground connection, the 14th pin is as gas flow rate signal output end and TMS320F28335 type Digital Signal Processing
The ACDINA0 pins of device connect.Mono- tunnels power supply VCC are connect by concatenated 6th resistance R6, the 7th resistance R7, the 8th resistance R8
Ground, another way are grounded by 3rd resistor R3, the 4th resistance R4, the 5th resistance R5, the 3rd pin of LM324 operational amplifiers with
Node connection between 7th resistance R7 and the 8th resistance R8, node and LM324 between the 4th resistance R4 and the 5th resistance R5
5th pin of operational amplifier connects.
The resistance value of first thermistor RT1 can be 10K Ω, and the resistance value of the second thermistor RT2 can be 10K Ω, the
The resistance value of one resistance R1 can be 82 Ω.In conjunction with Figure 12, when gas flow rate detection module 40 works, when first resistor R1 has electric current
Heat, as heat source are will produce, heat is generated by first resistor R1, then by testing first thermistor on its both sides
(when gas flows, the temperature around two thermistors is with regard to different, institute for the resistance value difference of RT1 and the second thermistor RT2
With resistance value with regard to different) and then calculate flow velocity.
Upstream and downstream resistance heat can be caused to be unevenly distributed in gas flow, realize that flow velocity is surveyed after amplifying by signal
Amount.Meanwhile it can realize identification to firepower transfer point by the step saltus step of signal.
As shown in figure 12, arrow direction indicates gas stream through direction, and the gas pressure being welded on the PCB14 of circuit board passes
Sensor 30, the first thermistor RT1, the second thermistor RT2, first resistor R1, gas pressure sensor 30 are located on air-flow
At trip, the first thermistor RT1, the second thermistor RT2 and first resistor R1 are located at the rear of gas pressure sensor 30, the
One resistance R1 is between the first thermistor RT1 and the second thermistor RT2.
Temperature and pressure debugging functions mainly rely on Infineon's DPS310 sensors.
As shown in fig. 6, at work due to diaphragm gas meter, internal rotating valve system is periodically worked alternatively and can be caused
Therefore diaphragm gas meter gas outlet pressure value cyclic swing detects the cyclic swing signal, and then by periodicity and diaphragm gas
The multiplication of table fixed volume obtains gas flow, the specific method measured indirectly to diaphragm gas meter using above-mentioned metering device
It is as follows:
Step 1, diaphragm gas meter gas outlet gas flow rate, gas flow rate detection are detected by gas flow rate detection module 40
What module 40 exported is voltage signal, and gas flow rate signal is sent to dsp controller 20.
Step 2, the gas absolute pressure of Infineon DPS310 sensors detection diaphragm gas meter gas outlet, and pass through I2C
Gas pressure data is uploaded to the I of dsp controller 20 by communication protocol2C interface.
Step 3, dsp controller 20 judges whether gas flow rate signal occurs saltus step, that is, judges whether user has carried out fire
Power adjusts, and in case of saltus step, then enters step 4, otherwise gos to step 1.Judge whether gas flow rate signal occurs saltus step
Specific method be:
The voltage signal that gas flow rate detection module 40 exports is acquired by the A/D modules of dsp controller 20, when collecting
A/D values generate higher than 30 units (the minimum precision of A/D) saltus step when, then regard the moment point as " undetermined-firepower transfer point
P (0) " then calculates the mean value MINA=(P (- 2)+P (- 3)+P (- 4))/3 of 3 to 5 points before P (0), calculates P (0) 3 to 5 points afterwards
Equal MINB=(P (2)+P (3)+P (4))/3, if still greater than 30 A/D units of the absolute value of the difference between MINA and MINB,
Then judge that saltus step occurs, then regards P (0) points as " determination-firepower transfer point ".
Step 4, dsp controller 20 carries out AMDF calculating by following formula (1) to gas pressure data, obtains average width
It spends difference function and composes D τ,
In formula (1), x (n) is the signal frame plus the rectangular window of a length of N of window, and τ is delay;
Calculated result D τ are marked, are divided according to the firepower jumping moment mark point in step 3, and store to
Array A1Into array An;
Step 5, since AMDF spectrums have attenuation effect, therefore use spectrum divided by data coincidence point counting method to array A1Extremely
Signal in An inhibits decaying, the spectrum after the decaying that is inhibited, and calculates the spectral sequence L reciprocal of the spectrum after inhibiting decaying1To Ln。
Calculate separately out the spectrum array A after inhibition decaying1Minimum value d into preceding 30% point data in Anmin, mean value
dmean, spectral peak is calculated by following formula (2) and extracts threshold value dv:
dv=dmin+(dmean-dmin)×2 (2)
Step 6, extraction spectrum peak point equispaced T, T are the period of gas pressure original signal, i.e., inside diaphragm gas meter
Mechanism works alternatively the period.
Step 7, the gas volume amount V of diaphragm gas meter discharge is calculated by following formula (3)n:
Vn=(Ln/T)×H (3)
In formula (3), H indicates the fixed volume of diaphragm gas meter, is constant.
It is calculated by the following formula each stage flow value V1To VnAccumulation amount Vsum(i.e. user's gas usage amount).
Step 8, judge whether gas flow rate detection module 40 detects truce, if it is carry out step 9, otherwise redirect
To step 1.
Detecting whether the detailed process ceased fire is:
Dsp controller 20 first has to read the A/D values for closing the gas flow rate detection module 40 under fiery state:Vclose.When
It was found that after the saltus step of 500 or more units (the minimum precision of A/D) has occurred in the A/D values of gas flow rate detection module 40, then sentence
Surely firing maneuver has occurred;When the A/D values of discovery gas flow rate detection module 40 are fallen after rise to positive and negative 50 unit ranges of Vclose
It is interior, then it is determined as that user has closed fire.
Step 9, dsp controller 20 is by gas consumption VsumData be sent to gas company it is wireless/centralized automatic meter-reading terminal.
With array A1For illustrate above-mentioned steps 4 to 7, A1Middle combustion gas gas pressure signal waveform is as shown in Figure 7;
To waveform shown in Fig. 7, it is fitted ductwork pressure waveform baseline by 15 medium filterings three times, and then remove gas
Low-frequency noise in pressure signal, the pressure signal removed after baseline drift are as shown in Figure 8;
According to formula (1), to A1Middle gas pressure signal calculates its average magnitude difference function spectrum, and the signal waveform obtained is such as
Shown in Fig. 9.
Decaying is inhibited using spectrum divided by data coincidence point counting method, and calculates the spectral sequence reciprocal for inhibiting spectrum, inhibits to decline
Spectrum after subtracting is drawn as shown in Figure 10.
Calculate separately out the minimum value d in preceding 30% point data in spectrum arraymin, mean value dmean.It is counted according to formula (2)
Calculate spectral peak extraction threshold value dv:
By taking conventional diaphragm gas meter fixed volume is 1.2L as an example, under the stage, the gas volume of diaphragm gas meter discharge
Measure V1It is calculated by following formula:
V1=(L1/T)*1.2
The above is not intended to restrict the invention, only to the preferred embodiment of the present invention for the skill of this field
For art personnel, the invention may be variously modified and varied.
Claims (9)
1. a kind of indirect metering method of digitlization gas flow based on AMFD algorithms, which is characterized in that include the following steps:
Step 1, diaphragm gas meter gas outlet gas flow rate is detected by gas flow rate detection module, and gas flow rate signal is sent out
Give controller;
Step 2, the gas absolute pressure of gas pressure sensor detection diaphragm gas meter gas outlet, and gas pressure data is sent out
Give controller;
Step 3, controller judges whether gas flow rate signal occurs saltus step, in case of saltus step, then enters step 4, otherwise jumps
Go to step 1;
Step 4, controller carries out AMDF calculating by following formula (1) to gas pressure data, obtains average magnitude difference function
D τ are composed,
In formula (1), x (n) is the signal frame plus the rectangular window of a length of N of window, and τ is delay;
Calculated result D τ are marked, are divided according to the gas flow rate signal jumping moment mark point in step 3, and are deposited
It stores up to array A1Into array An;
Step 5, using spectrum divided by data coincidence point counting method to array A1Inhibit decaying to the signal in An, is inhibited and declines
Spectrum after subtracting, and calculate the spectral sequence L reciprocal of the spectrum after inhibiting decaying1To Ln;
Calculate spectral peak extraction threshold value dv;
Step 6, extraction spectrum peak point equispaced T, T are the period of gas pressure original signal, i.e. diaphragm gas meter internal mechanism
Work alternatively the period;
Step 7, the gas volume amount V of diaphragm gas meter discharge is calculated by following formula (3)n:
Vn=(Ln/T)×H (3)
In formula (3), H indicates the fixed volume of diaphragm gas meter;
Calculate each stage flow value V1To VnAccumulation amount Vsum。
2. the digitlization gas flow indirect metering method according to claim 1 based on AMFD algorithms, it is characterised in that:
In the step 5, spectral peak is calculated by following formula (2) and extracts threshold value dv:
dv=dmin+(dmean-dmin)×2 (2)
In formula (2), dminFor the spectrum array A for inhibiting after decaying1Minimum value into preceding 30% point data in An, dmeanFor suppression
Spectrum array A after system decaying1Mean value into preceding 30% point data in An.
3. the digitlization gas flow indirect metering method according to claim 2 based on AMFD algorithms, which is characterized in that
In the step 3, judge that the specific method whether gas flow rate signal occurs saltus step is:
The voltage signal of the gas flow rate detection module output carries out A/D acquisitions by controller, when collected A/D values are produced
When the raw saltus step for being higher than 30 units, then the moment point is regarded as undetermined-firepower transfer point P (0), then calculates 3 to 5 points before P (0)
Mean value MINA=(P (- 2)+P (- 3)+P (- 4))/3, calculate P (0) afterwards 3 to 5 points equal MINB=(P (2)+P (3)+P (4))/
3, if still greater than 30 A/D units of the absolute value of the difference between MINA and MINB, regards P (0) and put as gas flow rate transfer point,
Judge that saltus step occurs.
4. the digitlization gas flow indirect metering method according to claim 3 based on AMFD algorithms, which is characterized in that
After the step 7, judge whether gas flow rate detection module 40 detects truce, if it is, controller is by combustion gas
Dosage VsumData be sent to gas company it is wireless/centralized automatic meter-reading terminal.
5. the digitlization gas flow indirect metering method according to claim 4 based on AMFD algorithms, which is characterized in that
Detecting whether the detailed process ceased fire is:
Controller first has to read the A/D values for closing the gas flow rate detection module under fiery state:Vclose, when discovery gas flow rate
After the saltus step of 500 or more units has occurred in the A/D values of detection module, then firing maneuver has occurred in judgement;When discovery gas stream
The A/D values of fast detection module are fallen after rise to positive and negative 50 unit ranges of Vclose, then are determined as that user has closed fire.
6. a kind of indirect metering method of digitlization gas flow based on AMFD algorithms, which is characterized in that include the following steps:
Step 1, diaphragm gas meter gas outlet gas flow rate is detected by gas flow rate detection module, and gas flow rate signal is sent out
Give controller;
Step 2, the gas absolute pressure of gas pressure sensor detection diaphragm gas meter gas outlet, and gas pressure data is sent out
Give controller;
Step 3, controller carries out AMDF calculating by following formula (1) to gas pressure data, obtains average magnitude difference function
D τ are composed,
In formula (1), x (n) is the signal frame plus the rectangular window of a length of N of window, and τ is delay;
Calculated result D τ are stored to array A1Into array An;
Step 4, using spectrum divided by data coincidence point counting method to array A1Inhibit decaying to the signal in An, is inhibited and declines
Spectrum after subtracting, and calculate the spectral sequence L reciprocal of the spectrum after inhibiting decaying1To Ln;
Calculate spectral peak extraction threshold value dv;
Step 5, extraction spectrum peak point equispaced T, T are the period of gas pressure original signal, i.e. diaphragm gas meter internal mechanism
Work alternatively the period;
Step 6, the gas volume amount V of diaphragm gas meter discharge is calculated by following formula (3)n:
Vn=(Ln/T)×H (3)
In formula (3), H indicates the fixed volume of diaphragm gas meter;
Calculate each stage flow value V1To VnAccumulation amount Vsum。
7. the digitlization gas flow indirect metering method according to claim 6 based on AMFD algorithms, it is characterised in that:
In the step 4, spectral peak is calculated by following formula (2) and extracts threshold value dv:
dv=dmin+(dmean-dmin)×2 (2)
In formula (2), dminFor the spectrum array A for inhibiting after decaying1Minimum value into preceding 30% point data in An, dmeanFor suppression
Spectrum array A after system decaying1Mean value into preceding 30% point data in An.
8. a kind of indirect metering device of digitlization gas flow, which is characterized in that including diaphragm gas meter and valve body, the membrane type
Gas meter, flow meter is equipped with entrance and exit, and the valve body includes the sensor attachment portion 5 and main part to link together, sensor connection
Portion and the junction of main part are sealed by O-ring seal;The outlet of the diaphragm gas meter passes through in pipeline and valve body
The gas feed portion of main part connects, and the gas vent portion of sensor attachment portion is used for and is connect with gas-cooker in the valve body;
Sensor attachment portion in the valve body is connected with metering module, and the metering module includes circuit board, the circuit board
On be connected with dsp controller, gas pressure sensor, gas flow rate detection module and power module, the gas pressure sensing
The signal output end of device and the ADC interface of dsp controller connect, the signal output end and DSP of the gas flow rate detection module
The ADC interface of controller connects, and power module is used for gas pressure sensor, gas flow rate detection module and dsp controller
Power supply, the circuit board are connect with sensor attachment portion.
9. the indirect metering device of digitlization gas flow according to claim 8, which is characterized in that the gas pressure passes
Sensor is Infineon's DPS310 sensors, and two GND pins of Infineon's DPS310 sensors are grounded, and VDD pins and VDDIO draw
Foot connects power supply VCC, SLK pin and connects clock signal, and signal output end SDI pins are connect with dsp controller signal receiving interface;
The gas flow rate detection module includes field-effect tube Q1, the first thermistor RT1, second thermistor RT2, LM324
Operational amplifier and first resistor R1;One end of first thermistor RT1 is grounded, and the other end passes through resistance R26 and LM324 operations
3rd pin of amplifier connects;One end of second thermistor RT2 is grounded, and the other end and passes through resistance R27 and LM324 operations
5th pin of amplifier connects;The poles G of field-effect tube Q1 are connect by second resistance R2 with dsp controller, and the poles S connect power supply
The pole VCC, D is grounded by third capacitance C3, and first resistor R1 is in parallel with third capacitance C3, the 2nd pin of LM324 operational amplifiers
It is connect with the 1st pin, the 6th pin is connect with the 7th pin, and the 1st pin is connect with the 13rd pin by the tenth resistance R10, and the 7th draws
Foot is connect with the 12nd pin by eleventh resistor R11, is connected by the 14th resistance R14 between the 13rd pin and the 14th pin
It connects, the 12nd pin is grounded by twelfth resistor R12, and the 14th pin is grounded by the 11st capacitance C11, and the 14th pin is as gas
Body flow velocity signal output end is connect with dsp controller, and mono- tunnels power supply VCC pass through concatenated 6th resistance R6, the 7th resistance R7,
Eight resistance R8 ground connection, another way are grounded by 3rd resistor R3, the 4th resistance R4, the 5th resistance R5, LM324 operational amplifiers
Node connection between 3rd pin and the 7th resistance R7 and the 8th resistance R8, the section between the 4th resistance R4 and the 5th resistance R5
Point is connect with the 5th pin of LM324 operational amplifiers;
First thermistor RT1, the second thermistor RT2, first resistor R1, Infineon's DPS310 sensors are located at air-flow upstream
Place, the first thermistor RT1, the second thermistor RT2 and first resistor R1 are located at the rear of Infineon's DPS310 sensors, the
One resistance R1 is between the first thermistor RT1 and the second thermistor RT2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810801345.5A CN108775934B (en) | 2018-07-20 | 2018-07-20 | Digital gas flow indirect metering method based on AMDF algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810801345.5A CN108775934B (en) | 2018-07-20 | 2018-07-20 | Digital gas flow indirect metering method based on AMDF algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108775934A true CN108775934A (en) | 2018-11-09 |
CN108775934B CN108775934B (en) | 2019-12-31 |
Family
ID=64031400
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810801345.5A Expired - Fee Related CN108775934B (en) | 2018-07-20 | 2018-07-20 | Digital gas flow indirect metering method based on AMDF algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108775934B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11906330B1 (en) | 2022-08-17 | 2024-02-20 | Itron, Inc. | Efficient compression of sensor data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203964971U (en) * | 2014-07-28 | 2014-11-26 | 北京嘉洁能科技有限公司 | Bicavate ultrasonic wave gas meter |
CN105841765A (en) * | 2016-05-27 | 2016-08-10 | 中国计量大学 | Diaphragm type gas meter revolution volume acquisition method based on short-time self-correlation algorithm |
CN106092274A (en) * | 2016-05-27 | 2016-11-09 | 中国计量大学 | A kind of diaphragm gas meter rapid verification method based on auto-correlation algorithm |
CN106840323A (en) * | 2016-12-27 | 2017-06-13 | 威海拙诚燃气安全设备有限公司 | Diaphragm gas meter measuring and testing device and method |
JP2017215162A (en) * | 2016-05-30 | 2017-12-07 | 理研計器株式会社 | Gas passage structure and flow sensor |
-
2018
- 2018-07-20 CN CN201810801345.5A patent/CN108775934B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203964971U (en) * | 2014-07-28 | 2014-11-26 | 北京嘉洁能科技有限公司 | Bicavate ultrasonic wave gas meter |
CN105841765A (en) * | 2016-05-27 | 2016-08-10 | 中国计量大学 | Diaphragm type gas meter revolution volume acquisition method based on short-time self-correlation algorithm |
CN106092274A (en) * | 2016-05-27 | 2016-11-09 | 中国计量大学 | A kind of diaphragm gas meter rapid verification method based on auto-correlation algorithm |
JP2017215162A (en) * | 2016-05-30 | 2017-12-07 | 理研計器株式会社 | Gas passage structure and flow sensor |
CN106840323A (en) * | 2016-12-27 | 2017-06-13 | 威海拙诚燃气安全设备有限公司 | Diaphragm gas meter measuring and testing device and method |
Non-Patent Citations (3)
Title |
---|
商荣辉 等: "膜式燃气表内部流动数值模拟研究", 《中国计量学院学报》 * |
朱伟芳 等: "一种实用的去基线漂移滤波算法", 《苏州大学学报(工科版)》 * |
胡爱军 等: "基于数学形态变换的转子故障特征提取方法", 《机械工程学报》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11906330B1 (en) | 2022-08-17 | 2024-02-20 | Itron, Inc. | Efficient compression of sensor data |
WO2024039428A1 (en) * | 2022-08-17 | 2024-02-22 | Itron, Inc. | Efficient compression of sensor data |
Also Published As
Publication number | Publication date |
---|---|
CN108775934B (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN202837151U (en) | Automatic filter efficiency tester | |
CN201298012Y (en) | Microcomputer laser dust monitor | |
CN201662568U (en) | Carbon monoxide detection system of novel coal mill | |
CN109164027A (en) | air filter performance test system | |
CN106323830A (en) | High-humidity flue gas dust monitoring system and method thereof | |
CN108775934A (en) | The indirect metering method of digitlization gas flow based on AMFD algorithms | |
CN103542889A (en) | Gas drainage multi-parameter measuring device | |
CN205404225U (en) | Gas sampling probe unit | |
CN202177435U (en) | Household diaphragm gas meter on-line verification instrument | |
CN203011801U (en) | Online detection device applicable to particulate matters in high-pressure gas pipeline | |
CN201795972U (en) | On-line dust detector | |
CN111239008A (en) | Sampling and measuring device for smoke dust and smoke gas of high-temperature positive-pressure flue | |
CN207351837U (en) | A kind of Fume moisture test device | |
CN106679738B (en) | Low-power consumption gas flow measurement circuit with self-diagnostic function | |
CN108801373A (en) | The indirect metering method of gas flow based on gas pressure integral of pulse shape periodicity extraction algorithm | |
CN108763840A (en) | The indirect metering method of gas flow of signal period detection algorithm is extracted based on local template AMDF spectral peaks | |
CN101413848A (en) | Wireless remote control type smoke / gas tester | |
CN213091433U (en) | Sampling device of high temperature malleation flue smoke and dust flue gas | |
CN209167069U (en) | Air filter performance testing device | |
CN203489916U (en) | Multi-parameter measurement device for gas drainage | |
CN207300814U (en) | A kind of direct insertion dust concentration tester | |
CN206234977U (en) | A kind of air quality detector device that can control VMC | |
CN206504910U (en) | Dirt fluorine and gas fluorine are while sampling apparatus in stationary source | |
CN209264505U (en) | A kind of flue gas inspection device | |
CN205353115U (en) | System of testing speed based on signal amplification circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191231 Termination date: 20200720 |