CN101476906B - Anti-strong fixed interference digital signal processing system of vortex street flowmeter - Google Patents

Anti-strong fixed interference digital signal processing system of vortex street flowmeter Download PDF

Info

Publication number
CN101476906B
CN101476906B CN2009101161071A CN200910116107A CN101476906B CN 101476906 B CN101476906 B CN 101476906B CN 2009101161071 A CN2009101161071 A CN 2009101161071A CN 200910116107 A CN200910116107 A CN 200910116107A CN 101476906 B CN101476906 B CN 101476906B
Authority
CN
China
Prior art keywords
frequency
signal
vortex
limit
notch filter
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.)
Expired - Fee Related
Application number
CN2009101161071A
Other languages
Chinese (zh)
Other versions
CN101476906A (en
Inventor
徐科军
朱志海
刘三山
姜鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei University of Technology
Original Assignee
Hefei University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN2009101161071A priority Critical patent/CN101476906B/en
Publication of CN101476906A publication Critical patent/CN101476906A/en
Application granted granted Critical
Publication of CN101476906B publication Critical patent/CN101476906B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the field of flow detection and provides an anti-strong fixed interference digital signal processing system of a vortex flowmeter, which comprises a vortex flow sensor, a charge amplifier, a passive low pass filter, a limiting amplifier, an active low pass filter, a voltage follower, a power supply module, a DSP chip, an LCD module, a keyboard module, a communication module, an EEPROM and an active crystal oscillator. The system processes the output signal of the vortex flow sensor by using a method of notch filtering and FFT-based power spectrum analysis and carries out spectral calibration, acceleration algorithm, limiting filtering and average treatment after obtaining the frequency of the vortex signal so as to eliminate the influences of strong fixed interference and obtain the value of the frequency of the vortex signal quickly and accurately.

Description

The anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs
Technical field
The present invention relates to field of flow detection, be a kind of digital signal processing system of vortex street flowmeter, particularly a kind of is the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs that core, power spectrum analysis combine with notch filter with digital signal processor (DSP).
Background technology
Handle the output signal of vortex flow sensors based on the power spectrum analysis method of FFT, can from the sensor output signal that contains noise, extract flux of vortex street information effectively, compare with the method for amplification, filtering, shaping and the counting of routine, can expanded range than and guarantee the in-site measurement precision.Decide the vortex signal frequency because this method is the principle according to the energy maximum, think promptly that in sensor output signal the pairing frequency of spectrum energy maximum is the frequency of flux of vortex street.As seen, adopting the prerequisite of this method is the energy that the energy of vortex flowmeter signals is greater than noise.In the ordinary course of things, the energy of most of random noise all is the energy less than vortex signal.But some scene exists some strong jammings, and its energy is often greater than the vortex signal energy.According to the field experiment interpretation of result, from Analysis of Pipe Vibrations having the greatest impact to vortex shedding flow meter.When flow hour, the energy of pipe vibration is often greater than the energy of vortex signal, and vibration frequency is in the frequency range of vortex signal.If still judge, will cause very big measuring error according to the principle of energy maximum.Consider after field apparatus and piping erection well, frequency this actual conditions that just have been fixed up of vibration, patent of the present invention proposes following scheme and solves this problem: the signal that (1) gathers vortex street sensor carries out spectrum analysis, according to vortex flowmeter signals be broadband signal and fixedly vibration signal be the characteristics of narrow band signal, and field apparatus has a related parameter, rotating speed of motor etc. is for example determined the fixedly interfering frequency of pipeline; (2), design notch filter, to fall into fixedly undesired signal according to fixing interfering frequency.Usually use notch filter different with us, here She Ji notch filter not some or several want the frequency component of trap to be restricted to zero, but be restricted to by amplitude.If amplitude limitation that will trap frequency because this frequency within the frequency range of flow signal, just may be removed flow signal, also just can't reflect the size of flow to zero.By amplitude is the parameter that digital vortex shedding flowmeter is provided with, when the output voltage of charge amplifier and voltage amplifier ends amplitude less than this, with regard to thinking that the output of sensor is undesired signal, just with its amputation.
Summary of the invention
The problem to be solved in the present invention is: present digital vortex shedding flowmeter all is based on maximum this principle of vortex signal energy and removes to handle the vortex street sensor signal, when there is the strong jamming of some fixed frequencies in measure field, its energy is greater than the energy of vortex flowmeter signals, if go to determine flow signal by the principle of energy maximum, will produce wrong result.
The technical solution adopted in the present invention is: the vortex street sensor output signal is carried out notch filter, fixing interference frequency component is fallen into the amplitude of ending of instrument setting.This is under the normal condition by amplitude, the pairing signal amplitude of flow measurement weight range lower limit.Then, carry out spectrum analysis again, promptly adopt power spectrumanalysis to go out signal spectrum based on FFT, determine the frequency of vortex signal then by the position of seeking the peak power spectrum, again the vortex signal frequency is carried out aftertreatment, comprise frequency spectrum correction, acceleration, limit filtration and average treatment, with frequency values accurately apace.Just can calculate flow according to frequency and instrument coefficient.
Concrete technical solution is as follows:
System of the present invention is by vortex street sensor, charge amplifier, passive low ventilating filter, limiting amplifier, active low-pass filter, voltage follower, power module, dsp chip, LCD module, Keysheet module, communication module, EEPROM, active crystal oscillator;
From the faint charge signal of vortex street sensor output, at first change it into voltage signal through charge amplifier; Because signal amplitude is less, and contains many noises, passes through one-level low-pass filter circuit and one-level amplitude limiting amplifier circuit again; For fear of signal is saturated circuit, signal frequency are calculated and impacted, adopt amplitude limiting amplifier circuit; Signal after the amplification passes through low-pass filter again, the high frequency interference in the filtered signal, and by voltage follower (impact damper) output, ADC sampling and conversion by DSP carries become digital quantity; The method that DSP adopts power spectrumanalysis and the notch filter based on FFT to combine is handled the signal that the ADC sample conversion is come; When signal quality is relatively good, be that interfering energy is smaller, when numerical value is no more than signal amplitude, do not need to use notch filter, employing goes out signal spectrum based on the FFT power spectrumanalysis, determines the vortex signal frequency by seeking the peak power spectral position, again the vortex signal frequency is carried out aftertreatment, comprise frequency spectrum correction, accelerating algorithm, limit filtration and average treatment, obtain vortex signal frequency accurately fast; When there is more intense fixing interference in the scene, open notch filter, the limit interferences noise makes it be no more than vortex flowmeter signals, carries out aforesaid spectrum analysis and aftertreatment again, obtains the vortex signal frequency; The vortex signal frequency is delivered to LCD show, and deliver to outside MCU (single-chip microcomputer) by communication module and handle.
The digital processing method that adopts notch filter to combine with spectrum analysis, at first the vortex street sensor output signal is carried out notch filter, the strong jamming noise of fixed frequency is fallen into the amplitude of ending of instrument setting, adopt the frequency spectrum that goes out signal based on the power spectrumanalysis of FFT again, then, determine the frequency of vortex flowmeter signals by the position of seeking the peak power spectrum.
The trap width and the ρ of the notch filter of design 2Between the pass be ρ 2=a+bw+cw 2, wherein, w is the trap width, a=1.0001568, b=-3.1566654, c=-15.010120; Trap depth is d = 1 - ρ 1 1 - ρ 2 ; The width and the degree of depth according to trap just can be determined ρ 1And ρ 2, ρ 1And ρ 2Be the parameter in the notch filter transport function, relevant with the width and the degree of depth of notch filter.
Adopt the fft algorithm of decimation in frequency base 2, in DSP, adopt the assembly language programming, adopt fixed-point arithmetic to realize this algorithm; In order to analyze the frequency spectrum of small magnitude signal exactly, before being FFT, data are carried out convergent-divergent, promptly when data are too big, data are dwindled; And when data too hour, data are amplified.
In order to accelerate response speed, the vortex signal frequency values is placed among the Q1 of round-robin queue of 50 length, be provided with a threshold value fre_limit; When the frequency values that newly enters Q1 on same direction continuous 4 then averaging process restarts when surpassing fre_limit, past data does not participate on average.
Adopt the method for limit filtration that the vortex signal frequency is handled, promptly the frequency that enters Q1 is carried out limit filtration
f in = f c , | f c - f p | ≤ | fre _ limit | f p + | fre _ limit | , f c - f p ≥ | fre _ limit | f p - | fre _ limit | , f p - f c ≥ | fre _ limit | 0 , f c ≤ 0
In the formula, f InBe filtered frequency values, f cBe current frequency, f pIt is the frequency of exporting in the past.
Adopted the two-stage average treatment, promptly except the Q1 of round-robin queue, opened up the Q2 of round-robin queue of 50 length again, the result who is obtained by power spectrumanalysis puts into Q1 earlier, the frequency data of Q1 the inside are carried out foregoing processing after, average again; Average result is put into Q2, Q2 is gone minimum and maximum value after, carry out running mean again, obtain final vortex signal frequency.
Digital signal processor adopts the DSPIC33FJ256MC710 type dsp chip of MICROCHIP company; The external capacity of dsp chip is 4KB memory chip EEPROM, to preserve instrument parameter, flow information; Dsp chip the 51st is connected with communication module with 52 pin, communication module and outside MCU communication; DSP the 63rd pin is connected with the active crystal oscillator U11 of high precision.
Advantage of the present invention is: the method that (1) adopts notch filter to combine with power spectrum has solved the influence of strong jamming noise to vortex flowmeter signals effectively; (2) propose accelerating algorithm, accelerated the response speed of instrument; (3) by limit filtration and two-stage average treatment, reduced the fluctuation of measurement result.
Description of drawings
Fig. 1 is the general structure block diagram of system hardware of the present invention.
Fig. 2 is a system of the present invention main algorithm process flow diagram.
Fig. 3 is the circuit theory diagrams of charge amplifier in the system of the present invention.
Fig. 4 is the bias voltage circuit schematic diagram.
Fig. 5 is the circuit theory diagrams of passive low ventilating filter and limiting amplifier in the system of the present invention.
Fig. 6 is the circuit theory diagrams of active low-pass filter and voltage follower in the system of the present invention.
Fig. 7 is the circuit theory diagrams of dsp chip in the system of the present invention.
Fig. 8 is the circuit theory diagrams that 24V transforms to 3.3V in the system of the present invention.
Fig. 9 be in the system of the present invention 3.3V to the circuit theory diagrams of 3V.
Figure 10 is the circuit theory diagrams of EEPROM module in the system of the present invention.
Figure 11 is the circuit theory diagrams of communication module in the system of the present invention.
Figure 12 is the schematic diagram of keyboard circuit in the system of the present invention.
Figure 13 is the circuit theory diagrams of liquid crystal interface in the system of the present invention.
Figure 14 is the circuit theory diagrams of active crystal oscillator in the system of the present invention, system's operate as normal display circuit.
The notch filter amplitude versus frequency characte of Figure 15 ρ=0.99 o'clock.
The notch filter amplitude versus frequency characte of Figure 16 ρ=0.9 o'clock.
Figure 17 ρ 1=0.998, ρ 2=0.99 o'clock notch filter amplitude versus frequency characte.
Figure 18 ρ 1=0.98, ρ 2=0.9 o'clock notch filter amplitude versus frequency characte.
Figure 19 ρ 1=0.99, ρ 2=0.998 o'clock notch filter amplitude versus frequency characte.
Figure 20 ρ 1=0.9, ρ 2=0.98 o'clock notch filter amplitude versus frequency characte.
Figure 21 ρ 1=0.994, ρ 2Trap depth under=0.99 o'clock different trap frequency.
Figure 22 ρ 1=0.998, ρ 2Trap depth under=0.99 o'clock different trap frequency.
Figure 23 trap width and ρ 2Between relation curve.
Figure 24 50Hz and 55Hz superposed signal.
The amplitude spectrum of Figure 25 50Hz and 55Hz superposed signal.
Signal waveform behind Figure 26 trap.
The frequency spectrum of signal behind Figure 27 trap.
Figure 28 frequency computation part result's fluctuation situation.
Figure 29 frequency jitter situation after treatment.
Figure 30 aftertreatment process flow diagram.
Figure 31 whole software structure block diagram.
Figure 32 watchdog routine process flow diagram.
Embodiment
The present invention is further illustrated below in conjunction with accompanying drawing.
The general structure block diagram of system hardware of the present invention as shown in Figure 1.System of the present invention is by vortex street sensor, charge amplifier, passive low ventilating filter, limiting amplifier, active low-pass filter, voltage follower, power module, dsp chip, LCD module, Keysheet module, communication module, EEPROM, active crystal oscillator.
The course of work of system of the present invention is: from the faint charge signal of vortex street sensor output, at first change it into voltage signal through charge amplifier.Because signal amplitude is less, and contains many noises, so, one-level low-pass filter circuit and one-level amplitude limiting amplifier circuit passed through again.For fear of signal is saturated circuit, signal frequency are calculated and impacted, adopted amplitude limiting amplifier circuit here.Signal after the amplification passes through low-pass filter again, the high frequency interference in the filtered signal, and by voltage follower (impact damper) output, ADC sampling and conversion by DSP carries become digital quantity.The method that DSP adopts FFT power spectrumanalysis and notch filter to combine is handled the signal that the ADC sample conversion is come.When signal quality was relatively good, promptly interfering energy was smaller, when numerical value is no more than signal amplitude, did not need to use notch filter.Employing goes out signal spectrum based on the power spectrumanalysis of FFT, determine the vortex signal frequency by seeking the peak power spectral position then, again the vortex signal frequency is carried out aftertreatment, comprise frequency spectrum correction, accelerating algorithm, limit filtration and average treatment, to obtain vortex signal frequency more accurately fast.When there is more intense fixing interference in the scene, open notch filter, the limit interferences noise, make it be no more than vortex flowmeter signals, thereby do not influence measurement result, carry out aforesaid spectrum analysis and aftertreatment again,, obtain vortex signal frequency more accurately fast to eliminate the strong fixed influence of disturbing.The vortex signal frequency is delivered to LCD show, and deliver to outside MCU (single-chip microcomputer) by communication module and handle.The signal processing algorithm flow process as shown in Figure 2.
As shown in Figure 3, vortex street sensor, be of the charge amplifier amplification of the charge signal of piezoelectric sensor output via amplifier U2A, capacitor C 1, C2, C4, C5, C6, C7, resistance R 1, R2, R3, composition, wherein, C4, C5, C6, C7 are feedback capacities, have determined the enlargement factor of charge amplifier.Bias voltage Vref among Fig. 3 and other figure is provided by biasing circuit shown in Figure 4.Biasing circuit is made up of operational amplifier U2B, resistance R 6, R7 and capacitor C 14, and 1.5V is provided DC voltage.
Pass through capacitance C11 through the signal after amplifying, after removing flip-flop, deliver to the passive low ventilating filter of forming by resistance R 8, R9 and capacitor C 15, enter the limiting amplifier of forming by amplifier U5A, capacitor C 17, resistance R 10, R11, diode D3, D4 again, as shown in Figure 5.Adopting limiting amplifier is the relation that the amplitude of considering the vortex flow sensors output signal becomes with frequency square, and the frequency range broad of vortex signal, so the signal amplitude variation range is very big.And during the flow of same sensor measurement different medium, the difference of signal amplitude is also very big.In order to guarantee that the amplitude of vortex street sensor signal saturated situation can not occur under different frequency and the different medium situation, with the expanded range ratio, and make the voltage magnitude of delivering to Chip Microcomputer A C input end near full scale, guaranteeing enough resolution, so, limiting amplifier adopted.Utilized the fixing characteristics of forward conduction voltage of diode, cost is low, and is simple in structure.
Deliver to low-pass filter and voltage follower through the signal behind the limiting amplifier, as shown in Figure 6.Low-pass filter is made of the multiple feedback-type Butterworth low-pass filter of a second order amplifier U5B, capacitor C 22, C23, resistance R 12, R15, R16, R17.Voltage follower is made up of amplifier U5C.The output signal of voltage follower is delivered to the 33rd pin AN9 of DSP, as shown in Figure 7, and for the laggard line period atlas analysis of ADC sample conversion of DSP.Because the analog signal processing circuit of system adopts the 3V supply voltage, we have adopted the amplifier of rail-to-rail input, output here.
System of the present invention adopts the dsPIC33FJ256MC710DSP chip of MICROCHIP company for handling core, as shown in Figure 7.System uses the FFT computing when signal Processing, need jumbo SRAM, but outer extension memory can increase system cost, power consumption, volume greatly, and dsPIC33FJ256MC710 has the SRAM of 30KB.
DsPIC33FJ256MC710 is the high-end product in the Microship 16 bit DSP series, and it has the procedure stores capacity of 256KB and the RAM capacity of 30KB.It seamlessly integrates the computing power of digital signal processor (Digital Signal Processor is abbreviated as DSP) and the control characteristic of single-chip microcomputer (MCU).This integrated function is very desirable for the application that needs high speed, double counting and control.In addition, peripheral hardware in it the is integrated very abundant sheet mainly contains 10/12 ADC, direct memory access (DMA) (DMA), port PO RTA~port PO RTG and the Electric Machine Control PWM module of house dog, 9 16 bit timing devices (can be paired into 4 32 bit timing devices), input capture module, output comparison module, SPI serial ports, I2C bus, UART module, enhancement mode CAN module, QEI module, 32 tunnel input channels.Though dsPIC33FJ256MC710 does not have integrated liquid crystal driver module,, add a slice liquid crystal driver module, can accomplish convenient control and low-power consumption equally.
The dsPIC33FJ256MC710DSP chip provides the function of management power consumption, and this function is to realize by the clock source of CPU management and peripheral hardware selectively.The dsPIC33FJ256MC710 control device is with following four kinds of management by methods power consumptions: 1. clock frequency; 2. based on the park mode and the idle pulley that instruct; 3. the pattern of dozing off of software control; 4. carry out peripheral hardware control selectively with software.Use by certain or multiple power managed pattern can drop to the power consumption of system minimum.
In order to satisfy the requirement of the explosion-proof and static immunity experiment of vortex shedding flow meter, we have selected high-level efficiency, isolated form DC/DC module, and have designed peripheral holding circuit, filtering circuit, as shown in Figure 8.Owing to used the DC/DC of isolated form, we can with the simulation of system connect watchcase, provide system best shielding.The 3.3V voltage of DC/DC output through after the filtering as the power supply of numerical portion; Contain big ripple among the DC/DC output 3.3V, through becoming the power supply of 3V by LDO after the LC filtering as the simulation part, simulation ground and digitally between connect by magnetic bead, as shown in Figure 9.
Figure 10 shows that the EEPROM module.In order to preserve instrument parameter, flow information, it is the EEPROM of 4Kb that system has extended out a slice capacity.It has programmable WatchDog Timer, low-voltage measuring ability, and has the characteristics of low power consumption.100,000 times erasable number of times has guaranteed its reliability service.
Figure 11 shows that communication module.Utilize UART (51 pin of DSP and 52 pin) interface and the outside MCU of DSP to carry out communication, obtain the instrument parameter information or export corresponding flow information.Added the one-level light-coupled isolation between DSP and the outside MCU, data had been carried out the one-level shaping pulse again before entering optocoupler, guaranteed reliability of data transmission and security.
The man-machine interface circuit of system of the present invention is made up of keyboard circuit and LCD display circuit, as Figure 12 and shown in Figure 13.Keyboard circuit adopts simple nonencoded keyboard design, has arranged quadruple linkage altogether: set, be shifted, increase progressively and confirm, as shown in figure 12.Key assignments is by the universaling I/O port timing scan of DSP.A corresponding mouthful line is a high level when key is pressed.The LCD circuit of system of the present invention as shown in figure 13.Select the LCD of customization for use, be exclusively used in instrument such as flow, temperature, pressure, adopted the display packing of segmentation, be convenient to programming Control, power consumption is low.
Figure 14 shows that system active crystal oscillator, operate as normal display circuit.Because software algorithm to the time base accuracy requirement higher, high-precision active crystal oscillator U11 has selected in system, C37 is a power supply coupling capacitor, and the clock of time, temperature long-term stability can be provided, and guarantees the reliability service of system.After system's operate as normal, 64 pin of dsp chip, as shown in Figure 7, with the signal of output system clock, by resistance R 23 driven for emitting lights diode DS1, display system operate as normal.
The algorithm that system of the present invention adopts FFT power spectrumanalysis and notch filter to combine.When the signal quality of vortex flow sensors output was relatively good, promptly the energy of undesired signal did not need to use trapper than vortex flowmeter signals energy hour.At this moment, at first adopt the FFT power spectrumanalysis to go out signal spectrum, determine the frequency of vortex signal then by the position of seeking the peak power spectrum, the vortex street frequency is proofreaied and correct obtain accurate frequency again, the frequency after proofreading and correct is averaged obtain final frequency measurement again.Just can calculate flow according to frequency and instrument coefficient.Often there is more intense fixedly interference in some industry spot, for example, the pipeline that vortex shedding flow meter is housed links to each other with the stand that motor is installed, in this case, if flow hour, disturbing the signal that is produced just to be far longer than vortex flowmeter signals, show from instrument, is exactly a changeless frequency; If flow is not very little, undesired signal also often greater than vortex flowmeter signals, shows from instrument, be exactly frequency in saltus step, be the frequency of flux of vortex street for a moment, be the frequency of interference noise for a moment.For this reason, the vortex street sensor output signal is carried out spectrum analysis, and in conjunction with the related parameter that has of field apparatus, for example, the frequency of rotating speed of motor or valve opening/close etc. are judged the frequency that fixed in place is disturbed.With this frequency (may be one, also may be a plurality of),, enter system of the present invention by the panel setting as the trap frequency of notch filter.System of the present invention at first carries out notch filter to the vortex street sensor output signal, the interference components of fixed frequency is fallen into the amplitude of ending of instrument setting.This is under the normal condition by amplitude, the pairing signal amplitude of flow measurement weight range lower limit.It is to be noted, we do not fall into the amplitude of this interference frequency component in zero, may within the frequency range of flux of vortex street,, just can't reflect the pairing flow size of this frequency because consider this interfering frequency if this frequency component is fallen into zero.Then, carry out spectrum analysis again, promptly adopt power spectrumanalysis to go out signal spectrum based on FFT, determine the frequency of vortex signal then by the position of seeking the peak power spectrum, again the vortex street frequency is proofreaied and correct and obtain accurate frequency, again to the frequency after proofreading and correct quicken, limit filtration and average treatment, obtain final frequency measurement.Just can calculate flow according to frequency and instrument coefficient.The signal processing algorithm flow process as shown in Figure 2.
Compare with rejection filter, the benefit of trapper is that its bandwidth can be done very narrowly, simultaneously, can realize the quick decay of stopband with lower exponent number, can to two very close to signal carry out trap.Have the constraint of zero limit notch filter (zero point on unit circle, limit in unit circle, and have inphase angle mutually with limit zero point) transport function be
H ( z - 1 ) = 1 + α z - 1 + z - 2 1 + ρα z - 1 + ρ 2 z - 2 - - - ( 1 )
In the formula, α=-2cos ω 0, ω 0Be the trap frequency, ρ (ρ<1) is the parameter in the notch filter transport function, decision trap width.Amplitude-frequency response when Figure 15 is respectively different ρ with Figure 16, the horizontal ordinate among the figure is a normalized frequency, i.e. ω/ω s, ω sIt is the sampling angular frequency.
As seen, the width of ρ decision trap, it is just narrow more that ρ approaches 1 trap more.At its amplitude attenuation to 0 of trap frequency place, this is because at trap frequency place, and molecule is zero, and denominator is non-vanishing.Be the zero point of obtaining notch filter again
z - 1 = - α ± 4 - α 2 i 2
Limit is
p - 1 = - α ± 4 - α 2 i 2 ρ
As seen, | z|=1, | p|<1, promptly zero point, limit was in unit circle on unit circle.
If the signal of interference frequency component carries out trap to containing fixedly with such notch filter, can be with the undesired signal vanishing.But if this frequency within the scope of flow frequency, just might also be removed flow information when eliminating interference, this is that we are undesirable.Non-vanishing for the amplitude versus frequency characte that makes notch filter at the trap frequency place, must make the molecule of formula (1) non-vanishing.In order to make molecule non-vanishing, simultaneously, make molecule and denominator unequal again, formula (1) is rewritten as
H ( z - 1 ) = 1 + ρ 1 α z - 1 + ρ 1 2 z - 2 1 + ρ 2 α z - 1 + ρ 2 2 z - 2 - - - ( 2 )
In the formula, α=-2cos ω 0, ρ 11<1), ρ 22<1), ρ 1And ρ 2Be the parameter in the notch filter transport function, relevant with the width and the degree of depth of notch filter.Figure 17 to Figure 22 is the amplitude-frequency response characteristic curve of formula (2) when getting different parameters.
The zero limit of obtaining formula (2) is
z - 1 = - α ± 4 - α 2 i 2 ρ 1 With p - 1 = - α ± 4 - α 2 i 2 ρ 2
As seen, | z|<1, | p|<1, so zero limit is all in unit circle.Draw thus to draw a conclusion:
(1) when zero point is in unit circle, the gain of the trap place of notch filter no longer is 0;
(2) ρ 1And ρ 2The trap width of value decision notch filter, their value approaches 1 more, the trap width is just narrow more;
(3) work as ρ 1>ρ 2The time, the trap place is decay; Work as ρ 1<ρ 2The time, the trap place is for amplifying.
Because system of the present invention will be notch filter, so, only analyze ρ 1>ρ 2Situation.Simultaneously, in order to obtain trap depth (gain at trap frequency place) and ρ 1And ρ 2Relation, carry out following analysis.
If ω 0Be the trap frequency, will z = e j ω 0 = cos ω 0 + j sin ω 0 And α=-2cos ω 0Substitution formula (2), the gain that can obtain at trap frequency place is
| H ( z - 1 ) | = | 1 + ρ 1 α z - 1 + ρ 1 2 z - 2 1 + ρ 2 α z - 1 + ρ 2 2 z - 2 |
= ( 1 - 2 ρ 1 2 + ρ 1 4 ) - 4 ρ 1 ( 1 - 2 ρ 1 + ρ 1 2 ) cos 2 ω 0 ( 1 - 2 ρ 2 2 + ρ 2 4 ) - 4 ρ 2 ( 1 - 2 ρ 2 + ρ 2 2 ) cos 2 ω 0 - - - ( 3 )
= ( 1 - ρ 1 ) 2 [ ( 1 + ρ 1 ) 2 - 4 ρ 1 cos 2 ω 0 ] ( 1 - ρ 2 ) 2 [ ( 1 + ρ 2 ) 2 - 4 ρ 2 co s 2 ω 0 ]
If change the trap frequency, the trap depth curve of notch filter under different trap frequencies that just can draw, extremely shown in Figure 22 as Figure 21.Trap depth is the gain of notch filter at trap frequency place.Notice that the implication of the notch filter amplitude-versus-frequency curve figure on Figure 21 to Figure 22 and Figure 15 to Figure 20 is different.
As seen, if ρ 1And ρ 2Fixing, when trap frequency during not in normalized frequency 0,0.5 and 1, promptly not 0, near fs/2 and the fs time (this point is easy to be met in practice), trap depth is constant basically.Work as ρ 1And ρ 2
Be in close proximity to 1, and ω 0During not 0, near π, 2 π, formula (3) can be reduced to
| H ( z - 1 ) | = ( 1 - ρ 1 ) 2 [ ( 1 + ρ 1 ) 2 - 4 ρ 1 cos 2 ω 0 ] ( 1 - ρ 2 ) 2 [ ( 1 + ρ 2 ) 2 - 4 ρ 2 cos 2 ω 0 ] ≈ 1 - ρ 1 1 - ρ 2 = d - - - ( 4 )
As seen, trap depth d is by ρ 1And ρ 2Decision, and be not subjected to ω 0Influence.
Thus, can design and have the fixedly notch filter of trap depth.The trap width of notch filter is by ρ 1And ρ 2Decision, ρ 1And ρ 2Approach 1 more, trap is narrow more; The degree of depth of trap is determined by the relation of formula (4).
If need to fall into 2 fixing frequencies, only need design a notch filter again, this notch filter and previous notch filter cascade are got final product.The rest may be inferred, can fall into the interference of n fixed frequency.When specifically realizing, computing after the transport function cascade of several notch filters also can be carried out independent computing to a plurality of notch filters with program, which kind of mode no matter, its calculated amount is identical.
The front points out that the ρ in formula (1) denominator is relevant with the trap width.If ρ 1=1, ρ in the denominator in the analysis mode (2) 2Relation with the trap width.The trap width is defined as signal attenuation to the difference between the upper and lower limit frequency at 70.7% place of former amplitude.In order to draw the conclusion that all is suitable for for any sample frequency, at this frequency is carried out normalized, like this trap width has also been carried out normalization.Adopt the Matlab language,,, draw different ρ at different trap frequencies according to formula (2) 2Under amplitude-frequency response, calculate the trap width according to these curves, obtain under different normalization trap frequencies trap width and ρ thus 2Between relation, as shown in table 1.
Table 1 trap width and ρ 2Between relation
Figure G2009101161071D00102
Line direction from table 1 is worked as ρ 2When identical, different trap frequencies, the trap width is substantially the same; From the direction of row, trap width and ρ 2There is certain relation.For this reason, adopt least square fitting, set up out trap width and ρ 2Between relation, as the formula (5).
ρ 2=a+bw+cw 2 (5)
In the formula, w is the trap width, a=1.0001568, and b=-3.1566654, c=-15.010120, shown in Figure 23 is trap width and ρ 2Between relation curve.
So we can be according to trap depth and trap width, through type (5) and formula (4) are determined ρ 1And ρ 2
We test notch filter.Figure 24 and Figure 25 are signal and the frequency spectrum of the signal of two identical amplitudes of 50Hz and 55Hz when being superimposed.Signal and corresponding frequency spectrum such as Figure 26 and shown in Figure 27 after the notch filter that employing is 0.3 at 50Hz place trap depth, width is 10Hz carries out notch filter to this signal.As seen, the signal amplitude of 50Hz and 55Hz is very approaching before the notch filter; Through behind the notch filter, the signal amplitude of 50Hz approximately decays to original about 30%, and the not decay basically of the signal of 55Hz.The good results are evident for notch filter.
Because the fixed-point algorithm accuracy limitations, when notch filter trap frequency at f<0.02f sOr f>0.48f sThe time, the notch filter of realizing with fixed-point algorithm had just lost efficacy, because a number is represented with 16 bits in fixed-point algorithm, adopt 1.15 forms, i.e. 1 bit sign position, 15 decimal places, and the employing floating-point arithmetic, one number represents that with 32 bits wherein mantissa is 23, and precision height, dynamic range are big, so, just do not have this problem.Thereby accelerate computing velocity in order to reduce calculated amount as far as possible, in system of the present invention, when notch filter trap frequency at 0.02fs<f<0.48f sAdopt the assembly language fixed-point algorithm to realize notch filter in the time of in the scope, and when the trap frequency is not in this scope, just adopt C language floating-point arithmetic to realize notch filter.
System of the present invention adopts the signal of handling the process notch filter based on the power spectrum analysis method of FFT.FFT is the fast algorithm of discrete Fourier transformation (DFT).Adopt the fft algorithm of decimation in frequency base 2, in DSP, adopt fixed-point arithmetic to realize this algorithm, the precision height, the time is few.In program, adopt assembly language to realize.In order to analyze the frequency spectrum of small magnitude signal exactly, before being FFT, data are carried out convergent-divergent, promptly when data are too big, data are dwindled; And when data too hour, data are amplified, after handling like this, the computational accuracy of FFT is greatly improved.
System of the present invention determines the frequency of vortex signal by seeking the peak power spectral position after signal is carried out power spectrumanalysis.In order to realize accurate, measurement fast, result of calculation some effective aftertreatments have been carried out to flow.
(1) adopt the center of gravity correction method that FFT power spectrumanalysis result is proofreaied and correct.Updating formula as the formula (6).
k &prime; = k * y ( k ) + ( k + 1 ) * y ( k + 1 ) y ( k ) + y ( k + 1 ) , y ( k - 1 ) < y ( k + 1 ) y ( k ) , y ( k - 1 ) = y ( k + 1 ) k * y ( k ) + ( k - 1 ) * y ( k - 1 ) y ( k ) + y ( k - 1 ) , y ( k - 1 ) > y ( k + 1 ) - - - ( 6 )
In the formula, k ' is the power spectrum position after proofreading and correct, and k is the position of peak power spectrum, and y (k) is the amplitude at peak power spectrum place.After overcorrect, just can calculate the vortex signal frequency, as the formula (7).
f = k &prime; * f s N - - - ( 7 )
In the formula, f sBe sample frequency, N is a sampling number.
(2) accelerate response speed.Owing to will average processing, can cause the delay of flowmeter output to the result.If flow has bigger variation at short notice, this delay will cause bigger error.In order to accelerate response speed, the vortex signal frequency values is placed among the Q1 of round-robin queue of 50 length, be provided with a threshold value fre_limit.When the frequency values that newly enters Q1 on same direction continuous 4 then averaging process restarts when surpassing fre_limit, past data does not participate on average.
(3) limit filtration.Vortex shedding flow meter is weak output signal in low discharge, and signal to noise ratio (S/N ratio) reduces, and signal quality is poor, and the vortex street frequency jitter that spectrum analysis obtains is bigger.Particularly small-bore vortex shedding flow meter, owing to reasons such as sensor installations, this phenomenon is more obvious.Among Figure 28, curve 1 be 15mm bore vortex shedding flow meter near lower frequency limit, the vortex street frequency that each FFT calculates, curve 2 is the 40mm bore vortex street frequency that each FFT obtains after calculating when lower frequency limit is distant.As seen, curve 1 fluctuation is big, and numerical value is about 30Hz.At this moment, even if take average measure, also can't make the output frequency value stabilization.For this reason, system of the present invention adopts the method for limit filtration that the vortex signal frequency is handled, and promptly the frequency that enters Q1 is carried out limit filtration, as the formula (8).
f in = f c , | f c - f p | &le; | fre _ limit | f p + | fre _ limit | , f c - f p &GreaterEqual; | fre _ limit | f p - | fre _ limit | , f p - f c &GreaterEqual; | fre _ limit | 0 , f c &le; 0 - - - ( 8 )
In the formula, f InBe filtered frequency values, f cBe current frequency, f pIt is the frequency of exporting in the past.
(4) average treatment.Because the vortex street sensor output signal is a stationary stochastic process, and the digital signal processed data limited length, must employing on average could reflect the frequency of vortex signal more accurately.For this reason, adopted the two-stage average treatment, promptly except the Q1 of round-robin queue, opened up the Q2 of round-robin queue of 50 length again, the result who is obtained by power spectrumanalysis puts into Q1 earlier, the frequency data of Q1 the inside are carried out foregoing processing after, average again; Average result is put into Q2, Q2 is gone minimum and maximum value after, carry out running mean again, obtain final vortex signal frequency.
Figure 29 is through the above final curve of output in back of handling.Figure 30 is the process flow diagram of above-mentioned aftertreatment.
The whole software structure block diagram of system of the present invention as shown in figure 31.The watchdog routine process flow diagram shown in figure 32.

