CN114812741A - Liquid level detection device and liquid level detection method and equipment - Google Patents

Liquid level detection device and liquid level detection method and equipment Download PDF

Info

Publication number
CN114812741A
CN114812741A CN202110061494.4A CN202110061494A CN114812741A CN 114812741 A CN114812741 A CN 114812741A CN 202110061494 A CN202110061494 A CN 202110061494A CN 114812741 A CN114812741 A CN 114812741A
Authority
CN
China
Prior art keywords
module
liquid level
detection
resistor
level detection
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
CN202110061494.4A
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.)
Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Haier Smart Home 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 Qingdao Economic And Technology Development District Haier Water Heater Co ltd, Haier Smart Home Co Ltd filed Critical Qingdao Economic And Technology Development District Haier Water Heater Co ltd
Priority to CN202110061494.4A priority Critical patent/CN114812741A/en
Publication of CN114812741A publication Critical patent/CN114812741A/en
Pending legal-status Critical Current

Links

Images

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/24Indicating 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 variations of resistance of resistors due to contact with conductor fluid

Landscapes

  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Fluid Mechanics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The application provides a liquid level detection device, a liquid level detection method and liquid level detection equipment. The liquid level detection device comprises a detection module, a control module and a power supply module. The first end of the detection module is connected with the ADC module of the control module, and the second end of the detection module is connected with the first Vcc end of the control module. The detection module is used for acquiring a voltage signal of the conductive liquid to be detected on the detection end, so that the ADC module in the control module can determine the current liquid level of the conductive liquid to be detected according to the voltage signal, and the liquid level detection of the conductive liquid to be detected is realized. In addition, the power supply module at least comprises a power supply control chip, a transformer and a voltage stabilizing circuit which are connected in series, the power supply module provides working voltage for the control module and the detection module, the power supply module is an isolated power supply due to the existence of the transformer, further safety accidents caused by electric leakage can be effectively avoided under the condition that the electric leakage of the conductive liquid to be detected occurs, and the safety and the reliability of the liquid level detection device are effectively enhanced.

Description

