CN116858337A - Liquid flow detection method, device, electronic sight glass and storage medium - Google Patents

Liquid flow detection method, device, electronic sight glass and storage medium Download PDF

Info

Publication number
CN116858337A
CN116858337A CN202310655418.5A CN202310655418A CN116858337A CN 116858337 A CN116858337 A CN 116858337A CN 202310655418 A CN202310655418 A CN 202310655418A CN 116858337 A CN116858337 A CN 116858337A
Authority
CN
China
Prior art keywords
light intensity
liquid
sampled
pipeline
sampling
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.)
Pending
Application number
CN202310655418.5A
Other languages
Chinese (zh)
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.)
Hubei Congguang Sensing Technology Co ltd
Original Assignee
Hubei Congguang Sensing Technology 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 Hubei Congguang Sensing Technology Co ltd filed Critical Hubei Congguang Sensing Technology Co ltd
Priority to CN202310655418.5A priority Critical patent/CN116858337A/en
Publication of CN116858337A publication Critical patent/CN116858337A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/28Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring the variations of parameters of electromagnetic or acoustic waves applied directly to the liquid or fluent solid material
    • G01F23/284Electromagnetic waves
    • G01F23/292Light, e.g. infrared or ultraviolet
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Fluid Mechanics (AREA)
  • Health & Medical Sciences (AREA)
  • Thermal Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The application discloses a liquid flow detection method, a liquid flow detection device, an electronic sight glass and a storage medium. The method comprises the steps of obtaining first sampled light intensity and second sampled light intensity, wherein the first sampled light intensity is collected by a first photoelectric sensor, the second sampled light intensity is collected by a second photoelectric sensor, and the first photoelectric sensor is arranged above the second photoelectric sensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively; and determining the flow condition of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the flow condition of the liquid comprises at least one of the existence of bubbles, the rising of the liquid level or the falling of the liquid level. By adopting the method, the accuracy of detecting the liquid flowing condition in the pipeline can be improved.

Description