Claims (5)

1. the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs, comprise vortex street sensor, charge amplifier, passive low ventilating filter, limiting amplifier, active low-pass filter, voltage follower, power module, dsp chip, LCD module, Keysheet module, communication module, EEPROM, active crystal oscillator, it is characterized in that:
From the faint charge signal of vortex street sensor output, at first change it into voltage signal through charge amplifier; Because signal amplitude is less, and contains many noises, passes through one-level low-pass filter circuit and one-level amplitude limiting amplifier circuit again; For fear of signal is saturated circuit, signal frequency are calculated and impacted, adopt amplitude limiting amplifier circuit; Signal after the amplification passes through active low-pass filter again, the high frequency interference in the filtered signal, and by voltage follower output, ADC sampling and conversion by dsp chip carries become digital quantity; The method that dsp chip adopts power spectrumanalysis and the notch filter based on FFT to combine is handled the signal that the ADC sample conversion is come; When signal quality is relatively good, be that interfering energy is smaller, when numerical value is no more than signal amplitude, do not need to use notch filter, employing goes out signal spectrum based on the FFT power spectrumanalysis, determines the vortex signal frequency by seeking the peak power spectral position, again the vortex signal frequency is carried out aftertreatment, comprise frequency spectrum correction, accelerating algorithm, limit filtration and average treatment, obtain vortex signal frequency accurately fast; When there is more intense fixed frequency interference noise in the scene, open notch filter, the limit interferences noise makes it be no more than vortex flowmeter signals, carries out aforesaid power spectrumanalysis and aftertreatment again, obtains the vortex signal frequency; The vortex signal frequency is delivered to the LCD module show, and deliver to outside MCU by communication module and handle;
The digital processing method that adopts notch filter to combine with power spectrumanalysis based on FFT, at first the vortex street sensor output signal is carried out notch filter, the strong jamming noise of fixed frequency is fallen into the amplitude of ending of instrument setting, adopt the frequency spectrum that goes out signal based on the power spectrumanalysis of FFT again, then, determine the frequency of vortex flowmeter signals by the position of seeking the peak power spectrum;
The trap width and the ρ of notch filter 2Between the pass be ρ 2=a+bw+cw 2, wherein, w is the trap width, a=1.0001568, b=-3.1566654, c=-15.010120; Trap depth is
Figure FSB00000055558400011
According to trap
The width and the degree of depth just can be determined ρ 1And ρ 2, ρ 1And ρ 2Be the parameter in the notch filter transport function, relevant with the width and the degree of depth of notch filter.
2. the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs as claimed in claim 1 is characterized in that: adopt the fft algorithm of decimation in frequency base 2, adopt the assembly language programming in dsp chip, adopt fixed-point arithmetic to realize this algorithm; In order to analyze the frequency spectrum of small magnitude signal exactly, before being FFT, data are carried out convergent-divergent, promptly when data are too big, data are dwindled; And when data too hour, data are amplified.
3. the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs as claimed in claim 1, it is characterized in that: in order to accelerate response speed, the vortex signal frequency values is placed among the Q1 of round-robin queue of 50 length, is provided with a threshold value fre_limit; When the frequency values that newly enters the Q1 of round-robin queue on same direction continuous 4 then averaging process restarts when surpassing threshold value fre_limit, past data does not participate on average.
4. the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs as claimed in claim 3 is characterized in that: adopts the method for limit filtration that the vortex signal frequency is handled, promptly the frequency that enters the Q1 of round-robin queue carried out limit filtration,
f in = f c , | f c - f p | &le; | fre _ limit | f p + | fre _ limit | , f c - f p &GreaterEqual; | fre _ limit | f p - | fre _ limit | , f p - f c &GreaterEqual; | fre _ limit | 0 , f c &le; 0
In the formula, fre_limit is a threshold value, f InBe filtered frequency values, f cBe current frequency, f pIt is the frequency of exporting in the past.
5. the anti-strong fixed digital signal processing system of vortex street flowmeter that disturbs as claimed in claim 4, it is characterized in that: adopted the two-stage average treatment, promptly except the Q1 of round-robin queue, open up the Q2 of round-robin queue of 50 length again, the result who is obtained by power spectrumanalysis puts into the Q1 of round-robin queue earlier, the frequency data of the Q1 of round-robin queue the inside are carried out averaging after limit filtration handles again; Average result is put into the Q2 of round-robin queue, the Q2 of round-robin queue is gone minimum and maximum value after, carry out running mean again, obtain final vortex signal frequency.
CN2009101161071A 2009-01-21 2009-01-21 Anti-strong fixed interference digital signal processing system of vortex street flowmeter Expired - Fee Related CN101476906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101161071A CN101476906B (en) 2009-01-21 2009-01-21 Anti-strong fixed interference digital signal processing system of vortex street flowmeter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101161071A CN101476906B (en) 2009-01-21 2009-01-21 Anti-strong fixed interference digital signal processing system of vortex street flowmeter