Liquid level detection device and liquid level detection method and equipment
Technical Field
The application belongs to the technical field of control, and particularly relates to a liquid level detection device, a liquid level detection method and liquid level detection equipment.
Background
In some scenes using a liquid with conductivity, the liquid can conduct electricity, so that the current liquid level of the liquid is often required to be detected, otherwise, certain potential safety hazards may exist, and unknown safety accidents are caused.
For example, for a water heater used by people daily, if a water level detection device is not provided, after the water heater is powered on for the first time, if the water heater is not operated properly, the water heater may be in a state of heating while filling water, so that a dry burning risk exists, and an irreversible safety accident may be caused. However, the prior art methods of detecting the presence of dry burning have some hysteresis. Therefore, it is important for the level detection of the conductive liquid.
Disclosure of Invention
The application provides a liquid level detection device, a liquid level detection method and liquid level detection equipment, which are used for detecting the current liquid level of conductive liquid so as to avoid the technical problem that potential safety hazards such as dry burning and the like occur.
In a first aspect, the present application provides a liquid level detection device, comprising: the device comprises a detection module, a control module and a power supply module;
the first end of the detection module is connected with an ADC (analog to digital converter) module of the control module, and the second end of the detection module is connected with a first Vcc (voltage source) end of the control module;
the detection end is positioned at the first end of the detection module, the second end of the detection module and the intersection point of the detection probe, and the detection probe is placed in the conductive liquid to be detected;
the output end of the power supply module is respectively connected with the working voltage input ends of the detection module and the control module, and the power supply module at least comprises a power supply control chip, a transformer and a voltage stabilizing circuit which are connected in series.
In one possible design, a first end of the power control chip is connected between the input end of the power module and the first analog ground, and a second end of the voltage stabilizing circuit is connected between the output end of the power module and the power ground.
In one possible design, the input end of the power supply module inputs a first direct current voltage, the first direct current voltage is converted into a first alternating current voltage through the power supply control chip, the first alternating current voltage is transformed into a second alternating current voltage through the transformer, the second alternating current voltage is converted into a second direct current voltage through the first rectifier diode, the second direct current voltage is filtered into a third direct current voltage through the first capacitor and is output through the output end of the power supply module, and the voltage stabilizing circuit comprises the first rectifier diode and the first capacitor which are connected in series.
In a possible design, the detection module includes at least: the voltage dividing resistor, the rectifying and filtering circuit and the detection probe are arranged on the detection circuit;
the first end of the voltage division resistor is the second end of the detection module, and the second end of the voltage division resistor is respectively connected with the first end of the rectification filter circuit, the first end of the detection probe and the pulse signal input end of the control module through the detection end;
the second end of the rectification filter circuit is the first end of the detection module;
if the conductive liquid to be detected is water in a natural state, the detection module further comprises a blocking capacitor;
the first end of the blocking capacitor is connected with the detection end, and the second end of the blocking capacitor is connected with the first end of the detection probe.
In one possible design, the rectifying and filtering circuit includes: the second rectifier diode, the first resistor and the first capacitor;
the positive pole of the second rectifier diode is used as the first end of the rectifier filter circuit to be connected with the detection end, the negative pole of the second rectifier diode is connected with the first end of the first resistor, the second end of the first resistor is used as the second end of the rectifier filter circuit to be connected with the ADC module and the first end of the second capacitor respectively, and the second end of the second capacitor is grounded.
In one possible design, the liquid level detection device further includes: a communication module and a display panel;
after the current liquid level is determined, the ADC module judges whether the current liquid level is in an abnormal state or not, and transmits a digital signal corresponding to a judgment result to the display panel through the communication module;
and the display panel displays the judgment result and/or applies corresponding control to the conductive liquid to be detected according to the judgment result.
In one possible design, the communication module includes a data transmitting circuit and a data receiving circuit;
the first end of the data sending circuit is connected to the data sending end of the control module, the second end of the data sending circuit is connected with the first end of the data receiving circuit through a BUS and a third rectifying diode, and the second end of the data receiving circuit is connected with the data receiving end of the control module.
In one possible design, the data transmission circuit includes at least: the circuit comprises a second resistor, a third resistor, a fourth resistor, a first PNP triode and a first optocoupler;
the first end of second resistance does data transmission circuit's first end, the second end of second resistance respectively with the first end of third resistance with the base of first PNR triode is connected, the second end of third resistance respectively with control module's second Vcc end with the projecting pole of first PNP triode is connected, the collecting electrode of first PNP triode with the first end of fourth resistance is connected, the second end of fourth resistance with the first input of first opto-coupler is connected, the first output of first opto-coupler with the input of BUS BUS is connected, the second input ground connection of first opto-coupler, the second output of first opto-coupler is connected with second simulation ground.
In one possible design, the data receiving circuit includes at least: the first PNP triode is connected with the first resistor and the second resistor;
the first end of the fifth resistor is the first end of the data receiving circuit, the second end of the fifth resistor is respectively connected with the first end of the sixth resistor and the base electrode of the second PNP triode, a second end of the sixth resistor is respectively connected with the Vin end of the control module and the emitter of the second PNP triode, the collector of the second PNP triode is connected with the first end of the seventh resistor, the second end of the seventh resistor is connected with the first input end of the second optocoupler, a first output end of the second optocoupler is respectively connected with a first end of the eighth resistor, a second end of the eighth resistor is connected with a third Vcc end of the control module, the first end of the eighth resistor is the second end of the data receiving circuit, the second input end of the second optical coupler is connected with the third analog ground end, and the second output end of the second optical coupler is grounded.
In one possible design, the output of the BUS is connected to a cathode of the third rectifying diode, and an anode of the third rectifying diode is connected to the first end of the fifth resistor.
In a possible design, the liquid level detection device is applied to a water heater if the conductive liquid to be detected is water in a natural state.
In a second aspect, the present application provides a liquid level detection method applied to the liquid level detection device of any one of claims 1 to 10, the method comprising:
initializing a control module, and controlling a PWM module to output a pulse signal, wherein the pulse signal is used for providing a working pulse for a detection module in the liquid level detection device;
acquiring a voltage signal of the conductive liquid to be detected on a detection end in the liquid level detection device;
and determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
In one possible design, after determining the current liquid level, the method further includes:
judging whether the current liquid level is in an abnormal state or not;
if yes, resetting the flag bits of the global variable and the local variable in the corresponding execution program of the control module, and transmitting the reset flag bits and the abnormal state to a display panel for displaying;
and if not, transmitting the current liquid level to a display panel for displaying.
In one possible design, after transmitting the current liquid level to the display panel, the method further includes:
and continuously controlling the PWM module to output the pulse signal so as to circulate the liquid level detection method.
In a possible design, if it is determined that the current liquid level is not in the abnormal state, the heating pipe is started to heat the conductive liquid to be detected through the heating pipe.
In a third aspect, the present application provides a liquid level detection apparatus comprising:
the first processing module is used for initializing the control module and controlling the PWM module to output a pulse signal, and the pulse signal is used for providing working pulses for a detection module in the liquid level detection device;
the acquisition module is used for acquiring a voltage signal of the conductive liquid to be detected on the detection end of the liquid level detection device;
and the second processing module is used for determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
In one possible design, the liquid level detection device further includes: a third processing module; the third processing module is configured to:
judging whether the current liquid level is in an abnormal state or not;
if yes, resetting the flag bits of the global variable and the local variable in the corresponding execution program of the control module, and transmitting the reset flag bits and the abnormal state to a display panel for displaying;
and if not, transmitting the current liquid level to a display panel for displaying.
In one possible design, the third processing module is further configured to:
and continuously controlling the PWM module to output the pulse signal so as to circulate the liquid level detection method.
In one possible design, the third processing module is further configured to:
and if the current liquid level is determined not to be in the abnormal state, starting a heating pipe to heat the conductive liquid to be detected through the heating pipe.
In a fourth aspect, the present application provides an electronic device comprising:
a processor; and
a memory communicatively coupled to the processor; wherein the memory stores instructions executable by the processor to enable the processor to perform the method of level detection of any of the second aspects.
In a fifth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the liquid level detection method of any one of the second aspects.
In a sixth aspect, the present application provides a computer program product comprising computer instructions which, when executed by a processor, implement the liquid level detection method of any one of the second aspects.
The application provides a liquid level detection device, a liquid level detection method and liquid level detection equipment. The first end of the detection module is connected with the ADC module of the control module, the second end of the detection module is connected with the first Vcc end of the control module, and the detection module is used for acquiring a voltage signal of the conductive liquid to be detected on the detection end, so that the ADC module in the control module can determine the current liquid level of the conductive liquid to be detected according to the voltage signal, and the liquid level detection of the conductive liquid to be detected is realized. In addition, the power supply module at least comprises a power supply control chip, a transformer and a voltage stabilizing circuit which are connected in series, the output end of the power supply module is respectively connected with the working voltage input ends of the detection module and the control module to provide working voltage for the control module and the detection module, and the power supply module is an isolated power supply design and can effectively avoid further accidents caused by electric leakage in the conductive liquid to be detected. Thereby strengthened the security and the reliability of the liquid level detection device that this application provided.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a block diagram of a liquid level detecting device according to an embodiment of the present disclosure;
fig. 3 is a schematic circuit diagram of a power module according to an embodiment of the present disclosure;
fig. 4 is a schematic circuit diagram of a detection module according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of another liquid level detecting device according to an embodiment of the present disclosure;
fig. 6 is a circuit schematic diagram of a communication module according to an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart illustrating a liquid level detection method according to an embodiment of the present disclosure;
FIG. 8 is a schematic flow chart of another liquid level detection method provided by the embodiments of the present application;
FIG. 9 is a schematic structural diagram of a liquid level detection apparatus provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In some use scenes of the conductive liquid, the liquid has conductivity, so that the current liquid level of the liquid may need to be detected, otherwise, certain potential safety hazards exist, and unknown safety accidents are caused. For example, for a water heater used by people daily, if a water level detection device is not provided, after the water heater is powered on for the first time, if the water heater is not operated properly, the water heater may be in a state of heating while filling water, so that a dry-burning risk exists, and even an irreversible safety accident may be caused. However, the conventional method for detecting the presence or absence of dry burning has a certain hysteresis. It can be seen that it is important for the level detection of the conductive liquid.
In view of this, the embodiment of the present application provides a liquid level detection apparatus, a liquid level detection method and a liquid level detection device. The inventive concept of the present application resides in: the designed liquid level detection device comprises a detection module, a control module and a power supply module, wherein the first end of the detection module is connected with an ADC (analog to digital converter) module of the control module, the second end of the detection module is connected with the first Vcc end of the control module, and the first end and the second end of the detection module and the intersection point of a detection probe which is placed in conductive liquid to be detected are arranged at the intersection point of the first end and the second end of the detection module. The detection module obtains a voltage signal of the detection end, and then performs digital-to-analog signal conversion through the ADC module to convert the voltage signal into a corresponding digital signal, and can determine a current liquid level corresponding to the obtained voltage signal based on a mapping relation between the voltage signal and the liquid level, so that liquid level detection of the conductive liquid to be detected is realized. On the other hand, the power module is used for providing working voltage for the control module and the detection module, the power module at least comprises a power control chip, a transformer and a voltage stabilizing circuit, the power module is designed for an isolation power supply and is different from a solution that a power panel and the detection device are grounded in the prior art, so that safety accidents possibly caused after electric leakage occurs in the conductive liquid to be detected can be effectively avoided, and the safety and the reliability of the liquid level detection device provided by the application are further enhanced.
An exemplary application scenario of the embodiments of the present application is described below.
Fig. 1 is a schematic view of an application scenario provided by an embodiment of the present application, and as shown in fig. 1, a liquid level detection device 11 provided by the embodiment of the present application may be disposed in a conductive liquid to be detected, and assuming that the conductive liquid to be detected is water in a natural state, the liquid level detection device 11 may be disposed in an inner container of a water heater 12, and a specific disposition position may be set according to an actual situation of the water heater, which is not limited in this embodiment. In addition, the water heater 12 may be an electric water heater or the like. The processor in the electronic device 13 is configured to be capable of executing the liquid level detection method provided by the embodiment of the present application, the liquid level detection method is applied to the liquid level detection apparatus 11, and specifically, the electronic device 13 interacts with the liquid level detection apparatus 11 based on the network communication connection and/or the electrical connection to execute the liquid level detection method provided by the embodiment of the present application. Thereby realizing the detection of the current liquid level of the conductive liquid to be detected in the water heater 12. It can be understood that the electronic device 13 may be a device corresponding to a control module configured with a micro controller Unit (MCU for short) such as a single chip microcomputer.
It should be noted that the application scenarios of the liquid level detection apparatus are merely exemplary, and the liquid level detection apparatus, the liquid level detection method and the liquid level detection apparatus provided in the embodiments of the present application include, but are not limited to, the application scenarios.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic structural diagram of a liquid level detection apparatus according to an embodiment of the present application, and as shown in fig. 2, the liquid level detection apparatus 100 according to the embodiment includes: a detection module 101, a control module 102 and a power supply module 103;
a first end of the detection module 101 is connected with an ADC module of the control module 102, and a second end of the detection module 101 is connected with a first Vcc end of the control module 102;
the detection end is positioned at the first end of the detection module 101, the second end of the detection module 101 and the intersection point of the detection probe 1011, and the detection probe 1011 is placed in the conductive liquid to be detected;
the detection module 101 is configured to obtain a voltage signal of a detection end, and determine a current liquid level of the conductive liquid to be detected according to the voltage signal through the ADC module.
It is understood that the first Vcc terminal is a Vcc interface of the control module 102.
Specifically, since the detection end is located at the intersection of the first end and the second end of the detection module 101 and the detection probe 1011 (as shown by point a in fig. 2), and the detection probe 1011 is placed in the conductive liquid to be detected, the resistance value of the detection probe 1011 changes along with the change of the liquid level of the conductive liquid to be detected, so that the voltage signal at the detection end changes accordingly. Therefore, the current liquid level of the conductive liquid to be detected can be indirectly known by acquiring the voltage signal of the detection end. For example, a preset mapping relationship between a voltage signal of the detection end and the liquid level of the conductive liquid to be detected may be predetermined, and then after the voltage signal is obtained, the corresponding current liquid level is fed back according to the preset mapping relationship.
The output end of the power module 103 is connected to the working voltage input ends of the detection module 101 and the control module 102, respectively, so that the power module 103 provides working voltage for the detection module 101 and the control module 103. It should be noted that fig. 1 does not show a specific connection relationship between the power module 103 and the detection module 101 and the control module 102, and the connection relationship may be set according to actual conditions in actual operating conditions, which is not limited in this embodiment.
On the basis of fig. 2, fig. 3 is a schematic circuit diagram of a power module provided in an embodiment of the present application, and as shown in fig. 3, the power module 103 at least includes a power control chip 1031, a transformer 1032 and a voltage stabilizing circuit connected in series;
referring to fig. 2 and 3, a first terminal of the power control chip 1031 is connected between an input terminal (shown as + Vin in fig. 3) of the power module 103 and a first analog ground terminal (AGND), and a second terminal of the voltage regulator circuit is connected between an output terminal (shown as + Vcc interface in fig. 3) of the power module 103 and a power ground terminal (GND).
The output end of the power module 103 is connected with the detection module 101 and the control module 102, the transformer 1032 is arranged in the power module 103, the transformer 1032 can play a role in isolating a power supply, so that the power module 103, the detection module 101 and the control module 103 are not arranged in common, even if electric leakage occurs in conductive liquid to be detected, potential safety hazards to the liquid level detection device 100 and even relevant equipment applying the liquid level detection device 100 cannot be caused, and the safety and the reliability of the liquid level detection device are effectively improved.
Referring to fig. 3, the power voltage provided by the power module 103 has a dc-ac-dc conversion process to provide stable working voltages for the detection module 101 and the control module 102, respectively.
Specifically, a first direct current voltage is input via the input terminal of the power module 103, the first direct current voltage is converted into a first alternating current voltage via the power control chip 1031, then the first alternating current voltage is transformed into a second alternating current voltage via the transformer 1032, the second alternating current voltage is converted into a second direct current voltage via the first rectifier diode 10331, the second direct current voltage is filtered into a third direct current voltage via the first capacitor 10332, and the third direct current voltage is output via the output terminal of the power module 103. The voltage stabilizing circuit comprises a first rectifying diode 10331 and a first capacitor 10332 which are connected in series, wherein the first rectifying diode 10331 is used for rectifying, the first capacitor 10332 is used for filtering, the anode of the first rectifying diode 10331 is connected with the secondary side of the transformer 1032, and the cathode of the first rectifying diode 10331 is connected with the anode of the first capacitor 10332. It is understood that the first capacitor 10332 may be selectively configured according to actual conditions, and the present embodiment is not limited thereto.
In addition, it should be noted that the power control chip 1031 in the power module 103 is used to correspondingly control the corresponding function that can be executed by the power module 103, and the specific specification of the power control chip 1031 may be selected and used according to the actual working condition, which is not limited in this embodiment.
Fig. 4 is a schematic circuit diagram of a detection module according to an embodiment of the present disclosure, and as shown in fig. 4, the detection module 101 at least includes: a voltage dividing resistor 1012, a rectifying and filtering circuit 1013, and a detection probe 1011.
A first end of the voltage dividing resistor 1012 is a second end of the detection module 101, and a second end of the voltage dividing resistor 1012 is respectively connected to a first end of the rectifying and filtering circuit 1013, a first end of the detection probe 1011, and a pulse signal input end of the control module 102 via a detection end (as shown by point a in fig. 4);
the second end of the rectifying and filtering circuit 1013 is the first end of the detection module 101;
when the conductive liquid to be detected is water in a natural state, the detection module 101 further comprises a blocking capacitor 1014;
a first terminal of dc blocking capacitor 1014 is connected to the sensing terminal and a second terminal of dc blocking capacitor 1014 is connected to a first terminal of sensing probe 1011. The second end of the blocking capacitor 1014 may be connected to the first end of the detection probe 1011 through a connection plug, which may be a wire or the like.
A first terminal of the voltage dividing resistor 1012 serves as a second terminal of the detection module 101 and is connected to a first Vcc terminal of the control module 102 (shown as + Vcc in fig. 4), and the first Vcc terminal 1022 may be connected to an input terminal of the power module 103 to input the operating voltage provided by the power module 103. The voltage dividing resistor 1012 is used to divide the working voltage input by the power module 103, i.e., divide the working voltage into the branch where the rectifying and filtering circuit 1013 is located, the branch where the blocking capacitor 1014 and the detection probe 1011 are located, and the branch where the pulse signal input end of the control module 102 is located.
The branch where the Pulse signal input end is located includes a PWM (Pulse Width Modulation) module of the control module 102 and an NPN transistor 1021. The output end of the PWM module is connected to the base of the NPN transistor 1021, the collector of the NPN transistor 1021 is the input end of the pulse signal, and the emitter of the NPN transistor 1021 is grounded. NPN transistor 1021 is an N-P-N field effect transistor.
It should be noted that, the ADC module and the PWM module are both coupled to the control module 102, and the specific connection manner may be performed according to a specific internal condition of the control module 102, which is not described in detail in this embodiment, fig. 4 only schematically illustrates that the MCU is configured in the control module 102, and the ADC module and the PWM module are connected to the MCU in the form of an ADC interface and a PWM interface, respectively.
Under the condition that the working voltage is known, the voltage signals on all the branches can be obtained, and when the liquid level of the conductive liquid to be detected changes, the resistance value of the detection probe 1011 changes, so that the voltage of the branch where the detection probe 1011 is located changes, and the voltage signals on the detection end change. Therefore, a certain mapping relation exists between the liquid level and the voltage signal of the detection end, so that the ADC module firstly obtains the voltage signal of the detection end and then obtains the current liquid level of the conductive liquid to be detected based on the mapping relation. It is understood that the mapping relationship may be predetermined by experimental means such as statistics. It will be appreciated that the ADC block is capable of digital to analog conversion, and thus by detecting the voltage signal, the current liquid level can be finally obtained in the form of a digital signal.
When the conductive liquid to be detected is water in a natural state, when a direct current signal is input to the pulse signal input end of the control module 102, and when the conductive liquid to be detected is injected, a hydrogen evolution reaction exists in the liquid level detection device 100. Therefore, the blocking capacitor 1014 is arranged to ensure that the pulse signal input end inputs the alternating current pulse signal, and the hydrogen evolution reaction is effectively avoided.
It will be appreciated that the detection probe 1011 is placed in the conductive liquid to be detected and the corresponding container containing the conductive liquid to be detected is grounded at infinity.
Continuing to refer to fig. 4, in one possible design, the rectifying-filtering circuit 1013 includes a second rectifying diode 21, a first resistor 22, and a first capacitor 23.
The anode of the second rectifying diode 21 is connected to the detection terminal as the first terminal of the rectifying and filtering circuit 1013, the cathode of the second rectifying diode 21 is connected to the first terminal of the first resistor 22, the second terminal of the first resistor 22 is connected to the ADC module and the first terminal of the second capacitor 23 as the second terminal of the rectifying and filtering circuit 1013, and the second terminal of the second capacitor 23 is grounded.
The rectifying and filtering circuit 1013 is configured to regulate the voltage of the branch thereof, so as to feed back the regulated voltage signal to the ADC module of the control module 102.
It can be understood that specifications of each component in the embodiment of the present application, for example, a resistance value of a resistor, a capacitance value of a capacitor, a specification of a detection probe, and corresponding specifications of a diode and a triode, may be set according to an actual working condition, and are not limited thereto.
The liquid level detection device provided by the embodiment of the application comprises a detection module, a control module and a power module. The first end of the detection module is connected with the ADC module of the control module, and the second end of the detection module is connected with the first Vcc end of the control module. The detection module is used for acquiring a voltage signal of the conductive liquid to be detected on the detection end, so that the ADC module in the control module can determine the current liquid level of the conductive liquid to be detected according to the voltage signal, and the liquid level detection of the conductive liquid to be detected is realized. In addition, the power supply module at least comprises a power supply control chip, a transformer and a voltage stabilizing circuit which are connected in series, the power supply module provides working voltage for the control module and the detection module, the transformer is arranged to enable the power supply module to be an isolated power supply, further safety accidents caused by electric leakage can be effectively avoided under the condition that the electric leakage of the conductive liquid to be detected occurs, and the safety and the reliability of the liquid level detection device are effectively enhanced.
On the basis of the foregoing embodiment, fig. 5 is a schematic structural diagram of another liquid level detection apparatus provided in the embodiment of the present application, and as shown in fig. 5, the service detection apparatus 100 provided in the embodiment further includes: the communication module 104 and the display panel 105, so that after the current liquid level of the conductive liquid to be detected is determined, the ADC module determines whether the current liquid level is in an abnormal state, and then transmits a digital signal corresponding to the determination result to the display panel 105 via the communication module 104, so that the display panel 105 displays the determination result and/or applies corresponding control to the conductive liquid to be detected according to the determination result.
For example, after the determination, if it is determined that the current liquid level is in an abnormal state, the abnormal state is transmitted to the display panel 105 through the communication module 104, so that the display panel 105 applies corresponding control to the conductive liquid to be detected according to a control mode corresponding to a corresponding preset abnormal state. If the current liquid level is determined to be in the non-abnormal state, the non-abnormal state is correspondingly transmitted to the display panel 105 through the communication module 104, and the display panel 105 can display the non-abnormal state and/or apply corresponding control to the conductive liquid to be detected, such as turning on a heating pipe, performing heating control on the conductive liquid to be detected, and the like.
It is understood that the abnormal state may refer to the liquid level of the conductive liquid to be detected being in an abnormal state, such as the liquid level being below 10% of full, or the liquid level being above 90% of full. If the current liquid level is lower than 10% of the full amount or higher than 90% of the full amount, the current liquid level respectively indicates that the liquid level of the conductive liquid to be detected is too low and too full, if the corresponding control applied in the non-abnormal state is to heat the conductive liquid to be detected, the conductive liquid to be detected is not suitable to be heated when the conductive liquid to be detected is in the abnormal state, and otherwise, certain safety risks, such as dry burning risks, exist.
Fig. 6 is a circuit schematic diagram of a communication module according to an embodiment of the present disclosure, and as shown in fig. 6, the communication module 200 according to the embodiment includes a data transmitting circuit 201 and a data receiving circuit 202;
a first end of the Data transmitting circuit 201 is connected to a Data transmitting end (Transmit Data, TXD for short) of the control module 102, a second end of the Data transmitting circuit 201 is connected to a first end of the Data receiving circuit 202 via a BUS and a third rectifying diode 203, and a second end of the Data receiving circuit 202 is connected to a Data receiving end (Receive Data, RXD for short) of the control module 102.
It is understood that the data receiving end and the data transmitting end of the control module 102 are a data receiving pin and a data transmitting pin, respectively, which are shown as the RXD interface and the TXD interface in fig. 4. It should be noted that fig. 6 shows the circuit connection of the communication module 104, and the connection between the communication module 104 and the control module 102 is not shown.
Optionally, as shown with continued reference to fig. 6, the data transmission circuit 201 includes at least: a second resistor 2011, a third resistor 2012, a fourth resistor 2013, a first PNP transistor 2014, and a first optocoupler 2015;
the first end of the second resistor 2011 is the first end of the data transmitting circuit 201, the second end of the second resistor 2011 is respectively connected with the first end of the third resistor 2012 and the base of the first PNR triode 2014, the second end of the third resistor 2012 is respectively connected with the second Vcc end (shown as + Vcc in fig. 6) of the control module 102 and the emitter of the first PNP triode 2014, the collector of the first PNP triode 2014 is connected with the first end of the fourth resistor 2013, the second end of the fourth resistor 2013 is connected with the first input end of the first optocoupler 2015, the first output end of the first optocoupler 2015 is connected with the input end of the BUS, the second input end of the first optocoupler 2015 is grounded, and the second output end of the first optocoupler 2015 is connected with the second analog ground end.
For signal transmission, when the data sending end of the control module 102 is at a high level, the first PNP transistor 2014 is turned off, no current flows through the fourth resistor 2013, the first optocoupler 2015 is in a turned-off state, and the BUS is at a high level. When the data sending end of the control module 102 is at a low level, the first PNP transistor 2014 is turned on, the current flows through the fourth resistor 2013, the first optocoupler 2015 is in a conducting state, and the BUS is at a low level. The high level and the low level are switched to transmit the relevant data such as the judgment result in the above embodiment.
Referring to fig. 6, the data receiving circuit 202 includes at least: a fifth resistor 2021, a sixth resistor 2022, a seventh resistor 2023, an eighth resistor 2024, a second PNP triode 2025, and a second optocoupler 2026;
the first end of the fifth resistor 2021 is a first end of the data receiving circuit 202, the second end of the fifth resistor 2021 is respectively connected to the first end of the sixth resistor 2022 and the base of the second PNP transistor 2025, the second end of the sixth resistor 2022 is respectively connected to the Vin end of the control module 102 (as shown by + Vin in fig. 6) and the emitter of the second PNP transistor 2025, the collector of the second PNP transistor 2025 is connected to the first end of the seventh resistor 2023, the second end of the seventh resistor 2023 is connected to the first input end of the second optocoupler 2026, the first output end of the second optocoupler 2026 is respectively connected to the first end of the eighth resistor 2024, the second end of the eighth resistor 2024 is connected to the third Vcc end of the control module 102 (as shown by another + in fig. 6), the first end of the eighth resistor 2024 is a second end of the data receiving circuit 202, the second input end of the second optocoupler 2026 is connected to the third analog ground, and the second output end of the second optocoupler 2026 is grounded.
For signal transmission, when the BUS is at a high level, the second PNP transistor 2025 is turned off, no current flows through the seventh resistor 2023, the second optocoupler 2026 is in a turned off state, and the data receiving end of the control module 102 is at a high level. When the BUS is at a low level, the second PNP transistor 2025 is turned on, a current flows through the seventh resistor 2023, the second optocoupler 2026 is in a conductive state, and the data receiving terminal of the control module 102 is at a low level. The data related to the judgment result and the like in the above embodiment is received by switching between the high level and the low level.
The communication module 104 transmits the related data such as the above determination result through the high-low level conversion, so as to transmit the related data determined by the control module 102 to the display panel 105 for corresponding display and control. It will be appreciated that data is transmitted as digital signals, and the digital signals are encoded into their corresponding numbers, letters, or letters for display on the display panel 105. It will be appreciated that the display panel 105 may be a display or the like configured with certain data processing functionality.
In addition, the first and second light couplers 2015 and 2026 in the data transmission circuit 201 and the data reception circuit 202 have a signal isolation function. Specifically, the first and second optocouplers 2015 and 2026 isolate the second and third analog ground terminals, respectively, from the power ground terminal.
Referring to fig. 6, the data transmission circuit 201 and the data reception circuit 202 are connected to each other via a BUS and a third rectifying diode 203. Specifically, the output terminal of the BUS is connected to the cathode of the third rectifying diode 203, and the anode of the third rectifying diode 203 is connected to the first end of the fifth resistor 2021.
It should be noted that, specifications of each component in the above embodiments, for example, a resistance value of the resistor, specifications of the optocoupler, and specifications of the diode and the triode, may be selected according to actual situations, and are not limited. The first PNP transistor 2014 and the second PNP transistor 2025 are both PNP transistors (P-N-P fets).
The liquid level detection device provided by the embodiment of the application further comprises a communication module and a display panel. The communication module and the display panel are used for transmitting a digital signal corresponding to the judgment result to the display panel through the communication module after the ADC module judges whether the current liquid level is in an abnormal state or not so as to display the judgment result through the display panel and/or apply corresponding control to the conductive liquid to be detected according to the judgment result. In addition, the communication module comprises a data sending circuit and a data receiving circuit, the communication module is connected with the control module to transmit the relevant data determined by the control module to the display panel, so that the display panel applies corresponding control to the conductive liquid to be detected according to the relevant data, the corresponding control to be applied can be accurately controlled according to the specific condition of the current liquid level of the conductive liquid to be detected, potential safety hazards are eliminated, and the safety and the reliability of relevant equipment using the liquid level detection device are improved.
In a possible design, the liquid level detection device that this application embodiment provided can also set up wireless WIFI module and/or voice call module behind the display panel to strengthen liquid level detection device's human-computer interaction, and then improve the thing of the equipment that uses liquid level detection device and ally oneself with the intellectuality, effectively improve the intelligent degree of water heater for example.
The following describes in detail embodiments of a liquid level detection method provided in an embodiment of the present application, and the liquid level detection method is applied to any one of the liquid level detection apparatuses in the embodiments.
Fig. 7 is a schematic flow chart of a liquid level detection method provided in the embodiment of the present application, and as shown in fig. 7, the liquid level detection method includes:
s101: and initializing the control module and controlling the PWM module to output pulse signals.
The pulse signal is used for providing working pulse for a detection module in the liquid level detection device.
The liquid level detection method provided by the embodiment of the application can be written into a corresponding software program in a computer instruction or computer program mode, and the corresponding software program is run first to initialize the control module, for example, a clock module, an ADC module, a PWM module, a UART (Universal Asynchronous Receiver/Transmitter) module, a timer module, a GPIO (General-Purpose-Output port) module, and other related modules in the initialization control module. It will be understood that the relevant data such as global variables and local variables in the software program are also initialized.
In addition, the relevant modules included in the control module include, but are not limited to, the above listed modules.
After the initialization work is finished, the corresponding PWM module is controlled to output a pulse signal for the liquid level detection module in the liquid level detection device, wherein the pulse signal is a working pulse of the detection module.
S102: and acquiring a voltage signal of the conductive liquid to be detected on the detection end of the liquid level detection device.
When the liquid level of the conductive liquid to be detected changes, the resistance value of the detection probe changes, and the voltage of the detection end changes accordingly. Based on the rule, a voltage signal of a detection end in the liquid level detection device is further acquired.
S103: and determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
And after the voltage signal of the detection end is obtained, the current liquid level of the conductive liquid to be detected is reversely deduced according to the corresponding relation between the voltage signal and the liquid level of the conductive liquid to be detected. The corresponding relationship is a preset mapping relationship, and the preset mapping relationship may be obtained in advance, for example, the conductive liquid to be detected with different liquid levels is injected, and the voltage of the detection end is obtained at the same time, so as to obtain the corresponding relationship between the voltage and the liquid level, for example, a corresponding curve, a corresponding mapping table, and the like. Therefore, in actual working conditions, when the conductive liquid to be detected is injected, the voltage signal of the detection end is obtained, and the current liquid level can be reversely deduced according to the corresponding relation.
In addition, it can be understood that the current liquid level is in the form of a digital signal, and the voltage signal is an analog signal, so that the step further includes conversion of the relevant signal, for example, the analog signal is converted into a corresponding digital signal by an ADC module in the control module, and for a specific conversion process, the corresponding function of the ADC module is followed, and details are not repeated herein.
The liquid level detection method provided by the embodiment of the application is applied to the liquid level detection device provided by the embodiment of the application, the control module is initialized firstly, the PWM module is controlled to output the pulse signal, and the pulse signal is used for providing the working pulse signal for the detection module in the liquid level detection device. Then, along with the liquid level change of the conductive liquid to be detected, a voltage signal of the conductive liquid to be detected on a detection end of the liquid level detection device is obtained, and the current liquid level of the conductive liquid to be detected is further determined according to the voltage signal and a preset mapping relation, so that the liquid level of the conductive liquid to be detected is detected, data guidance is provided for a plurality of application scenes needing to obtain the current liquid level, and the safety and the reliability of relevant equipment for configuring the liquid level detection device are improved.
Fig. 8 is a schematic flow chart of another liquid level detection method provided in the embodiment of the present application, and as shown in fig. 8, the method includes:
s201: and initializing the control module and controlling the PWM module to output pulse signals.
The pulse signal is used for providing working pulse for a detection module in the liquid level detection device.
S202: and acquiring a voltage signal of the conductive liquid to be detected on the detection end of the liquid level detection device.
S203: and determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
The implementation manner and the corresponding principle of steps S201 to S203 are similar to those of steps S101 to S103 in the embodiment shown in fig. 7, and reference may be made to the foregoing detailed description for details, which is not repeated herein.
S204: and judging whether the current liquid level is in an abnormal state or not.
After the current liquid level is determined, it is also determined whether the current liquid level is in an abnormal state. For example, a liquid level threshold corresponding to the abnormal state may be set, the current liquid level is compared with the liquid level threshold, if the current liquid level meets the liquid level threshold, that is, if the determination result is yes, it indicates that the current liquid level is in the abnormal state, and step S205 is executed. Otherwise, it indicates that the current liquid level is not in an abnormal state, and step S206 is executed.
It will be appreciated that the level threshold corresponding to an abnormal condition may be set according to the actual situation, for example, an abnormal condition may refer to a level below 10% of full or a level above 90% of full. The full amount refers to the maximum volume of the relevant container containing the conductive liquid to be detected, which is set when the container leaves the factory, and the corresponding specific value is determined according to the actual working condition, which is not limited in this embodiment.
S205: and the reset control module is used for correspondingly executing the flag bits of the global variable and the local variable in the program, and transmitting the reset flag bits and the abnormal state to the display panel for displaying.
S206: and transmitting the current liquid level to a display panel for displaying.
After the abnormal state is judged, if the current liquid level is in the abnormal state, flag bits of global variables and local variables of an execution program in a software program corresponding to the control module are reset. And then, transmitting the reset mark position and the determined abnormal state to a display panel in a digital signal mode for displaying.
Otherwise, if the current liquid level is determined not to be in the abnormal state, that is, the current liquid level is in the normal state, the current liquid level is transmitted to the display panel in a digital signal mode for displaying.
S207: and continuously controlling the PWM module to output pulse signals so as to circulate the liquid level detection method.
And after the current liquid level is judged not to be in an abnormal state and is transmitted to the display panel, continuously controlling the PWM module to output a pulse signal, and continuously detecting the current liquid level of the conductive liquid to be detected by a circulating liquid level detection method.
Optionally, in an application scenario that heating control needs to be performed on the conductive liquid to be detected, when it is determined that the current liquid level is not in an abnormal state, the heating pipe is turned on to perform heating control on the conductive liquid to be detected. For example, in a water heater with a liquid level detection device, when the current liquid level of water injected into a liner of the water heater is determined not to be in an abnormal state, a heating pipe is started to heat the water, so that potential safety hazards caused by heating under the condition that the liquid level is unknown are avoided.
The liquid level detection method provided by the embodiment of the application is applied to the liquid level detection device provided by the embodiment of the application, the liquid level of the conductive liquid to be detected is detected, after the current liquid level of the conductive liquid to be detected is obtained, whether the current liquid level is in an abnormal state or not is judged, if yes, the mark positions of the global variable and the local variable in the control module are reset, and the reset mark positions and the abnormal state are transmitted to the display panel to be displayed. And if the liquid level is not in the abnormal state, transmitting the current liquid level to a display panel for displaying. Furthermore, the PWM module is continuously controlled to output pulse signals so as to circulate the liquid level detection method, thereby realizing the real-time feedback of the current liquid level of the conductive liquid to be detected, and enabling the liquid level detection device to be more intelligent so as to meet the application requirements of the current Internet of things. In addition, in an application scene that the injected conductive liquid to be detected needs to be heated, the heating pipe can be started to heat the current liquid level when the current liquid level is determined not to be in an abnormal state, so that potential safety hazards such as dry burning are eliminated. Therefore, data guidance is provided for a plurality of application scenes needing to know the current liquid level, and the safety and the reliability of relevant equipment for configuring the liquid level detection device are improved.
Fig. 9 is a schematic structural diagram of a liquid level detection device provided in an embodiment of the present application. The liquid level detection means may be implemented by software, hardware or a combination of both.
As shown in fig. 9, the liquid level detecting apparatus 300 provided in this embodiment includes:
the first processing module 301 is configured to initialize the control module and control the PWM module to output a pulse signal.
The pulse signal is used for providing working pulse for a detection module in the liquid level detection device.
An obtaining module 302, configured to obtain a voltage signal of the conductive liquid to be detected on a detection end of the liquid level detection device.
And the second processing module 303 is configured to determine the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relationship.
In one possible design, the liquid level detection apparatus 300 may further include: and a third processing module. The third processing module is configured to:
judging whether the current liquid level is in an abnormal state;
if yes, resetting the flag bits of the global variable and the local variable in the corresponding execution program of the control module, and transmitting the reset flag bits and the abnormal state to a display panel for displaying;
if not, the current liquid level is transmitted to the display panel for displaying.
In one possible design, the third processing module is further configured to:
and continuously controlling the PWM module to output pulse signals so as to circulate the liquid level detection method.
In one possible design, the third processing module is further configured to:
and if the current liquid level is determined not to be in the abnormal state, starting the heating pipe to heat the conductive liquid to be detected through the heating pipe.
The above device embodiments provided in the present application are merely illustrative, and the module division is only one logic function division, and there may be another division manner in actual implementation. For example, multiple modules may be combined or may be integrated into another system. The coupling of the various modules to each other may be through interfaces that are typically electrical communication interfaces, but mechanical or other forms of interfaces are not excluded. Thus, modules described as separate components may or may not be physically separate, may be located in one place, or may be distributed in different locations on the same or different devices.
It should be noted that the liquid level detection apparatus provided in the above-mentioned embodiment can be used for executing the corresponding steps of the liquid level detection method provided in the above-mentioned embodiment, and the specific implementation manner, principle and technical effect are similar to those of the above-mentioned method embodiment, and are not described herein again.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 10, an electronic device 400 according to the embodiment includes: at least one processor 401 and memory 402. Fig. 10 shows an electronic device as an example of a processor.
The memory 402 is communicatively connected to the processor 401 and stores instructions executable by the processor 401, and the instructions are executed by the processor 401, so that the processor 401 can execute the steps of the liquid level detection method in the foregoing method embodiments, and reference may be made to the related description in the foregoing method embodiments.
The processor 401 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
Alternatively, the memory 402 may be separate or integrated with the processor 401. When the memory 402 is a device independent of the processor 401, the electronic device 400 may further include:
a bus 403 for connecting the processor 401 and the memory 402. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Alternatively, in a specific implementation, if the memory 402 and the processor 401 are integrated on a chip, the memory 402 and the processor 401 may communicate through an internal interface.
Embodiments of the present application also provide a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the steps of the liquid level detection method in the above embodiments. For example, the readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In addition, a computer program product is provided in an embodiment of the present application, and includes computer instructions, and the computer instructions, when executed by the processor, implement the liquid level detection method in the embodiment of the method described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (19)

