Control method of water receiving device, controller, water receiving device and storage medium
By installing a touch controller and a liquid level sensor in the water receiving device, the switch of the water outlet is automatically controlled, solving the problems of excessive water intake and safety hazards caused by users manually observing the water level, and realizing automated liquid level filling.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HEFEI MIDEA REFRIGERATOR CO LTD
- Filing Date
- 2024-10-24
- Publication Date
- 2026-04-24
AI Technical Summary
Users need to manually observe the water level when obtaining water at a specific height, which may lead to excessive water intake or overflow. Furthermore, there are safety hazards when obtaining hot water, and automatic control is not possible.
The water receiving device is equipped with a touch controller and a liquid level sensor. The touch signal and liquid level detection automatically control the switch of the water outlet to achieve the corresponding liquid level filling.
It enables automatic water level adjustment based on the user's touch position to prevent overflow and improve safety, and allows for setting any water level and automatic water shut-off.
Smart Images

Figure CN121910259A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water receiving device technology, and in particular to a control method, controller, water receiving device, and storage medium for a water receiving device. Background Technology
[0002] In related technologies, when a user wants to obtain a cup of water to a specific height, they need to observe the water level to determine when to stop the water supply. This can lead to users taking too much water or even overflowing the cup, and there are potential safety hazards when obtaining hot water. Furthermore, it cannot achieve automatic water dispensing at the user's desired height. Summary of the Invention
[0003] This application aims to at least solve one of the technical problems existing in the prior art. To this end, this application proposes a control method, controller, water receiving device, and storage medium for a water receiving device, which is designed to automatically complete the filling of liquid at a corresponding height.
[0004] In a first aspect, embodiments of this application provide a control method for a water receiving device. The water receiving device is provided with a accommodating space for placing a water receiving container. The accommodating space is provided with a touch controller, a liquid level sensor, and a water outlet. The touch controller is disposed on the side wall of the accommodating space, and the liquid level sensor and the water outlet are located in the upper part of the accommodating space. The method includes:
[0005] The device receives a touch signal from the touch controller and responds by controlling the water outlet to start dispensing water, wherein the touch signal is generated by the touch controller based on the user's touch position on the touch controller;
[0006] The first distance in the height direction between the touch position and the top or bottom of the touch device is determined based on the touch signal;
[0007] The second distance in the height direction between the current liquid level of the water intake container and the liquid level sensor is detected by the liquid level sensor.
[0008] Based on the first distance and the second distance, the height of the current liquid level is determined to be consistent with the height of the touch position, and the water outlet is controlled to stop discharging water.
[0009] According to some embodiments of this application, when the first distance is a first upper distance in the height direction between the touch position and the top of the touch device, determining that the current liquid level is at the same height as the touch position based on the first distance and the second distance includes:
[0010] Obtain a preset second upper distance, wherein the second upper distance is the distance between the top of the touch controller and the liquid level sensor in the height direction;
[0011] When the sum of the first upper distance and the second upper distance equals the second distance, it is determined that the current liquid level is at the same height as the touch position.
[0012] According to some embodiments of this application, when the first distance is a first lower distance in the height direction between the touch position and the bottom end of the touch device, determining that the current liquid level is at the same height as the touch position based on the first distance and the second distance includes:
[0013] Obtain a preset second lower distance and a third distance, wherein the second lower distance is the distance in the height direction between the bottom of the touch device and the bottom wall of the accommodating space, and the third distance is the distance in the height direction between the liquid level sensor and the bottom wall of the accommodating space;
[0014] When the sum of the first lower distance, the second lower distance, and the second distance equals the third distance, it is determined that the current liquid level is at the same height as the touch position.
[0015] According to some embodiments of this application, when the touchscreen is a resistive touchscreen, the touch position is determined by the following steps:
[0016] Receives the electrical signal from the resistive touchscreen;
[0017] The resistance value corresponding to the touch position is determined based on the electrical signal;
[0018] The user's touch position on the resistive touchpad is determined based on the resistance value.
[0019] According to some embodiments of this application, when the touchpad is a capacitive touchpad, the touch position is determined by the following steps:
[0020] Receives the electrical signal from the capacitive touch controller;
[0021] The capacitance value corresponding to the touch position is determined based on the electrical signal;
[0022] The user's touch position on the capacitive touchpad is determined based on the capacitance value.
[0023] According to some embodiments of this application, the touchpad includes one of the following:
[0024] A touch bar, wherein the length of the touch bar is arranged along the vertical direction;
[0025] Multiple touch points are arranged sequentially and positioned along the vertical direction.
[0026] According to some embodiments of this application, the liquid level sensor is one of the following: a TOF sensor, a radar sensor, or an ultrasonic sensor.
[0027] Secondly, embodiments of this application provide a control method for a water receiving device. The water receiving device is provided with a accommodating space for placing a water-collecting container. The accommodating space is provided with a touch controller, a liquid level sensor, and a water outlet. The touch controller is disposed on the side wall of the accommodating space, and the liquid level sensor and the water outlet are located in the upper part of the accommodating space. The method includes:
[0028] The device receives a touch signal from the touch controller and responds by controlling the water outlet to start dispensing water, wherein the touch signal is generated by the touch controller based on the user's touch position on the touch controller;
[0029] The target liquid surface position corresponding to the touch position is determined based on the touch signal;
[0030] The current liquid level position of the water intake container is detected by the liquid level sensor;
[0031] Thirdly, embodiments of this application provide a controller, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the control method for the water receiving device described in the first and / or second aspects when running the computer program.
[0032] Fourthly, embodiments of this application provide a water receiving device, including the controller described in the third aspect above.
[0033] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing a control method for a water receiving device as described in the first and / or second aspects above.
[0034] Sixthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the control method of the water receiving device as described in the first and / or second aspects above.
[0035] According to the technical solution of the embodiments of this application, at least the following beneficial effects are achieved: First, the water receiving device is provided with a accommodating space for placing a water container. The accommodating space is provided with a touch controller, a liquid level sensor, and a water outlet. The touch controller is located on the side wall of the accommodating space, and the liquid level sensor and the water outlet are located on the upper part of the accommodating space. The water receiving device receives the touch signal from the touch controller and responds by controlling the water outlet to start dispensing water. The touch signal is generated by the touch controller based on the user's touch position on the touch controller. A first distance in the height direction between the touch position and the top or bottom of the touch controller is determined based on the touch signal. A second distance in the height direction between the current liquid level of the water container and the liquid level sensor is detected by the liquid level sensor. Based on the first distance and the second distance, it is determined that the current liquid level is at the same height as the touch position, and the water outlet is controlled to stop dispensing water. Because this application embodiment adds a touch controller, the user's touch height on the touch controller is used as the target height for water filling. The user can set any height of liquid level by touch, and the water will automatically stop when the liquid level reaches the user's touch height on the touch controller, thereby automatically completing the filling of the corresponding height of liquid level.
[0036] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0037] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0038] Figure 1 This is a schematic diagram of the structure of a water receiving device provided in one embodiment of this application;
[0039] Figure 2 This is a flowchart of a control method for a water receiving device provided in one embodiment of this application;
[0040] Figure 3 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application;
[0041] Figure 4 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application;
[0042] Figure 5 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application;
[0043] Figure 6 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application;
[0044] Figure 7This is a schematic diagram of the structure of a water receiving device provided in another embodiment of this application;
[0045] Figure 8 This is a schematic diagram of the structure of a water receiving device provided in another embodiment of this application;
[0046] Figure 9 This is a schematic diagram of a controller for performing a control method for a water receiving device according to an embodiment of this application. Detailed Implementation
[0047] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0048] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0049] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0050] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0051] In some situations, when a user wants to fill a cup of water to a specific height, they need to observe the water level to determine when to stop the water supply. However, this could lead to the user filling the cup too much or even overflowing, posing a safety hazard when obtaining hot water, and making it impossible to automatically dispense water at the user's desired height.
[0052] Based on the above, this application proposes a control method, controller, water receiving device, and storage medium for a water receiving device, which aims to automatically complete the filling of liquid at the corresponding height.
[0053] The various embodiments of the water receiving device of this application will be further described below with reference to the accompanying drawings.
[0054] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of a water receiving device provided in one embodiment of this application.
[0055] In one embodiment, the water receiving device 100 includes a accommodating space 110 for placing a water receiving container 150. The accommodating space 110 is provided with a touch controller 120, a liquid level sensor 130, and a water outlet 140. The touch controller 120 is disposed on the side wall of the accommodating space 110, and the liquid level sensor 130 and the water outlet 140 are located in the upper part of the accommodating space.
[0056] In one embodiment, the accommodating space 110 is a semi-enclosed space, with the front side being the entrance for placing the water container 150. The touch controller 120 is disposed on the left side wall, right side wall, or rear side wall of the accommodating space 110, and the liquid level sensor 130 and the water outlet 140 are located in the upper middle position of the accommodating space 110.
[0057] Based on the hardware structure of the water receiving device in the above embodiments, the following presents various embodiments of the control method of the water receiving device of this application.
[0058] like Figure 2 As shown, Figure 2 This is a flowchart of a control method for a water receiving device provided in one embodiment of this application; the control method for the water receiving device may include, but is not limited to, steps S210, S220, S230 and S240.
[0059] Step S210: Receive the touch signal from the touch controller and respond by controlling the water outlet to start dispensing water. The touch signal is generated by the touch controller based on the user's touch position on the touch controller.
[0060] Step S220: Determine the first distance in the height direction between the touch position and the top or bottom of the touch device based on the touch signal.
[0061] Step S230: Detect the second distance in the height direction between the current liquid level of the water intake container and the liquid level sensor using the liquid level sensor.
[0062] Step S240: Determine that the current liquid level is at the same height as the touch position based on the first distance and the second distance, and control the water outlet to stop discharging water.
[0063] In one embodiment, firstly, when a user needs to collect water, the user selects the desired height by touching the touch controller. The water collection device receives the touch signal after the user touches the controller and determines a first distance in the height direction between the user-selected touch position and the top or bottom of the touch controller. The controller of the water collection device responds to the touch signal and controls the water outlet to start dispensing water. The water collection device detects a second distance in the height direction between the current liquid level in the water container and the liquid level sensor via a liquid level sensor. When the current liquid level matches the height of the user-selected touch position, the controller of the water collection device stops dispensing water. Because this embodiment adds a touch controller, using the user's touch height on the touch controller as the target height for water collection, it allows for setting any liquid level height via touch. Furthermore, it automatically stops dispensing water when the liquid level reaches the user's touch height on the touch controller, thus automatically completing the filling of the corresponding liquid level.
[0064] It should be noted that the first distance is either the first upper distance or the first lower distance. The first upper distance is the distance in the height direction from the touch position determined by the touch signal to the top of the touch device, and the first lower distance is the distance in the height direction from the touch position determined by the touch signal to the bottom of the touch device.
[0065] It is understandable that the second distance is the distance in the vertical direction between the current liquid level of the water receiving container and the liquid level sensor. The current liquid level of the water receiving container will change according to the water receiving process.
[0066] Alternatively, the height of the current liquid level and the touch position can be determined by the first upper distance and the second distance, or the height of the current liquid level and the touch position can be determined by the first lower distance and the second distance, and the water outlet can be controlled to stop discharging water.
[0067] In one embodiment, a touch signal from a touch controller is received, and the water outlet is controlled to start dispensing water. The touch signal is generated by the touch controller based on the user's touch position on the controller. A target liquid level position corresponding to the touch position is determined based on the touch signal. The current liquid level position in the water container is detected by a liquid level sensor. When the current liquid level position matches the target liquid level position, the water outlet is controlled to stop dispensing water. Because this embodiment adds a touch controller, using the user's touch height on the controller as the target water dispensing height, any liquid level can be set via touch. Furthermore, the water dispensing automatically stops when the liquid level reaches the user's touch height, thus automatically completing the filling of the corresponding liquid level.
[0068] like Figure 3 As shown, Figure 3This is a flowchart of a control method for a water receiving device provided in another embodiment of this application; when the first distance is the first upper distance between the touch position and the top of the touch device in the height direction, the above step S240 may include, but is not limited to, steps S310 and S320.
[0069] Step S310: Obtain a preset second upper distance, wherein the second upper distance is the distance between the top of the touch controller and the liquid level sensor in the height direction;
[0070] Step S320: When the sum of the first upper distance and the second upper distance equals the second distance, determine that the current liquid surface is at the same height as the touch position.
[0071] In one embodiment, in order to determine the height of the current liquid surface and the touch position, firstly, the present application embodiment will preset a second upper distance, wherein the second upper distance is the distance between the top of the touch device and the liquid level sensor in the height direction. Then, when the first distance is the first upper distance between the touch position and the top of the touch device in the height direction, when the sum of the first upper distance and the second upper distance is equal to the second distance, it is determined that the current liquid surface and the touch position are at the same height.
[0072] It should be noted that the preset distance of the second upper distance in step S310 above can be different depending on the scenario. This application does not impose specific restrictions on the preset distance of the second upper distance.
[0073] In one embodiment, when a user touches any position on the touch controller, the water outlet starts to dispense water. When the sum of the first upper distance and the second upper distance is less than the second distance, the water outlet continues to dispense water. When the sum of the first upper distance and the second upper distance is equal to the second distance, the water outlet stops dispensing water. When the sum of the first upper distance and the second upper distance is greater than the second distance, the water receiving device automatically cuts off the power, and the water outlet stops dispensing water.
[0074] like Figure 4 As shown, Figure 4 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application; when the first distance is the first lower distance between the touch position and the bottom of the touch device in the height direction, the above step S240 may include, but is not limited to, steps S410 and S420.
[0075] Step S410: Obtain the preset second lower distance and third distance, wherein the second lower distance is the distance between the bottom of the touch device and the bottom wall of the accommodating space in the height direction, and the third distance is the distance between the liquid level sensor and the bottom wall of the accommodating space in the height direction.
[0076] Step S420: When the sum of the first lower distance, the second lower distance, and the second distance equals the third distance, determine that the current liquid surface is at the same height as the touch position.
[0077] In one embodiment, in order to determine the height of the current liquid surface and the touch position, the water receiving device of this application embodiment first obtains a preset second lower distance and a third distance, then calculates the first lower distance, the second lower distance and the sum of the second distance, and determines the height of the current liquid surface and the touch position by comparing the sum of the first lower distance, the second lower distance and the third distance. When the sum of the first lower distance, the second lower distance and the second distance is equal to the third distance value, it is determined that the current liquid surface and the touch position are at the same height.
[0078] In one embodiment, when the distance between the top of the touchpad and the liquid level sensor in the height direction is 0, and the distance between the bottom of the touchpad and the bottom wall of the accommodating space in the height direction is 0, that is, the height of the touchpad is the distance between the liquid level sensor and the bottom wall of the accommodating space in the height direction.
[0079] In one embodiment, when the distance between the top of the touchpad and the liquid level sensor in the height direction is 0, and the distance between the bottom of the touchpad and the bottom wall of the accommodating space in the height direction is not 0, that is, the height of the touchpad is the distance between the liquid level sensor and the bottom of the touchpad in the height direction.
[0080] In one embodiment, when the distance between the top of the touchpad and the liquid level sensor in the height direction is not zero, and the distance between the bottom of the touchpad and the bottom wall of the accommodating space in the height direction is zero, that is, the height of the touchpad is the distance between the top of the touchpad and the bottom wall of the accommodating space in the height direction.
[0081] In one embodiment, when the distance between the top of the touchpad and the liquid level sensor in the height direction is not zero, and the distance between the bottom of the touchpad and the bottom wall of the accommodating space in the height direction is not zero, that is, the height of the touchpad is the distance between the top of the touchpad and the bottom of the touchpad.
[0082] It should be noted that the aforementioned second upper distance can be preset by the user or the system. The user or the system can set the specific value of the second upper distance, and this application embodiment does not specifically limit the value of the second upper distance.
[0083] It should be noted that the aforementioned second lower distance can be preset by the user or the system. The user or system can set the specific value of the second lower distance; however, this embodiment does not specifically limit the value of the second lower distance.
[0084] In one embodiment, when a user touches any position on the touchscreen with their finger, water begins to flow from the water outlet. When the sum of the first lower distance, the second lower distance, and the second distance is greater than the third distance, the water outlet continues to flow water. When the sum of the first lower distance, the second lower distance, and the second distance is equal to the third distance, the water outlet stops flowing water. When the sum of the first lower distance, the second lower distance, and the second distance is less than the third distance, the water receiving device automatically cuts off the power, and the water outlet stops flowing water.
[0085] like Figure 5 As shown, Figure 5 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application; when the touch controller is a resistive touch controller, the process of obtaining the touch position may include, but is not limited to, steps S510, 520 and S530.
[0086] Step S510: Receive the electrical signal from the resistive touch controller.
[0087] Step S520: Determine the resistance value corresponding to the touch position based on the electrical signal.
[0088] Step S530: Determine the user's touch position on the resistive touchscreen based on the resistance value.
[0089] In one embodiment, the resistive touchscreen consists of two conductive layers, typically a hard-coated plastic layer and a flexible plastic layer, separated by tiny insulating points. When a user touches the screen, the pressure of their finger causes the two conductive layers to contact at the contact point, forming a low-resistance path. The controller measures the resistance changes at the four corners of the screen to determine the resistance value corresponding to the touch position, and calculates the resistance value to determine the user's touch position on the resistive touchscreen.
[0090] In addition, due to its structure, resistive touchscreens are generally more durable and can withstand a certain amount of pressure and wear. Compared to other types of touch technology, resistive touchscreens are less expensive and respond to various touch methods.
[0091] like Figure 6 As shown, Figure 6 This is a flowchart of a control method for a water receiving device provided in another embodiment of this application; when the touch controller is a capacitive touch controller, the process of obtaining the touch position may include, but is not limited to, steps S610, 620 and S630.
[0092] Step S610: Receive the electrical signal from the capacitive touch controller;
[0093] Step S620: Determine the resistance value corresponding to the touch position based on the electrical signal;
[0094] Step S630: Determine the user's touch position on the capacitive touch controller based on the resistance value.
[0095] In one embodiment, the capacitive touchscreen screen surface is covered with a layer of transparent conductive material, typically ITO (Indium Tin Oxide), forming a capacitor. When a user touches the screen, because the human body is conductive, the finger forms a capacitor, which interacts with the capacitor on the screen surface, causing a change in capacitance.
[0096] In one embodiment, the touch controller includes one of the following: a touch bar, the length of which is arranged in a vertical direction; and a plurality of touch points, which are arranged sequentially and in a vertical direction.
[0097] In one embodiment, when a user touches the screen, the touch bar receives a signal and determines the user's touch position on the touchpad based on the touch signal. The capacitive touch bar is a flexible capacitive touch bar, meaning it can bend, shrink, or deform without affecting its ability to process and transmit signals.
[0098] In one embodiment, the touch controller further includes an operation recognition device, a detection unit for detecting touch operations applied to the touch screen and acquiring touch information of the touch operation, the touch information including at least the number of touch areas, the number of adjacent touch points contained in each touch area, and the touch duration; and a judgment unit for determining that if the number of touch areas contained in the touch information, the number of adjacent touch points contained in each touch area, and the touch duration meet preset operation conditions, the touch operation is determined to be a human hand touch; otherwise, the touch operation is determined to be a non-human hand touch.
[0099] If it is determined that the number of touch areas in each touch area contained in the touch information is higher than the first area threshold and lower than the second area threshold, and it is determined that the number of adjacent touch points contained in each touch area meets the preset touch conditions, and it is determined that the touch duration is higher than the preset time threshold, then the touch operation is determined to be a human hand operation.
[0100] In one embodiment, the type of liquid level sensor may be a TOF (Time of Flight) sensor, a radar sensor, or an ultrasonic sensor.
[0101] One type of sensor, the Time-of-Flight (TOF) sensor, measures distance and speed by measuring the time it takes for a light or electromagnetic pulse to travel from emission to return. A TOF sensor emits a brief pulse of light or electromagnetic light, which is reflected back upon encountering an object. The sensor receives the reflected light or electromagnetic wave, and by calculating the time difference between emission and reception, it can determine the round-trip time. Using the speed of light (or the speed of electromagnetic waves) and the round-trip time, the distance between the sensor and the object can be calculated.
[0102] Radar sensors, in particular, use radar technology to measure the level, flow rate, or volume of liquids. They employ radio waves (usually microwaves) to measure liquid level or flow rate. The sensor emits a radio wave pulse, which is reflected back when it encounters a liquid surface or other object. The sensor receives the reflected wave and measures the time difference between transmission and reception to calculate the distance to the liquid surface or the flow rate. Non-contact sensors do not interfere with liquid flow and are suitable for various environments. Radar sensors provide accurate level and flow rate measurements, unaffected by liquid color, turbidity, or foam. Furthermore, the non-contact measurement reduces wear and extends the sensor's lifespan.
[0103] Among them, ultrasonic sensors refer to sensors that use ultrasound as an energy source to measure distance. They are relatively quick and convenient to use, simple to calculate, easy to implement in real time, and meet the measurement accuracy requirements for industrial applications. Liquid ultrasonic sensors work by emitting ultrasonic pulses into a liquid and receiving the echoes reflected back from the liquid surface or objects inside the liquid. The sensor measures the time difference between the emitted pulse and the received echo, and calculates the distance between the sensor and the liquid surface or other objects based on the known propagation speed of ultrasound in the liquid.
[0104] See Figure 7 , Figure 7 This is a schematic diagram of the structure of a water receiving device provided in one embodiment of this application;
[0105] It should be noted that H1 represents the second upper distance, H2 represents the first upper distance, and H3 represents the second distance.
[0106] In one embodiment, when a user needs to collect water, the user selects the desired height by touching any position on the touch controller. The water collection device receives the touch signal after the user touches the touch controller. At this time, the water collection device can determine the first upper distance in the height direction between the touch position selected by the user and the top of the touch controller based on the touch signal. The controller of the water collection device responds to the touch signal and controls the water outlet to start dispensing water. The water collection device detects the second distance in the height direction between the current liquid level of the water container and the liquid level sensor through a liquid level sensor. When the sum of the preset second upper distance and the first upper distance equals the second distance, the controller of the water collection device controls the water outlet to stop dispensing water.
[0107] See Figure 8 , Figure 8 This is a schematic diagram of the structure of a water receiving device provided in one embodiment of this application;
[0108] It should be noted that H4 represents the first lower distance, H5 represents the second lower distance, and H6 represents the third distance.
[0109] In one embodiment, when a user needs to collect water, the user selects the desired height by touching any position on the touchscreen. The water collection device receives the touch signal after the user touches the touchscreen. At this time, the water collection device can determine the first lower distance in the height direction between the touch position selected by the user and the bottom of the touchscreen based on the touch signal. The controller of the water collection device responds to the touch signal and controls the water outlet to start dispensing water. The water collection device detects the current liquid level of the water container and the second distance in the height direction between the liquid level sensor and the liquid level sensor through the liquid level sensor. When the sum of the preset second lower distance, the first lower distance and the second distance is equal to the third distance, the controller of the water collection device controls the water outlet to stop dispensing water.
[0110] Based on the control methods of the water receiving device in the above embodiments, the following presents various embodiments of the controller, water receiving device, computer-readable storage medium, and computer program product of this application.
[0111] like Figure 9 As shown, Figure 9 This is a schematic diagram of a controller for executing a control method for a water receiving device according to an embodiment of this application. The controller 900 implemented in this application includes: a processor 910, a memory 920, and a computer program stored in the memory 920 and executable on the processor 910, wherein... Figure 9 The example uses a processor 910 and a memory 920.
[0112] The processor 910 and the memory 920 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.
[0113] Memory 920, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 920 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 920 may optionally include remotely located memories 920 relative to processor 910, which can be connected to controller 900 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0114] Those skilled in the art will understand that Figure 9 The device structure shown does not constitute a limitation on the controller 900 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0115] exist Figure 9 In the controller 900 shown, the processor 910 can be used to call the control program stored in the memory 920, thereby implementing the control method of the water receiving device described above. Specifically, the non-transitory software program and instructions required to implement the control method of the water receiving device in the above embodiment are stored in the memory 920. When executed by the processor 910, the control method of the water receiving device in the above embodiment is executed.
[0116] It is worth noting that since the controller 900 of this application embodiment can execute the control method of the water receiving device of any of the above embodiments, the specific implementation method and technical effect of the controller 900 of this application embodiment can refer to the specific implementation method and technical effect of the control method of the water receiving device of any of the above embodiments.
[0117] Furthermore, one embodiment of this application also provides a water receiving device, which includes the controller described in the above embodiment.
[0118] It is worth noting that, since the water receiving device of this application embodiment includes the controller of the above embodiment, and the controller of the above embodiment can execute the control method of the water receiving device of any of the above embodiments, the specific implementation method and technical effect of the water receiving device of this application embodiment can refer to the specific implementation method and technical effect of the control method of the water receiving device of any of the above embodiments.
[0119] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for performing the control method of the water receiving device described above. Exemplarily, the above-described... Figures 2 to 6 The methods and steps in the text.
[0120] It is worth noting that, since the computer-readable storage medium of this application embodiment can execute the control method of the water receiving device of any of the above embodiments, the specific implementation and technical effects of the computer-readable storage medium of this application embodiment can be referred to the specific implementation and technical effects of the control method of the water receiving device of any of the above embodiments.
[0121] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the aforementioned control method for a water-receiving device. Exemplarily, the above-described method is performed... Figures 2 to 6 The methods and steps in the text.
[0122] It is worth noting that, since the computer program product of this application embodiment can execute the control method of the water receiving device of any of the above embodiments, the specific implementation method and technical effect of the computer program product of this application embodiment can refer to the specific implementation method and technical effect of the control method of the water receiving device of any of the above embodiments.
[0123] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0124] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0125] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0126] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0127] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A control method for a water receiving device, characterized in that, The water receiving device is provided with a accommodating space for placing a water receiving container. The accommodating space includes a touch controller, a liquid level sensor, and a water outlet. The touch controller is located on the side wall of the accommodating space, and the liquid level sensor and the water outlet are located at the top of the accommodating space. The method includes: The device receives a touch signal from the touch controller and responds by controlling the water outlet to start dispensing water, wherein the touch signal is generated by the touch controller based on the user's touch position on the touch controller; The first distance in the height direction between the touch position and the top or bottom of the touch device is determined based on the touch signal; The second distance in the height direction between the current liquid level of the water intake container and the liquid level sensor is detected by the liquid level sensor. Based on the first distance and the second distance, the height of the current liquid level is determined to be consistent with the height of the touch position, and the water outlet is controlled to stop discharging water.
2. The method according to claim 1, characterized in that, When the first distance is the first upper distance between the touch position and the top of the touch device in the height direction, determining that the current liquid level is at the same height as the touch position based on the first distance and the second distance includes: Obtain a preset second upper distance, wherein the second upper distance is the distance between the top of the touch controller and the liquid level sensor in the height direction; When the sum of the first upper distance and the second upper distance equals the second distance, it is determined that the current liquid level is at the same height as the touch position.
3. The method according to claim 1, characterized in that, When the first distance is the first lower distance in the height direction between the touch position and the bottom of the touch device, determining that the current liquid level is at the same height as the touch position based on the first distance and the second distance includes: Obtain a preset second lower distance and a third distance, wherein the second lower distance is the distance in the height direction between the bottom of the touch device and the bottom wall of the accommodating space, and the third distance is the distance in the height direction between the liquid level sensor and the bottom wall of the accommodating space; When the sum of the first lower distance, the second lower distance, and the second distance equals the third distance, it is determined that the current liquid level is at the same height as the touch position.
4. The method according to claim 1, characterized in that, When the touchscreen is a resistive touchscreen, the touch position is determined by the following steps: Receives the electrical signal from the resistive touchscreen; The resistance value corresponding to the touch position is determined based on the electrical signal; The user's touch position on the resistive touchpad is determined based on the resistance value.
5. The method according to claim 1, characterized in that, When the touchscreen is a capacitive touchscreen, the touch position is determined by the following steps: Receives the electrical signal from the capacitive touch controller; The capacitance value corresponding to the touch position is determined based on the electrical signal; The user's touch position on the capacitive touchpad is determined based on the capacitance value.
6. The method according to any one of claims 1 to 5, characterized in that, The touchscreen includes one of the following: A touch bar, wherein the length of the touch bar is arranged along the vertical direction; Multiple touch points are arranged sequentially and positioned along the vertical direction.
7. The method according to any one of claims 1 to 5, characterized in that, The liquid level sensor is one of the following: a TOF sensor, a radar sensor, or an ultrasonic sensor.
8. A control method for a water receiving device, characterized in that, The water receiving device is provided with a accommodating space for placing a water receiving container. The accommodating space includes a touch controller, a liquid level sensor, and a water outlet. The touch controller is located on the side wall of the accommodating space, and the liquid level sensor and the water outlet are located at the top of the accommodating space. The method includes: The device receives a touch signal from the touch controller and responds by controlling the water outlet to start dispensing water, wherein the touch signal is generated by the touch controller based on the user's touch position on the touch controller; The target liquid surface position corresponding to the touch position is determined based on the touch signal; The current liquid level position of the water intake container is detected by the liquid level sensor; When the current liquid level position matches the target liquid level position, the water outlet is controlled to stop discharging water.
9. A controller, characterized in that, include: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs a control method for the water receiving device as described in any one of claims 1 to 8.
10. A water receiving device, characterized in that, Includes the controller as described in claim 9.
11. A computer-readable storage medium, characterized in that: The device stores computer-executable instructions for performing a control method for the water receiving device as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium, the processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions to cause the computer device to perform the control method of the water receiving device as described in any one of claims 1 to 8.