Publications (2)

Publication Number Publication Date
CN101476906A CN101476906A (en) 2009-07-08
CN101476906B true CN101476906B (en) 2010-08-18

Family

ID=40837651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101161071A Expired - Fee Related CN101476906B (en) 2009-01-21 2009-01-21 Anti-strong fixed interference digital signal processing system of vortex street flowmeter

Country Status (1)

Country Link
CN (1) CN101476906B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101701834B (en) * 2009-11-10 2013-01-23 合肥工业大学 Strong interference resistant digital vortex shedding flowmeter based on double sensors
CN102121836B (en) * 2010-12-22 2012-07-04 天津大学 Anti-periodic vibration vortex street signal processing circuit
CN102135410A (en) * 2011-02-16 2011-07-27 吴志海 Non-contact displacement measuring device as well as sensor and magnetic induction measuring circuit thereof
CN104236635A (en) * 2014-10-17 2014-12-24 成都市宏山科技有限公司 Monitoring system based on three-axis vibration sensor
CN104236636A (en) * 2014-10-17 2014-12-24 成都市宏山科技有限公司 Monitoring system based on impact wave
CN106153126A (en) * 2015-04-23 2016-11-23 深圳万讯自控股份有限公司 A kind of measurement of fluid flow method and effusion meter
CN105181032B (en) * 2015-08-17 2018-07-13 合肥工业大学 The digital two-wire system HART intelligent vortex shedding flowmeters of high temperature resistance
CN105737909B (en) * 2016-02-23 2018-07-13 合肥工业大学 The signal processing method and system of the anti-transient impact interference of vortex-shedding meter based on Kalman filtering
CN106679741B (en) * 2016-12-20 2019-06-04 重庆川仪自动化股份有限公司 Processing method and system based on vortex-shedding meter anti-jamming signal
CN106500779B (en) * 2016-12-27 2023-04-18 中国计量大学 Vortex street signal detection device with feedforward controller and stochastic resonance
CN107942777A (en) * 2017-11-04 2018-04-20 华晨汽车集团控股有限公司 A kind of control method of engine speed indicator stability
CN108490817B (en) * 2017-12-26 2023-12-05 金卡智能集团股份有限公司 Signal sampling processing circuit
CN109974793B (en) * 2019-04-22 2020-08-04 合肥工业大学 Signal processing method for measuring flow of gas-containing conductive liquid by electromagnetic vortex shedding flowmeter
CN113030514A (en) * 2021-01-28 2021-06-25 北京理工大学 MEMS accelerometer capable of inhibiting acoustic wave interference and inhibition method thereof
CN113029258A (en) * 2021-02-05 2021-06-25 辽宁聚焦科技有限公司 Vortex street flow meter digital signal processing system based on vortex street amplitude-frequency characteristic anti-interference

