CN107290013B - Flow output circuit of dual-channel ultrasonic flowmeter - Google Patents

Flow output circuit of dual-channel ultrasonic flowmeter Download PDF

Info

Publication number
CN107290013B
CN107290013B CN201710665051.XA CN201710665051A CN107290013B CN 107290013 B CN107290013 B CN 107290013B CN 201710665051 A CN201710665051 A CN 201710665051A CN 107290013 B CN107290013 B CN 107290013B
Authority
CN
China
Prior art keywords
timer
output
circuit
channel
controller
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.)
Active
Application number
CN201710665051.XA
Other languages
Chinese (zh)
Other versions
CN107290013A (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.)
WEIFANG AOBO INSTRUMENTATION TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
WEIFANG AOBO INSTRUMENTATION TECHNOLOGY DEVELOPMENT Co Ltd
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 WEIFANG AOBO INSTRUMENTATION TECHNOLOGY DEVELOPMENT Co Ltd filed Critical WEIFANG AOBO INSTRUMENTATION TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201710665051.XA priority Critical patent/CN107290013B/en
Publication of CN107290013A publication Critical patent/CN107290013A/en
Application granted granted Critical
Publication of CN107290013B publication Critical patent/CN107290013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/66Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by measuring frequency, phase shift or propagation time of electromagnetic or other waves, e.g. using ultrasonic flowmeters
    • G01F1/667Arrangements of transducers for ultrasonic flowmeters; Circuits for operating ultrasonic flowmeters

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Volume Flow (AREA)

Abstract

The invention provides a flow output circuit of a dual-channel ultrasonic flowmeter, which comprises a controller and is characterized in that one end of the controller is connected with a driving circuit, the other end of the driving circuit is connected with an isolating circuit, the driving circuit and the isolating circuit are respectively connected with power supply voltage, the driving circuit and the isolating circuit are respectively connected with a ground end, the other end of the isolating circuit is used as a pulse output end, and a CC0 output channel of a timer 1 of the controller is connected with a CC1 channel of a timer 0 of the controller.

Description