1. A liquid level detection device, comprising: the device comprises a detection module, a control module and a power supply module;
the first end of the detection module is connected with an ADC (analog to digital converter) module of the control module, and the second end of the detection module is connected with a first Vcc (voltage source) end of the control module;
the detection end is positioned at the first end of the detection module, the second end of the detection module and the intersection point of the detection probe, and the detection probe is placed in the conductive liquid to be detected;
the output end of the power supply module is respectively connected with the working voltage input ends of the detection module and the control module, and the power supply module at least comprises a power supply control chip, a transformer and a voltage stabilizing circuit which are connected in series.
2. The apparatus of claim 1, wherein a first terminal of the power control chip is coupled between the input terminal of the power module and a first analog ground terminal, and a second terminal of the voltage regulator circuit is coupled between the output terminal of the power module and a power ground terminal.
3. The apparatus of claim 2, wherein the input end of the power module inputs a first DC voltage and is converted into a first AC voltage through the power control chip, the first AC voltage is transformed into a second AC voltage through the transformer, the second AC voltage is converted into a second DC voltage through a first rectifying diode, the second DC voltage is filtered into a third DC voltage through a first capacitor and is output through the output end of the power module, and the voltage regulator circuit comprises the first rectifying diode and the first capacitor which are connected in series.
4. The liquid level detection apparatus of claim 1, wherein the detection module comprises at least: the voltage dividing resistor, the rectifying and filtering circuit and the detection probe are arranged on the detection circuit;
the first end of the voltage division resistor is the second end of the detection module, and the second end of the voltage division resistor is respectively connected with the first end of the rectification filter circuit, the first end of the detection probe and the pulse signal input end of the control module through the detection end;
the second end of the rectification filter circuit is the first end of the detection module;
if the conductive liquid to be detected is water in a natural state, the detection module further comprises a blocking capacitor;
the first end of the blocking capacitor is connected with the detection end, and the second end of the blocking capacitor is connected with the first end of the detection probe.
5. The fluid level detection apparatus of claim 4, wherein the rectifying-filtering circuit comprises: the second rectifier diode, the first resistor and the first capacitor;
the positive pole of the second rectifier diode is used as the first end of the rectifier filter circuit to be connected with the detection end, the negative pole of the second rectifier diode is connected with the first end of the first resistor, the second end of the first resistor is used as the second end of the rectifier filter circuit to be connected with the ADC module and the first end of the second capacitor respectively, and the second end of the second capacitor is grounded.
6. The fluid level detection apparatus of any one of claims 1-5, further comprising: a communication module and a display panel;
after the current liquid level is determined, the ADC module judges whether the current liquid level is in an abnormal state or not, and transmits a digital signal corresponding to a judgment result to the display panel through the communication module;
and the display panel displays the judgment result and/or applies corresponding control to the conductive liquid to be detected according to the judgment result.
7. The fluid level detection apparatus of claim 6, wherein the communication module comprises a data transmission circuit and a data reception circuit;
the first end of the data sending circuit is connected to the data sending end of the control module, the second end of the data sending circuit is connected with the first end of the data receiving circuit through a BUS and a third rectifying diode, and the second end of the data receiving circuit is connected with the data receiving end of the control module.
8. The liquid level detection apparatus of claim 6, wherein the data transmission circuit comprises at least: the circuit comprises a second resistor, a third resistor, a fourth resistor, a first PNP triode and a first optocoupler;
the first end of second resistance does data transmission circuit's first end, the second end of second resistance respectively with the first end of third resistance with the base of first PNR triode is connected, the second end of third resistance respectively with control module's second Vcc end with the projecting pole of first PNP triode is connected, the collecting electrode of first PNP triode with the first end of fourth resistance is connected, the second end of fourth resistance with the first input of first opto-coupler is connected, the first output of first opto-coupler with the input of BUS BUS is connected, the second input ground connection of first opto-coupler, the second output of first opto-coupler is connected with second simulation ground.
9. The liquid level detection apparatus of claim 6, wherein the data receiving circuit comprises at least: the first PNP triode is connected with the first resistor and the second resistor;
the first end of the fifth resistor is the first end of the data receiving circuit, the second end of the fifth resistor is respectively connected with the first end of the sixth resistor and the base electrode of the second PNP triode, a second end of the sixth resistor is respectively connected with the Vin end of the control module and the emitter of the second PNP triode, the collector of the second PNP triode is connected with the first end of the seventh resistor, the second end of the seventh resistor is connected with the first input end of the second optocoupler, a first output end of the second optocoupler is respectively connected with a first end of the eighth resistor, a second end of the eighth resistor is connected with a third Vcc end of the control module, the first end of the eighth resistor is the second end of the data receiving circuit, the second input end of the second optical coupler is connected with the third analog ground end, and the second output end of the second optical coupler is grounded.
10. The liquid level detection device of claim 7, wherein an output of the BUS is connected to a cathode of the third rectifying diode, and an anode of the third rectifying diode is connected to a first end of the fifth resistor.
11. The liquid level detection device according to claim 4, wherein the liquid level detection device is applied to a water heater if the conductive liquid to be detected is water in a natural state.
12. A liquid level detection method applied to the liquid level detection apparatus according to any one of claims 1 to 11, the method comprising:
initializing a control module, and controlling a PWM module to output a pulse signal, wherein the pulse signal is used for providing a working pulse for a detection module in the liquid level detection device;
acquiring a voltage signal of the conductive liquid to be detected on a detection end in the liquid level detection device;
and determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
13. The method of claim 12, further comprising, after determining the current liquid level:
judging whether the current liquid level is in an abnormal state or not;
if yes, resetting the flag bits of the global variable and the local variable in the corresponding execution program of the control module, and transmitting the reset flag bits and the abnormal state to a display panel for displaying;
and if not, transmitting the current liquid level to a display panel for displaying.
14. The method of claim 13, further comprising, after transmitting the current fluid level to the display panel:
and continuously controlling the PWM module to output the pulse signal so as to circulate the liquid level detection method.
15. The liquid level detection method according to claim 13, wherein if it is determined that the current liquid level is not in the abnormal state, a heating pipe is turned on to heat the conductive liquid to be detected through the heating pipe.
16. A liquid level detection device, comprising:
the first processing module is used for initializing the control module and controlling the PWM module to output a pulse signal, and the pulse signal is used for providing working pulses for a detection module in the liquid level detection device;
the acquisition module is used for acquiring a voltage signal of the conductive liquid to be detected on the detection end of the liquid level detection device;
and the second processing module is used for determining the current liquid level of the conductive liquid to be detected according to the voltage signal and a preset mapping relation.
17. An electronic device, characterized in that,
a processor; and
a memory communicatively coupled to the processor; wherein the memory stores instructions executable by the processor to enable the processor to perform the method of any of claims 12-15.
18. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the liquid level detection method of any one of claims 12-15.
19. A computer program product comprising computer instructions, characterized in that the computer instructions, when executed by a processor, implement the liquid level detection method of any one of claims 12-15.
CN202110061494.4A 2021-01-18 2021-01-18 Liquid level detection device and liquid level detection method and equipment Pending CN114812741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110061494.4A CN114812741A (en) 2021-01-18 2021-01-18 Liquid level detection device and liquid level detection method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110061494.4A CN114812741A (en) 2021-01-18 2021-01-18 Liquid level detection device and liquid level detection method and equipment

