CN114779843A - Water outlet control method and device, computer equipment and storage medium - Google Patents

Water outlet control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114779843A
CN114779843A CN202210464906.3A CN202210464906A CN114779843A CN 114779843 A CN114779843 A CN 114779843A CN 202210464906 A CN202210464906 A CN 202210464906A CN 114779843 A CN114779843 A CN 114779843A
Authority
CN
China
Prior art keywords
liquid level
signal
cup edge
cup
distance
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
CN202210464906.3A
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.)
Audiowell Electronics Guangdong Co ltd
Original Assignee
Audiowell Electronics Guangdong 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 Audiowell Electronics Guangdong Co ltd filed Critical Audiowell Electronics Guangdong Co ltd
Priority to CN202210464906.3A priority Critical patent/CN114779843A/en
Publication of CN114779843A publication Critical patent/CN114779843A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D9/00Level control, e.g. controlling quantity of material stored in vessel
    • G05D9/12Level control, e.g. controlling quantity of material stored in vessel characterised by the use of electric means
    • 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/296Acoustic waves
    • G01F23/2962Measuring transit time of reflected waves
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Thermal Sciences (AREA)
  • Fluid Mechanics (AREA)
  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)

Abstract

The application relates to a water outlet control method and device, an automatic water adding module and a water drinking device. The method is applied to the automatic water adding module, the automatic water adding module is arranged above the base of the water drinking equipment, the automatic water adding module comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, the water drinking equipment comprises a water outlet switch, the processor is connected with the water outlet switch, and the method comprises the following steps: the processor receives the echo signal cluster and determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster; if no cup is arranged on the base, the water outlet switch is controlled to be closed; if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal. By adopting the method, whether the base has the cup or not can be accurately judged, the water outlet switch is controlled to be turned on or off according to the cup edge signal and the liquid level signal in the echo signal, and the water outlet control precision is improved.

Description

Water outlet control method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of automatic control technologies, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for controlling water discharge.
Background
The traditional household water dispenser needs to be manually opened and closed to achieve a water outlet function, the automation degree is low, the requirement for the convenience and the efficiency of users cannot be met, the intelligent water dispenser is used for actively controlling the water outlet start and stop through keys and controlling the water outlet through memorizing the water quantity, the automation degree is still not high, some non-essential interaction still exists between users and machine equipment, and an automatic water outlet control method is provided for meeting the requirement for users to automatically take water.
The existing automatic water outlet control method usually adopts an infrared sensor or ultrasonic sensor technology, obtains cup characteristic signals in real time through reflected echoes, judges that the current water full state automatically carries out water outlet control, basically avoids redundant actions of a user in the water taking process, however, the automatic water outlet control method has the problems that the intensity of return signals of the infrared sensor for detecting transparent target objects is too low, and blind area signals cannot be detected due to the fact that the blind area is generated by aftershock interference of the ultrasonic sensor, so that the water outlet control precision is not high no matter the infrared sensor technology or the ultrasonic sensor technology is adopted.
Disclosure of Invention
In view of the above, it is necessary to provide a water discharge control method, a water discharge control device, a computer apparatus, a computer readable storage medium, and a computer program product, which can improve the water discharge control accuracy, for solving the technical problem that the automatic water discharge control method has low water discharge control accuracy.
In a first aspect, the application provides a water outlet control method, which is applied to an automatic water adding module, wherein the automatic water adding module is arranged above a base of a water drinking device and comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, the water drinking device comprises a water outlet switch, the processor is connected with the water outlet switch, and the method comprises the following steps:
the processor receives an echo signal cluster, wherein an echo signal in the echo signal cluster is a signal received by the ultrasonic receiving probe after the ultrasonic transmitting probe sends ultrasonic waves;
the processor determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster;
if no cup is arranged on the base, the water outlet switch is controlled to be closed;
if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal.
In one embodiment, determining whether a cup is on the base according to the amplitude and phase of each echo signal in the echo signal cluster comprises:
determining the phase type and the amplitude type of each echo signal in the echo signal cluster according to the amplitude and the phase of each echo signal in the echo signal cluster;
if the phase type and the amplitude type are only one, determining that no cup is arranged on the base;
if the phase type and the amplitude type are both two types, the cup on the base is determined.
In one embodiment, the step of obtaining the cup edge signal and the liquid level signal from the echo signal cluster comprises:
and determining the echo signal with the front phase and the small amplitude in the echo signal cluster as a cup edge signal, and determining the echo signal with the rear phase and the large amplitude in the echo signal cluster as a liquid level signal.
In one embodiment, the controlling the water outlet switch to be turned on or off according to the cup edge signal and the liquid level signal comprises:
according to the cup edge signal and the liquid level signal, obtaining a cup edge distance and a liquid level distance, wherein the cup edge distance is the distance from the cup edge to the automatic water adding module, and the liquid level distance is the distance from the liquid level to the automatic water adding module;
if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, controlling the water outlet switch to be turned on; returning to the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal until the water outlet switch is closed;
and if the difference value between the cup edge distance and the liquid level distance is greater than or equal to a preset threshold value, controlling the water outlet switch to be closed.
In one embodiment, obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal comprises:
according to the cup edge signal, obtaining a cup edge distance data set, and according to the liquid level signal, obtaining a liquid level distance data set;
acquiring the cup edge distance in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and acquiring the liquid level distance in the liquid level distance data set and the number of the liquid level distances in the liquid level distance data set;
obtaining an average value of the cup edge distances by weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and taking the average value of the cup edge distances as the cup edge distances; and obtaining the average value of the liquid level distances by weighted average according to the liquid level distances in the liquid level distance data sets and the quantity of the liquid level distances in the liquid level distance data sets, and taking the average value of the liquid level distances as the liquid level distance.
In one embodiment, the cup edge signal comprises a current cup edge signal and a historical cup edge signal; obtaining a cup edge distance dataset from the cup edge signal, comprising:
acquiring a cup edge distance corresponding to the current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal;
performing outlier separation on a cup edge distance data set corresponding to the current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal to obtain an outlier-processed cup edge data set;
and performing sliding filtering processing according to the cup edge data set after the outlier processing and the cup edge distance corresponding to the current cup edge signal to obtain a cup edge distance data set.
In one embodiment, the liquid level signal comprises a current liquid level signal and a historical liquid level signal; from the level signal, a level distance data set is obtained, comprising:
acquiring a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal;
performing outlier separation on a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal to obtain an outlier-processed liquid level data set;
and performing sliding filtering processing according to the liquid level data set after the outlier processing and the liquid level distance corresponding to the current liquid level signal to obtain a liquid level distance data set.
In a second aspect, the application further provides a water outlet control device. The device comprises:
the signal cluster receiving module is used for receiving an echo signal cluster, wherein an echo signal in the echo signal cluster is a signal received by an ultrasonic receiving probe after an ultrasonic transmitting probe sends ultrasonic waves;
the cup existence confirming module is used for confirming whether a cup exists on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster;
the cup-free control module is used for controlling the water outlet switch to be closed if no cup is arranged on the base;
and the cup control module is used for acquiring a cup edge signal and a liquid level signal from the echo signal cluster if a cup is arranged on the base, and controlling the water outlet switch to be switched on or switched off according to the cup edge signal and the liquid level signal.
According to the water outlet control method and the water outlet control device, whether the base is provided with the cup or not can be accurately judged through the amplitude and the phase of the ultrasonic echo signal, the water outlet switch is turned off when the base is not provided with the cup, the water outlet control precision is improved, when the base is provided with the cup, the liquid level signal can change along with the change of the water outlet amount due to the fact that the cup edge signals received by different cups are different, the water outlet switch is controlled to be turned on or turned off according to the cup edge signals and the liquid level signals in the echo signal, and the water outlet control precision is further improved.
In a third aspect, the present application further provides an automatic water adding module, including: the water outlet control method comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, wherein the ultrasonic transmitting probe is used for transmitting ultrasonic waves, the ultrasonic receiving probe is used for receiving echo signals, and the processor is used for realizing the following steps when the water outlet control method is executed: the processor receives an echo signal cluster, wherein an echo signal in the echo signal cluster is a signal received by the ultrasonic receiving probe after the ultrasonic transmitting probe sends ultrasonic waves; the processor determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster; if no cup is arranged on the base, the water outlet switch is controlled to be closed; if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal.
The automatic water adding module comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, wherein the ultrasonic transmitting probe sends ultrasonic waves, and the ultrasonic receiving probe receives echo signals; the water outlet control method executed by the processor can accurately judge whether the base has a cup or not through the amplitude and the phase of the ultrasonic echo signal, the water outlet switch is turned off when no cup is arranged on the base, and the accuracy of water outlet control is improved.
In a fourth aspect, the present application further provides a water dispenser device, comprising: automatic module, base and the switch of adding water, the automatic module of adding water sets up in drinking water equipment's base top, and drinking water equipment includes the switch of going out water, and the treater and the switch of going out water of the automatic module of adding water are connected.
Above-mentioned drinking water equipment includes automatic module, base and the switch of adding water, and the automatic module of adding water sets up in drinking water equipment's base top, and drinking water equipment includes the switch of adding water, and the treater and the switch of going out of the water of the automatic module of adding water are connected, can control the switch of going out water according to the processing result of treater in the automatic module of adding water and open or close, realize that drinking water equipment adds the water function automatically.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of an application environment for the method for effluent control;
FIG. 2 is a flow chart illustrating a water discharge control method according to an embodiment;
FIG. 3 is a flow chart illustrating a method for controlling water discharge according to another embodiment;
FIG. 4 is a flow chart illustrating a method for controlling water discharge according to another embodiment;
FIG. 5 is a flow chart illustrating a water discharge control method according to yet another embodiment;
FIG. 6 is a schematic sub-flow chart of S840 in one embodiment;
FIG. 7 is a schematic sub-flow diagram of S842 in an embodiment;
FIG. 8 is a schematic view of a sub-flow of S842 in another embodiment;
FIG. 9 is a diagram of an application environment of the effluent control method in another embodiment;
FIG. 10 is a schematic view illustrating a flow of controlling a water outlet switch by the automatic water adding module according to an embodiment;
FIG. 11 is a signal image diagram of a cluster of echo signals in one embodiment;
FIG. 12 is a schematic flow chart illustrating a second filtering process for echo signals in one embodiment;
FIG. 13 is a flow chart illustrating a method for controlling the water outlet of the household water dispenser according to an embodiment;
FIG. 14 is a block diagram of the structure of a water discharge control apparatus in one embodiment;
FIG. 15 is a diagram of an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The water outlet control method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The automatic water adding module comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, the water drinking equipment comprises a water outlet switch, the processor is connected with the water outlet switch, the processor receives an echo signal cluster, and echo signals in the echo signal cluster are signals received by the ultrasonic receiving probe after the ultrasonic transmitting probe transmits ultrasonic waves; the processor determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster; if no cup is arranged on the base, the water outlet switch is controlled to be closed; if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal.
In one embodiment, as shown in fig. 2, a method for controlling water output is provided, which is described by taking the method as an example for being applied to the processor in fig. 1, and includes the following steps:
s200, receiving an echo signal cluster, wherein echo signals in the echo signal cluster are signals received by an ultrasonic receiving probe after an ultrasonic transmitting probe sends ultrasonic waves.
The ultrasonic wave transmitting probe transmits a beam of ultrasonic wave to a measured object, the ultrasonic wave is reflected by the surface of the measured object, the ultrasonic wave receiving probe receives echo signals reflected by the ultrasonic wave, the ultrasonic wave is transmitted in a beam form, the reflected echo signals are called echo signal clusters, the echo signal clusters comprise a plurality of echo signals, after the ultrasonic wave receiving probe receives the echo signal clusters, the echo signal clusters are transmitted to the processor, and the processor receives the echo signal clusters.
Wherein, the ultrasonic transmitting probe and the ultrasonic receiving probe are the components of the ultrasonic sensor and are positioned at the front end of the ultrasonic sensor, the ultrasonic sensor generally has only one ultrasonic probe which is used for transmitting ultrasonic waves and receiving ultrasonic wave echo transmitted back by an object, because the ultrasonic probe of the ultrasonic sensor transmits the ultrasonic waves through high-frequency vibration, the ultrasonic wave can be interfered by residual vibration caused by the ultrasonic waves in the process of receiving echo signals to generate a detection blind area, the detection distance of the ultrasonic sensor is limited due to the overlarge detection blind area, when the object to be detected is positioned in the detection blind area of the ultrasonic sensor, effective echo signals can not be discriminated, therefore, the ultrasonic transmitting probe transmits the ultrasonic waves, the ultrasonic receiving probe receives the echo signals, and the problem of the detection blind area caused by the overlarge residual vibration of a single ultrasonic probe can be avoided, and the near zone detection effect is good.
S400, determining whether a cup exists on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster.
Wherein, the precise position reached by the ultrasonic wave in the periodic motion is called phase, and is generally expressed by the degree unit of a circle, the amplitude is the maximum absolute value of the instantaneous appearance of the ultrasonic wave in one motion period, the phase and the amplitude are important characteristic factors for describing the ultrasonic wave, since the echo signals are also ultrasonic waves, each echo signal has a corresponding amplitude and phase, the ultrasonic waves are distributively applied to the object to be measured, the echo signals reflected at different positions have different signal paths and signal strengths, therefore, the flight times of echo signals transmitted back to the ultrasonic receiving probe through different paths are different, the echo signals are represented as protruded signals with successive differences on a time axis on a signal image, the phase of the echo signals is a horizontal axis coordinate on the signal image, and the amplitude of the echo signals is a vertical axis coordinate on the signal image.
Wherein, when not having the cup on the base, ultrasonic receiving probe can only detect the echo signal that the base reflects, and when having the cup on the base, ultrasonic receiving probe can detect the echo signal that cup edge and liquid level reflect, has the echo signal that the cup detected and does not have the cup on the base and is different promptly, has because every echo signal all has amplitude and phase place, consequently, this application proposes to confirm whether there is the cup on the base according to the amplitude and the phase place of each echo signal in the echo signal cluster.
S600, if the cup is not arranged on the base, the water outlet switch is controlled to be closed.
Wherein, the cup is not placed at the base, the cup or empty when taking away the cup in-process of adding water away, because there is not the cup on the base, automatic water adding equipment should control out the water switch and close in order to stop going out water, general automatic water adding module can't judge whether the cup exists when detecting the liquid level, this can lead to the treater to lack to take away the cup and empty cup and take away the emergency treatment of sudden behavior such as cup away to adding water in-process, this application can be whether there is the cup on the real-time detection base, whether detect cup and detection liquid level go on in step, when taking away the in-process of adding water away, the cup can be discerned immediately to automatic water adding module and put aside, and close the operation of water switch, can avoid still continuing the dangerous condition of adding water when not having the cup on the base.
And S800, if the cup is arranged on the base, acquiring a cup edge signal and a liquid level signal from the echo signal cluster, and controlling the water outlet switch to be turned on or turned off according to the cup edge signal and the liquid level signal.
Wherein, when the cup is placed on the base, the cup can be in a water state or an empty water state, if the cup is in the water state, the ultrasonic receiving probe detects an echo signal reflected by the cup edge of the cup and an echo signal reflected by liquid in the cup, the echo signal reflected by the cup edge of the cup is called a cup edge signal, the echo signal reflected by the liquid in the cup is called a liquid level signal, if the cup is in the empty water state, the ultrasonic receiving probe detects the cup edge signal and the echo signal reflected by the cup bottom of the cup, because the echo reflected by the cup bottom and the liquid level signal when the liquid level is zero have the same phase and amplitude, and the liquid level signal when the liquid level is zero is used as the echo signal reflected by the cup bottom, if the cup is in the empty water state, the echo signal cluster also comprises the cup edge signal and the liquid level signal, namely, if the cup is on the base, the cup edge signal and the liquid level signal are obtained from the echo signal cluster.
Wherein, add water the in-process at automatic water equipment, along with the increase of the water yield in the cup, liquid level signal constantly changes, and the cup is more stable along the signal, and is far away along the cup when the liquid level apart from the cup, and the cup has a small amount of liquid for empty cup or in the cup, then controls the switch and opens, and when the liquid level was close the cup edge, the cup was about to fill the cup, then controls the switch and closes, and according to cup along signal and liquid level signal control switch opening or closing promptly.
According to the water outlet control method, whether the base is provided with the cup or not can be accurately judged through the amplitude and the phase of the ultrasonic echo signal, the water outlet switch is turned off when the base is not provided with the cup, the water outlet control precision is improved, when the base is provided with the cup, the liquid level signal can change along with the change of the water outlet amount due to the fact that the cup edge signals received by different cups are different, the water outlet switch is controlled to be turned on or turned off according to the cup edge signals and the liquid level signals in the echo signal, and the water outlet control precision is further improved.
In one embodiment, as shown in fig. 3, determining whether there is a cup on the base according to the amplitude and phase of each echo signal in the echo signal cluster comprises:
s420, determining the phase type and the amplitude type of each echo signal in the echo signal cluster according to the amplitude and the phase of each echo signal in the echo signal cluster;
s440, if the phase type and the amplitude type are only one, determining that no cup is on the base;
and S460, if the phase type and the amplitude type are both two, determining that a cup is arranged on the base.
In this embodiment, the phase type and the amplitude type of each echo signal in the echo signal cluster are determined according to the amplitude and the phase of each echo signal in the echo signal cluster, specifically, each echo signal has an amplitude and a phase, the distance between the cup edge and the liquid level with respect to the ultrasonic receiving probe is different, and the reflected signal strength is different, the echo signal cluster includes a base signal, a cup edge signal and a liquid level signal, the phase type of the echo signal cluster includes the phase type of the base signal, the phase type of the cup edge signal and the phase type of the liquid level signal, the amplitude type of the echo signal cluster includes the amplitude type of the base signal, the amplitude type of the cup edge signal and the amplitude type of the liquid level signal, the phase of the base signal, the phase of the cup edge signal and the phase of the liquid level signal in the echo signal cluster are all different, and the amplitude of the base signal, the amplitude of the cup edge signal and the amplitude of the liquid level signal are also all different, the method comprises the steps of collecting echo signals with the same phase type from an echo signal cluster, determining the phase type of the echo signal cluster, collecting echo signals with the same amplitude type, determining the amplitude type of the echo signal cluster, wherein if the phase type and the amplitude type are only one, the phase type is the phase of a base signal, the amplitude type is the amplitude of the base signal, determining that a cup does not exist on the base, if the phase type and the amplitude type are both two, the phase type comprises the phase of a cup edge signal and the phase of a liquid level signal, the amplitude type comprises the amplitude of the cup edge signal and the amplitude of the liquid level signal, and determining that the cup exists on the base.
The scheme of above-mentioned embodiment, through amplitude and the phase place of each echo signal in the echo signal cluster, confirm the phase place kind and the amplitude kind of echo signal cluster, if phase place kind and amplitude kind all only have one, then confirm not have the cup on the base, if phase place kind and amplitude kind all have two kinds, then confirm to have the cup on the base, whether have the cup on the phase place and the amplitude real-time detection base that utilize ultrasonic wave echo signal cluster, whether detect whether have the cup with detect the liquid level synchronous go on, when tak eoff the cup away at the in-process of adding water, can discern the cup immediately and remove, place the cup on the base, can discern immediately that there is the cup, can improve the play water control accuracy of automatic water equipment that adds.
In one embodiment, as shown in fig. 4, the obtaining of the cup edge signal and the liquid level signal from the echo signal cluster comprises:
s820, determining the echo signal with the front phase and the small amplitude in the echo signal cluster as a cup edge signal, and determining the echo signal with the rear phase and the large amplitude in the echo signal cluster as a liquid level signal.
In this embodiment, the echo signal is represented as a protrusion signal having a sequential difference on the time axis on the signal image, and the distance between the cup edge and the ultrasonic receiving probe is short and the signal intensity is small relative to the liquid level signal, so that the echo signal with a smaller amplitude and a forward phase in the echo signal cluster is determined as the cup edge signal, and the echo signal with a larger amplitude and a backward phase in the echo signal cluster is determined as the liquid level signal, and meanwhile, the phase and the amplitude of the cup edge signal are relatively stable, and as the water amount increases, the phase and the amplitude of the liquid level signal are closer to the phase and the amplitude of the cup edge signal.
According to the scheme of the embodiment, the echo signal with the front phase and the small amplitude in the echo signal cluster is determined as the cup edge signal, the echo signal with the back phase and the large amplitude in the echo signal cluster is determined as the liquid level signal, the phase and the amplitude of the cup edge signal are relatively stable, the phase and the amplitude of the liquid level signal change along with the change of the water amount, the cup edge signal and the liquid level signal are separately processed, the liquid level change in the cup can be detected in real time, and the accuracy of water outlet control of the automatic water adding module is improved.
In one embodiment, as shown in fig. 5, the controlling the water outlet switch to be turned on or off according to the cup edge signal and the liquid level signal comprises:
s840, acquiring a cup edge distance and a liquid level distance according to the cup edge signal and the liquid level signal, wherein the cup edge distance is the distance from the cup edge to the automatic water adding module, and the liquid level distance is the distance from the liquid level to the automatic water adding module;
s860, if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, controlling the water outlet switch to be turned on; returning to the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal until the water outlet switch is closed;
and S880, if the difference value between the cup edge distance and the liquid level distance is greater than or equal to a preset threshold value, controlling the water outlet switch to be turned off.
In this embodiment, according to cup edge signal and liquid level signal, obtain cup along distance and liquid level distance, specifically, the cup is along the distance to the automatic module of adding water with the liquid level to the distance of the automatic module of adding water different, the time of flight of the cup edge signal that reflects back through cup edge and liquid level is different with the time of flight of liquid level signal, calculate the time of flight of cup edge signal, according to the speed of ultrasonic wave, obtain the cup along the distance to the automatic module of adding water, record the cup along the distance to the automatic module of adding water into the cup along the distance, calculate the time of flight of liquid level signal, according to the speed of ultrasonic wave, obtain the distance of liquid level to the automatic module of adding water, record the liquid level distance into the distance of liquid level to the automatic module of adding water into the liquid level. The cup is along the distance of distance to the automatic module of adding water for the cup along, specifically, can be for the cup along the distance to ultrasonic receiving probe in the automatic module of adding water, and the liquid distance is the liquid level and adds the distance of water the module for the automation, specifically, can be for the liquid level to the distance of ultrasonic receiving probe in the automatic module of adding water. Making a difference between the cup edge distance and the liquid level distance, obtaining a difference value between the cup edge distance and the liquid level distance, if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, the liquid level in the cup is lower, the water quantity is less, a water outlet switch is controlled to be turned on, an ultrasonic receiving probe continuously receives echo signal clusters in real time, along with the increase of the water outlet quantity, the liquid level becomes higher, the liquid level distance becomes smaller, the cup edge distance is unchanged, the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal is returned, the liquid level distance is updated until the water outlet switch is turned off, if the difference value between the cup edge distance and the liquid level distance is larger than or equal to the preset threshold value, the liquid level in the cup is higher, the water quantity is increased, the cup is close to full, and the water outlet switch is controlled to be turned off to stop adding water.
The scheme of above-mentioned embodiment, through cup edge signal and liquid level signal, obtain cup edge distance and liquid level distance, whether utilize the difference of cup edge distance and liquid level distance to exceed and predetermine the threshold value and judge whether the cup is close to full cup, and then control the switch of going out water and open or close, the ultrasonic wave detects the water full state in real time, the difference of cup edge distance and liquid level distance in the cup does not reach and predetermines the threshold value, then control the switch of going out water and open, the difference of cup edge distance and liquid level distance in the cup reaches or surpasses and predetermine the threshold value, then control the switch of going out water and close immediately, avoid the cup to overflow the full risk, this kind of method of controlling out water through the ultrasonic wave detects the water full state in real time, the precision of going out water control has been improved.
In one embodiment, as shown in FIG. 6, obtaining the cup edge distance and the liquid level distance from the cup edge signal and the liquid level signal comprises:
s842, obtaining a cup edge distance data set according to the cup edge signal, and obtaining a liquid level distance data set according to the liquid level signal;
s844, acquiring the cup edge distance in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and acquiring the liquid level distance in the liquid level distance data set and the number of the liquid level distances in the liquid level distance data set;
s846, obtaining an average value of the cup edge distances through weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and taking the average value of the cup edge distances as the cup edge distances; and obtaining the average value of the liquid level distances by weighted average according to the liquid level distances in the liquid level distance data sets and the quantity of the liquid level distances in the liquid level distance data sets, and taking the average value of the liquid level distances as the liquid level distance.
In this embodiment, a cup edge distance data set is obtained according to a cup edge signal, a liquid level distance data set is obtained according to a liquid level signal, specifically, an echo signal cluster includes a plurality of echo signals, each echo signal corresponds to an echo signal distance, the time of flight of each cup edge signal in the echo signal cluster is obtained by calculation, a cup edge distance corresponding to each cup edge signal is obtained by combining an ultrasonic velocity, the cup edge distances of the plurality of cup edge signals are collected, and a cup edge distance data set is obtained, and obtaining the number of the cup edge distances in the cup edge distance data set, similarly, calculating the flight time of each liquid level signal in the echo signal cluster, obtaining the liquid level distance corresponding to each liquid level signal by combining the ultrasonic speed, collecting the liquid level distances of a plurality of liquid level signals, obtaining a liquid level distance data set, and obtaining the number of the liquid level distances in the liquid level distance data set. Then, an average value of the cup edge distances is obtained by weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, specifically, the cup edge distances in the cup edge distance data set are added to obtain a first result, the first result is divided by the number of the cup edge distances in the cup edge distance data set to obtain an average value of the cup edge distances, the average value of the cup edge distances is used as the cup edge distance, similarly, the liquid level distances in the liquid level distance data set are added to obtain a second result, the second result is divided by the number of the liquid level distances in the liquid level distance data set to obtain an average value of the liquid level distances, and the average value of the liquid level distances is used as the liquid level distance.
According to the scheme of the embodiment, the cup edge distance data set is obtained according to the cup edge signal, the liquid level distance data set is obtained according to the liquid level signal, the cup edge distance in the cup edge distance data set is weighted and averaged, the average value of the obtained cup edge distance is used as the cup edge distance, the liquid level distance in the liquid level distance data set is weighted and averaged, the average value of the obtained liquid level distance is used as the liquid level distance, the distance data set corresponding to the echo signal is weighted and averaged, the distance average value is obtained, the interference of tiny noise can be eliminated, the output echo signal is smoother and more stable, and the accuracy of water outlet control of the automatic water adding module is improved.
In one embodiment, as shown in FIG. 7, the cup edge signals include a current cup edge signal and a historical cup edge signal; obtaining a cup edge distance dataset from the cup edge signal, comprising:
s910, acquiring a cup edge distance corresponding to the current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal;
s920, performing outlier separation on the cup edge distance corresponding to the current cup edge signal and the cup edge distance data set corresponding to the historical cup edge signal to obtain an outlier-processed cup edge data set;
and S930, performing sliding filtering processing according to the cup edge data set after the outlier processing and the cup edge distance corresponding to the current cup edge signal to obtain a cup edge distance data set.
In this embodiment, because the echo signal cluster is obtained in real time, the newly obtained echo signal is a current echo signal, and the echo signal obtained earlier than the latest time is a historical echo signal, where the cup edge signal includes a current cup edge signal and a historical cup edge signal, a cup edge distance corresponding to the current cup edge signal is obtained by using a flight time of the current cup edge signal, a cup edge distance corresponding to the historical cup edge signal is obtained by using a flight time of the historical cup edge signal, the historical cup edge signal may include a plurality of cup edge signals, cup edge data corresponding to the plurality of historical cup edge signals is obtained according to the plurality of historical cup edge signals, cup edge distances corresponding to the plurality of historical cup edge signals are collected, and a cup edge distance data set corresponding to the historical cup edge signal is obtained. Outliers, also known as outliers, refer to data in which one or more values differ significantly from other values, and such values with large differences are called outliers, and common outlier separation methods include MAD (Median Absolute Deviation) algorithms, standard Deviation algorithms, and percentile algorithms. The method comprises the steps of performing outlier separation on a cup edge distance data set corresponding to a current cup edge signal and a cup edge distance data set corresponding to a historical cup edge signal to obtain a cup edge data set after the outlier processing, specifically, obtaining a cup edge data average value in the cup edge distance data set corresponding to the historical cup edge signal, subtracting the cup edge distance corresponding to the current cup edge signal from the cup edge data average value in the cup edge distance data set corresponding to the historical cup edge signal, taking the cup edge distance corresponding to the current cup edge signal as the outlier if a subtraction result is larger than a first preset difference value, regarding the current cup edge signal as an interference signal and removing the interference signal, and taking the current cup edge signal as an effective signal to be reserved if the subtraction result is not larger than the first preset difference value to obtain the outlier processed cup edge data set. The sliding filtering means that a data buffer is established first, N sampling data are stored in sequence, the data which is collected earliest is discarded when new data are collected, then the arithmetic mean value or the weighted mean value of the N data including the new data in the data set is solved, and thus, a new mean value can be calculated when sampling is carried out once, so that the data processing speed is accelerated.
According to the scheme of the embodiment, the cup edge distance corresponding to the current cup edge signal and the cup edge distance data set corresponding to the historical cup edge signal are obtained, the outlier separation method is adopted, the cup edge distance deviating from the cup edge with the larger average value is regarded as the outlier, the elimination is carried out, the interference influence of the high-strength clutter signal is reduced, the output cup edge signal is enabled to be smooth and stable through the sliding filtering method, the influence of small clutter is reduced, the confidence coefficient of the finally output cup edge distance data set is high, the stability is good, and the water outlet control accuracy of the automatic water adding module can be improved.
In one embodiment, as shown in FIG. 8, the level signals include a current level signal and a historical level signal; from the liquid level signal, a liquid level distance dataset is obtained comprising:
s940, a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal are obtained;
s950, performing outlier separation on the liquid level distance corresponding to the current liquid level signal and the liquid level distance data set corresponding to the historical liquid level signal to obtain an outlier-processed liquid level data set;
s960, performing sliding filtering processing according to the liquid level data set after the outlier processing and the liquid level distance corresponding to the current liquid level signal to obtain a liquid level distance data set.
In this embodiment, the liquid level signal includes current liquid level signal and historical liquid level signal, the time of flight that utilizes current liquid level signal, obtain the liquid level distance that current liquid level signal corresponds, the time of flight that utilizes historical liquid level signal, obtain the liquid level distance that historical liquid level signal corresponds, historical liquid level signal can include a plurality of liquid level signals, according to a plurality of historical liquid level signals, obtain the liquid level data that a plurality of historical liquid level signals correspond, the liquid level distance that a plurality of historical liquid level signals correspond is collected, obtain the liquid level distance data set that historical liquid level signal corresponds. In the application, the liquid level distance corresponding to the current liquid level signal and the liquid level distance data set corresponding to the historical liquid level signal are separated by an outlier to obtain a liquid level data set after the outlier processing, specifically, a liquid level data average value in the liquid level distance data set corresponding to the historical liquid level signal is obtained, the liquid level distance corresponding to the current liquid level signal and the liquid level data average value in the liquid level distance data set corresponding to the historical liquid level signal are subtracted, if the subtraction result is greater than a second preset difference value, the liquid level distance corresponding to the current liquid level signal is taken as the outlier, the current liquid level signal is taken as an interference signal and is rejected, if the subtraction result is not greater than the second preset difference value, the current liquid level signal is taken as an effective signal to be reserved, the liquid level data set after the outlier processing is obtained, the liquid level distance corresponding to the current liquid level signal enters the liquid level distance data set after the outlier processing through a sliding filtering method, the liquid level distance corresponding to the current liquid level signal is put into the liquid level distance data set after the outlier processing, and the liquid level distance acquired firstly in the liquid level distance data set after the outlier processing is discarded to obtain the liquid level distance data set.
According to the scheme of the embodiment, the liquid level distance corresponding to the current liquid level signal and the liquid level distance data set corresponding to the historical liquid level signal are acquired, the method of outlier separation is adopted, the liquid level distance with the larger deviation liquid level distance average value is regarded as the outlier, the outlier is eliminated, the interference influence of the high-strength clutter signals is reduced, the output liquid level signals are enabled to be smooth and stable through the sliding filtering method, the influence of small clutter is reduced, the confidence coefficient of the finally output liquid level distance data set is high, the stability is good, and the water outlet control precision of the automatic water adding module can be improved.
In one embodiment, the effluent control method further comprises: filtering each echo signal in the echo signal cluster to obtain a filtered echo signal cluster; and obtaining a cup edge signal and a liquid level signal from the filtered echo signal cluster.
In the embodiment, the filtering method includes a threshold line method and a peak method, specifically, when the drinking water equipment is added with hot water, the generated water vapor interferes with the ultrasonic signal, the characteristic points of the echo signal are extracted in a parallel mode of the threshold line method and the peak method, the signal edge is used for obtaining the flight time by the threshold line method, the flight time is obtained by the peak method according to the signal peak value, the flight time obtained by the threshold line method and the flight time obtained by the peak method are respectively compared with the flight time of the effective echo signal, the echo signal corresponding to the method with the smaller difference is regarded as the effective signal, the echo signal corresponding to the method with the larger difference is filtered, the filtered echo signal cluster is obtained, and then the cup edge signal and the liquid level signal are obtained from the filtered echo signal cluster.
According to the scheme of the embodiment, the echo signals are filtered in a parallel mode of the threshold line method and the peak value method, clutter signals can be filtered, the interference of water vapor on ultrasonic signals is avoided, and the water outlet control precision of the automatic water adding module is improved.
To explain the water outlet control method and effect in the present solution in detail, a most detailed embodiment is described below, in which the water dispenser is a household water dispenser, the automatic water adding module is installed above the water outlet switch, the horizontal distance from the water outlet is 2cm, the distance from the surface of the ultrasonic receiving probe to the base is denoted as D1, D1 is 23cm, the height of the cup is 17cm, the distance from the surface of the ultrasonic receiving probe to the edge of the cup is denoted as D2, and the distance from the ultrasonic receiving probe to the liquid level is denoted as D3:
as shown in fig. 9, an application scenario diagram of the combination of the automatic water adding module and the household water dispenser is shown, and the household water dispenser comprises: automatic add water module, base and water outlet switch, the automatic module that adds water sets up in drinking water equipment's base top, and drinking water equipment includes the water outlet switch, as shown in FIG. 10 be the automatic flow schematic diagram that adds water module control water outlet switch, the automatic module that adds water includes: the automatic water adding device comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, wherein the ultrasonic transmitting probe is used for transmitting ultrasonic waves, the ultrasonic receiving probe is used for receiving echo signals, the processor of the automatic water adding module is connected with a water outlet switch, the processor is used for executing a water outlet control method, the water outlet control method is applied to the automatic water adding module, the automatic water adding module is initialized after being electrified, the distance D1 from the ultrasonic transmitting probe to a base is set inside the processor, and a preset threshold D4 and an echo signal threshold line are judged whether the cup is full. The ultrasonic transmitting probe transmits ultrasonic waves, the ultrasonic receiving probe receives reflected echo signal clusters, the flight time of the ultrasonic waves reflected back to the ultrasonic receiving probe through different paths is different, and the echo signal clusters are represented as protruding signals with time axes which are different in sequence on a signal image. The processor judges the received echo signal cluster, only receives a high-amplitude echo signal with a later phase generated by the base when no cup is arranged on the base, generates two echo signals with different phases when a cup is arranged on the base, and is a signal image schematic diagram of the echo signal cluster with the cup as shown in figure 11, wherein the diagram has two protrusion signals, a cup edge signal with a smaller amplitude and a front phase and a liquid level signal with a larger amplitude and a back phase, the echo signals are filtered twice after being obtained, the first time is a water level tracking and checking algorithm which adopts a threshold line method and a peak value method in parallel to extract characteristic points of the echo signal cluster, a straight line which is intersected with the echo signal cluster in figure 11 is an echo signal threshold line, the echo signal cluster is cut by using the set echo signal threshold line, and then the peak value characteristic of the echo signal in the echo signal cluster is extracted, the method comprises the steps of obtaining flight time by using a signal edge of an echo signal by a threshold line method, obtaining flight time by a peak value method according to peak value characteristics of the echo signal, comparing the flight time obtained by the threshold line method with the flight time obtained by the peak value method, taking a current signal corresponding to the flight time with a small difference value as an effective signal, filtering clutter signals with low intensity and high intensity in a mode of adopting the threshold line method and the peak value method in parallel, converting ultrasonic wave speed and the flight time of the echo signal into distance data after first filtering, converting a cup edge signal into cup edge distance data, converting a liquid level signal into liquid level distance data, adopting an outlier separation and sliding mean filtering method for second filtering, respectively placing an obtained liquid level distance data set and an obtained cup edge distance data set into two set windows, wherein the two set windows are respectively buff1 and buffer2, and the window lengths are respectively d1 and d2, the level distance average avg1 and the cup edge distance average avg2 were calculated, respectively, specifically,
(sum(buffer11+buffer12+…+buffer1n)/d1)=avg1
(sum(buffer21+buffer22+…+buffer2n)/d2)=avg2
wherein buffer1n is the liquid level distance in the liquid level distance data set, and buffer2n is the cup edge distance data in the cup edge distance data set.
Comparing the newly acquired liquid level distance with the liquid level distance average value avg1, comparing the newly acquired cup edge distance with the cup edge distance average value avg2, if the difference is larger than the range y, and y is acquired by the characteristics of the interference signal, regarding the newly acquired liquid level distance or the newly acquired cup edge distance as the interference signal and removing the interference signal, otherwise, keeping the newly acquired liquid level distance in a liquid level distance data set in a sliding mean filtering mode, or keeping the newly acquired cup edge distance in a cup edge distance data set in a sliding mean filtering mode, then calculating and acquiring the cup edge distance mean value after sliding filtering and the liquid level distance mean value after sliding filtering, taking the cup edge distance mean value after sliding filtering as the effective value of the cup edge distance, taking the liquid level distance mean value after sliding filtering as the effective value of the liquid level distance, and outputting the effective data D2 of the cup edge distance and the effective value D3 of the liquid level distance respectively at the output end of the processor, fig. 12 is a schematic flow chart of the second filtering process of the echo signal.
If the ultrasonic receiving probe detects only a base signal, determining that no cup is on the base, controlling a water outlet switch to be closed, if the ultrasonic receiving probe detects two echo signals, determining that a cup is on the base, determining that the two echo signals are a cup edge signal and a liquid level signal respectively, if a cup edge distance D2 is smaller than a base distance D1, performing cup filling judgment, making a difference between a liquid level distance D3 and a cup edge distance D2, comparing the difference with a preset threshold D4, if the difference is larger than a preset threshold D4, indicating that the cup is not full at present, controlling water outlet to be opened, controlling a water dispenser to start to discharge water, and if the water outlet quantity is increased, the liquid level distance D3 is reduced, the difference between the cup edge distance D2 and the liquid level distance D3 is reduced, if the difference is smaller than or equal to the preset threshold D4, indicating that the liquid level is close to the cup edge, indicating that the cup is full at present, immediately controlling the water outlet switch to be closed, the water dispenser stops discharging water. Fig. 13 shows a schematic flow chart of a water outlet control method for a household water dispenser.
According to the water outlet control method, whether the base is provided with the cup or not can be accurately judged through the amplitude and the phase of the ultrasonic echo signal, the water outlet switch is turned off when the base is not provided with the cup, the water outlet control precision is improved, when the base is provided with the cup, the liquid level signal can change along with the change of the water outlet quantity due to the fact that the cup edge signals received by different cups are different, the water outlet switch is controlled to be turned on or turned off according to the cup edge signals and the liquid level signals in the echo signal, and the water outlet control precision is further improved.
It should be noted that the water outlet control method in the application can be applied to water outlet control in the field of household appliances and can also be applied to water outlet control in the field of industry, the application field of the water outlet control method disclosed in the application is not limited, the ultrasonic signal is not influenced by liquid vapor, the temperature of measurable liquid is not specifically limited, the type of measurable liquid is not specifically limited, the material of the measurable cup includes but is not limited to plastic, paper, glass or metal, and the height of the cup is lower than the distance from the ultrasonic receiving probe to the base.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a water outlet control device for realizing the water outlet control method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in one or more water outlet control device embodiments provided below can refer to the limitations on the water outlet control method in the foregoing, and details are not described here.
In one embodiment, as shown in FIG. 14, a water control apparatus 100 is provided, comprising: a cluster signal receiving module 120, a cup presence/absence confirmation module 140, a cup absence control module 160, and a cup presence control module 180, wherein:
and the signal cluster receiving module 120 is configured to receive an echo signal cluster, where an echo signal in the echo signal cluster is a signal received by an ultrasonic receiving probe after an ultrasonic transmitting probe transmits an ultrasonic wave.
And a cup existence confirming module 140 for determining whether a cup exists on the base according to the amplitude and the phase of each echo signal in the echo signal cluster.
And the cup-free control module 160 is used for controlling the water outlet switch to be closed if no cup is arranged on the base.
And the cup control module 180 is used for acquiring a cup edge signal and a liquid level signal from the echo signal cluster if a cup is arranged on the base, and controlling the water outlet switch to be turned on or turned off according to the cup edge signal and the liquid level signal.
Among the above-mentioned play water controlling means, amplitude and phase place through ultrasonic wave echo signal can accurately judge whether the base has the cup, and the switch that makes water is closed when not having the cup on the base, improves the precision of water control, when having the cup on the base, because the cup edge signal to different cups receiving is different, and liquid level signal can change along with the change of water yield, consequently open or close according to the cup edge signal among the echo signal and liquid level signal control switch, has further improved the precision of water control.
In one embodiment, the cup existence confirming module 140 is further configured to determine a phase type and an amplitude type of the echo signal cluster according to the amplitude and the phase of each echo signal in the echo signal cluster; if the phase type and the amplitude type are only one, determining that no cup is arranged on the base; if the phase type and the amplitude type are both two types, the cup on the base is determined.
In one embodiment, the cupped control module 180 is further configured to determine an echo signal with a front phase and a smaller amplitude in the echo signal cluster as a cup edge signal, and determine an echo signal with a rear phase and a larger amplitude in the echo signal cluster as a liquid level signal.
In one embodiment, the cup-with-cup control module 180 is further configured to obtain a cup edge distance and a liquid level distance according to the cup edge signal and the liquid level signal, where the cup edge distance is a distance from the cup edge to the automatic water adding module, and the liquid level distance is a distance from the liquid level to the automatic water adding module; if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, controlling the water outlet switch to be turned on; returning to the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal until the water outlet switch is closed; and if the difference value between the cup edge distance and the liquid level distance is greater than or equal to a preset threshold value, controlling the water outlet switch to be closed.
In one embodiment, the cupped control module 180 is further configured to obtain a cup edge distance dataset based on the cup edge signal and a liquid level distance dataset based on the liquid level signal;
acquiring the cup edge distance in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and acquiring the liquid level distance in the liquid level distance data set and the number of the liquid level distances in the liquid level distance data set;
obtaining an average value of the cup edge distances by weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and taking the average value of the cup edge distances as the cup edge distance; and obtaining the average value of the liquid level distances by weighted average according to the liquid level distances in the liquid level distance data sets and the quantity of the liquid level distances in the liquid level distance data sets, and taking the average value of the liquid level distances as the liquid level distance.
In one embodiment, the cup edge signals in the cup-on-control module 180 include a current cup edge signal and a historical cup edge signal; the cup control module 180 is further configured to obtain a cup edge distance corresponding to the current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal; performing outlier separation on the cup edge distance corresponding to the current cup edge signal and the cup edge distance data set corresponding to the historical cup edge signal to obtain an outlier-processed cup edge data set; and performing sliding filtering processing according to the cup edge data set after the outlier processing and the cup edge distance corresponding to the current cup edge signal to obtain a cup edge distance data set.
In one embodiment, the level signals in the cupped control module 180 include a current level signal and a historical level signal; the cup control module 180 is further configured to obtain a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal; performing outlier separation on a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal to obtain a liquid level data set subjected to outlier processing; and performing sliding filtering processing according to the liquid level data set after the outlier processing and the liquid level distance corresponding to the current liquid level signal to obtain a liquid level distance data set.
All or part of each module in the water outlet control device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, an Input/Output interface (I/O for short), and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The database of the computer device is used for storing echo signal clusters, cup edge distances and liquid level distances. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of effluent control.
It will be appreciated by those skilled in the art that the configuration shown in fig. 15 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an automatic water adding module is provided, which comprises: the water outlet control method comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, wherein the ultrasonic transmitting probe is used for transmitting ultrasonic waves, the ultrasonic receiving probe is used for receiving echo signals, and the processor implements the following steps when executing the water outlet control method:
the processor receives the echo signal cluster, wherein the echo signal in the echo signal cluster is a signal received by the ultrasonic receiving probe after the ultrasonic transmitting probe sends ultrasonic waves;
the processor determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster;
if no cup is arranged on the base, the water outlet switch is controlled to be closed;
if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal.
In one embodiment, the processor further implements the following steps when executing the effluent control method:
determining the phase type and the amplitude type of the echo signal cluster according to the amplitude and the phase of each echo signal in the echo signal cluster; if the phase type and the amplitude type are only one, determining that no cup is arranged on the base; if the phase type and the amplitude type are both two types, the cup is determined to be arranged on the base.
In one embodiment, the processor further implements the following steps when executing the water outlet control method:
and determining the echo signal with the front phase and the small amplitude in the echo signal cluster as a cup edge signal, and determining the echo signal with the rear phase and the large amplitude in the echo signal cluster as a liquid level signal.
In one embodiment, the processor further implements the following steps when executing the water outlet control method:
according to the cup edge signal and the liquid level signal, obtaining a cup edge distance and a liquid level distance, wherein the cup edge distance is the distance from the cup edge to the automatic water adding module, and the liquid level distance is the distance from the liquid level to the automatic water adding module; if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, controlling a water outlet switch to be switched on; returning to the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal until the water outlet switch is closed; and if the difference value between the cup edge distance and the liquid level distance is greater than or equal to a preset threshold value, controlling the water outlet switch to be closed.
In one embodiment, the processor further implements the following steps when executing the water outlet control method:
according to the cup edge signal, obtaining a cup edge distance data set, and according to the liquid level signal, obtaining a liquid level distance data set; acquiring the cup edge distance in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and acquiring the liquid level distance in the liquid level distance data set and the number of the liquid level distances in the liquid level distance data set; obtaining an average value of the cup edge distances by weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and taking the average value of the cup edge distances as the cup edge distances; and obtaining the average value of the liquid level distances by weighted average according to the liquid level distances in the liquid level distance data sets and the quantity of the liquid level distances in the liquid level distance data sets, and taking the average value of the liquid level distances as the liquid level distance.
In one embodiment, the processor further implements the following steps when executing the effluent control method:
the cup edge signals comprise current cup edge signals and historical cup edge signals; acquiring a cup edge distance corresponding to the current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal; performing outlier separation on the cup edge distance corresponding to the current cup edge signal and the cup edge distance data set corresponding to the historical cup edge signal to obtain an outlier-processed cup edge data set; and performing sliding filtering processing according to the cup edge data set after the outlier processing and the cup edge distance corresponding to the current cup edge signal to obtain a cup edge distance data set.
In one embodiment, the processor further implements the following steps when executing the water outlet control method:
the liquid level signals comprise current liquid level signals and historical liquid level signals; acquiring a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal; performing outlier separation on a liquid level distance corresponding to the current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal to obtain an outlier-processed liquid level data set; and performing sliding filtering processing according to the liquid level data set after the outlier processing and the liquid level distance corresponding to the current liquid level signal to obtain a liquid level distance data set.
In one embodiment, there is provided a drinking device comprising: automatic add water module, base and water outlet switch, the automatic module that adds water sets up in drinking water equipment's base top, and drinking water equipment includes the water outlet switch, and the treater and the water outlet switch of the automatic module that adds water are connected.
It should be noted that the water outlet control method and device, the automatic water outlet module and the water drinking equipment disclosed by the application can be applied to water outlet control in the field of household appliances and can also be used for water outlet control in the field of industry. User information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) to which the present application relates are information and data that are authorized by the user or sufficiently authorized by various parties, and the collection, use, and processing of the relevant data requires compliance with relevant laws and regulations and standards in the relevant countries and regions.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the various embodiments provided herein may be, without limitation, general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. The utility model provides a go out water control method, its characterized in that is applied to automatic module of adding water, automatic module of adding water sets up in drinking water equipment's base top, automatic module of adding water includes ultrasonic emission probe, ultrasonic wave receiving probe and treater, drinking water equipment includes the water switch, the treater with the water switch is connected, the method includes:
the processor receives an echo signal cluster, wherein an echo signal in the echo signal cluster is a signal received by the ultrasonic receiving probe after the ultrasonic transmitting probe sends an ultrasonic wave;
the processor determines whether a cup is on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster;
if no cup is arranged on the base, the water outlet switch is controlled to be closed;
if the base is provided with the cup, the cup edge signal and the liquid level signal are obtained from the echo signal cluster, and the water outlet switch is controlled to be turned on or turned off according to the cup edge signal and the liquid level signal.
2. The method of claim 1, wherein determining whether a cup is present on the base based on the amplitude and phase of each echo signal in the echo signal cluster comprises:
determining the phase type and the amplitude type of each echo signal cluster according to the amplitude and the phase of each echo signal in the echo signal cluster;
if the phase type and the amplitude type are only one, determining that no cup exists on the base;
and if the phase type and the amplitude type are both two types, determining that a cup is arranged on the base.
3. The method of claim 1, wherein the obtaining the cup edge signal and the liquid level signal from the echo signal cluster comprises:
and determining the echo signal with the front phase and the small amplitude in the echo signal cluster as a cup edge signal, and determining the echo signal with the back phase and the large amplitude in the echo signal cluster as a liquid level signal.
4. The water outlet control method according to claim 1, wherein the controlling the water outlet switch to be turned on or off according to the cup edge signal and the liquid level signal comprises:
according to the cup edge signal and the liquid level signal, a cup edge distance and a liquid level distance are obtained, wherein the cup edge distance is the distance from the cup edge to the automatic water adding module, and the liquid level distance is the distance from the liquid level to the automatic water adding module;
if the difference value between the cup edge distance and the liquid level distance is smaller than a preset threshold value, controlling the water outlet switch to be turned on; returning to the step of obtaining the cup edge distance and the liquid level distance according to the cup edge signal and the liquid level signal until the water outlet switch is closed;
and if the difference value between the cup edge distance and the liquid level distance is greater than or equal to the preset threshold value, controlling the water outlet switch to be closed.
5. The method as claimed in claim 4, wherein the obtaining a cup edge distance and a liquid level distance according to the cup edge signal and the liquid level signal comprises:
according to the cup edge signal, a cup edge distance data set is obtained, and according to the liquid level signal, a liquid level distance data set is obtained;
acquiring the cup edge distance in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and acquiring the liquid level distance in the liquid level distance data set and the number of the liquid level distances in the liquid level distance data set;
obtaining an average value of the cup edge distances by weighted averaging according to the cup edge distances in the cup edge distance data set and the number of the cup edge distances in the cup edge distance data set, and taking the average value of the cup edge distances as the cup edge distances; and obtaining an average value of the liquid level distances by weighted average according to the liquid level distances in the liquid level distance data sets and the quantity of the liquid level distances in the liquid level distance data sets, and taking the average value of the liquid level distances as the liquid level distances.
6. The water outlet control method according to claim 5, wherein the cup edge signal comprises a current cup edge signal and a historical cup edge signal;
the obtaining a cup edge distance dataset according to the cup edge signal comprises:
acquiring a cup edge distance corresponding to a current cup edge signal and a cup edge distance data set corresponding to the historical cup edge signal;
performing outlier separation on the cup edge distance corresponding to the current cup edge signal and the cup edge distance data set corresponding to the historical cup edge signal to obtain an outlier-processed cup edge data set;
and performing sliding filtering processing according to the outlier-processed cup edge data set and the cup edge distance corresponding to the current cup edge signal to obtain the cup edge distance data set.
7. The method of claim 6, wherein the level signals include a current level signal and a historical level signal;
said obtaining a liquid level distance data set from said liquid level signal comprising:
acquiring a liquid level distance corresponding to a current liquid level signal and a liquid level distance data set corresponding to the historical liquid level signal;
performing outlier separation on the liquid level distance corresponding to the current liquid level signal and the liquid level distance data set corresponding to the historical liquid level signal to obtain an outlier-processed liquid level data set;
and performing sliding filtering processing according to the liquid level data set after the outlier processing and the liquid level distance corresponding to the current liquid level signal to obtain the liquid level distance data set.
8. A water egress control device, the device comprising:
the signal cluster receiving module is used for receiving an echo signal cluster, wherein an echo signal in the echo signal cluster is a signal received by the ultrasonic receiving probe after the ultrasonic transmitting probe sends an ultrasonic wave;
the cup existence confirming module is used for confirming whether a cup exists on the base or not according to the amplitude and the phase of each echo signal in the echo signal cluster;
the cup-free control module is used for controlling the water outlet switch to be closed if no cup is arranged on the base;
and the cup control module is used for acquiring a cup edge signal and a liquid level signal from the echo signal cluster if a cup is arranged on the base, and controlling the water outlet switch to be turned on or turned off according to the cup edge signal and the liquid level signal.
9. The utility model provides an automatic add water module which characterized in that includes: the device comprises an ultrasonic transmitting probe, an ultrasonic receiving probe and a processor, wherein the ultrasonic transmitting probe is used for transmitting ultrasonic waves, the ultrasonic receiving probe is used for receiving echo signals, and the processor is used for executing the steps realized when the water outlet control method is used as claimed in any one of claims 1 to 7.
10. A water dispensing apparatus, comprising: the automatic water adding module, the base and the water outlet switch of claim 9, wherein the automatic water adding module is arranged above the base of the water drinking equipment, the water drinking equipment comprises the water outlet switch, and the processor of the automatic water adding module is connected with the water outlet switch.
CN202210464906.3A 2022-04-29 2022-04-29 Water outlet control method and device, computer equipment and storage medium Pending CN114779843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210464906.3A CN114779843A (en) 2022-04-29 2022-04-29 Water outlet control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210464906.3A CN114779843A (en) 2022-04-29 2022-04-29 Water outlet control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114779843A true CN114779843A (en) 2022-07-22

Family

ID=82434886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210464906.3A Pending CN114779843A (en) 2022-04-29 2022-04-29 Water outlet control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114779843A (en)

Similar Documents

Publication Publication Date Title
RU2394211C2 (en) Automatic spurious echo signal accumulator
AU2003250981B2 (en) Method and device for determining an expectancy range for a level echo and a spurious echo
CN108427914B (en) Method and device for detecting entering and leaving states
US6445192B1 (en) Close proximity material interface detection for a microwave level transmitter
WO2020000504A1 (en) Arima-based cold storage temperature and humidity data prediction method and related product
US8776594B2 (en) Amplitude profiling in filling-level measuring devices
US20120265486A1 (en) Method for ascertaining and monitoring fill level of a medium in a container with a travel time measuring method
EP2442129B1 (en) A method for processing an echo amplitude profile generated by a pulse-echo ranging system
US9086310B2 (en) Tracking with consideration of mobility
US20130276529A1 (en) Method for determining the fill level of a medium and corresponding device
US9001620B2 (en) Method for echo processing in a pulse-echo ranging system
CN109998377A (en) Control method, apparatus, computer equipment and the storage medium of fluid flow
CN113066083B (en) Method for determining Doppler parameter of fluid and electronic equipment
CN102200464A (en) False echo storage in case of container noise
US20170010034A1 (en) Systems and methods of dispensing water or ice
CN114779843A (en) Water outlet control method and device, computer equipment and storage medium
CN115236609A (en) Anti-interference detection method and system based on ultrasonic radar
CN113293836A (en) Closestool control method based on radar, radar module and closestool
EP2372388A1 (en) A pulse-echo level measuring method
CN113589293B (en) Signal identification method and device for ultrasonic water dispenser and processor
CN113359523A (en) Control method of intelligent closestool, intelligent closestool assembly and intelligent closestool
CN113915774A (en) Water heater, water temperature control method and device, electronic equipment and storage medium
CN106249621B (en) A kind of control device of container, method and container
US20090257310A1 (en) Method of processing echo profile, and pulse-echo system for use with the method
US20220409005A1 (en) Dishwasher with object recognition

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