Flow output circuit of dual-channel ultrasonic flowmeter
Technical Field
The invention belongs to the technical field of instrument circuits, and particularly relates to a flow output circuit of a dual-channel ultrasonic flowmeter.
Background
At present, the dual-channel ultrasonic flow meters on the market are various in types and are produced by a plurality of manufacturers, but the dual-channel ultrasonic flow meters do not really meet the requirements on high-precision flow output circuits of the flow meters, some accumulated flow calibration is carried out, and the loss of mantissas is very serious. Some mantissas are missing very little and the accumulation is not very accurate. These problems are caused by the limitation of the measurement output circuit, and as the market of the two-channel ultrasonic flow meter is continuously developing, it is very important to be able to accurately output the flow signal. There are now essentially two ways to output the flow signal of a flow meter: analog signals and digital pulse signals. Analog signals have strict requirements on the field environment and are basically not adopted, so most of the analog signals are output by using digital pulses as flow signals, and the traditional pulse output cannot achieve a high-precision and high-pulse signal output mode. The flowmeter cannot well wash the output flow of high-precision high pulses, and the fundamental reason is that the pulse output cannot be too high, so that the cumulant output measurement is not accurate, and the mantissa cannot be counted into the cumulant.
Therefore, the invention is invented in view of the defects of the above scheme in actual manufacture and implementation and use, and with the help of professional knowledge and experience, and after many kinds of ingenuity and experiments, the invention provides a flow output circuit of a dual-channel ultrasonic flowmeter, which solves the problems of limitation of the flow output circuit of the current dual-channel ultrasonic flowmeter, incapability of setting small pulse equivalent and insufficient anti-interference capability.
Disclosure of Invention
The invention provides a flow output circuit of a dual-channel ultrasonic flowmeter, which solves the problems that the flow output circuit of the dual-channel ultrasonic flowmeter in the prior art is limited, cannot set small pulse equivalent and is insufficient in anti-interference capability.
The technical scheme of the invention is realized as follows: double track ultrasonic flowmeter flow output circuit, including the controller, controller one end is connected with drive circuit, the drive circuit other end is connected with isolating circuit, drive circuit and isolating circuit are connected with mains voltage respectively, ground end is connected respectively to drive circuit and isolating circuit, isolating circuit's the other end is as pulse output end, the CC1 passageway of the CC0 output channel connection director's of the timer 1 of controller 0.
As a preferred embodiment, the driving circuit includes a first triode, a base of the first triode is connected to the ground through a first resistor, the base of the first triode is further connected to the controller through a second resistor, a collector of the first triode is connected to the ground, and an emitter of the first triode is connected to the isolation circuit.
As a preferred embodiment, the isolation circuit includes a photocoupler, a first pin of the photocoupler is connected to an isolation voltage through a third resistor, a second pin of the photocoupler is connected to an emitter of the first triode, a third pin of the photocoupler is connected to a second ground, a fourth pin of the photocoupler is used as a pulse output terminal, a fourth pin of the photocoupler is connected to a second power voltage through a fourth resistor, a first diode is disposed between the second ground and the second power voltage, and an anode of the first diode is connected to the second ground.
As a preferred embodiment, the timer 1 of the controller outputs pulses up to a first frequency.
In a preferred embodiment, the first frequency is equal to or higher than 5000 Hz.
In a preferred embodiment, the comparison channel of the timer 1 is compared with the counter of the timer 0, and the timer clock source and the TOP value of the timer 0 are adjusted in real time according to the comparison result, and the period of the output pulse frequency of the timer 1 is adjusted.
In a preferred embodiment, the period of the output pulse frequency of the timer 1 is counted by a counter of the timer 0, and when the preset pulse count is reached, the pulse frequency output is turned off.
In a preferred embodiment, the output pulse frequency is counted by the counter through the CC1 channel of the timer 0.
In a preferred embodiment, the duty ratio of the high level of the output pulse is adjusted by adjusting the register value of the controller.
After the technical scheme is adopted, the invention has the beneficial effects that: through the research on the metering mode, the invention provides the high-precision flow output circuit of the dual-channel ultrasonic flowmeter, and the flow signal can be output with high precision and high frequency. The comparison channel of the timer 0 of the controller can be compared with the counter of the timer 0, the clock source and the TOP value of the counter can be adjusted in real time, and the period of the frequency, namely the frequency of the PWM can be adjusted. The output PWM (PB1) is counted by a counter of a timer 0 of a CC1(PC0) channel entering controller, when the required number of pulses is reached, the PWM output is closed, the output of the pulses is stopped, and the PWM pulse output circuit with one frequency capable of outputting one number of pulses in one second can be output.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of the circuit of the present invention;
fig. 2 is a circuit diagram of the driving circuit and the isolation circuit of the present invention.
In the figure, R1 — first resistance; r2 — second resistance; r3 — third resistance; r4 fourth resistance-; q1-first triode; d1 — first diode; 1-a first leg; 2-a second leg; 3-third leg; 4-fourth leg; MCU-controller.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-2, the flow output circuit of the dual-channel ultrasonic flowmeter comprises a controller MCU, one end of the controller MCU is connected with a driving circuit, the other end of the driving circuit is connected with an isolation circuit, the driving circuit and the isolation circuit are respectively connected with a power voltage, the driving circuit and the isolation circuit are respectively connected with a ground end, the other end of the isolation circuit is used as a pulse output end, and a CC0 output channel of a timer 1 of the controller MCU is connected with a CC1 channel of a timer 0 of the controller MCU. The drive circuit includes first triode Q1, the ground is connected through first resistance R1 to the base of first triode Q1, the base of first triode Q1 still passes through second resistance R2 and connects controller MCU, the ground is connected to the collecting electrode of first triode Q1, isolating circuit is connected to the projecting pole of first triode Q1.
The isolation circuit comprises a photoelectric coupler, a first pin 1 of the photoelectric coupler is connected with isolation voltage through a third resistor R3, a second pin 2 of the photoelectric coupler is connected with an emitter of a first triode Q1, a third pin 3 of the photoelectric coupler is connected with a second ground end, a fourth pin 4 of the photoelectric coupler is used as a pulse output end, a fourth pin 4 of the photoelectric coupler is connected with a second power voltage through a fourth resistor R4, a first diode D1 is arranged between the second ground end and the second power voltage, and the positive electrode of the first diode D1 is connected with the second ground end.
The timer 1 of the controller MCU outputs pulses up to a first frequency. The first frequency is greater than or equal to 5000 Hz. And the comparison channel of the timer 1 is compared with the counter of the timer 0, the timer clock source and the TOP value of the timer 0 are adjusted in real time according to the comparison result, and the period of the output pulse frequency of the timer 1 is adjusted. And the period of the output pulse frequency of the timer 1 is counted by a counter of the timer 0, and the pulse frequency output is closed when the preset pulse count is reached. The output pulse frequency is counted by the CC1 channel of the timer 0 and the counter. And adjusting the duty ratio of the high level of the output pulse by adjusting the register value of the controller MCU.
The working principle is as follows: through the research on the metering mode, the invention provides the high-precision flow output circuit of the dual-channel ultrasonic flowmeter, and the flow signal can be output with high precision and high frequency. The comparison channel of the timer 0 of the controller MCU can be compared with the counter of the timer 0, the clock source and the TOP value of the counter can be adjusted in real time, and the period of the frequency, namely the PWM frequency, can be adjusted. The numerical value of a register of the controller MCU can be adjusted, the duty ratio of high level can be adjusted (the use of special equipment is convenient to require), the output PWM (PB1) is counted by a counter of a timer 0 of the CC1(PC0) channel entering the controller MCU, when the required number of pulses is reached, the PWM output is closed, the output of the pulses is stopped, and the PWM pulse output circuit with one frequency capable of outputting one number in one second can be output.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A flow output circuit of a dual-channel ultrasonic flowmeter comprises a controller and is characterized in that one end of the controller is connected with a driving circuit, the other end of the driving circuit is connected with an isolation circuit, the driving circuit and the isolation circuit are respectively connected with power supply voltage, the driving circuit and the isolation circuit are respectively connected with a ground end, the other end of the isolation circuit is used as a pulse output end, a CC0 output channel of a timer 1 of the controller is connected with a CC1 channel of a timer 0 of the controller, a CC0 output channel of the timer 1 is a comparison channel of the timer 1, and a CC1 channel of the timer 0 is a counter of the timer 0;
the comparison channel of the timer 1 is compared with the counter of the timer 0, the timer clock source and the TOP value of the timer 0 are adjusted in real time according to the comparison result, and the period of the output pulse frequency of the timer 1 is adjusted;
counting the period of the output pulse frequency of the timer 1 through a counter of the timer 0, and closing the pulse frequency output when the preset pulse count is reached;
the frequency of the output pulse is counted by a CC1 channel of a timer 0 and a counter;
and adjusting the duty ratio of the high level of the output pulse by adjusting the register value of the controller.
2. The flow output circuit of the ultrasonic flow meter with two sound channels as claimed in claim 1, wherein the driving circuit comprises a first triode, the base of the first triode is connected to ground through a first resistor, the base of the first triode is further connected to the controller through a second resistor, the collector of the first triode is connected to ground, and the emitter of the first triode is connected to the isolation circuit.
3. The flow output circuit of a binaural ultrasonic flow meter according to claim 2, wherein the isolation circuit comprises a photo coupler, a first pin of the photo coupler is connected to an isolation voltage through a third resistor, a second pin of the photo coupler is connected to an emitter of the first triode, a third pin of the photo coupler is connected to a second ground, a fourth pin of the photo coupler is used as a pulse output terminal, the fourth pin of the photo coupler is connected to a second power voltage through a fourth resistor, a first diode is disposed between the second ground and the second power voltage, and an anode of the first diode is connected to the second ground.
4. A binaural ultrasonic flow meter flow output circuit according to claim 3, wherein the timer 1 of the controller outputs pulses up to the first frequency.
5. The binaural ultrasonic flow meter flow output circuit of claim 4, wherein the first frequency is equal to or greater than 5000 Hz.
CN201710665051.XA 2017-08-07 2017-08-07 Flow output circuit of dual-channel ultrasonic flowmeter Active CN107290013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710665051.XA CN107290013B (en) 2017-08-07 2017-08-07 Flow output circuit of dual-channel ultrasonic flowmeter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710665051.XA CN107290013B (en) 2017-08-07 2017-08-07 Flow output circuit of dual-channel ultrasonic flowmeter

