Deviation detection method of water receiving container, beverage output equipment and control method of beverage output equipment
By connecting the water container position on the beverage output device for accurate detection, the problem of beverage spilling and scalding caused by the offset of the water container is solved, and higher safety and efficiency of use are achieved.
Patent Information
- Application Number
- CN202311592769.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-11-24
AI Technical Summary
Existing beverage output equipment cannot accurately detect the location of the water-containing container, resulting in the beverage being offset or spilled when the water-containing container is offset, increasing the risk of scalding.
At least one set of first sensors are used to distribute symmetrically along the preset direction and centered on the central axis of the beverage output port to obtain sensing information of the water-collecting container, and determine whether the water-collecting container is offset by calculating the difference information of each sensor.
Accurate detection of the location of the docking water container is achieved, avoiding the risk of beverage spilling and scalding caused by the offset of the water container, and improving the safety and efficiency of the equipment.
Smart Images

Figure CN120036632A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of beverage output devices, and particularly to a method for detecting the offset of a water receiving container, a control method for a beverage output device, a beverage output device, and a computer storage medium. Background Art
[0002] For beverage output devices such as water dispensers and water purifiers, it is necessary to detect whether a cup is placed in the water receiving area before or during water receiving. If a cup is detected in the water receiving area, the beverage output mechanism can be controlled to output beverages. If no cup is detected, the beverage output mechanism will not output beverages, so as to reduce problems such as scalding of users and waste of water.
[0003] In related technologies, usually only whether a cup is placed on the water receiving area is detected, or only the approximate position of the cup is detected, but the precise position of the cup cannot be detected. When the cup is placed with some offset, the beverage output mechanism will also be controlled to output beverages, resulting in the beverage offsetting the water cup, causing the beverage to spill out of the cup and even scalding the user. Summary of the Invention
[0004] The present application provides a method for detecting the offset of a water receiving container, a control method for a beverage output device, a beverage output device, and a computer storage medium, so as to accurately obtain the position information of the water receiving container in the water receiving area and determine whether the water receiving container is offset, thereby improving problems such as the beverage offsetting the water receiving container due to the offset of the water receiving container, resulting in the beverage spilling out of the water receiving container and even scalding the user.
[0005] To solve the above technical problems, one technical solution adopted by the present application is: to provide a method for detecting the offset of a water receiving container. The method for detecting the offset of the water receiving container is used for a beverage output device. At least one group of first sensors is provided in the water receiving area of the beverage output device. A plurality of first sensors in each group of first sensors are symmetrically distributed along a preset direction with the position of the central axis of the beverage output port of the beverage output device in the water receiving area as the central position. The offset detection method includes: obtaining the first sensing information of each first sensor; for each group of first sensors, obtaining the difference information between the first sensing information of the first sensors located on both sides of the central position; and determining whether the water receiving container is offset based on the difference information.
[0006] Among them, the obtaining of the difference information between the first sensing information of the first sensors located on both sides of the central position includes: calculating the sum of the first sensing information of all the first sensors on one side of the central position as the first sum value; calculating the sum of the first sensing information of all the first sensors on the other side of the central position as the second sum value; and calculating the absolute value of the difference between the first sum value and the second sum value.
[0007] Among them, obtaining the difference information between the first sensing information of the first sensors located on both sides of the central position further includes: calculating the sum of the absolute values of all groups of first sensors as the third sum value, and using the third sum value as the difference information between the first sensing information of the first sensors on both sides of the central position.
[0008] Among them, determining whether the water receiving container is offset based on the difference information includes: in response to the third sum value being less than the first threshold, determining that the water receiving container is not offset on the water receiving area; in response to the third sum value being greater than or equal to the first threshold, determining that the water container is offset on the water receiving area.
[0009] Among them, the above offset detection method further includes: obtaining the offset parameter and the number of first sensors in at least one group of first sensors; calculating the product of the offset parameter and the number as the first threshold; wherein, the offset parameter is greater than or equal to 1 / 4 and less than or equal to 1 / 2.
[0010] Among them, a second sensor is provided at the central position, and the above offset detection method further includes: in response to the second sensor obtaining the second sensing information, performing the above steps of obtaining the difference information between the first sensing information of the first sensors located on both sides of the central position for each group of first sensors.
[0011] Among them, the above offset detection further includes: in response to the change of the first sensing information, performing the above steps of obtaining the difference information between the first sensing information of the first sensors located on both sides of the central position for each group of first sensors.
[0012] To solve the above technical problems, another technical solution adopted by this application is: providing a control method for a beverage output device. The control method includes: using the above offset detection method to determine whether the water receiving container is offset; in response to no offset, controlling the beverage output port to output beverages.
[0013] Among them, the above control method further includes: in response to offset, generating a prompt message.
[0014] To solve the above technical problems, another technical solution adopted by this application is: providing a beverage output device. The beverage output device includes: a base body provided with a water receiving area; a beverage output mechanism arranged on the base body, and the beverage output port of the beverage output mechanism is located above the water receiving area; at least one group of first sensors, in each group of first sensors, a plurality of first sensors are symmetrically distributed along a preset direction with the position of the central axis of the beverage output port of the beverage output device on the water receiving area as the central position, and the first sensors are used to obtain the first sensing information of the water receiving container placed on the water receiving area; a control mechanism connected to the beverage output mechanism and the first sensors, and used to control the beverage output mechanism to work based on the first sensing information and using the above control method.
[0015] Wherein, a second sensor is further provided at the central position, connected to the control mechanism, for obtaining second sensing information of the second sensor for the water receiving container; the control mechanism controls the operation of the beverage output mechanism based on the first sensing information and the second sensing information.
[0016] To solve the above technical problems, another technical solution adopted by this application is: to provide a computer storage medium. Program instructions are stored on the computer storage medium, and the program instructions are executed by a processor to implement the offset detection method and / or the above control method.
[0017] The beneficial effects of this application are as follows: At least one group of first sensors is provided in the water receiving area of the beverage output device of this application, and multiple first sensors in each group of first sensors are symmetrically distributed along a preset direction with the position of the central axis of the beverage output port of the beverage output device on the water receiving area as the central position. The offset detection method for the water receiving container provided by this application first obtains the first sensing information of each first sensor on the water receiving area, and then for each group of first sensors, obtains the difference information between the first sensing information of the first sensors located on both sides of the central position, and determines whether the water receiving container is offset based on this difference information. Since multiple first sensors in each group of first sensors are symmetrically distributed along a preset direction with the position of the beverage output port on the water receiving area as the center, the offset of the water receiving container along the preset direction on the water receiving area will cause a difference information between the first sensing information of the first sensors located on both sides of the central position in each group of first sensors. Based on this difference information, the offset information of the water receiving container on the water receiving area can be obtained, so that the offset detection of the water receiving container can be realized, and when the water receiving container is offset, the beverage output port can be controlled not to output beverages, thereby being able to improve problems such as beverages spilling out of the water receiving container and even scalding users caused by the offset of the beverage from the water receiving container due to the offset of the water receiving container. Description of the Drawings
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings, where:
[0019] Figure 1 is a schematic structural diagram of an embodiment of the beverage output device of this application;
[0020] Figure 2 is a schematic structural diagram of the water receiving area and the first sensor in the beverage output device of this application;
[0021] Figure 3 is a schematic structural diagram of another embodiment of the beverage output device of this application;
[0022] Figure 4 It is a schematic flowchart of an embodiment of the method for detecting the offset of the water receiving container in this application;
[0023] Figure 5 It is Figure 4 a specific schematic flowchart of step S42 in the embodiment;
[0024] Figure 6 It is Figure 5 another specific schematic flowchart of step S42 in the embodiment;
[0025] Figure 7 It is a schematic flowchart of another embodiment of the method for detecting the offset of the water receiving container in this application;
[0026] Figure 8 It is a schematic flowchart of an embodiment of the control method for the beverage output device in this application;
[0027] Figure 9 It is a schematic flowchart of another embodiment of the control method for the beverage output device in this application;
[0028] Figure 10 It is a schematic structural diagram of an embodiment of the computer storage medium in this application. Specific Embodiments
[0029] Next, the technical solutions in the embodiments of this application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0030] It should be noted that if there are directional indications (such as up, down, left, right, front, back...) involved in the embodiments of this application, the directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0031] In addition, if the descriptions such as "first" and "second" are involved in the embodiments of the present application, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be construed as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments may be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement them. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0032] The beverage output device proposed in the present application may include a water dispenser, a water purifier, etc., or may also include other devices capable of outputting beverages, such as beverage output devices for scenarios such as kitchens, bathrooms, shopping malls, etc. The beverage output device may be set independently to implement a movable beverage output device, or the beverage output device may also be set on the door body of other household electrical appliances, walls, workbenches, etc.
[0033] The beverage output device of the present application can be used to export the first type of beverage ingredients and / or the second type of beverage ingredients. The first type of beverage ingredients includes ingredients with fixed shapes, elastic ingredients, and ingredients with poor fluidity. For example, ice cubes, crushed ice, red beans, mung beans, peanuts, pearls in pearl milk tea, nata de coco, taro balls, milk jelly, jelly, turtle jelly, fruit puree, taro puree, ice cream, puffed foods, baked goods, etc. The second type of beverage ingredients includes ingredients with high fluidity, such as water, fruit juice, milk, coffee, cola, soy milk, etc.
[0034] The present application first proposes a beverage output device, as Figure 1 shown, Figure 1 is a schematic structural diagram of an embodiment of the beverage output device of the present application. The beverage output device of this embodiment includes: a base body 11, a beverage output mechanism 12, a control mechanism, and at least one group of first sensors 13; wherein, the base body 11 is provided with a water receiving area; the beverage output mechanism 12 is arranged on the base body 11, and the beverage output port of the beverage output mechanism 12 is located above the water receiving area; a plurality of first sensors 13 in each group of first sensors 13 are symmetrically distributed along a preset direction with the position of the central axis of the beverage output port of the beverage output device on the water receiving area as the central position. The first sensors 13 are used to obtain the first sensing information of the water receiving container 01 placed on the water receiving area; the control mechanism is connected to the beverage output mechanism 12 and the sensors 13, and the control mechanism controls the operation of the beverage output mechanism based on the first sensing information and using a control method.
[0035] Specifically, the control mechanism uses an offset detection method to determine whether the water receiving container 01 is offset; in response to the water receiving container 01 not being offset, the control mechanism controls the beverage output mechanism 12 to output a beverage, so as to direct the beverage to the water receiving container 01 placed on the water receiving area; in response to the water receiving container 01 being offset, the control mechanism generates a prompt message, such as an alarm message, a position adjustment message, etc., to prompt the user to adjust the position of the water receiving container 01 on the water receiving area. At this time, the beverage output mechanism 12 does not output a beverage.
[0036] For the offset detection method of the water receiving container 01 and the control method of the beverage output device, please refer to the following text specifically.
[0037] Among them, the water receiving container 01 can not only receive water, ice, ice water mixture, but also receive other beverages output by the beverage output mechanism 12; the water receiving area refers to the area for carrying the water receiving container 01, etc.
[0038] Among them, the control mechanism can be set on the seat body 11; the control mechanism can include a microprocessor, such as an integrated control chip like a single-chip microcomputer, or a non-integrated electronic circuit with control and data processing functions, etc., and no specific limitation is made.
[0039] Before controlling the beverage output mechanism 12 to output a beverage in this embodiment, it is first determined whether the water receiving container 01 placed on the water receiving area is offset. When it is determined that the water receiving container 01 is offset, the beverage output mechanism 12 is controlled not to output a beverage, thereby being able to improve the problems such as the beverage spilling out of the water receiving container 01 and even scalding the user caused by the beverage offsetting the water receiving container 01 due to the offset of the water receiving container 01.
[0040] In this embodiment, as Figure 2 shown, there are two groups of first sensors 13 provided in the water receiving area. One group of sensors 13 includes K3, K4, K6, and K7. Among them, K3, K4, K6, and K7 are symmetrically and evenly arranged along a preset direction with the central position, that is, the position where K5 is located, as the center; K3 and K7 are symmetrically arranged, and K4 and K6 are symmetrically arranged. The other group of first sensors 13 includes K1, K2, K8, and K9. Among them, K1, K2, K8, and K9 are symmetrically and evenly arranged along another preset direction with the central position as the center; among them, K1 and K9 are symmetrically arranged, and K2 and K8 are symmetrically arranged. These two preset directions are perpendicularly arranged.
[0041] In other embodiments, the number of first sensors in each preset direction can be appropriately adjusted, and the numbers can be the same or different; each group of first sensor components includes at least two first sensors.
[0042] In other embodiments, the preset direction and the number of the first sensor groups may be one. The arrangement direction of this group of first sensors, i.e., the preset direction, may be consistent with the length direction of the water receiving area. When the user places the water receiving container, due to the relatively large space in the length direction, the water receiving container may shift in the length direction.
[0043] In other embodiments, the preset direction and the number of the first sensor groups may be more than two, for example, four groups. Four groups of first sensors may be arranged in a cross shape on the water receiving area according to the above requirements.
[0044] Optionally, the first sensor 13 in this embodiment may include a pressure sensor, and the first sensing information is pressure information. The first sensor 13 may also output the first sensing information after digitization. For example, after the first sensor 13 senses pressure, it outputs the digital signal "1", and when it does not sense pressure, it outputs the digital signal "0", or there is no output. Or the control mechanism digitizes and processes the first sensing information of the first sensor 13. For example, the control mechanism digitizes the first sensing information greater than or equal to the threshold into "1", and digitizes the first sensing information less than the threshold into "0".
[0045] In other embodiments, the first sensor may also include an infrared sensor, an ultrasonic sensor, a microswitch, etc.
[0046] As mentioned in this application, "a plurality of" includes two or more.
[0047] Optionally, the beverage output device in this embodiment further includes a second sensor 14. The position on the water receiving area where the central axis of the beverage output port is located is the central position (such as Figure 2 K5 in), and the second sensor 14 is connected to the control mechanism for obtaining the second sensing information of the second sensor 14 about the water receiving container 01; the control mechanism controls the beverage output mechanism 12 to work based on the first sensing information and the second sensing information.
[0048] Optionally, the second sensor 14 in this embodiment may include a pressure sensor, and the second sensing information is pressure information. The second sensor 14 may also output the second sensing information after digitization. For example, after the second sensor 14 senses pressure, it outputs the digital signal "1", and when it does not sense pressure, it outputs the digital signal "0", or there is no output. Or the control mechanism digitizes and processes the second sensing information of the second sensor 14. For example, the control mechanism digitizes the second sensing information greater than or equal to the threshold into "1", and digitizes the first sensing information less than the threshold into "0".
[0049] In other embodiments, the second sensor may also include an infrared sensor, an ultrasonic sensor, a microswitch, etc.
[0050] In another embodiment, such asFigure 3 As shown Figure 3 is a schematic structural diagram of another embodiment of the beverage output device of the present application. On the basis of the above embodiment, the beverage output device of this embodiment further includes: an alarm mechanism 21, connected to the control mechanism 22, and in response to the offset of the water receiving container 01, the control mechanism controls the alarm mechanism 21 to output an alarm message.
[0051] In this embodiment, the alarm mechanism 21 outputs an alarm message to prompt the user that the water receiving container 01 is offset, so that the user can quickly identify the offset and timely adjust the position of the water receiving container 01, which can improve the water taking efficiency.
[0052] Among them, the alarm mechanism 21 may include: a buzzer, a speaker, an indicator light, a vibrator, a sound system, a display screen, etc., and may output an alarm message in the ways of buzzer reminder, speaker voice broadcast, indicator light lighting or flashing, display (text, picture) on the display, touch screen display, APP remote reminder, vibrator vibration, sound system playing sound, etc.
[0053] Optionally, the control mechanism 22 can also control the display to display the position information of the water receiving container 01 on the water receiving area, so as to facilitate the user to quickly obtain the adjustment orientation of the water receiving container 01.
[0054] Optionally, the beverage output device of this embodiment further includes: a lighting mechanism 23, connected to the control mechanism 22, and the control mechanism 22 controls the lighting mechanism 23 to provide lighting to improve the safety and user experience of the user taking water.
[0055] In an application scenario, the control mechanism 22 can detect whether there is someone approaching the beverage output device through an ultrasonic sensor, etc., and in response to someone or something approaching the beverage output device, the control mechanism 22 controls the lighting mechanism 23 to work to save electric energy.
[0056] In another application scenario, the control mechanism 22 can also control the lighting mechanism 23 and the alarm mechanism 21 to cooperate together to achieve a lighting alarm mode.
[0057] Optionally, the beverage output device of this embodiment further includes: a communication mechanism 24, connected to the control mechanism 22, for communicatingly connecting the control mechanism 22 with an external terminal, the cloud, etc., to realize data communication between the beverage output device and the external terminal.
[0058] Among them, the communication mechanism 24 may include a Wifi module, etc.
[0059] Optionally, the beverage output device of this embodiment further includes: a power supply mechanism 25, which is connected to the control mechanism 22, the beverage output mechanism 12, the first sensor 13, the alarm mechanism 21, the lighting mechanism 23, the communication mechanism 24, etc., to supply power to the above-mentioned mechanisms to ensure the normal operation of the above-mentioned mechanisms, thereby improving the reliability of the beverage output device.
[0060] The control mechanism 22 is used to receive the information of the above-mentioned various mechanisms and external terminals, perform arithmetic processing, and send commands to the various mechanisms and / or generate feedback information to the external terminal and the cloud.
[0061] The control mechanism 22 can directly control the beverage output device to output beverages in response to the non-offset of the water receiving container, or can prompt the user to start the beverage output device to output beverages in response to the non-offset of the water receiving container, etc.
[0062] The present application further proposes a method for detecting the offset of a water receiving container, which can be used in any of the above beverage output devices, such as Figure 4 shown Figure 4 is a schematic flowchart of an embodiment of the method for detecting the offset of the water receiving container of the present application. The offset detection method of this embodiment specifically includes the following steps:
[0063] Step S41: Obtain the first sensing information of each first sensor.
[0064] Taking the first sensor as a pressure sensor as an example, each first sensor arranged on the water receiving area generates first sensing information in response to the pressure of the water receiving container on each detection point of the water receiving area, and feeds the first sensing information back to the control mechanism.
[0065] Among them, after the pressure sensor senses the pressure, it determines the magnitude of the pressure. If the pressure is greater than or equal to the threshold, it outputs the digital signal "1", if the pressure is less than the threshold, it outputs the digital signal "0", or there is no output. Or the control mechanism processes the pressure sensed by the pressure sensor after digitization. For example, the control mechanism digitizes the pressure greater than or equal to the threshold into "1" and digitizes the pressure less than the threshold into "0".
[0066] Of course, in other embodiments, the control mechanism can also directly perform subsequent processing on the undigitized first sensing information.
[0067] Step S42: For each group of first sensors, obtain the difference information between the first sensing information of the first sensors located on both sides of the central position.
[0068] The control mechanism analyzes and processes the first sensing information of each group of first sensors in each preset direction, that is, to obtain the offset amount of the water receiving container in each preset direction.
[0069] For each group of first sensors, the control mechanism obtains the difference information between the first sensing information of the first sensors located on both sides of the central position. The difference information between the first sensing information of the first sensors located on both sides of the central position in each group of first sensors can reflect the offset of the water receiving container in the preset direction corresponding to this group of first sensors.
[0070] Optionally, this embodiment can implement step S42 through the method as Figure 5 shown. The method of this embodiment includes steps S51 to S53.
[0071] Step S51: Calculate the sum of the first sensing information of all the first sensors on one side of the central position as the first sum value.
[0072] Step S52: Calculate the sum of the first sensing information of all the first sensors on the other side of the central position as the second sum value.
[0073] Step S53: Calculate the absolute value of the difference between the first sum value and the second sum value.
[0074] Steps S51 to S53 are introduced together: For each group of first sensors, the control mechanism calculates the sum of the first sensing information of the first sensors on both sides of the central position as the first sum value and the second sum value respectively, and calculates the absolute value of the difference between the first sum value and the second sum value. That is to say, for each group of first sensors, the control mechanism respectively counts the total amount of the first sensing information corresponding to both sides of the central position, and obtains the absolute value of the difference between the total amounts of both sides. In this way, the control mechanism does not need to determine the specific symmetry relationship of the first sensors located on both sides of the central position, which can improve the control efficiency of the control mechanism.
[0075] In other embodiments, the execution order between step S51 and step S52 is not limited.
[0076] For example, as Figure 2 shown, K5 is the second sensor 14 set at the central position. Taking K5 as the reference, there are four first sensors 13 in both of the two preset directions, namely the up-down direction and the left-right direction. There are two first sensors 13 on the upper side of the central position, namely K1 and K2, and there are two first sensors 13 on the lower side, namely K8 and K9. There are two first sensors 13 on the left side, namely K1 and K2, and there are two first sensors 13 on the right side, namely K8 and K9. When the first sensor 13 has the first sensing information, the value is 1, and when there is no first sensing information, the value is 0. The first sensing information in the up, down, left, and right four directions can be defined as S 上 、S 下 、S 左 、S 右 ; then as Figure 2 shown, the first sensing information in the four directions is S上 = 0, S 下 = 1, that is, the first sum value and the second sum value in the up - down direction, and S 左 = 2, S 右 = 0, that is, the first sum value and the second sum value in the left - right direction; calculate the absolute value of the difference between the two groups of the first sensors 13 respectively, S1 = │S 上 - S 下 │ = 1, S2 = │S 左 - S 右 │ = 2.
[0077] The control mechanism can obtain the offset of the water - receiving container in each preset direction based on the absolute value of the difference of the first sensing information in each preset direction, so as to determine whether the water - receiving container is offset, and generate corresponding adjustment information or prompt information to instruct the user to adjust the water - receiving container in each preset direction.
[0078] In other embodiments, for each group of the first sensors, the control mechanism can also calculate the absolute value of the difference between the first sensing information of two symmetrically - arranged first sensors on both sides of the central position based on the specific symmetry relationship of the first sensors on both sides of the central position, and then accumulate multiple such absolute values of this group of first sensors.
[0079] In another embodiment, step S42 can be implemented by the method as Figure 6 shown. The method of this embodiment includes steps S61 to S64.
[0080] Step S61: Calculate the sum of the first sensing information of all the first sensors on one side of the central position as the first sum value.
[0081] Step S62: Calculate the sum of the first sensing information of all the first sensors on the other side of the central position as the second sum value.
[0082] Step S63: Calculate the absolute value of the difference between the first sum value and the second sum value.
[0083] For the specific implementation manners of steps S61 to S63, reference can be made to the above - mentioned embodiments.
[0084] S64: Calculate the sum of the absolute values of all groups of the first sensors as the third sum value, and use the third sum value as the difference information between the first sensing information of the first sensors on both sides of the central position.
[0085] For example, as Figure 2 shown, the control mechanism further calculates the sum of the absolute values S1 and S2 of the differences between the two groups of the first sensors 13 as the third sum value S = 3, and uses the third sum value as the difference information between the first sensing information of the first sensors 13 on both sides of the central position.
[0086] The control mechanism can obtain the overall offset of the water receiving container on the water receiving area based on the sum of the absolute values of the differences in each preset direction, so as to determine whether the water receiving container is offset, and generate corresponding adjustment information or prompt information to instruct the user to adjust the position of the water receiving container. Compared with Figure 5 the embodiment, this embodiment further obtains the overall offset of the water receiving container on the water receiving area to improve the efficiency of detecting the offset of the water receiving container.
[0087] Step S43: Determine whether the water receiving container is offset based on the difference information.
[0088] Based on the difference information of each group of first sensors, the control mechanism can determine the offset of the water receiving container in each preset direction, and thus can determine whether the water receiving container is offset on the water receiving area based on these offsets.
[0089] For example, in response to the difference information being less than the first threshold, it is determined that the water receiving container is not offset on the water receiving area; in response to the difference information being greater than or equal to the first threshold, it is determined that the water container is offset on the water receiving area.
[0090] Since multiple first sensors in each group of first sensors are symmetrically distributed along the preset direction with the position of the beverage outlet on the water receiving area as the center, the offset of the water receiving container on the water receiving area along the preset direction will cause a difference in the first sensing information between the first sensors located on both sides of the center position in each group of first sensors. Based on this difference information, the offset information of the water receiving container on the water receiving area can be obtained, so as to realize the offset detection of the water receiving container. When the water receiving container is offset, the beverage outlet can be controlled not to output beverages, thus being able to improve problems such as beverages spilling out of the water receiving container and even scalding users caused by the offset of the water receiving container resulting in the offset of the beverages from the water receiving container.
[0091] Optionally, in response to the third sum being less than the first threshold, it is determined that the water receiving container is not offset on the water receiving area; in response to the third sum being greater than or equal to the first threshold, it is determined that the water container is offset on the water receiving area.
[0092] If the overall offset of the water receiving container on the water receiving area is greater than or less than the first threshold, it is determined that the water receiving container is not offset on the water receiving area. If it is greater than or equal to the first threshold, it is determined that the water container is offset on the water receiving area.
[0093] In other embodiments, the method for detecting the offset of the water receiving container may further include a method for determining the first threshold. Specifically: the control mechanism obtains the offset parameter and the number of first sensors in at least one group of first sensors, that is, the total number of all first sensors arranged on the water receiving area; the control mechanism calculates the product of the offset parameter and the number as the first threshold; wherein, the offset parameter is greater than or equal to 1 / 4 and less than or equal to 1 / 2.
[0094] For example, in Figure 2 the embodiment, the total number n1 of all the first sensors 13 provided on the water receiving area is 8. Taking the offset parameter R = 3 / 8 as an example, the first threshold is (3 / 8) * 8 = 3. The third sum value S = 3, which does not satisfy S < R * n1, so it is determined that the water receiving container is offset on the water receiving area.
[0095] In other embodiments, the offset parameter and the setting of the first threshold can also be adjusted according to actual needs.
[0096] The present application proposes an offset detection method for a water receiving container in another embodiment. As Figure 7 shown, the offset detection method of this embodiment includes the following steps:
[0097] Step S71: Obtain the first sensing information of each first sensor.
[0098] For the specific implementation manner of step S71, reference can be made to the above embodiment.
[0099] Step S72: In response to the second sensor obtaining the second sensing information, for each group of first sensors, obtain the difference information between the first sensing information of the first sensors located on both sides of the central position.
[0100] Taking the pressure sensor as an example for the second sensor, the second sensor generates central pressure information for the pressure received at the central position and feeds the central pressure information back to the control mechanism.
[0101] Among them, after the second sensor senses the pressure, it determines the magnitude of the pressure. If the pressure is greater than or equal to the threshold, it outputs the digital signal "1", and if the pressure is less than the threshold, it outputs the digital signal "0", or there is no output. Or the control mechanism digitizes the pressure sensed by the pressure sensor and then processes it. For example, the control mechanism digitizes the pressure greater than or equal to the threshold into "1" and the pressure less than the threshold into "0".
[0102] In this embodiment, the second sensor obtaining the second sensing information means that the pressure obtained by the second sensor is greater than or equal to the threshold.
[0103] For the specific implementation manner of obtaining the difference information between the first sensing information of the first sensors located on both sides of the central position for each group of first sensors, reference can be made to the above embodiment.
[0104] Step S73: Determine whether the water receiving container is offset based on the difference information.
[0105] For the specific implementation manner of step S73, reference can be made to the above embodiment.
[0106] Based on the above embodiments, in this embodiment, it is first determined by the second sensor whether the water receiving container is placed at the central position. If it is not placed at the central position, it is determined that the water receiving container is completely offset from the beverage outlet, and it can be directly determined that the water receiving container is offset. If the water receiving container is placed at the central position, the above embodiment solution is further used to further determine whether the water receiving container is offset. In this way, the problem of further determining whether the water receiving container is offset by using the above embodiment solution when the water receiving container is completely offset from the beverage outlet can be reduced, so that the efficiency of the control mechanism for detecting the offset of the water receiving container can be improved.
[0107] Among them, the first threshold can also be the product of the offset parameter and the total number of the first sensor and the second sensor minus 1. For example, in Figure 2 the embodiment, the total number n of all the first sensors 13 and the second sensors 14 arranged on the water receiving area is 9. Taking the offset parameter R = 3 / 8 as an example, the first threshold is (3 / 8) * (9 - 1) = 3. The third sum value S = 3, which does not satisfy S < R * (n - 1), then it is determined that the water receiving container is offset on the water receiving area.
[0108] In another embodiment, if the control mechanism determines that the first sensing information of the first sensor changes, it can be determined that the water receiving container has moved on the water receiving area. At this time, the control mechanism is based on the newly obtained first sensing information of each first sensor and executes other subsequent methods for determining offset, so as to be able to detect the offset of the water receiving container in real time and quickly when the water receiving container is placed on the water receiving area or the displacement of the water receiving container on the water receiving area changes.
[0109] The present application further proposes a control method for a beverage output device, which can be used for any of the above beverage output devices, such as Figure 8 shown Figure 8 is a schematic flowchart of an embodiment of the control method for the beverage output device of the present application. The control method of this embodiment specifically includes the following steps:
[0110] Step S81: Determine whether the water receiving container is offset by using an offset detection method.
[0111] The control mechanism determines whether the water receiving container is offset by using an offset detection method. Specifically, the offset detection method can refer to the above offset detection method for the water receiving container.
[0112] Step S82: In response to no offset, control the beverage outlet to output beverages.
[0113] If the water receiving container is not offset on the water receiving area, the control mechanism controls the beverage outlet to output beverages.
[0114] The control method of this embodiment further includes step S83.
[0115] Step S83: Generate a prompt message in response to the offset.
[0116] If the water receiving container is offset on the water receiving area, the control mechanism generates a prompt message to remind the user to move the water receiving container, and at the same time controls the beverage outlet not to output beverages.
[0117] The prompt methods include any one or more of buzzer prompt, loudspeaker voice broadcast, indicator light lighting or flashing, display (text, picture) on the display, touch screen display, APP remote reminder, vibrator vibration, and sound played by the speaker, etc.
[0118] In this embodiment, the offset of the water receiving container is first detected, and after determining that the water receiving container is not offset, the beverage output mechanism is controlled to output beverages. When the water receiving container is offset, the beverage output mechanism is controlled not to output beverages, so as to improve the problem that the beverage spills out of the water receiving container or even scalds the user due to the offset of the beverage caused by the offset of the water receiving container.
[0119] In another embodiment, as Figure 9 shown, Figure 9 is a schematic flowchart of another embodiment of the control method of the beverage output device of the present application. In this embodiment, when the first sensor and the second sensor sense a change in the position signal, or when the control mechanism determines that the first sensing information has changed based on the first sensing information, the control mechanism determines whether the second sensor located at the center position can obtain the sensing information; if not, end the current beverage output control, and continue to monitor whether the position information sensed by the first sensor and the second sensor has changed; if so, the control mechanism further uses the solution of the above embodiment to determine whether the third sum value S satisfies S < R * (n - 1); if it is satisfied, the control mechanism determines that the water receiving container is not offset, and controls the beverage output mechanism to output beverages; if it is not satisfied, the control mechanism determines that the water receiving container is offset, the beverage output mechanism does not output beverages, and prompts that the water receiving container is placed offset, and prompts the user to re-place the water receiving container with reference to the prompt position. After the prompt, if the position signal sensed by the first sensor and the second sensor does not change within the preset time, end the current beverage output control.
[0120] The preset time is the time for waiting for the user to move the cup. To avoid infinite waiting, a maximum value can be set for the preset time, but it can also be not set, that is, as long as the cup is moved, it is re-detected.
[0121] The present application further proposes a computer storage medium, as Figure 10 shown, Figure 10 is a schematic structural diagram of an embodiment of the computer storage medium of the present application. The computer storage medium 90 of the embodiment of the present application stores program instructions internally, and the program instructions are executed to implement the above-mentioned offset detection method of the water receiving container and / or the control method of the beverage output device.
[0122] Among them, the program instructions can form a program file and be stored in the above storage medium in the form of a software product, so that an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor can execute all or part of the steps of the methods in various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, or a terminal device such as a computer, a server, a mobile phone, or a tablet.
[0123] The computer storage medium 90 in this embodiment can be, but is not limited to, a USB flash drive, an SD card, a PD optical drive, a mobile hard disk, a large-capacity floppy drive, a flash memory, a multimedia memory card, a server, etc.
[0124] In one embodiment, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer storage medium. The processor of the electronic device reads the computer instructions from the computer storage medium, and the processor executes the computer instructions, so that the electronic device executes the steps in the above method embodiments.
[0125] In addition, if the above functions are implemented in the form of software functions and sold or used as an independent product, they can be stored in a storage medium readable by a mobile terminal. That is, the present application also provides a storage device storing program data, and the program data can be executed to implement the method of the above embodiment. The storage device can be, for example, a USB flash drive, an optical disc, a server, etc. That is to say, the present application can be embodied in the form of a software product, which includes several instructions for enabling an intelligent terminal to execute all or part of the steps of the methods in various embodiments.
[0126] In the description of the present application, the descriptions with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0127] The above are only the implementation manners of this application, and do not thus limit the patent scope of this application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of this application, or directly or indirectly applied in other related technical fields, shall similarly be included within the patent protection scope of this application.
Claims
1. An offset detection method for a water receiving container, characterized in that, for a beverage output device, at least one set of first sensors is provided in the water receiving area of the beverage output device, and a plurality of first sensors in each set of the first sensors are symmetrically distributed along a preset direction with the position of the central axis of the beverage output port of the beverage output device on the water receiving area as the central position. The offset detection method includes: Obtaining first sensing information of each of the first sensors; For each set of the first sensors, obtaining difference information between the first sensing information of the first sensors located on both sides of the central position; Determining whether the water receiving container is offset based on the difference information.
2. The offset detection method according to claim 1, characterized in that, The obtaining of the difference information between the first sensing information of the first sensors located on both sides of the central position includes: Calculating the sum of the first sensing information of all the first sensors on one side of the central position as a first sum value; Calculating the sum of the first sensing information of all the first sensors on the other side of the central position as a second sum value; Calculating the absolute value of the difference between the first sum value and the second sum value.
3. The offset detection method according to claim 2, characterized in that, The obtaining of the difference information between the first sensing information of the first sensors located on both sides of the central position further includes: Calculating the sum of all the absolute values of the first sensors in all sets as a third sum value, and using the third sum value as the difference information between the first sensing information of the first sensors located on both sides of the central position.
4. The offset detection method according to claim 3, characterized in that, The determining whether the water receiving container is offset based on the difference information includes: In response to the third sum value being less than a first threshold, determining that the water receiving container is not offset on the water receiving area; In response to the third sum value being greater than or equal to the first threshold, determining that the water container is offset on the water receiving area.
5. The offset detection method according to claim 4, characterized in that, The offset detection method further includes: Obtaining an offset parameter and the number of first sensors in the at least one set of first sensors; Calculating the product of the offset parameter and the number as the first threshold; Wherein, the offset parameter is greater than or equal to 1 / 4 and less than or equal to 1 / 2 。 6. The offset detection method according to claim 1, characterized in that, A second sensor is provided at the central position, and the offset detection method further includes: In response to the second sensor obtaining second sensing information, performing the step of, for each set of the first sensors, obtaining difference information between the first sensing information of the first sensors located on both sides of the central position.
7. The offset detection method according to any one of claims 1-6, characterized in that, The offset detection further includes: In response to a change in the first sensing information, performing the step of, for each set of the first sensors, obtaining difference information between the first sensing information of the first sensors located on both sides of the central position.
8. A control method for a beverage output device, characterized in that, including: Determine whether the water receiving container is offset by using the offset detection method according to any one of claims 1 to 7; In response to no offset, control the beverage outlet to output a beverage.
9. The control method according to claim 8, wherein, the control method further includes: In response to an offset, generate a prompt message.
10. A beverage output device, wherein, comprising: a base body provided with a water receiving area; a beverage output mechanism disposed on the base body, and a beverage outlet of the beverage output mechanism is located above the water receiving area; at least one group of first sensors, wherein a plurality of first sensors in each group of first sensors are symmetrically distributed along a preset direction with the position of the central axis of the beverage outlet of the beverage output device on the water receiving area as the central position, and the first sensors are used to obtain first sensing information of a water receiving container placed on the water receiving area; a control mechanism connected to the beverage output mechanism and the first sensors, and configured to control the beverage output mechanism to operate based on the first sensing information and by using the control method according to claim 8 or claim 9.
11. The beverage output device according to claim 10, wherein, a second sensor is further disposed at the central position and is connected to the control mechanism for obtaining second sensing information of the second sensor for the water receiving container; the control mechanism controls the beverage output mechanism to operate based on the first sensing information and the second sensing information.
12. A computer storage medium, wherein, program instructions are stored thereon, and the program instructions are executed by a processor to implement the offset detection method according to any one of claims 1 to 7, and / or, the control method according to claim 8 or claim 9.
Citation Information
Patent Citations
Control method and device for water dispenser, water dispenser and computer readable storage medium
CN108567330A
Water dispenser control method, water dispenser and computer readable storage medium
CN111568210A
Water dispenser and water taking method
CN112274005A
Water leakage detection method and device, electronic equipment and water outlet system
CN113916449A
Control method and system of water outlet device, water outlet equipment and storage medium
CN116098458A