Liquid flow detection method, device, electronic sight glass and storage medium
Technical Field
The present application relates to the field of sight glass technologies, and in particular, to a method and apparatus for detecting liquid flow, an electronic sight glass, and a storage medium.
Background
Most industrial pipelines today detect the liquid level in the pipeline by means of contact level sensors.
The contact level sensor has the following disadvantages: the accuracy is not high, and the measurement range is small; the reliability is not strong, and the phenomena of faults such as scaling, corrosion and the like often occur, so that the maintenance cost is increased; when a plurality of mutually-insoluble liquids flow through the pipeline, the contact type liquid level sensor can have the problem of indistinguishability; the operation unit is not configured, the detected data can only be transmitted to the upper computer for calculation, the data transmission is delayed, and the data transmission speed is low.
Disclosure of Invention
Aiming at least one defect or improvement requirement of the prior art, the application provides a liquid flow detection method, a device, an electronic sight glass and a storage medium, wherein the liquid flow condition in a pipeline is automatically detected by a photoelectric sensor, and the accuracy of detecting the liquid flow condition in the pipeline is improved.
To achieve the above object, according to a first aspect of the present application, there is provided a liquid flow detection method comprising:
acquiring first sampled light intensity and second sampled light intensity, wherein the first sampled light intensity is acquired by a first photoelectric sensor, the second sampled light intensity is acquired by a second photoelectric sensor, and the first photoelectric sensor is arranged above the second photoelectric sensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively;
and determining the flow condition of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the flow condition of the liquid comprises at least one of the existence of bubbles, the rising of the liquid level or the falling of the liquid level.
Further, determining a flow condition of the liquid in the pipeline according to the first sampled light intensity and the second sampled light intensity, including determining whether bubbles exist in the liquid in the pipeline according to the first sampled light intensity and the second sampled light intensity; and under the condition that no bubble exists in the liquid in the pipeline, determining the liquid level rising or the liquid level falling of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity.
Further, determining whether the liquid in the conduit is in the presence of a bubble based on the first sampled light intensity and the second sampled light intensity includes determining that the liquid in the conduit is in the presence of a bubble if at least one of the first sampled light intensity or the second sampled light intensity is greater than a threshold.
Further, under the condition that the liquid in the pipeline does not have bubbles, determining the rising or falling of the liquid level of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the first sampling light intensity and the second sampling light intensity at the target moment are respectively acquired under the condition that the liquid in the pipeline does not have bubbles, the first sampling light intensity and the second sampling light intensity at the target moment are unequal, and the first moment is the next moment of the target moment; if the first sampling light intensity and the second sampling light intensity at the first moment are both reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampling light intensity and the second sampling light intensity at the first moment are both increased, determining that the liquid level of the liquid in the pipeline is decreased.
Further, under the condition that the liquid in the pipeline does not have bubbles, determining the rising or falling of the liquid level of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the first sampling light intensity and the second sampling light intensity at the target moment are respectively acquired under the condition that the liquid in the pipeline does not have bubbles, the first sampling light intensity and the second sampling light intensity at the target moment are unequal, and the first moment is the next moment of the target moment; if the first sampling light intensity and the second sampling light intensity at the first moment are reduced and the absolute value of the difference value between the first sampling light intensity and the second sampling light intensity is reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampled light intensity and the second sampled light intensity at the first moment are both increased and the absolute value of the difference value between the first sampled light intensity and the second sampled light intensity is reduced, determining that the liquid level of the liquid in the pipeline is reduced.
Further, the method for detecting the liquid flow further comprises the step of collecting a first sampling light intensity and a second sampling light intensity under the condition that the liquid flow direction is set to be from bottom to top and the rising of the liquid level of the liquid in the pipeline is detected; if the first sampling light intensity and the second sampling light intensity at the second moment are detected to be equal, determining that the liquid in the pipeline is in a full state, wherein the second moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
Further, the method for detecting the liquid flow further comprises the step of collecting a first sampling light intensity and a second sampling light intensity under the condition that the liquid flow direction is set to be from top to bottom and the liquid level of the liquid in the pipeline is detected to be reduced; if the first sampling light intensity and the second sampling light intensity at the third moment are detected to be equal, determining that the liquid in the pipeline is in an empty state, wherein the third moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
According to a second aspect of the present application, there is also provided a liquid flow detection device comprising:
an acquisition module configured to acquire a first sampled light intensity acquired by a first photosensor and a second sampled light intensity acquired by a second photosensor, the first photosensor being disposed above the second photosensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively;
a determination module configured to determine a liquid flow condition within the conduit based on the first sampled light intensity and the second sampled light intensity, the liquid flow condition including at least one of a presence of a bubble in the liquid, a rise in the liquid level, or a fall in the liquid level.
According to a third aspect of the present application, there is also provided an electronic view mirror comprising a probe, a background plate and a body, the probe being mounted on the outside of a first mirror glass, the background plate being mounted on the outside of a second mirror glass; the probe comprises a first light source, a second light source, a first photoelectric sensor and a second photoelectric sensor, wherein the first light source and the second light source are used for emitting light to the pipeline, the light emitted by the first light source is respectively reflected by liquid in the pipeline and the background plate to obtain first reflected light, the light emitted by the second light source is respectively reflected by the liquid in the pipeline and the background plate to obtain second reflected light, and the first light source is arranged below the second light source; the body is electrically connected with the probe, and the body comprises a main control chip, wherein the main control chip is used for executing the steps of any one of the methods.
According to a fourth aspect of the present application there is also provided a storage medium storing a computer program for execution by an electronic view mirror, which when run on the electronic view mirror causes the electronic view mirror to perform the steps of any of the methods described above.
In general, in the method for detecting liquid flow provided by the application, a first sampling light intensity and a second sampling light intensity are obtained, wherein the first sampling light intensity is collected by a first photoelectric sensor, and the second sampling light intensity is collected by a second photoelectric sensor arranged below the first photoelectric sensor; and determining the liquid flow condition in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the liquid flow condition comprises whether bubbles exist in the liquid, the liquid level rises or the liquid level falls, so that the liquid flow condition in the pipeline can be detected in a non-contact mode. Compared with a contact type liquid level sensor, the method has higher accuracy in detecting the liquid flow condition in the pipeline, and the purpose of improving the accuracy in detecting the liquid flow condition in the pipeline is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of the internal structure of a probe of an electronic sight glass according to an embodiment of the present application;
FIG. 2 is a schematic view of a light pipe of a probe according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for detecting liquid flow according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an optical path for detecting a liquid flow condition by using an electronic sight glass according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating steps for determining a flow of a liquid in a pipeline according to an embodiment of the present application;
FIG. 6 is a flow chart of a method for detecting liquid flow according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a liquid flow detection device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. In addition, the technical features of the embodiments of the present application described below may be combined with each other as long as they do not collide with each other.
The terms first, second, third and the like in the description and in the claims and in the above drawings, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a liquid flow detection method, which can be executed by an electronic sight glass, a terminal or a server communicating with the terminal through a network. The terminal may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, portable wearable devices, and the like. The server may be a stand-alone server or implemented using a server cluster composed of a plurality of servers.
The electronic sight glass comprises a probe, a background plate and a body, wherein the probe is arranged on the outer side of the first sight glass, and the background plate is arranged on the outer side of the second sight glass. The background plate is made of white materials and can be a round flat plate made of white uniform diffuse reflection materials, and the size of the background plate is not larger than that of the second sight glass.
The sight glass is a traditional pipeline sight glass arranged on a pipeline, and comprises a first sight glass and a second sight glass, wherein the first sight glass and the second sight glass are respectively arranged on two sides of the pipeline perpendicular to the flow direction of liquid, and a inspector can observe the flow condition of the liquid in the pipeline through the first sight glass and the second sight glass on the sight glass by naked eyes.
Fig. 1 is a schematic view of the internal structure of a probe. As shown in fig. 1, the probe comprises a light source 21, a photoelectric sensor 22 and a light pipe 23, a probe circuit board is arranged in the probe, and the light source 21 and the photoelectric sensor 22 are both arranged on the probe circuit board. Wherein, the light source 21 includes a plurality of LED lamp pearls that annular was arranged, can divide into two sets of light sources about: the first light source and the second light source, the first light source sets up the below of second light source. The photoelectric sensor 22 is arranged in the center of a plurality of LED lamp pearls, including two upper and lower photoelectric sensors: the first photoelectric sensor and the second photoelectric sensor, first photoelectric sensor sets up the top at the second photoelectric sensor.
FIG. 2 is a schematic structural view of a light pipe of the probe. As shown in fig. 2, the light-transmitting tube 23 includes a base 231 and an extension 232, the base 231 is covered on the photoelectric sensor 22, one end of the extension 232 is fixedly connected with the base 231, the other end of the extension 232 is provided with a light-transmitting hole 2321, the light-transmitting hole 2321 is close to the first sight glass, and the length of the light-transmitting tube is smaller than the distance between the probe and the first sight glass.
The light transmitting tube is made of a light-tight material and is used for blocking interference light (such as light emitted by the light source 21) from entering the photoelectric sensor so as to ensure that reflected light received by the photoelectric sensor does not contain light from other sources.
The body and the probe electric connection, including main control chip, signal acquisition circuit, light source drive circuit and signal output circuit, main control chip can be the singlechip, also can be other signal processing chips. The signal acquisition circuit and the light source driving circuit are respectively and electrically connected with the main control chip, the light source and the light source driving circuit are electrically connected, the photoelectric sensor is electrically connected with the signal acquisition circuit, the input end of the signal output circuit is electrically connected with the main control chip, and the output end of the signal output circuit is connected with the upper computer through a cable.
The light source driving circuit is used for driving the light source, for example, driving the light source in a constant current manner, so that stable illumination can be realized. The signal acquisition circuit is used for receiving the light intensity output by the photoelectric sensor and sending the light intensity to the main control chip. The signal output circuit is used for outputting the flowing condition of the liquid to the upper computer.
As shown in fig. 3, the method is applied to the electronic view mirror for illustration, and the method comprises the following steps:
step 301, the body obtains a first sampled light intensity and a second sampled light intensity, the first sampled light intensity is collected by a first photoelectric sensor, the second sampled light intensity is collected by a second photoelectric sensor, and the first photoelectric sensor is arranged above the second photoelectric sensor.
Wherein the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively. The first and second photosensors may be photodiode sensors capable of converting light signals into electrical signals to obtain light intensity.
The first reflected light and the second reflected light are two kinds of light having different wavelengths, for example, the first reflected light is red light and the second reflected light is green light. The first reflected light is obtained by reflecting light emitted by the first light source, the second reflected light is obtained by reflecting light emitted by the second light source, the first light source is arranged below the second light source, and the second light source, the first photoelectric sensor, the second photoelectric sensor and the first light source are positioned on the same horizontal plane.
Fig. 4 is a schematic diagram of the light path of the electronic sight glass for detecting the flow of liquid. As shown in fig. 4, the light beam emitted by the second light source above is reflected by the background plate and then enters the second photoelectric sensor below through the light passing hole; the reflected light of the light beam emitted by the first light source below is reflected by the background plate and then enters the first photoelectric sensor above through the light passing hole.
The first light source and the second light source may be white light sources, and the first photoelectric sensor only receives the first reflected light and the second photoelectric sensor only receives the second reflected light by covering the surfaces of the first light source and the second light source with filters allowing light of different wavelengths to pass through, and covering the surface of the first photoelectric sensor with the same filter as the first light source and covering the surface of the second photoelectric sensor with the same filter as the second light source. The upper photoelectric sensor receives the reflected light of the light beam emitted from the lower light source, and the lower photoelectric sensor receives the reflected light of the light beam emitted from the upper light source by using a specific filter.
After the first reflected light enters the first photoelectric sensor, the first photoelectric sensor converts the optical signal into an electric signal to obtain the light intensity of the first reflected light. After the second reflected light enters the second photoelectric sensor, the second photoelectric sensor converts the optical signal into an electric signal to obtain the light intensity of the second reflected light.
Step 302, determining a liquid flow condition in the pipeline according to the first sampled light intensity and the second sampled light intensity, wherein the liquid flow condition comprises at least one of the existence of bubbles, the rising of the liquid level or the falling of the liquid level.
Wherein when the light beam is directed to a bubble in the liquid, the reflectivity of the liquid increases when the bubble is present, because the bubble has a reflectivity that is much higher than the impurities in the liquid, and totally reflects a portion of the light (which is related to the relative size of the bubble). Other conditions were the same, the smaller and denser the bubbles, the higher the reflectivity of the liquid.
Since the reflectivity of the liquid increases when the light beam is directed to the bubble in the liquid, when the liquid has a bubble, a part of the light beam emitted from the light source is reflected in advance by the bubble into the photosensor and received by the photosensor, and the light intensity of the emitted light received by the photosensor is greater than that received in the case where there is no bubble in the liquid. Thus, the presence or absence of bubbles in the liquid in the conduit can be determined by the intensity of the reflected light.
And because the attenuation of the light beam in the liquid and the attenuation of the light beam in the air are different, the first photoelectric sensor receives the reflected light of the light beam emitted by the lower light source, and the second photoelectric sensor receives the reflected light of the light beam emitted by the upper light source, the liquid level rise or the liquid level fall in the pipeline can be determined by the light intensity of the reflected light.
In the liquid flow detection method, the first sampling light intensity and the second sampling light intensity are acquired, wherein the first sampling light intensity is acquired by the first photoelectric sensor, and the second sampling light intensity is acquired by the second photoelectric sensor arranged below the first photoelectric sensor; and determining the liquid flow condition in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the liquid flow condition comprises whether bubbles exist in the liquid, the liquid level rises or the liquid level falls, so that the liquid flow condition in the pipeline can be detected in a non-contact mode. Compared with a contact type liquid level sensor, the method has higher accuracy in detecting the liquid flow condition in the pipeline, and the purpose of improving the accuracy in detecting the liquid flow condition in the pipeline is achieved.
In one embodiment, as shown in FIG. 5, step 302 includes:
step 501, determining whether bubbles exist in the liquid in the pipeline according to the first sampled light intensity and the second sampled light intensity.
For example, in case at least one of the first sampled light intensity or the second sampled light intensity is larger than a threshold value, it is determined that a bubble is present in the liquid within the conduit. The threshold is a minimum value of the light intensity of the reflected light detected under the condition that no bubble exists in the liquid, and is preset according to the detection requirement, which is not limited in the embodiment of the present application.
Step 502, determining the liquid level rising or falling of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity under the condition that no bubble exists in the liquid in the pipeline.
Illustratively, before determining whether the level of the liquid in the pipe is rising or falling, it is also necessary to determine whether the liquid in the pipe is intermixed with other liquids that are immiscible. In the case where the liquid in the pipe is a single kind of liquid, the difference between the first sampled light intensity and the second sampled light intensity is within a fixed range (assuming a first range); in the case where the liquid in the pipe contains two or more kinds of immiscible liquids, the liquids in the pipe are layered, so that the difference between the first sampled light intensity and the second sampled light intensity is significantly larger than that in the case of a single kind of liquid. Thus, if the difference between the first sampled light intensity and the second sampled light intensity is greater than the minimum value of the first range, it is determined that stratification of the liquid within the conduit has occurred.
The liquid flow detection method further comprises the step of determining the rising or falling of the liquid level of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity under the condition that the liquid in the pipeline is free of bubbles and is not layered.
In one embodiment, step 502 includes obtaining a first sampled light intensity and a second sampled light intensity at a target time and a first time, respectively, in a case where no bubble exists in the liquid in the pipeline, where the first sampled light intensity and the second sampled light intensity at the target time are not equal, and the first time is a time next to the target time; if the first sampling light intensity and the second sampling light intensity at the first moment are both reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampling light intensity and the second sampling light intensity at the first moment are both increased, determining that the liquid level of the liquid in the pipeline is decreased.
The target time is the current time, and the first time is the next time to the current time. Assuming that the first sampled light intensity at the target time is a1, the second sampled light intensity at the target time is b1, the first sampled light intensity at the first time is a2, and the second sampled light intensity at the first time is b2.
Illustratively, in the case of b1 > a1, if a2 < a1 and b2 < b1, then the level of the liquid in the conduit is determined to rise (representing that the actual detected liquid flow direction is from bottom to top, i.e. liquid is being fed at this time); if a2 > a1 and b2 > b1, then the level of the liquid in the pipeline is determined to be decreasing (representing that the actual detected liquid flow direction is from top to bottom, i.e. liquid is being discharged at this time).
In one embodiment, step 502 includes obtaining a first sampled light intensity and a second sampled light intensity at a target time and a first time, respectively, in a case where no bubble exists in the liquid in the pipeline, where the first sampled light intensity and the second sampled light intensity at the target time are not equal, and the first time is a time next to the target time; if the first sampling light intensity and the second sampling light intensity at the first moment are reduced and the absolute value of the difference value between the first sampling light intensity and the second sampling light intensity is reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampled light intensity and the second sampled light intensity at the first moment are both increased and the absolute value of the difference value between the first sampled light intensity and the second sampled light intensity is reduced, determining that the liquid level of the liquid in the pipeline is reduced.
Illustratively, assume that the first sampled light intensity at the target time is a1, the second sampled light intensity at the target time is b1, the first sampled light intensity at the first time is a2, and the second sampled light intensity at the first time is b2.
In the case of b1 > a1, if a2 < a1, b2 < b1, and |b2-a2| < |b1-a1|, then determining that the level of the liquid in the pipeline is rising (representing that the flow direction of the liquid actually detected is from bottom to top, i.e. is now in liquid); if a2 > a1, b2 > b1, and |b2-a2| < |b1-a1|, then the level of the liquid in the pipeline is determined to be decreasing (representing that the actual detected liquid flow direction is from top to bottom, i.e. the liquid is being discharged at this time).
After judging whether the liquid level of the liquid in the pipe rises or falls, the actual detected liquid flow direction can be obtained. According to the set liquid flow direction and the actually detected liquid flow direction, whether the liquid flow in the pipeline is normal or not can be judged. If the set liquid flow direction is consistent with the actually detected liquid flow direction, judging whether the liquid in the pipeline is in a full state or an empty state; if the set liquid flow direction is inconsistent with the actual detected liquid flow direction, the abnormal liquid flow in the pipeline is indicated.
In one embodiment, the method for detecting a liquid flow further comprises collecting a first sampled light intensity and a second sampled light intensity in a case where a liquid flow direction is set to be from bottom to top and a rise in a liquid level of the liquid in the pipe is detected; if the first sampling light intensity and the second sampling light intensity at the second moment are detected to be equal, determining that the liquid in the pipeline is in a full state, wherein the second moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
Under the condition that the liquid flow direction is set to be from top to bottom and the liquid level of the liquid in the pipeline is detected to be reduced, collecting first sampling light intensity and second sampling light intensity; if the first sampling light intensity and the second sampling light intensity at the third moment are detected to be equal, determining that the liquid in the pipeline is in an empty state, wherein the third moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
Illustratively, assume that the first sampled intensity at the second time instant is an, the second sampled intensity at the second time instant is bn, the first sampled intensity at the third time instant is am, and the second sampled intensity at the third time instant is bm.
When the flow direction of the liquid is set to be from bottom to top and the rise of the liquid level of the liquid in the pipe is detected, if an=bn, determining that the liquid in the pipe is in a full state; otherwise, determining that the liquid flow in the pipeline is abnormal.
If am=bm, determining that the liquid in the pipeline is in an empty state when the liquid flow direction is set to be from top to bottom and the liquid level of the liquid in the pipeline is detected to be reduced; otherwise, determining that the liquid flow in the pipeline is abnormal.
Fig. 6 is a flow chart of a method for detecting liquid flow according to another embodiment of the present application. As shown in fig. 6, the electronic mirror is first self-checked after being powered on, and the default operating parameters are read. Firstly judging whether a calibration command sent by an upper computer exists, if so, entering a calibration flow, otherwise, entering a sampling cycle, judging whether a parameter setting command sent by the upper computer exists in each sampling cycle, if so, responding to the command of the upper computer, setting related parameters according to the parameter of the upper computer, otherwise, respectively acquiring sampling light intensity data through a channel 1 and a channel 2, and obtaining first sampling light intensity and second sampling light intensity. According to the collected first sampling light intensity and second sampling light intensity, analyzing the liquid flow condition in the pipeline, including whether bubbles exist in the liquid, the liquid level rises or the liquid level falls, and outputting the liquid flow condition to the upper computer so as to execute alarm or data output work according to the requirement of the upper computer.
In this embodiment, through two sets of light intensity information that non-contact photoelectric sensor detected, can measure the liquid level information, judge whether there is bubble in the liquid, whether the liquid is full of the pipeline and whether the liquid empties etc. condition, efficient, and pollution free liquid.
Based on the same inventive concept, the embodiment of the application also provides a liquid flow detection device for realizing the above-mentioned liquid flow detection method. The implementation of the solution provided by the device is similar to that described in the above method, so specific limitations in the embodiments of the device for detecting liquid flow or flows provided below can be referred to above as limitations of the method for detecting liquid flow, and will not be repeated here.
As shown in fig. 7, the present application further provides a liquid flow detection apparatus 700, which includes an acquisition module 701 configured to acquire a first sampled light intensity and a second sampled light intensity, the first sampled light intensity being acquired by a first photosensor, the second sampled light intensity being acquired by a second photosensor, the first photosensor being disposed above the second photosensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively; a determination module 702 configured to determine a liquid flow condition within the conduit based on the first sampled light intensity and the second sampled light intensity, the liquid flow condition including at least one of a presence of a bubble in the liquid, a rise in the liquid level, or a fall in the liquid level.
In one embodiment, the determining module 702 includes a first determining module configured to determine whether a bubble is present in the liquid within the conduit based on the first sampled light intensity and the second sampled light intensity; the second determination module is configured to determine a level rise or a level fall of the liquid in the pipe based on the first sampled light intensity and the second sampled light intensity in a case where the liquid in the pipe is free of bubbles.
In one embodiment, the first determination module is further configured to determine that the liquid within the conduit is in the presence of a bubble if at least one of the first sampled light intensity or the second sampled light intensity is greater than a threshold value.
In one embodiment, the second determining module is further configured to obtain a first sampled light intensity and a second sampled light intensity at a target time and a first time, respectively, in the case that no bubble exists in the liquid in the pipeline, where the first sampled light intensity and the second sampled light intensity at the target time are unequal, and the first time is a time next to the target time; if the first sampling light intensity and the second sampling light intensity at the first moment are both reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampling light intensity and the second sampling light intensity at the first moment are both increased, determining that the liquid level of the liquid in the pipeline is decreased.
In one embodiment, the second determining module is further configured to obtain a first sampled light intensity and a second sampled light intensity at a target time and a first time, respectively, in the case that no bubble exists in the liquid in the pipeline, where the first sampled light intensity and the second sampled light intensity at the target time are unequal, and the first time is a time next to the target time; if the first sampling light intensity and the second sampling light intensity at the first moment are reduced and the absolute value of the difference value between the first sampling light intensity and the second sampling light intensity is reduced, determining that the liquid level of the liquid in the pipeline is increased; if the first sampled light intensity and the second sampled light intensity at the first moment are both increased and the absolute value of the difference value between the first sampled light intensity and the second sampled light intensity is reduced, determining that the liquid level of the liquid in the pipeline is reduced.
In one embodiment, the liquid flow detection device 700 includes a third determination module configured to acquire a first sampled light intensity and a second sampled light intensity in a case where the liquid flow direction is set to be from bottom to top and a rise in the liquid level of the liquid in the pipe is detected; if the first sampling light intensity and the second sampling light intensity at the second moment are detected to be equal, determining that the liquid in the pipeline is in a full state, wherein the second moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
In one embodiment, the third determination module is further configured to acquire the first sampled light intensity and the second sampled light intensity in case the liquid flow direction is set from top to bottom and a drop in the level of the liquid in the pipe is detected; if the first sampling light intensity and the second sampling light intensity at the third moment are detected to be equal, determining that the liquid in the pipeline is in an empty state, wherein the third moment is a moment after the first moment; otherwise, determining that the liquid flow in the pipeline is abnormal.
The respective modules in the above-described liquid flow detection device may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
The application also provides a computer readable storage medium storing a computer program executable by an electronic view mirror, which when run on the electronic view mirror causes the electronic view mirror to perform the steps of the method embodiments described above. The computer readable storage medium may include, among other things, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, micro-drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as the division of the units, merely a logical function division, and there may be additional manners of dividing the actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be performed by hardware associated with a program that is stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
It will be readily appreciated by those skilled in the art that the foregoing description is merely a preferred embodiment of the application and is not intended to limit the application, but any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (10)

1. A method for detecting a flow of a liquid, comprising:
acquiring first sampled light intensity and second sampled light intensity, wherein the first sampled light intensity is acquired by a first photoelectric sensor, the second sampled light intensity is acquired by a second photoelectric sensor, and the first photoelectric sensor is arranged above the second photoelectric sensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively;
and determining the liquid flow condition in the pipeline according to the first sampling light intensity and the second sampling light intensity, wherein the liquid flow condition comprises at least one of the existence of bubbles, the rising of the liquid level or the falling of the liquid level.
2. The method of claim 1, wherein determining the flow of the liquid in the conduit based on the first sampled light intensity and the second sampled light intensity comprises:
determining whether bubbles exist in the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity;
and under the condition that no bubble exists in the liquid in the pipeline, determining the rising or falling of the liquid level of the liquid in the pipeline according to the first sampling light intensity and the second sampling light intensity.
3. The method of claim 2, wherein determining whether the bubble is present in the liquid in the conduit based on the first sampled light intensity and the second sampled light intensity comprises:
in the event that at least one of the first sampled light intensity or the second sampled light intensity is greater than a threshold value, it is determined that a bubble is present in the liquid within the conduit.
4. The method of claim 2, wherein determining the rise or fall of the liquid level of the liquid in the conduit based on the first sampled light intensity and the second sampled light intensity in the absence of bubbles in the liquid in the conduit comprises:
under the condition that no bubble exists in the liquid in the pipeline, respectively acquiring first sampling light intensity and second sampling light intensity at a target moment and a first moment, wherein the first sampling light intensity and the second sampling light intensity at the target moment are unequal, and the first moment is the next moment of the target moment;
if the first sampling light intensity and the second sampling light intensity at the first moment are both reduced, determining that the liquid level of the liquid in the pipeline is increased;
if the first sampling light intensity and the second sampling light intensity at the first moment are both increased, determining that the liquid level of the liquid in the pipeline is decreased.
5. The method of claim 2, wherein determining the rise or fall of the liquid level of the liquid in the conduit based on the first sampled light intensity and the second sampled light intensity in the absence of bubbles in the liquid in the conduit comprises:
under the condition that no bubble exists in the liquid in the pipeline, respectively acquiring first sampling light intensity and second sampling light intensity at a target moment and a first moment, wherein the first sampling light intensity and the second sampling light intensity at the target moment are unequal, and the first moment is the next moment of the target moment;
if the first sampling light intensity and the second sampling light intensity at the first moment are reduced and the absolute value of the difference value between the first sampling light intensity and the second sampling light intensity is reduced, determining that the liquid level of the liquid in the pipeline is increased;
if the first sampled light intensity and the second sampled light intensity at the first moment are both increased and the absolute value of the difference value between the first sampled light intensity and the second sampled light intensity is reduced, determining that the liquid level of the liquid in the pipeline is reduced.
6. The method of claim 4 or 5, wherein the method further comprises:
under the condition that the liquid flow direction is set to be from bottom to top and the rising of the liquid level of the liquid in the pipeline is detected, collecting first sampling light intensity and second sampling light intensity;
if the first sampling light intensity and the second sampling light intensity at the second moment are detected to be equal, determining that the liquid in the pipeline is in a full state, wherein the second moment is a moment after the first moment;
otherwise, determining that the liquid flow in the pipeline is abnormal.
7. The method of claim 4 or 5, wherein the method further comprises:
under the condition that the liquid flow direction is set to be from top to bottom and the liquid level of the liquid in the pipeline is detected to be reduced, collecting first sampling light intensity and second sampling light intensity;
if the first sampling light intensity and the second sampling light intensity at the third moment are detected to be equal, determining that the liquid in the pipeline is in an empty state, wherein the third moment is a moment after the first moment;
otherwise, determining that the liquid flow in the pipeline is abnormal.
8. A liquid flow detection device, comprising:
an acquisition module configured to acquire a first sampled light intensity acquired by a first photosensor and a second sampled light intensity acquired by a second photosensor, the first photosensor being disposed above the second photosensor; the first sampled light intensity and the second sampled light intensity are the light intensity of the first reflected light and the light intensity of the second reflected light, respectively;
a determination module configured to determine a liquid flow condition within the conduit based on the first sampled light intensity and the second sampled light intensity, the liquid flow condition including at least one of a presence of a bubble of liquid, a rise in liquid level, or a fall in liquid level.
9. The electronic sight glass is characterized by comprising a probe, a background plate and a body, wherein the probe is arranged on the outer side of the first sight glass, and the background plate is arranged on the outer side of the second sight glass;
the probe comprises a first light source, a second light source, a first photoelectric sensor and a second photoelectric sensor, wherein the first light source and the second light source are both used for emitting light to a pipeline, the light emitted by the first light source is respectively reflected by liquid in the pipeline and the background plate to obtain first reflected light, the light emitted by the second light source is respectively reflected by the liquid in the pipeline and the background plate to obtain second reflected light, and the first light source is arranged below the second light source;
the body is electrically connected to the probe, the body comprising a main control chip for performing the steps of the method of any one of claims 1-7.
10. A storage medium, characterized in that it stores a computer program to be executed by an electronic view mirror, which, when run on the electronic view mirror, causes the electronic view mirror to perform the steps of the method according to any one of claims 1-7.
CN202310655418.5A 2023-06-02 2023-06-02 Liquid flow detection method, device, electronic sight glass and storage medium Pending CN116858337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310655418.5A CN116858337A (en) 2023-06-02 2023-06-02 Liquid flow detection method, device, electronic sight glass and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310655418.5A CN116858337A (en) 2023-06-02 2023-06-02 Liquid flow detection method, device, electronic sight glass and storage medium

Publications (1)

Publication Number Publication Date
CN116858337A true CN116858337A (en) 2023-10-10

Family

ID=88234864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310655418.5A Pending CN116858337A (en) 2023-06-02 2023-06-02 Liquid flow detection method, device, electronic sight glass and storage medium

Country Status (1)

Country Link
CN (1) CN116858337A (en)

Similar Documents

Publication Publication Date Title
JP2834004B2 (en) Method and apparatus for monitoring contamination level of fluid
EP3814755B1 (en) Sensor for level and turbidity measurement
CN104849242B (en) Smoke detection means and cigarette machine
CA2993815C (en) Multi excitation-multi emission fluorometer for multiparameter water quality monitoring
EP1936358A1 (en) Oil mist detector
US11656180B2 (en) Multi excitation-multi emission fluorometer for multiparameter water quality monitoring
CN102853908B (en) Spectrophotometer
CN101487844B (en) Electronic inspection apparatus and method
CN104024879A (en) Arrangement and method for detecting the speed of a turbocharger
CN116858337A (en) Liquid flow detection method, device, electronic sight glass and storage medium
US11313779B2 (en) Liquid debris sensor and system
Giordano et al. High diagnostic accuracy of the Sysmex XT‐2000iV delta total nucleated cells on effusions for feline infectious peritonitis
CN111505531B (en) Board card test system
CN107991286A (en) Raman spectrum detection device and method based on reflected optical power
JP4996369B2 (en) Liquid detector
US10823673B2 (en) Dual function fluorometer-absorbance sensor
JP2006268484A (en) Coin discriminating device
KR20100109196A (en) A system and method of measuring object&#39;s concentration using for transmission or reflection of light
CN107655801A (en) A kind of dust sensor detecting system
KR102256979B1 (en) Optical oil component sensor and method using the same
CN114624208A (en) Test strip hemolysis determination and identification method based on red-green double spectrum
US11118942B2 (en) Automated reader for gauge-based meters
CN110243286A (en) A kind of back drill offset detecting device and image acquiring device
CN103575656A (en) Mobile device and method for detecting illegal cooking oil by utilizing mobile device
KR102392796B1 (en) Apparatus detecting damage of hair

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