Water drinking reminding method and device for pet, electronic equipment and storage medium
By integrating audio and water pumps in pet water dispensers, using water drinking detectors to monitor pet water consumption and play pet music to attract pet drinking water, the problem of pets being unable to promptly remind pets to replenish drinking water in the existing technology is solved, and more efficient pet drinking water management is achieved.
Patent Information
- Application Number
- CN202510291605.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-12
- Publication Date
- 2025-06-20
AI Technical Summary
The existing pet water dispenser cannot remind pets to replenish their water in time, and when the pet drinks less water, it cannot effectively attract pets to drink water in front of the water dispenser.
By integrating the audio, water volume detector and water pump into the controller of the pet water dispenser, the water volume detector is used to monitor the water volume of pets in real time. When the water volume is insufficient, the audio controls the audio to play pet music and adjusts the water column of the water pump according to the rhythm of the music to attract pets to drink water.
It realizes timely reminding pets to replenish drinking water when the amount of pets is insufficient, improving the efficiency of pet water dispenser and the effect of pet health management.
Smart Images

Figure CN120178707A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent appliances, and more particularly, to a method, device, electronic device and storage medium for reminding pets to drink water. Background Art
[0002] With the rapid development of modern society, people's life rhythm is getting faster and faster. Many people keep pets at home to enrich their spiritual life. Currently, there are more and more intelligent pet breeding devices, such as pet breeding machines, pet water dispensers, and so on.
[0003] In the prior art, a pet water dispenser can record the water intake of a pet through a pressure sensor and the like, but it cannot attract the pet to supplement the water intake in time when the water intake of the pet is insufficient. Summary of the Invention
[0004] The objectives of the present invention include, for example, providing a method, device, electronic device and storage medium for reminding pets to drink water, which can at least partially solve the above technical problems.
[0005] The embodiments of the present invention can be implemented as follows: In a first aspect, an embodiment of the present invention provides a method for reminding pets to drink water, which is applied to a controller of a pet water dispenser. The pet water dispenser further includes a speaker, a water intake detector, and a water pump. The controller is communicatively connected to the speaker, the water intake detector, and the water pump respectively; the method includes: At a water intake detection moment in a water intake detection period, determining a current total water intake of the pet based on the water intake detector; wherein, the water intake detection period includes a plurality of preset time periods, and each of the preset time periods includes at least one water intake detection moment; Judging whether the current total water intake reaches a planned water intake corresponding to the preset time period where the water intake detection moment is located; If not, controlling the speaker to play the pet music corresponding to the pet, and controlling the height of the water column discharged by the water pump according to the pet music.
[0006] Optionally, the controlling the height of the water column discharged by the water pump according to the pet music includes: Real-time obtaining an audio signal of the pet music, decoding the audio signal into a pulse modulation format, and filtering the decoded audio signal; Extracting intensity feature data of the filtered audio signal; Converting the intensity feature data into a pulse width modulation signal; Determining a real-time power of the water pump based on the pulse width modulation signal, and controlling the water pump to discharge water according to the real-time power.
[0007] Optionally, the pet drinking fountain further includes a water tank; determining the current total water intake of the pet based on the water intake detector includes: Controlling the water intake detector to obtain the water tank weight of the water tank in real time; Whenever the water tank weight changes, recording the change value of the water tank weight; Accumulating the change values to obtain the current total water intake.
[0008] Optionally, the method further includes the step of determining the planned water intake, and the step includes: Receiving pet information sent by the user terminal, where the pet information includes pet type, pet weight, and pet food; Determining the planned water intake for the current period according to the pet type, the pet weight, and the pet food; Invoking the total water intake of the pet in the previous water intake detection period and the planned water intake for the corresponding period in the previous water intake detection period; Calculating the difference in total water intake between the planned water intake for the corresponding period in the previous water intake detection period and the total water intake in the previous water intake detection period, and adding the difference in total water intake to the planned water intake for the current period to obtain the planned total water intake for the current period; Based on a preset water intake allocation strategy, allocating the planned total water intake for the current period to each preset time period to obtain the planned water intake corresponding to each preset time period.
[0009] Optionally, the pet drinking fountain further includes a camera, and the camera is communicatively connected to the controller; the pet information further includes a pet photo and a pet number; the step of determining the planned water intake further includes: Receiving multiple sets of pet information sent by the user terminal; respectively determining the corresponding planned total water intake for the current period for each set of pets; in the same water intake detection period, respectively determining multiple preset time periods corresponding to each pet number; and determining the corresponding planned water intake for each preset time period based on the planned total water intake for the current period corresponding to each pet number; The determining the current total water intake of the pet based on the water intake detector further includes: When the water tank weight changes each time, controlling the camera to obtain a pet image; based on the pet image, determining a target pet photo and the pet number corresponding to the target pet photo from each pet photo; binding the pet number to the change value of the water tank weight; respectively accumulating the change values bound to each pet number to obtain the current total water intake corresponding to each pet number.
[0010] Optionally, controlling the audio to play the pet music corresponding to the pet includes: Determining the pet number corresponding to the preset time period in which the water intake detection moment is located; Determining the corresponding pet type according to the pet information where the pet number is located; Calling the pet music library corresponding to the pet type from the database; Controlling the audio to play the pet music in the pet music library.
[0011] Optionally, an infrared device is installed on the camera; the method further includes: Controlling the camera to collect image information in real time and detecting whether there is a pet in the image information; If so, ranging the pet in the image information based on the infrared device; Judging whether the distance from the pet in the image information to the pet water dispenser reaches a preset distance; If so, controlling the water pump to discharge water.
[0012] In a second aspect, an embodiment of the present invention provides a pet drinking water reminder device, which is applied to a controller of a pet water dispenser. The pet water dispenser further includes an audio, a water intake detector, and a water pump. The controller is communicatively connected to the audio, the water intake detector, and the water pump respectively; the pet drinking water reminder device includes: A current water intake total determination unit, configured to determine the current total water intake of the pet based on the water intake detector at the water intake detection moment in the water intake detection cycle; wherein, the water intake detection cycle includes multiple preset time periods, and each preset time period includes at least one water intake detection moment; A judgment unit, configured to judge whether the current total water intake reaches the planned water intake corresponding to the preset time period in which the water intake detection moment is located; A drinking water reminder control unit, configured to control the audio to play the pet music corresponding to the pet and control the height of the water column discharged by the water pump according to the pet music when the current total water intake does not reach the planned water intake corresponding to the preset time period in which the water intake detection moment is located.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the method described in any one of the above are implemented.
[0014] Fourthly, an embodiment of the present invention provides a computer-readable storage medium, which includes a computer program. When the computer program runs, it controls the server where the computer-readable storage medium is located to implement the steps of any one of the above methods.
[0015] The beneficial effects of the embodiments of the present invention include, for example: By detecting the current total water intake of the pet at the water intake detection moment in the water intake detection cycle, if the current total water intake does not reach the planned water intake corresponding to the preset time period at the water intake detection moment, the control speaker plays the corresponding pet music, and at the same time controls the water pump to adjust the height of the water column discharged according to the pet music to attract the pet to supplement the water intake. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 It is a block diagram of an electronic device provided by an embodiment of the present invention; Figure 2 It is a flowchart of the steps of a pet water intake reminder method provided by an embodiment of the present invention; Figure 3 It is an interaction diagram of a pet water dispenser provided by an embodiment of the present invention; Figure 4 It is an architecture diagram of a pet water intake reminder device provided by an embodiment of the present invention.
[0018] Icons: 100 - Electronic device; 110 - Memory; 120 - Processor; 130 - Communication module; 300 - Pet water intake reminder device; 301 - Current total water intake determination unit; 302 - Judgment unit; 303 - Water intake reminder control unit. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Usually, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0020] Accordingly, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of protection of the present invention.
[0021] It should be noted that like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0022] In addition, terms such as "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance.
[0023] It should be noted that, without conflict, the features in the embodiments of the present invention can be combined with each other.
[0024] Currently, keeping pets has become a new fashion. Among the younger generation of working people, keeping pets can relieve the busy work and enrich people's spiritual world. However, when the working people go to work, they do not have enough time to take care of and observe the condition of their pets. Therefore, intelligent devices such as home cameras and pet water dispensers have emerged as the times require.
[0025] In existing pet water dispensers, generally, the water pump is continuously controlled to pump the water in the water tank out after the user turns it on. When the pet needs to drink water, it walks to the pet water dispenser by itself to drink water. For more advanced pet water dispensers, the water intake of the pet is detected by setting a pressure sensor, and the pet's drinking water situation is sent to the user terminal through the cloud server, so that the user can understand the pet's drinking water situation.
[0026] However, existing pet water dispensers cannot determine whether the pet's water intake reaches its health standard, nor can they attract the pet to the pet water dispenser to drink water in time through strategies when the pet's water intake is insufficient.
[0027] Based on the above situation, the embodiments of the present invention provide a pet drinking water reminder method, device, electronic device and storage medium, which can effectively alleviate the above problems.
[0028] Please refer to Figure 1, is a block diagram of an electronic device 100 provided by this application. The electronic device 100 can be a device capable of data processing, and this embodiment does not limit this. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130. Each component is electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0029] Among them, the memory 110 is used to store programs or data. The memory 110 can be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0030] The processor 120 is used to read / write the data or programs stored in the memory and execute corresponding functions.
[0031] The communication module 130 is used to establish a communication connection between the server and other communication terminals through the network and is used to transmit and receive data through the network.
[0032] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100, and the electronic device 100 may also include more or fewer components than those shown in Figure 1 or have a different configuration from that shown in Figure 1 . Figure 1 Each component shown in can be implemented by hardware, software, or a combination thereof. The electronic device 100 can be set among other devices or can be set as an independent device.
[0033] Corresponding to the electronic device 100, an embodiment of the present invention provides a pet drinking water reminder method, which is applied to the controller of a pet water dispenser. The pet water dispenser further includes a speaker, a water consumption detector, and a water pump. The controller is communicatively connected to the speaker, the water consumption detector, and the water pump respectively. The method includes the following steps as shown in Figure 2 . Step S110: At the water intake detection moment in the water intake detection cycle, determine the current total water intake of the pet based on the water intake detector. The water intake detection cycle includes multiple preset time periods, and each preset time period includes at least one water intake detection moment.
[0034] Step S120: Determine whether the current total water intake reaches the planned water intake corresponding to the preset time period where the water intake detection moment is located.
[0035] Step S130: If not, control the speaker to play the pet music corresponding to the pet, and control the height of the water column discharged by the water pump according to the pet music.
[0036] The architecture of the pet water dispenser can be as Figure 3 shown, including a controller, a speaker, a water intake detector, and a water pump, and the controller is communicatively connected to the speaker, the water intake detector, and the water pump respectively.
[0037] In step S110, at the water intake detection moment in the water intake detection cycle, determine the current total water intake of the pet based on the water intake detector. The water intake detection cycle includes multiple preset time periods, and each preset time period includes at least one water intake detection moment.
[0038] The water intake detection cycle can be a cycle used to detect whether the pet's water intake meets the standard. The water intake detection cycle can be divided into multiple preset time periods, and the total duration of each preset time period is the cycle duration of the water intake detection cycle. For each preset time period, one or more water intake detection moments can be set. Then, in a water intake detection cycle, every time a water intake detection moment is reached, a detection of the pet's current total water intake will be triggered.
[0039] For example, if the water intake detection cycle is set to 24 hours a day, starting from 0:00 and ending at 24:00, and there are 8 preset time periods, which are 0:00~3:00, 3:00~6:00, 6:00~9:00, 9:00~12:00, 12:00~15:00, 15:00~18:00, 18:00~21:00, 21:00~24:00, and one water intake detection moment is set for each preset time period, then the current total water intake will be detected 8 times in a water intake detection cycle.
[0040] The water intake detector can be a pressure sensor or a liquid level sensor. Each time the water intake detection is triggered, the controller can control the water intake detector to obtain the remaining water volume in the pet water dispenser, compare the remaining water volume with the initial water volume in the pet water dispenser, and then determine the pet's current total water intake.
[0041] Optionally, the pet water dispenser further includes a water tank. Determining the current total water intake of the pet based on the water intake detector includes: Controlling the water intake detector to obtain the weight of the water tank in real time. Whenever the weight of the water tank changes, record the change value of the water tank weight. Accumulate the change values to obtain the current total water intake.
[0042] In an optional implementation manner, the water intake detector can be set as a pressure sensor and installed below the water tank. The controller controls the water intake detector to obtain the weight of the water tank in real time. When the water volume in the water tank decreases, the weight of the water tank also decreases. After the pet finishes drinking water, the weight of the water tank no longer changes, so that the change value of the water tank weight can be recorded. Record the change value of the water tank weight each time starting from the beginning of the water intake detection period, and accumulate each change value, then the total water intake of the pet at the current moment can be determined.
[0043] In step S120, determine whether the current total water intake reaches the planned water intake corresponding to the preset time period when the water intake detection time is located.
[0044] The planned water intake corresponding to the preset time period can be obtained by allocating the total planned water intake set in a water intake detection period to each preset time period. It should be noted that the planned water intakes corresponding to multiple preset time periods within the same water intake detection period in the embodiments of the present invention are cumulative. For example, if the total planned water intake set in a water intake detection period is 600 ml, and the water intake detection period includes three preset time periods, and the expected water intakes of the pet in the three preset time periods are 100 ml, 200 ml, and 300 ml respectively, then the planned water intakes corresponding to the three preset time periods should be 100 ml, 300 ml, and 600 ml, and the three preset time periods are arranged in chronological order.
[0045] After the controller obtains the current total water intake of the pet, it can determine the corresponding preset time period according to the water intake detection time, and then determine the planned water intake corresponding to the preset time period, and compare the current total water intake with the planned water intake, then it can be judged whether the water intake of the pet in the current preset time period is sufficient.
[0046] Optionally, the method further includes the step of determining the planned water intake, and the step includes: Receiving pet information sent by the user terminal, where the pet information includes pet type, pet weight, and pet food.
[0047] Determine the planned water intake for the current period according to the pet type, the pet weight, and the pet food.
[0048] Call the total water intake of the pet in the previous water intake detection cycle and the corresponding planned water intake for the previous water intake detection cycle.
[0049] Calculate the difference in the total water intake between the planned water intake for the previous water intake detection cycle and the total water intake in the previous water intake detection cycle, and add the difference in the total water intake to the current planned water intake to obtain the current planned total water intake.
[0050] Based on a preset water intake allocation strategy, allocate the current planned total water intake to each of the preset time periods to obtain the planned water intake corresponding to each of the preset time periods.
[0051] As an alternative implementation, the planned water intake for each preset time period can be determined in the following way: Pets of different types (such as kittens and puppies) require different amounts of water per day. For pets of the same type but different weights, the amount of water required also varies. Additionally, even for pets of the same type and weight, due to dietary differences, the amount of water they need is different. Therefore, the planned water intake of the pet can be determined by obtaining the above data.
[0052] Please refer to Figure 3 , the controller can receive pet information including pet type, pet weight, and pet food from the user terminal through the server. Based on the pet type, pet weight, and pet food information input by the user through terminal devices such as mobile phones, the planned water intake of the pet in the current cycle is initially determined. For example, if the water intake of a cat is set at 60 ml / kg, then a 5-kg cat requires 300 ml of water. Generally speaking, the calculation of water intake includes the combined amount ingested from food and water, not just drinking water. Therefore, the water already obtained by the cat from food can also be determined through the cat's daily food. For example, the water content of feed (also called cat dry food) is about 10%, the water content of soft feed is about 50 - 60%, the water content of canned food is above 70%, the water content of fresh food is above 70%, and the water content of raw food is above 70%. Based on the food type and quantity, the water already obtained by the cat from food can be determined. Subtracting the water already obtained from food from the water intake calculated based on the cat's weight and type gives the current planned water intake.
[0053] Call the total water intake of the pet in the previous water intake detection cycle and the corresponding planned water intake for the previous water intake detection cycle, and calculate the difference in the total water intake between the two, which is the amount of water lacking by the pet in the previous water intake detection cycle. Adding it to the current planned water intake can obtain the current planned total water intake.
[0054] By adopting a preset water intake allocation strategy to allocate the total planned water intake for the current period to each preset time period, the planned water intake corresponding to each preset time period is obtained. For example, if the total planned water intake for the current period is 300 ml, there are three preset time periods, and the preset water intake allocation strategy is the equal division mode, then 100 ml of water intake is allocated to each preset time period. Then, the total planned water intakes corresponding to the three preset time periods are 100 ml, 200 ml, and 300 ml respectively.
[0055] Optionally, the pet water dispenser further includes a camera, and the camera is communicatively connected to the controller. The pet information further includes a pet photo and a pet number. The step of determining the planned water intake further includes: Receiving multiple sets of pet information sent by the user terminal. Respectively determining the corresponding total planned water intake for the current period for each set of pets. In the same water intake detection period, respectively determining multiple preset time periods corresponding to each pet number. And determining the corresponding planned water intake for each preset time period based on the total planned water intake for the current period corresponding to each pet number.
[0056] The determining the current total water intake of the pet based on the water intake detector further includes: When the weight of the water tank changes each time, controlling the camera to acquire a pet image. Based on the pet image, determining a target pet photo and the pet number corresponding to the target pet photo from each pet photo. Binding the pet number to the change value of the water tank weight. Respectively accumulating the change values bound to each pet number to obtain the current total water intake corresponding to each pet number.
[0057] In many families, users raise more than one pet, or even multiple pets, and the types of pets are also different. For example, many families raise one cat and one dog each. Therefore, the embodiments of the present invention also provide a solution for multiple pets sharing a pet water dispenser.
[0058] First, receive multiple sets of pet information respectively input by the user terminal. Each set of pet information includes pet type, pet weight, pet food, pet photo, and pet number, and each pet number corresponds to a set of pet information. The corresponding total planned water intake for the current period of the pet corresponding to each pet information can be determined according to the above-mentioned total planned water intake plan for the current period. It is possible to make each pet adopt the same water intake detection period and set multiple preset time periods corresponding to each pet number. Allocating the total planned water intake for the current period corresponding to each pet number to its corresponding preset time period, that is, determining the corresponding planned water intake for each preset time period.
[0059] For example, the user inputs two sets of pet information with pet numbers A1 and B1 respectively, and the drinking water detection period is 24 hours. The drinking water detection period is divided into six preset time periods, namely 0:00 - 4:00, 4:00 - 8:00, 8:00 - 12:00, 12:00 - 16:00, 16:00 - 20:00, 20:00 - 24:00. The preset time periods corresponding to the two pet numbers can be determined in an interleaved manner, that is, the preset time periods corresponding to A1 are 0:00 - 4:00, 8:00 - 12:00, 16:00 - 20:00, and the preset time periods corresponding to B1 are 4:00 - 8:00, 12:00 - 16:00, 20:00 - 24:00. Then, the total planned drinking water volume of the current cycle determined for each of the two pet numbers is allocated to the corresponding preset time periods respectively, and the planned drinking water volume corresponding to each of the two pet numbers is obtained.
[0060] When there are multiple pets, since the same water tank of the same pet water dispenser is used, it is necessary to determine which pet is drinking each time in order to accurately determine the current drinking water volume of each pet. Therefore, when the weight of the water tank changes is detected each time, the camera can be controlled to obtain an image of the pet that is drinking (such as taking a photo or recording a video), and then the target pet photo that matches the pet image obtained by the camera can be determined from the pet photos stored by the user, so as to determine the pet number corresponding to the target pet photo, and bind the pet number to the change value of the water tank weight recorded this time. When the current drinking water volume of each pet needs to be determined each time, the change amounts of the water tank weight bound to each pet number can be accumulated to obtain the current drinking water volume of each pet.
[0061] Of course, since the camera is installed, the user can connect to the controller through the server at the user terminal, so as to remotely observe the pet through the camera.
[0062] In step S130, if not, then control the speaker to play the pet music corresponding to the pet, and control the height of the water column discharged by the water pump according to the pet music.
[0063] If the current drinking water volume of the pet does not reach the planned drinking water volume corresponding to the preset time period at the drinking water detection moment, the controller controls the speaker to play the pet music corresponding to the pet to attract the pet to the pet water dispenser to drink water. Further, the variable frequency speed regulation technology can be adopted to control the motor speed of the water pump according to the rhythm or pitch of the pet music, so that the height of the water column discharged by the water pump changes following the pet music, so as to achieve the effect of attracting the pet.
[0064] Optionally, the controlling the height of the water column discharged by the water pump according to the pet music includes: Obtain the audio signal of the pet music in real time, decode the audio signal into a pulse modulation format, and perform filtering processing on the decoded audio signal.
[0065] Extract the intensity feature data of the audio signal after filtering processing. Convert the intensity feature data into a pulse width modulation signal.
[0066] Determine the real-time power of the water pump based on the pulse width modulation signal, and control the water output of the water pump according to the real-time power.
[0067] In an alternative embodiment, the controller can obtain the audio signal of the pet music in real time, decode the audio signal into a pulse modulation format, and perform filtering and enhancement processing on the audio signal. Then extract the intensity feature data of the processed audio signal and convert it into a pulse width modulation signal. Finally, determine the real-time power of the water pump according to the pulse width modulation signal to control the water output of the water pump, so as to achieve the effect that the water column changes following the rhythm of the pet music.
[0068] Optionally, controlling the speaker to play the pet music corresponding to the pet includes: Determine the pet number corresponding to the preset time period when the water intake detection is performed. Determine the corresponding pet type according to the pet information where the pet number is located.
[0069] Call the pet music library corresponding to the pet type from the database. Control the speaker to play the pet music in the pet music library.
[0070] Different types of pets have different sensitivities to different frequencies and types of music. For example, bird chirping sounds and kitten sucking sounds are most attractive to cats, especially music containing cat language. Research shows that the natural vocal frequency range of cats' calls is about one octave or higher than that of human voices. Some scientists have generated some cat music by imitating the sounds within this frequency range.
[0071] Therefore, when there are multiple pets sharing a pet water dispenser, the pet type of the pet can be determined according to the pet number corresponding to the preset time period when the water intake detection is performed, and the pre-stored pet music library corresponding to the pet type can be called from the database. And control the speaker to play the pet music in the pet music library to attract the pet to supplement water.
[0072] After the end of a water intake detection cycle, the controller can generate a water intake situation table for each pet and send it to the user terminal for the user to view. The water intake situation table can include the amount of water each pet drinks each time and whether it reaches the total planned water intake for the cycle. If not, how much water is still lacking, etc.
[0073] Optionally, an infrared device is installed on the camera. The method further includes: Controlling the camera to collect image information in real time, and detecting whether there is a pet in the image information. If so, ranging the pet in the image information based on the infrared device.
[0074] Judging whether the distance from the pet in the image information to the pet water dispenser reaches a preset distance. If so, controlling the water pump to discharge water.
[0075] Many times, without the reminder and attraction of the pet water dispenser, the pet will also go to the pet water dispenser to drink water by itself. When there is a pet in the image information collected by the camera in real time, the pet is ranged through the infrared device. If the distance from the pet to the pet water dispenser is less than or equal to the preset distance, the water pump is controlled to discharge water. When it leaves beyond the preset distance after drinking water, the water pump is controlled to stop discharging water to achieve the effect of energy saving.
[0076] If the user has returned home, the remote connection of the server communication can be disconnected through the program corresponding to the user terminal, and directly communicate with the controller of the pet water dispenser through Bluetooth or other means, and switch the drinking mode from the automatic mode to the manual mode to directly issue instructions to the controller.
[0077] Based on the same inventive concept, as Figure 4 shown, an embodiment of the specification of the present invention provides a pet drinking reminder device 300, which is applied to the controller of a pet water dispenser. The pet water dispenser further includes a speaker, a water intake detector, and a water pump. The controller is respectively communicatively connected to the speaker, the water intake detector, and the water pump. The pet drinking reminder device 300 includes: A current water intake total determination unit 301, configured to determine the current total water intake of the pet based on the water intake detector at the water intake detection moment in the water intake detection cycle. Wherein, the water intake detection cycle includes a plurality of preset time periods, and each preset time period includes at least one water intake detection moment.
[0078] A judgment unit 302, configured to judge whether the current total water intake reaches the planned water intake corresponding to the preset time period where the water intake detection moment is located.
[0079] A drinking reminder control unit 303, configured to control the speaker to play the pet music corresponding to the pet and control the height of the water column discharged by the water pump according to the pet music when the current total water intake does not reach the planned water intake corresponding to the preset time period where the water intake detection moment is located.
[0080] Regarding the above-mentioned pet drinking reminder device 300, the specific functions of each unit have been described in detail in the embodiments of the pet drinking reminder method provided in this specification, and will not be elaborated here.
[0081] Based on the same inventive concept, an embodiment of the specification of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the steps of any of the pet drinking reminder methods described above.
[0082] The present invention has at least the following beneficial effects: 1. By detecting the current total drinking volume of the pet at the drinking volume detection moment in the drinking volume detection period, if the current total drinking volume does not reach the planned drinking volume corresponding to the preset time period in which the drinking volume detection moment is located, control the speaker to play the corresponding pet music, and at the same time control the water pump to adjust the height of the water column flowing out according to the pet music, so as to attract the pet to supplement the drinking volume.
[0083] 2. The pet drinking reminder method provided by the embodiment of the present invention can enable multiple pets to share a pet drinking fountain and respectively remind each pet to drink water, which is more convenient and economical.
[0084] 3. When the pet actively approaches the pet drinking fountain, turn on the water pump, and when the pet leaves the pet drinking fountain, turn off the water pump, achieving the effect of energy saving.
[0085] In several embodiments provided by the present invention, it should be understood that the disclosed device and method can also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0086] In addition, in each embodiment of the present invention, the functional modules may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
[0087] If the above-mentioned function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0088] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for reminding a pet to drink water, characterized in that: A controller applied to a pet water dispenser, the pet water dispenser further comprising a speaker, a water drinking volume detector and a water pump, the controller being respectively connected to the speaker, the water drinking volume detector and the water pump in communication; the method comprising: At the drinking water amount detection moment in the drinking water amount detection cycle, the current total amount of drinking water of the pet is determined based on the drinking water amount detector; wherein the drinking water amount detection cycle includes a plurality of preset time periods, each of the preset time periods includes at least one drinking water amount detection moment; Determine whether the current total amount of water intake reaches the planned water intake corresponding to the preset time period at the time of water intake detection; If not, the speaker is controlled to play the pet music corresponding to the pet, and the height of the water column discharged by the water pump is controlled according to the pet music.
2. The pet drinking water reminder method according to claim 1, characterized in that: The step of controlling the height of the water column discharged by the water pump according to the pet music comprises: Acquire the audio signal of the pet music in real time, decode the audio signal into a pulse modulation format, and perform filtering processing on the decoded audio signal; Extracting intensity feature data of the audio signal after filtering; Converting the intensity characteristic data into a pulse width modulation signal; The real-time power of the water pump is determined based on the pulse width modulation signal, and the water output of the water pump is controlled according to the real-time power.
3. The pet drinking water reminder method according to claim 1, characterized in that: The pet drinking fountain also includes a water tank; the method of determining the current total amount of water consumed by the pet based on the drinking water detector includes: Control the drinking water amount detector to obtain the water tank weight of the water tank in real time; Whenever the weight of the water tank changes, the change value of the weight of the water tank is recorded; The change values are accumulated to obtain the current total amount of water consumed.
4. The pet drinking water reminder method according to claim 3, characterized in that: The method further comprises the step of determining the planned water intake, the step comprising: Receiving pet information sent by a user terminal, wherein the pet information includes pet type, pet weight, and pet food; Determine the planned drinking water amount for the current cycle according to the pet type, the pet weight and the pet food; Calling the total amount of water drunk by the pet in the last water drinking detection cycle and the periodic planned water drinking amount corresponding to the last water drinking detection cycle; Calculate the total drinking water amount difference between the planned drinking water amount in the previous drinking water amount detection cycle and the total drinking water amount in the previous drinking water amount detection cycle, and add the total drinking water amount difference to the planned drinking water amount in the current cycle to obtain the planned drinking water amount in the current cycle; Based on the preset drinking water allocation strategy, the total planned drinking water volume of the current cycle is allocated to each of the preset time periods to obtain the planned drinking water volume corresponding to each of the preset time periods.
5. The pet drinking water reminder method according to claim 4, characterized in that: The pet water dispenser further comprises a camera, and the camera is communicatively connected with the controller; The pet information also includes a pet photo and a pet number; The step of determining the planned water intake also includes: Receive multiple groups of pet information sent by the user terminal; determine the total amount of water planned to be drunk in the current cycle for each group of pets; determine multiple preset time periods corresponding to each pet number in the same water drinking detection cycle; and determine the corresponding planned water drinking amount for each preset time period based on the total amount of water planned to be drunk in the current cycle corresponding to each pet number; The method of determining the current total amount of water consumed by the pet based on the water consumption detector further includes: Every time the weight of the water tank changes, the camera is controlled to obtain a pet image; based on the pet image, a target pet photo and a pet number corresponding to the target pet photo are determined from the pet photos; the pet number is bound to the change value of the water tank weight; the change values bound to each pet number are accumulated respectively to obtain the current total amount of water consumed corresponding to each pet number.
6. The pet drinking water reminder method according to claim 5, characterized in that: The controlling the speaker to play pet music corresponding to the pet includes: Determine the pet number corresponding to the preset time period during which the drinking water amount detection moment occurs; Determine the corresponding pet type according to the pet information of the pet number; Calling a pet music library corresponding to the pet type from a database; The speaker is controlled to play the pet music in the pet music library.
7. The pet drinking water reminder method according to claim 5, characterized in that: The camera is equipped with an infrared device; the method further comprises: Controlling the camera to collect image information in real time, and detecting whether there is a pet in the image information; If yes, measuring the distance of the pet in the image information based on the infrared device; Determine whether the distance between the pet in the image information and the pet drinking fountain reaches a preset distance; If yes, the water pump is controlled to discharge water.
8. A pet drinking water reminder device, characterized in that: A controller applied to a pet water dispenser, the pet water dispenser further comprising a speaker, a water drinking amount detector and a water pump, the controller being respectively connected to the speaker, the water drinking amount detector and the water pump in communication; The pet drinking water reminder device comprises: A current total amount of water drinking determination unit, used to determine the current total amount of water drinking of the pet based on the water drinking detector at the water drinking detection moment in the water drinking detection cycle; wherein the water drinking detection cycle includes a plurality of preset time periods, each of the preset time periods includes at least one water drinking detection moment; A judging unit, used to judge whether the current total amount of water intake reaches the planned water intake corresponding to the preset time period at the time of water intake detection; A drinking water reminder control unit is used to control the audio to play the pet music corresponding to the pet when the current total amount of drinking water does not reach the planned drinking water amount corresponding to the preset time period at the drinking water amount detection moment, and control the height of the water column of the water pump according to the pet music.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program, and when the computer program is executed, the server where the computer-readable storage medium is located is controlled to implement the steps of the method according to any one of claims 1 to 7.