Publications (1)

Publication Number Publication Date
CN114812741A true CN114812741A (en) 2022-07-29

Family

ID=82524334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110061494.4A Pending CN114812741A (en) 2021-01-18 2021-01-18 Liquid level detection device and liquid level detection method and equipment

Country Status (1)

Country Link
CN (1) CN114812741A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117008070A (en) * 2023-10-07 2023-11-07 成都世源频控技术股份有限公司 Radar simulator with electric leakage detection function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117008070A (en) * 2023-10-07 2023-11-07 成都世源频控技术股份有限公司 Radar simulator with electric leakage detection function
CN117008070B (en) * 2023-10-07 2023-12-19 成都世源频控技术股份有限公司 Radar simulator with electric leakage detection function

Similar Documents

Publication Publication Date Title
US9000935B2 (en) Battery management system
EP3197008B1 (en) Charging device for mobile terminal
US20120166173A1 (en) Method and system for determining an arbitrary charging protocol in usb charging ports
CN109726059B (en) Server test system
CN209690871U (en) A kind of off-peak electrification system and device
US9838079B2 (en) Power line communication apparatus and method, and load power monitoring apparatus and method using same
CN114812741A (en) Liquid level detection device and liquid level detection method and equipment
EP3327896B1 (en) Power supply control method and apparatus of power strip, computer program and recording medium
CN104714916A (en) Detection system for plugging or unplugging of external equipment on USB interface
CN103684407A (en) Otg device
CN206331032U (en) A kind of alternating current-direct current input voltage change detection circuit
CN110297445B (en) Micro-control electric appliance with WiFi plugging module
CN209877285U (en) Circuit for judging running state of compressor
CN101950266B (en) Adaptive detection routing switching method
CN105937129A (en) Washing machine and communication control system thereof
CN105445595B (en) A kind of fire hazard monitoring detection device
WO2013070159A1 (en) Climate control system
CN109815182A (en) A kind of hardware device recognition methods and device
CN210573761U (en) Interface conversion circuit and signal detection device
CN111628551B (en) Power supply circuit, power supply system and power supply method
CN111030722B (en) Communication circuit and communication method for battery management system
KR102175630B1 (en) Electronic device comprising power transmission path selecting circuit for reducing standby power
CN207427205U (en) Intelligent appliance wireless universal control circuit board
CN106649178B (en) Equipment interface and equipment interface mode switching device and method
CN206370678U (en) A kind of USB interface of computer output voltage detects protection circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination