CN114208705A - Method, device, equipment and medium for determining water quantity of pet water dispenser - Google Patents
Method, device, equipment and medium for determining water quantity of pet water dispenser Download PDFInfo
- Publication number
- CN114208705A CN114208705A CN202111496613.5A CN202111496613A CN114208705A CN 114208705 A CN114208705 A CN 114208705A CN 202111496613 A CN202111496613 A CN 202111496613A CN 114208705 A CN114208705 A CN 114208705A
- Authority
- CN
- China
- Prior art keywords
- target
- water
- water dispenser
- current
- value
- 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
Links
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 467
- 238000000034 method Methods 0.000 title claims abstract description 44
- 239000003990 capacitor Substances 0.000 claims abstract description 97
- 238000007599 discharging Methods 0.000 claims abstract description 43
- 230000008859 change Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 5
- 230000036541 health Effects 0.000 abstract description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000035622 drinking Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000003651 drinking water Substances 0.000 description 1
- 235000020188 drinking water Nutrition 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A01—AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
- A01K—ANIMAL HUSBANDRY; AVICULTURE; APICULTURE; PISCICULTURE; FISHING; REARING OR BREEDING ANIMALS, NOT OTHERWISE PROVIDED FOR; NEW BREEDS OF ANIMALS
- A01K7/00—Watering equipment for stock or game
- A01K7/02—Automatic devices ; Medication dispensers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F23/00—Indicating 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/22—Indicating 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/26—Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of capacity or inductance of capacitors or inductors arising from the presence of liquid or fluent solid material in the electric or electromagnetic fields
Landscapes
- Physics & Mathematics (AREA)
- Environmental Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- Thermal Sciences (AREA)
- Fluid Mechanics (AREA)
- Power Engineering (AREA)
- Electromagnetism (AREA)
- Animal Husbandry (AREA)
- Biodiversity & Conservation Biology (AREA)
- Engineering & Computer Science (AREA)
- Devices For Dispensing Beverages (AREA)
- Feeding And Watering For Cattle Raising And Animal Husbandry (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a medium for determining the water quantity of a pet water dispenser. According to the method, the charging and discharging time, the initial voltage value and the final voltage value of the target capacitor formed by the two electrodes arranged on the wall of the target pet water dispenser are obtained, the current capacitance value of the target capacitor is determined based on the charging and discharging time, the initial voltage value and the final voltage value, the current water quantity of the target pet water dispenser is determined according to the current capacitance value, the automatic determination of the water quantity in the pet water dispenser is realized, the accurate determination of the water quantity in the pet water dispenser is realized, the use convenience of a user is improved, and the management of pet health of the user is facilitated.
Description
Technical Field
The embodiment of the invention relates to the technical field of pet water dispensers, in particular to a method, a device, equipment and a medium for determining the water quantity of a pet water dispenser.
Background
Nowadays, more and more people are raising pets, more and more people are concerned about health of pets, and the pet water dispenser becomes an essential article for pets.
In the use process of the existing pet water dispenser, the automatic detection of the water quantity in the water dispenser cannot be realized, and the determination of the water quantity in the water dispenser still needs the self observation of a user. However, the way of manually observing the amount of water is not convenient, and the result of the manual observation is subjective, and there is a possibility that the observation result is inaccurate, and there is also a case where the user forgets to observe the amount of water.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for determining the water quantity of a pet water dispenser, which are used for realizing automatic and accurate determination of the water quantity in the pet water dispenser and are beneficial to managing the pet health of a user.
In a first aspect, an embodiment of the present invention provides a method for determining a water amount of a pet water dispenser, where the method includes:
acquiring charge-discharge time, an initial voltage value and a final voltage value of a target capacitor on a target pet water dispenser, wherein the target capacitor is formed by two electrodes arranged on the wall of the target pet water dispenser;
determining a current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value;
determining a current amount of water for the target pet water dispenser based on the current capacitance value.
Optionally, the determining the current water amount of the target pet water dispenser based on the current capacitance value includes:
acquiring the distance between the polar plates of the target capacitor;
determining the current contact area between the water in the target pet water dispenser and the electrode based on the current capacitance value and the polar plate distance;
determining a current amount of water for the target pet water dispenser based on the current contact area of the water with the electrode.
Optionally, the determining the current water amount of the target pet water dispenser based on the current contact area of the water and the electrode includes:
determining a current height of water within the target pet water dispenser based on a current contact area of the water with an electrode; and/or the presence of a gas in the gas,
determining a current volume of water within the target pet water dispenser based on the current contact area of the water with the electrode.
Optionally, the determining the current water amount of the target pet water dispenser based on the current capacitance value includes:
acquiring a first capacitance reference value of the target capacitance and a first reference volume of water in the target pet water dispenser when the target pet water dispenser is in a full storage state;
acquiring a second capacitance reference value of the target capacitance and a second reference volume of water in the target pet water dispenser when the target pet water dispenser is in a water-free state;
determining a target linear relationship between a capacitance value of the target capacitance and a water volume of the target pet water dispenser based on the first capacitance reference value, the first reference volume, the second capacitance reference value, and the second reference volume;
and determining the current water quantity of the target pet water dispenser based on the current capacitance value and the target linear relation.
Optionally, the current capacitance value of the target capacitor is determined based on the charging and discharging time, the initial voltage value, and the final voltage value, and the following formula is satisfied:
wherein, V2Is the final value of the voltage, V1And the initial voltage value is set, t is the charging and discharging time, R is the set resistance value of the target pet water dispenser, and C is the current capacitance value of the target capacitor.
Optionally, the initial voltage value is zero, and the final voltage value is a charging limit voltage of the target pet water dispenser; or, the initial voltage value is the charging limit voltage, and the final voltage value is zero.
Optionally, the method further includes:
if the water volume change value of the target pet water dispenser in a set period is detected to be lower than a preset water volume change threshold value, first prompt information is sent to a user terminal associated with the target pet water dispenser; and/or the presence of a gas in the gas,
and if the current water volume is detected to be lower than a preset water volume threshold value, sending second prompt information to a user terminal associated with the target pet water dispenser.
In a second aspect, an embodiment of the present invention further provides a device for determining a water amount of a pet water dispenser, where the device includes:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring the charging and discharging time, the initial voltage value and the final voltage value of a target capacitor on a target pet water dispenser, and the target capacitor is formed by two electrodes arranged on the wall of a target pet water dispenser;
the capacitance determining module is used for determining the current capacitance value of the target capacitance based on the charging and discharging time, the initial voltage value and the final voltage value;
and the water quantity determining module is used for determining the current water quantity of the target pet water dispenser based on the current capacitance value.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the water quantity determination method of the pet water dispenser according to any embodiment of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the water volume determination method for a pet water dispenser according to any of the embodiments of the present invention.
The embodiment of the invention has the following advantages or beneficial effects:
the method comprises the steps of obtaining the charging and discharging time, the initial voltage value and the final voltage value of a target capacitor formed by two electrodes arranged on the wall of a target pet water dispenser, determining the current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value, and determining the current water quantity of the target pet water dispenser according to the current capacitance value, so that the automatic determination of the water quantity in the pet water dispenser is realized, the accurate determination of the water quantity in the pet water dispenser is realized, the use convenience of a user is improved, and the management of the pet health of the user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1A is a schematic flow chart of a method for determining a water amount of a pet water dispenser according to a first embodiment of the present invention;
fig. 1B is a schematic structural diagram of a target capacitor according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a water quantity determination method for a pet water dispenser according to a second embodiment of the present invention;
fig. 3 is a schematic flow chart of a water quantity determination method for a pet water dispenser according to a third embodiment of the present invention;
fig. 4 is a schematic flow chart of a water quantity determination method for a pet water dispenser according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural view of a water quantity determining device of a pet water dispenser according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1A is a schematic flow diagram of a method for determining a water amount of a pet water dispenser according to an embodiment of the present invention, which is applicable to a case of determining a water amount in a pet water dispenser, and is particularly applicable to a case of determining a water amount of a pet water dispenser by presetting two electrodes on a wall of the pet water dispenser so that the pet water dispenser forms a capacitor, and then determining a water amount of the pet water dispenser by measuring a capacitance value of the capacitor, where the method may be performed by a water amount determining device of the pet water dispenser, and the device may be implemented by hardware and/or software, and the method specifically includes the following steps:
s110, obtaining charging and discharging time, an initial voltage value and a final voltage value of a target capacitor on the target pet water dispenser, wherein the target capacitor is composed of two electrodes arranged on the wall of the target pet water dispenser.
In this embodiment, two electrodes may be embedded in advance in the insulating cylinder wall of the target pet water dispenser, wherein the electrodes may be made of metal sheets or other materials. Specifically, after two electrodes are embedded in the wall of the target pet water dispenser, the target pet water dispenser can form a target capacitor, and when water is added into the target pet water dispenser or the amount of water is reduced, the capacitance value of the target capacitor changes. For example, as shown in fig. 1B, a structural schematic diagram of a target capacitor is shown, electrodes may be embedded between an outer wall and an inner wall of a cylinder of a target water dispenser, and the two electrodes are symmetrically disposed on the cylinder walls at two sides.
The power supply of the target pet water dispenser can charge the target capacitor through the resistor on the target pet water dispenser; the target capacitor may discharge through a resistor on the target pet water dispenser. That is, the target capacitor can be continuously charged and discharged. Specifically, in the embodiment, when the current water volume of the target pet water dispenser needs to be determined, the charge-discharge time, the initial voltage value and the final voltage value of the target capacitor can be respectively obtained through the analog-to-digital converter; the number of analog-to-digital converters may be plural. The charging and discharging time can be a charging interval time or a discharging interval time, and the voltage initial value can be a voltage value corresponding to the initial time of the target capacitor in the charging and discharging time; the final voltage value may be a voltage value corresponding to a final time of the target capacitor during the charge/discharge time.
For example, when a water amount detection demand (e.g., a water amount detection demand generated once in 5 minutes) for a target pet water dispenser is monitored, a voltage (i.e., an initial voltage value) of a target capacitor before 2 minutes (charge-discharge time) and a current voltage (i.e., a final voltage value) are acquired; or, starting to time for 2 minutes, and recording the current voltage (namely the initial voltage value) and the voltage after 2 minutes (namely the final voltage value); or, acquiring the time for charging the target capacitor from 0 voltage (namely the initial voltage value) to the limit voltage (namely the final voltage value); still alternatively, the time for the target capacitance to discharge from the limit voltage (i.e., the initial voltage value) to the 0 voltage (i.e., the end voltage value) is acquired.
Optionally, in this embodiment, the charging and discharging time, the initial voltage value, and the final voltage value of the target capacitor on the target pet water dispenser may be obtained at intervals of a monitoring period (such as 3 minutes, 10 minutes, and the like, which is not limited in this application), so as to calculate the current water volume of the target pet water dispenser based on the charging and discharging time, the initial voltage value, and the final voltage value; or, in this embodiment, when a detection request (for example, a user triggers to view a water amount control) sent by a user terminal associated with the target pet water dispenser is received, the charge and discharge time, the voltage initial value, and the voltage final value of the target capacitor on the target pet water dispenser may be obtained, so as to calculate the current water amount of the target pet water dispenser based on the charge and discharge time, the voltage initial value, and the voltage final value.
And S120, determining the current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value.
Specifically, in this embodiment, after the charging and discharging time, the initial voltage value, and the final voltage value are obtained, the current capacitance value of the target capacitor may be calculated according to this information. For example, the determining the current capacitance value of the target capacitance based on the charging and discharging time, the initial voltage value and the final voltage value satisfies the following formula:
wherein, V2Is the final value of the voltage, V1And the initial voltage value is set, t is the charging and discharging time, R is the set resistance value of the target pet water dispenser, and C is the current capacitance value of the target capacitor. Will V1、V1Substituting t and R into the above formula to calculate the current capacitance C.
In the above formula, the final voltage value and the initial voltage value may be arbitrary values. The final voltage value may be zero and the initial voltage value may be the charge limit voltage, i.e. the target capacitance is released from full voltage to zero voltage; alternatively, the final voltage value may be a charge limit voltage, and the initial voltage value may be zero, i.e., the target capacitor is charged from zero voltage to full voltage. Namely, optionally, the initial voltage value is zero, and the final voltage value is the charging limit voltage of the target pet water dispenser; or, the initial voltage value is the charging limit voltage, and the final voltage value is zero.
In addition, in the process of charging and discharging the target capacitor, there are cases where the target capacitor cannot be fully charged or fully discharged, that is, the voltage final value of the target capacitor at the time of full charge is infinitely close to the charge limit voltage, and the voltage final value of the target capacitor at the time of discharging is infinitely close to the zero voltage.
Specifically, if the initial voltage value is zero and the final voltage value is the charging limit voltage of the target pet water dispenser, the current capacitance value of the target capacitor may be calculated based on the following formula:
wherein t is the charging and discharging time, namely the time for charging the target capacitor from zero voltage to the limit voltage, and R is the set resistance value of the target pet water dispenserC is the current capacitance value of the target capacitor, E is the charging limit voltage, VtA voltage end value infinitely close to the charge limit voltage.
If the initial voltage value is the charging limit voltage and the final voltage value is zero, the current capacitance value of the target capacitor can be calculated based on the following formula:
wherein t is the charging and discharging time, namely the time for charging the target capacitor from zero voltage to the limit voltage, R is the set resistance value of the target pet water dispenser, C is the current capacitance value of the target capacitor, E is the charging limit voltage, and V is the charging limit voltagetA voltage end value that is infinitely close to zero voltage.
Of course, the above description is only an example, and the specific values of the initial voltage value and the final voltage value are not limited in this embodiment, but the method for determining the water volume of the pet drinking fountain according to this embodiment can obtain the capacitance value of the target capacitor by obtaining the charging and discharging time, the initial voltage value at the two ends of the target capacitor, and the final voltage value.
And S130, determining the current water volume of the target pet water dispenser based on the current capacitance value.
After the current capacitance value of the target capacitor is determined, the current height and/or the current volume of the water in the target pet water dispenser can be calculated according to the current capacitance value, and the current height and/or the current volume are/is used as the current water volume of the target pet water dispenser.
Specifically, the determination of the current water volume of the target pet water dispenser based on the current capacitance value may be: and calculating the current contact area between the water and the electrode on the target capacitor according to the current capacitance value, and further calculating the current water quantity according to the contact area. The current contact area of the electrodes on the water and the target capacitor can be changed by the amount of the water, and then the capacitance value of the target capacitor is changed, so that the mapping relation between the contact area and the capacitance value can be constructed in advance, and then the current contact area corresponding to the current capacitance value can be determined through the current capacitance value and the mapping relation.
Or, the current water volume of the target pet water dispenser is determined based on the current capacitance value, and the current water volume may be: and determining the current water amount corresponding to the current capacitance value through the linear relation between the pre-constructed capacitance value of the target capacitor and the water amount in the target pet water dispenser. For example, the linear relationship between the capacitance of the target capacitor and the water amount in the target pet drinking water machine is y (f) (x), and the current water amount y1 (f) (x1) can be calculated according to the current capacitance x 1.
According to the technical scheme of the embodiment, the charging and discharging time, the initial voltage value and the final voltage value of the target capacitor formed by the two electrodes arranged on the wall of the target pet water dispenser are obtained, the current capacitance value of the target capacitor is determined based on the charging and discharging time, the initial voltage value and the final voltage value, the current water quantity of the target pet water dispenser is determined according to the current capacitance value, the automatic determination of the water quantity in the pet water dispenser is achieved, the accurate determination of the water quantity in the pet water dispenser is achieved, the use convenience of a user is improved, and the management of pet health of the user is facilitated.
Example two
Fig. 2 is a schematic flow chart of a method for determining a water volume of a pet water dispenser according to a second embodiment of the present invention, where on the basis of the second embodiment, in this embodiment, optionally, the determining a current water volume of the target pet water dispenser based on the current capacitance value includes: acquiring the distance between the polar plates of the target capacitor; determining the current contact area between the water in the target pet water dispenser and the electrode based on the current capacitance value and the polar plate distance; determining a current amount of water for the target pet water dispenser based on the current contact area of the water with the electrode. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. Referring to fig. 2, the method for determining the water amount of the pet water dispenser provided by the embodiment includes the following steps:
s210, obtaining charging and discharging time, an initial voltage value and a final voltage value of a target capacitor on the target pet water dispenser.
The target capacitor is composed of two electrodes arranged on the wall of the target pet water dispenser.
S220, determining the current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value.
And S230, acquiring the distance between the polar plates of the target capacitor, and determining the current contact area between the water in the target pet water dispenser and the electrodes based on the current capacitance value and the distance between the polar plates.
Wherein, the polar plate interval can be the interval between two symmetrically arranged electrodes. For example, if the electrodes are respectively arranged on the left side surface and the right side surface of the target pet water dispenser, the distance between the polar plates can be the distance from the left inner wall to the right inner wall of the target pet water dispenser; if the electrodes are respectively arranged on the front side surface and the rear side surface of the target pet water dispenser, the distance between the polar plates can be the distance from the front inner wall to the rear inner wall of the target pet water dispenser.
Specifically, the current contact area between the water in the target pet water dispenser and the electrode is determined based on the current capacitance value and the distance between the polar plates, and the following formula can be satisfied:
in the formula, C is the current capacitance value of the target capacitor, epsilon is the dielectric constant of the medium between the capacitor plates, namely the dielectric constant of water, d is the distance between the plates, k is the constant of the electrostatic force, and S is the current contact area of the water and the electrode. And (4) substituting the current capacitance value of the target capacitor and the known epsilon, k and d into calculation through the formula to obtain the current contact area of the water and the electrode.
S240, determining the current water volume of the target pet water dispenser based on the current contact area of the water and the electrode.
Specifically, after the current contact area between the water and the electrode is determined, the current height of the water and/or the current volume of the water can be calculated according to the current contact area. That is, optionally, the determining the current water amount of the target pet water dispenser based on the current contact area of the water with the electrode includes: determining a current height of water within the target pet water dispenser based on a current contact area of the water with an electrode; and/or determining the current volume of water in the target pet water dispenser based on the current contact area of the water and the electrode.
Wherein the current contact area of the water with the electrode is equal to the product of the current height of the water and the width of the electrode; the width of the electrode can be obtained in advance, so that the current height of the water can be calculated according to the current contact area and the known width of the electrode. The current volume of the water is equal to the product of the bottom area of the target pet water dispenser and the current height of the water, the current height of the water can be obtained through calculation of the current contact area, the bottom area of the target pet water dispenser is known, and therefore the current volume of the water can be calculated according to the current contact area and the known bottom area of the target pet water dispenser. By the mode, the current height and/or the current volume of the water can be calculated in real time based on the current contact area, and the accurate determination of the water quantity is realized.
According to the technical scheme, after the current capacitance value of the target capacitor on the target pet water dispenser is obtained, the pole plate distance of the target capacitor is obtained, the current contact area of water and the electrode is calculated according to the pole plate distance and the current capacitance value, then the current water quantity is determined according to the current contact area, the real-time determination of the water quantity in the pet water dispenser is realized through a calculation mode, the accuracy of the water quantity in the determined pet water dispenser is guaranteed, and the management of pets by users is further facilitated.
EXAMPLE III
Fig. 3 is a schematic flow chart of a method for determining a water volume of a pet water dispenser according to a third embodiment of the present invention, where on the basis of the third embodiment, in this embodiment, optionally, the determining a current water volume of the target pet water dispenser based on the current capacitance value includes: acquiring a first capacitance reference value of the target capacitance and a first reference volume of water in the target pet water dispenser when the target pet water dispenser is in a full storage state; acquiring a second capacitance reference value of the target capacitance and a second reference volume of water in the target pet water dispenser when the target pet water dispenser is in a water-free state; determining a target linear relationship between a capacitance value of the target capacitance and a water volume of the target pet water dispenser based on the first capacitance reference value, the first reference volume, the second capacitance reference value, and the second reference volume; and determining the current water quantity of the target pet water dispenser based on the current capacitance value and the target linear relation. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. Referring to fig. 3, the method for determining the water amount of the pet water dispenser provided by the embodiment includes the following steps:
s310, obtaining charging and discharging time, initial voltage value and final voltage value of a target capacitor on the target pet water dispenser.
S320, determining the current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value.
S330, acquiring a first capacitance reference value of the target capacitance and a first reference volume of water in the target pet water dispenser when the target pet water dispenser is in a full storage state.
The full state can be that the water quantity in the target pet drinking machine reaches the maximum value, namely that the bucket of the target pet drinking machine is full of water. Specifically, when the target pet water dispenser is in a full storage state, the capacitance value of the target capacitor at the moment, namely the first capacitor reference value, is calculated, the volume of water at the moment, namely the first reference volume, is calculated, and the first capacitor reference value and the first reference volume are recorded.
S340, acquiring a second capacitance reference value of the target capacitance and a second reference volume of water in the target pet water dispenser when the target pet water dispenser is in a water-free state.
The water-free state can be that the water quantity in the target pet water dispenser is zero, namely that the water in the bucket of the target pet water dispenser is free of water. Specifically, when the target pet water dispenser is in a water-free state, the capacitance value of the target capacitor at the moment, namely the second capacitor reference value, is calculated, the volume of the water at the moment, namely the second reference volume, is calculated, and the second capacitor reference value and the second reference volume are recorded.
S350, determining a target linear relation between the capacitance value of the target capacitor and the water volume of the target pet water dispenser based on the first capacitance reference value, the first reference volume, the second capacitance reference value and the second reference volume.
Specifically, a self-learning manner may be adopted to obtain a target linear relationship between the capacitance value and the water volume according to the first capacitance reference value, the first reference volume, the second capacitance reference value, and the second reference volume. Of course, in order to ensure the accuracy of the learned target linear relationship, the capacitance values of one or more target pet water dispensers and the water volumes corresponding to the capacitance values may be collected again, and the target linear relationship may be determined based on the capacitance values.
It should be noted that S330-S350 in this embodiment may be executed before S310, or after S310, or may also be executed simultaneously with S310, that is, the target linear relationship in this embodiment may be predetermined, or may also be determined in real time.
S360, determining the current water volume of the target pet water dispenser based on the current capacitance value and the target linear relation.
Specifically, according to the obtained target linear relationship, the current water volume corresponding to the current capacitance value can be determined, and the current water volume is used as the current water amount; or determining the current water height according to the current water volume, and taking the current water height as the current water volume.
Of course, in this embodiment, when the target pet water dispenser is in the full storage state, the first capacitance reference value of the target capacitance, the first reference height of the water in the target pet water dispenser, and when the target pet water dispenser is in the full storage state, the second capacitance reference value of the target capacitance and the second reference height of the water in the target pet water dispenser may also be obtained, and the target linear relationship between the capacitance value and the water height is calculated based on the first capacitance reference value, the first reference height, the second capacitance reference value, and the second reference height, so as to determine the current water volume of the target pet water dispenser based on the current capacitance value and the target linear relationship.
According to the technical scheme, the target linear relation between the capacitance value and the water volume is established through the first capacitance reference value and the first reference volume in the full storage state and the second capacitance reference value and the second reference volume in the water-free state, and then the current water amount corresponding to the current capacitance value is determined based on the target linear relation, so that the real-time determination of the water amount in the pet water dispenser through the linear relation is realized, the accuracy of the determined water amount in the pet water dispenser is ensured, and the pet health management by a user is further facilitated.
Example four
Fig. 4 is a schematic flow chart of a water quantity determining method for a pet water dispenser according to a fourth embodiment of the present invention, and on the basis of the foregoing embodiment, in this embodiment, optionally, the method further includes: if the water volume change value of the target pet water dispenser in a set period is detected to be lower than a preset water volume change threshold value, first prompt information is sent to a user terminal associated with the target pet water dispenser; and/or sending second prompt information to a user terminal associated with the target pet water dispenser if the current water volume is detected to be lower than a preset water volume threshold value.
S410, acquiring charging and discharging time, initial voltage value and final voltage value of a target capacitor on the target pet water dispenser.
And S420, determining the current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value.
And S430, determining the current water volume of the target pet water dispenser based on the current capacitance value.
S440, if the water volume change value of the target pet water dispenser in the set period is detected to be lower than a preset water volume change threshold value, sending first prompt information to a user terminal associated with the target pet water dispenser; and/or sending second prompt information to a user terminal associated with the target pet water dispenser if the current water volume is detected to be lower than a preset water volume threshold value.
The set period may be a preset water amount change detection period, for example, 1 day, 2 days, or the like. Specifically, in the embodiment, the water volume change value of the target pet water dispenser in the set period can be calculated through the water volume of the target pet water dispenser at each moment determined in the set period, so as to judge whether the water volume change value is lower than a preset water volume change threshold, and if so, the water volume of the pet in the set period can be indicated to be not higher than the preset water volume change threshold; at this time, first prompt information can be sent to the associated user terminal to prompt the user that the recent water intake of the pet is low, help the user to quickly find the abnormality of the pet, and further assist the user in managing the health of the pet.
In addition, the embodiment can also send second prompt information to the associated user terminal when the current water volume of the target pet water dispenser is lower than the preset water volume threshold value so as to prompt the user that the target pet water dispenser needs to be added with water or needs to be replaced with water, thereby further assisting the user in managing the pet health. The associated user terminal may be an electronic device such as a mobile phone, a tablet, a computer, or a watch.
According to the technical scheme of the embodiment, when the water volume change value of the target pet water dispenser is detected to be lower than the preset water volume change threshold value in the set period, first prompt information is sent to a user terminal associated with the target pet water dispenser; and/or when the current water volume is detected to be lower than the preset water volume threshold value, sending second prompt information to the associated user terminal, realizing the prompt that the water drinking volume of the pet is too small and/or the water dispenser has the requirements of water adding and water changing, and further assisting the user in managing the health of the pet.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a water quantity determining device of a pet water dispenser according to a fifth embodiment of the present invention, which is applicable to determining the water quantity in the pet water dispenser, and is particularly applicable to determining the water quantity in the pet water dispenser by presetting two electrodes on a barrel wall of the pet water dispenser to enable the barrel of the pet water dispenser to form a capacitor, and then determining the water quantity of the pet water dispenser by measuring a capacitance value of the capacitor, and specifically includes: an acquisition module 510, a capacitance determination module 520, and a water volume determination module 530.
The acquisition module 510 is configured to acquire charge and discharge time, an initial voltage value, and a final voltage value of a target capacitor on a target pet water dispenser, where the target capacitor is formed by two electrodes disposed on a cylindrical wall of the target pet water dispenser;
a capacitance determining module 520, configured to determine a current capacitance value of the target capacitance based on the charging and discharging time, the initial voltage value, and the final voltage value;
a water volume determination module 530 for determining a current volume of water for the target pet water dispenser based on the current capacitance value.
Optionally, the water amount determining module 530 includes a distance obtaining unit, an area determining unit, and a water amount determining unit; wherein,
the distance obtaining unit is used for obtaining the distance between the polar plates of the target capacitor;
the area determining unit is used for determining the current contact area between the water in the target pet water dispenser and the electrode based on the current capacitance value and the polar plate distance;
the water quantity determining unit is used for determining the current water quantity of the target pet water dispenser based on the current contact area of the water and the electrode.
Optionally, the water amount determining unit is specifically configured to:
determining a current height of water within the target pet water dispenser based on a current contact area of the water with an electrode; and/or determining the current volume of water in the target pet water dispenser based on the current contact area of the water and the electrode.
Optionally, the water amount determining module 530 is specifically configured to:
acquiring a first capacitance reference value of the target capacitance and a first reference volume of water in the target pet water dispenser when the target pet water dispenser is in a full storage state; acquiring a second capacitance reference value of the target capacitance and a second reference volume of water in the target pet water dispenser when the target pet water dispenser is in a water-free state; determining a target linear relationship between a capacitance value of the target capacitance and a water volume of the target pet water dispenser based on the first capacitance reference value, the first reference volume, the second capacitance reference value, and the second reference volume; and determining the current water quantity of the target pet water dispenser based on the current capacitance value and the target linear relation.
Optionally, the capacitance determining module 520 determines the current capacitance value of the target capacitance according to the following formula:
wherein, V2Is the final value of the voltage, V1And the initial voltage value is set, t is the charging and discharging time, R is the set resistance value of the target pet water dispenser, and C is the current capacitance value of the target capacitor.
Optionally, the initial voltage value is zero, and the final voltage value is a charging limit voltage of the target pet water dispenser; or, the initial voltage value is the charging limit voltage, and the final voltage value is zero.
Optionally, the device further includes a prompt module, where the prompt module is configured to send a first prompt message to a user terminal associated with the target pet water dispenser if it is detected that a water volume change value of the target pet water dispenser in a set period is lower than a preset water volume change threshold; and/or sending second prompt information to a user terminal associated with the target pet water dispenser if the current water volume is detected to be lower than a preset water volume threshold value.
In the embodiment, the charging and discharging time, the initial voltage value and the final voltage value of the target capacitor formed by the two electrodes arranged on the wall of the target pet water dispenser are obtained through the obtaining module, the current capacitance value of the target capacitor is determined through the capacitor determining module based on the charging and discharging time, the initial voltage value and the final voltage value, the current water quantity of the target pet water dispenser is determined through the water quantity determining module according to the current capacitance value, the automatic determination of the water quantity in the pet water dispenser is realized, the accurate determination of the water quantity in the pet water dispenser is realized, the use convenience of a user is improved, and the pet health management of the user is facilitated.
The water quantity determining device of the pet water dispenser provided by the embodiment of the invention can execute the water quantity determining method of the pet water dispenser provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 is typically an electronic device that assumes the function of determining the quantity of water in the fountain.
As shown in FIG. 6, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that couples the various components (including the memory 28 and the processing unit 16).
The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, for example, implementing the water quantity determining method for the pet water dispenser provided by the above embodiment of the present invention, including:
acquiring charge-discharge time, an initial voltage value and a final voltage value of a target capacitor on a target pet water dispenser, wherein the target capacitor is formed by two electrodes arranged on the wall of the target pet water dispenser;
determining a current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value;
determining a current amount of water for the target pet water dispenser based on the current capacitance value.
Of course, those skilled in the art can understand that the processor can also implement the technical scheme of the water quantity determination method for the pet water dispenser provided by any embodiment of the invention.
EXAMPLE seven
The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for determining the water volume of a pet water dispenser according to any embodiment of the present invention, the method including:
acquiring charge-discharge time, an initial voltage value and a final voltage value of a target capacitor on a target pet water dispenser, wherein the target capacitor is formed by two electrodes arranged on the wall of the target pet water dispenser;
determining a current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value;
determining a current amount of water for the target pet water dispenser based on the current capacitance value.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for determining the water quantity of a pet water dispenser is characterized by comprising the following steps:
acquiring charge-discharge time, an initial voltage value and a final voltage value of a target capacitor on a target pet water dispenser, wherein the target capacitor is formed by two electrodes arranged on the wall of the target pet water dispenser;
determining a current capacitance value of the target capacitor based on the charging and discharging time, the initial voltage value and the final voltage value;
determining a current amount of water for the target pet water dispenser based on the current capacitance value.
2. The method of claim 1, wherein said determining a current volume of water for the target pet water dispenser based on the current capacitance value comprises:
acquiring the distance between the polar plates of the target capacitor;
determining the current contact area between the water in the target pet water dispenser and the electrode based on the current capacitance value and the polar plate distance;
determining a current amount of water for the target pet water dispenser based on the current contact area of the water with the electrode.
3. The method of claim 2, wherein said determining a current amount of water for the target pet water dispenser based on the current contact area of the water with the electrode comprises:
determining a current height of water within the target pet water dispenser based on a current contact area of the water with an electrode; and/or the presence of a gas in the gas,
determining a current volume of water within the target pet water dispenser based on the current contact area of the water with the electrode.
4. The method of claim 1, wherein said determining a current volume of water for the target pet water dispenser based on the current capacitance value comprises:
acquiring a first capacitance reference value of the target capacitance and a first reference volume of water in the target pet water dispenser when the target pet water dispenser is in a full storage state;
acquiring a second capacitance reference value of the target capacitance and a second reference volume of water in the target pet water dispenser when the target pet water dispenser is in a water-free state;
determining a target linear relationship between a capacitance value of the target capacitance and a water volume of the target pet water dispenser based on the first capacitance reference value, the first reference volume, the second capacitance reference value, and the second reference volume;
and determining the current water quantity of the target pet water dispenser based on the current capacitance value and the target linear relation.
5. The method of claim 1, wherein the determining a current capacitance value of the target capacitance based on the charging and discharging time, the initial voltage value, and the final voltage value satisfies the following equation:
wherein, V2Is the final value of the voltage, V1And the initial voltage value is set, t is the charging and discharging time, R is the set resistance value of the target pet water dispenser, and C is the current capacitance value of the target capacitor.
6. The method of claim 1 wherein the initial value of voltage is zero and the final value of voltage is a charge limit voltage of the target pet water dispenser; or, the initial voltage value is the charging limit voltage, and the final voltage value is zero.
7. The method of claim 1, further comprising:
if the water volume change value of the target pet water dispenser in a set period is detected to be lower than a preset water volume change threshold value, first prompt information is sent to a user terminal associated with the target pet water dispenser; and/or the presence of a gas in the gas,
and if the current water volume is detected to be lower than a preset water volume threshold value, sending second prompt information to a user terminal associated with the target pet water dispenser.
8. A water quantity determining device of a pet water dispenser is characterized by comprising:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring the charging and discharging time, the initial voltage value and the final voltage value of a target capacitor on a target pet water dispenser, and the target capacitor is formed by two electrodes arranged on the wall of a target pet water dispenser;
the capacitance determining module is used for determining the current capacitance value of the target capacitance based on the charging and discharging time, the initial voltage value and the final voltage value;
and the water quantity determining module is used for determining the current water quantity of the target pet water dispenser based on the current capacitance value.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for determining water volume for a pet water dispenser of any of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, which program, when executed by a processor, carries out a method of determining the quantity of water in a pet water dispenser according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111496613.5A CN114208705A (en) | 2021-12-09 | 2021-12-09 | Method, device, equipment and medium for determining water quantity of pet water dispenser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111496613.5A CN114208705A (en) | 2021-12-09 | 2021-12-09 | Method, device, equipment and medium for determining water quantity of pet water dispenser |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114208705A true CN114208705A (en) | 2022-03-22 |
Family
ID=80700475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111496613.5A Pending CN114208705A (en) | 2021-12-09 | 2021-12-09 | Method, device, equipment and medium for determining water quantity of pet water dispenser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114208705A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1485598A (en) * | 2002-09-25 | 2004-03-31 | 南美特科技股份有限公司 | Method and apparatus for measuring liquid level and liquid usage quantity |
CN205192568U (en) * | 2015-10-10 | 2016-04-27 | 深圳市赛元微电子有限公司 | Be provided with liquid level monitoring devices's liquid case |
CN108387294A (en) * | 2018-05-11 | 2018-08-10 | 广东美的厨房电器制造有限公司 | Water-level measuring equipment and its method, steam oven for water box |
CN111856146A (en) * | 2020-06-29 | 2020-10-30 | 珠海市运泰利自动化设备有限公司 | Capacitance value measuring device and method |
CN113331074A (en) * | 2021-05-21 | 2021-09-03 | 深圳市小萌宠物科技有限公司 | Intelligent water dispenser for pets, working method and storage device |
CN113615596A (en) * | 2021-09-01 | 2021-11-09 | 重庆市畜牧科学院 | Water drinking system for fattening pigs |
-
2021
- 2021-12-09 CN CN202111496613.5A patent/CN114208705A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1485598A (en) * | 2002-09-25 | 2004-03-31 | 南美特科技股份有限公司 | Method and apparatus for measuring liquid level and liquid usage quantity |
CN205192568U (en) * | 2015-10-10 | 2016-04-27 | 深圳市赛元微电子有限公司 | Be provided with liquid level monitoring devices's liquid case |
CN108387294A (en) * | 2018-05-11 | 2018-08-10 | 广东美的厨房电器制造有限公司 | Water-level measuring equipment and its method, steam oven for water box |
CN111856146A (en) * | 2020-06-29 | 2020-10-30 | 珠海市运泰利自动化设备有限公司 | Capacitance value measuring device and method |
CN113331074A (en) * | 2021-05-21 | 2021-09-03 | 深圳市小萌宠物科技有限公司 | Intelligent water dispenser for pets, working method and storage device |
CN113615596A (en) * | 2021-09-01 | 2021-11-09 | 重庆市畜牧科学院 | Water drinking system for fattening pigs |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3807965B2 (en) | Intelligent battery, electric device, computer device, and method for determining battery deterioration | |
US12079476B2 (en) | Data processing method, apparatus, device, and readable storage medium | |
US20140024416A1 (en) | Method and apparatus for power management on mobile devices and associated mobile devices | |
US10461559B2 (en) | Charging control for supercapacitor(s) | |
CN114062957B (en) | Battery remaining capacity acquisition method and device, electronic equipment and storage medium | |
JP2018109532A (en) | Current integrated quantity measurement device, battery residual quantity measurement device, electronic apparatus control system, and method for measuring current integrated quantity | |
CN107608778A (en) | Application program management-control method, device, storage medium and electronic equipment | |
CN114089197A (en) | Door lock monitoring method and device, electronic equipment and storage medium | |
WO2020244604A1 (en) | Circuit detection method and apparatus, device, and storage medium | |
WO2019062341A1 (en) | Background application cleaning method and apparatus, and storage medium and electronic device | |
CN115187331A (en) | Product recommendation method, device, equipment and storage medium based on multi-modal data | |
CN113406508A (en) | Battery detection and maintenance method and device based on digital twinning | |
CN106707187A (en) | Method and device for determining target SOC of battery | |
US11686776B2 (en) | Prediction method and apparatus of battery health, and storage medium | |
CN114208705A (en) | Method, device, equipment and medium for determining water quantity of pet water dispenser | |
CN107436410A (en) | A kind of electric quantity controlling method, device, equipment and storage medium | |
CN103296328A (en) | Mobile information processing apparatus and its control method | |
WO2024183285A1 (en) | Method for determining state of charge of power battery, and related device | |
WO2022105439A1 (en) | Method for monitoring service life of cmos battery, and related apparatus | |
CN108387776A (en) | A kind of method for early warning and device of intelligent electric meter | |
WO2021089057A1 (en) | Method, system and device for acquiring battery health, and readable storage medium | |
JP7139687B2 (en) | Monitoring system | |
CN114241734A (en) | Immersion early warning method and device, electronic equipment and storage medium | |
CN116228316A (en) | Method and device for determining delivery address, electronic equipment and readable storage medium | |
WO2019085742A1 (en) | Background application cleaning method and apparatus, and storage medium and electronic device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220322 |
|
RJ01 | Rejection of invention patent application after publication |