Publications (2)

Publication Number Publication Date
CN107290013A CN107290013A (en) 2017-10-24
CN107290013B true CN107290013B (en) 2020-03-24

Family

ID=60104796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710665051.XA Active CN107290013B (en) 2017-08-07 2017-08-07 Flow output circuit of dual-channel ultrasonic flowmeter

Country Status (1)

Country Link
CN (1) CN107290013B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110542460B (en) * 2019-09-03 2021-07-27 西安安森智能仪器股份有限公司 Multi-channel ultrasonic flowmeter transducer driving circuit and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2273409Y (en) * 1996-07-18 1998-01-28 陕西省环境保护公司 Automatic-monitoring instrument for sewage discharge
CN101644776A (en) * 2009-07-07 2010-02-10 宁波大学 Method for obtaining circuit delay time in ultrasonic measuring device
CN203911877U (en) * 2014-05-12 2014-10-29 上海一诺仪表有限公司 Signal automatic gain circuit of multichannel gas ultrasonic flowmeter
CN104634424A (en) * 2015-03-04 2015-05-20 姜跃炜 Method of detecting state of ultrasonic flowmeter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2273409Y (en) * 1996-07-18 1998-01-28 陕西省环境保护公司 Automatic-monitoring instrument for sewage discharge
CN101644776A (en) * 2009-07-07 2010-02-10 宁波大学 Method for obtaining circuit delay time in ultrasonic measuring device
CN203911877U (en) * 2014-05-12 2014-10-29 上海一诺仪表有限公司 Signal automatic gain circuit of multichannel gas ultrasonic flowmeter
CN104634424A (en) * 2015-03-04 2015-05-20 姜跃炜 Method of detecting state of ultrasonic flowmeter