Also Published As

Publication number Publication date
CN101476906A (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN101476906B (en) Anti-strong fixed interference digital signal processing system of vortex street flowmeter
CN106679741B (en) Processing method and system based on vortex-shedding meter anti-jamming signal
Roshko On the development of turbulent wakes from vortex streets
WO2017143649A1 (en) Kalman filter-based vortex flowmeter anti-transient shock interference signal processing method and system
CN101488031B (en) High-precision magnetic bearing axial control method based on interference observer
CN101644590B (en) Anti-strong interference vortex street flowmeter digital signal processing system based on single sensor
CN101701834B (en) Strong interference resistant digital vortex shedding flowmeter based on double sensors
CN107687875B (en) Electromagnetic vortex shedding flowmeter for measuring flow of gas-containing conductive liquid
CN101802314A (en) Differential pressure diagnostic for process fluid pulsations
CN109238379B (en) Method and system for preventing pipeline vibration of vortex shedding flowmeter by combining frequency variance calculation and amplitude calculation
CN203534650U (en) Cloud transmission digital signal processing device with Coriolis mass flow meter
CN106568988B (en) A kind of measuring system of drainage pipeline water body speed
CN103472730A (en) Double-frame control moment gyro high-precision frame rate servo system based on harmonic reducer torsional rigidity hysteresis model
CN104729591A (en) Signal processing method for vortex shedding flowmeter for resisting low-frequency strong transient impact vibration based on data replacement
CN101363746B (en) Fluid vibration type effusion meter self-adapting FFT power spectrum analysis and signal processing method
CN100385207C (en) Low cost intelligent vortex shedding flowmeter signal processing system based on DSP
CN102043091A (en) Digitized high-precision phase detector
CN103528634A (en) Coriolis mass flow meter cloud transmission digital signal processing device and method
CN103018062B (en) Monitoring device and monitoring and judging method for cavitation of venturi fertilizer injector
CN1104628C (en) Digital signal processing system of vortex street flowmeter
CN104977227A (en) Online liquid density meter
Oberleithner On turbulent swirling jets: Vortex breakdown, coherent structures, and their control
Liang et al. Statistical modeling and signal reconstruction processing method of EMF for slurry flow measurement
Peng et al. Hilbert–Huang transform (HHT) based analysis of signal characteristics of vortex flowmeter in oscillatory flow
Xu et al. Power-spectrum-analysis-based signal processing system of vortex flowmeters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100818

Termination date: 20180121

CF01 Termination of patent right due to non-payment of annual fee