Also Published As

Publication number Publication date
CN107290013A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN104062507B (en) A kind of accumulator internal resistance measuring instrument
CN104655919A (en) Single-magnetic-core quasi digital type direct current high-current sensor
CN107290013B (en) Flow output circuit of dual-channel ultrasonic flowmeter
CN104330640A (en) Large scale and high accuracy RLC (radio link control) measurement device and method
CN203785781U (en) Handheld noise measuring device
CN103135650A (en) Current/frequency conversion circuit linearity and symmetry digital compensation method
CN104316950A (en) Method and device for low-power radiation dose rate detection and wide-range scaling graduation
CN104034956B (en) Positive/negative voltage measuring circuit
CN101865951A (en) Anti-interference frequency measuring method
CN104459338A (en) Capacitor capacitance value measuring device and measuring method
CN203929885U (en) Based on FPGA etc. precision frequency testing system
CN110346731B (en) Battery current detection circuit for communication
CN203825087U (en) Frequency display apparatus
CN204072062U (en) A kind of temperature sensing device and armarium
CN205449233U (en) Turbine flowmeter calibration power supply automatic identification circuit
CN203798884U (en) Novel voltage divider
CN207780155U (en) A kind of portable CT polarity testers based on pulse circuit
CN110212892A (en) A kind of high-precision electric energy meter variable thresholding integral differential pulse generation method
CN206353180U (en) Phase difference accurate measuring systems based on frequency dividing mode
CN201242568Y (en) Frequency-measurement input circuit for programmable control computer
CN203761365U (en) Power frequency measuring signal conversion circuit
CN205992058U (en) Nuclear medicine detects therapeutic equipment
CN204228825U (en) A kind of RLC measurement mechanism of large scale and high accuracy
CN216904873U (en) Charge balance type voltage-frequency converter
CN116840734B (en) Digital pulse parameter detection system and method

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