Beverage output device, control method for a beverage output device, and storage medium

By using a first sensing component to scan the container height in the beverage dispensing device, the problem of beverage overflow caused by the difficulty in measuring the container height is solved, enabling precise control of the beverage dispensing volume and improving the user experience.

CN120036630BActive Publication Date: 2026-07-24HUBEI MIDEA REFRIGERATOR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUBEI MIDEA REFRIGERATOR CO LTD
Filing Date
2023-11-24
Publication Date
2026-07-24

Smart Images

  • Figure CN120036630B_ABST
    Figure CN120036630B_ABST
Patent Text Reader

Abstract

The application relates to a beverage output device, a control method for the beverage output device and a storage medium. The beverage output device comprises a bearing table, a beverage output port and a first sensing assembly. The bearing table is used for bearing a container, and the container is used for receiving a beverage. The beverage output port is used for outputting the beverage to the container, and the beverage comprises first beverage ingredients and / or second beverage ingredients. The first sensing assembly is rotationally arranged between the bearing table and the beverage output port. The first sensing assembly can swing and scan the container between the bearing table and the beverage output port, and is used for acquiring the height of the container. At this time, when the beverage is output from the beverage output port, the height of the container can be acquired by the first sensing assembly, so that the amount of beverage output can be controlled according to the height of different containers, to avoid the phenomenon that the beverage splashes or overflows due to excessive output of the beverage, and the operation experience of a user can be better improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of beverage equipment technology, specifically relating to beverage output devices, control methods for beverage output devices, and storage media. Background Technology

[0002] Existing beverage dispensing equipment often uses containers of varying heights, which can easily lead to spills when the containers are too short. Therefore, measuring the container height before dispensing can prevent spills. However, how to accurately measure the container height is a pressing technical problem that needs to be solved. Summary of the Invention

[0003] This application provides a beverage dispensing device, a control method for the beverage dispensing device, and a storage medium to solve the technical problem of how to measure the height of a container.

[0004] To solve the above-mentioned technical problems, one technical solution adopted in this application is: a beverage dispensing device, comprising: a support platform for supporting a container for receiving a beverage; a beverage dispensing port for dispensing a beverage into the container, the beverage comprising a first type of beverage ingredients and / or a second type of beverage ingredients; and a first sensing component rotatably disposed between the support platform and the beverage dispensing port, the first sensing component being able to swing and scan the container between the support platform and the beverage dispensing port to obtain the height of the container.

[0005] According to one embodiment of this application, the beverage output device further includes a carrier frame located above the carrier platform, and the first sensing component is rotatably disposed on the carrier frame for swinging and scanning the container.

[0006] According to one embodiment of this application, the support frame includes a back plate and two side plates disposed opposite to each other on both sides of the back plate, the support platform is disposed at the bottom of the back plate and the side plates, the beverage outlet is disposed within the space formed by the back plate and the two side plates, and at least one first sensing component is provided and is rotatably disposed on the back plate and / or the side plates.

[0007] According to one embodiment of this application, the beverage output device further includes: a movable component connected to the beverage output port, the movable component being used to move the beverage output port closer to or further away from the support platform.

[0008] To solve the above-mentioned technical problems, another technical solution adopted in this application is: a control method for a beverage dispensing device, applied to the beverage dispensing device described in any of the above claims, the control method comprising: controlling the first sensing component to rotate between the support platform and the beverage dispensing port, and controlling the first sensing component to continuously emit a detection wave; determining the opening edge of the container scanned by the first sensing component based on the parameter change amplitude of the detection echo received by the first sensing component; and determining the vertical distance between the opening edge of the container and the support platform based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance when the first sensing component scans to the opening edge of the container.

[0009] According to one embodiment of this application, controlling the first sensing component to rotate between the support platform and the beverage outlet, and controlling the first sensing component to continuously emit a detection wave includes: controlling the first sensing component to emit a detection wave horizontally; determining whether the first sensing component receives a detection echo of the detection wave within a first preset time period; if yes, controlling the first sensing component to rotate upward, and controlling the first sensing component to continuously emit a detection wave; if no, controlling the first sensing component to rotate downward, and controlling the first sensing component to continuously emit a detection wave.

[0010] According to one embodiment of this application, determining the vertical distance between the container opening edge and the support platform based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance when the first sensing component scans to the opening edge of the container, includes: calculating the rotation angle when the first sensing component rotates from the horizontal direction to scan to the opening edge of the container, and taking upward rotation as a positive angle value and downward rotation as a negative angle value, denoted as a first angle; calculating the detection distance when the first sensing component scans to the opening edge of the container, and denoting it as a first distance; and using the first distance multiplied by the sine of the first angle to obtain the vertical distance difference between the opening edge of the container and the first sensing component, denoted as a first height.

[0011] The vertical distance between the edge of the container opening and the support platform is obtained by summing the vertical distance between the first sensing component and the support platform and the first height.

[0012] According to one embodiment of this application, determining the vertical distance between the container opening edge and the support platform based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance when the first sensing component scans to the opening edge of the container, further includes: in response to the absolute value of the rotation angle when the first sensing component scans to the opening edge of the container being less than a predetermined angle value; using the vertical distance between the first sensing component and the support platform as the vertical distance between the container opening edge and the support platform.

[0013] According to one embodiment of this application, determining the opening edge of the container scanned by the first sensing component based on the parameter change amplitude of the detection echo received by the first sensing component includes: determining the opening edge of the container scanned by the first sensing component in response to the interval between two adjacent detection echoes being longer than a second predetermined duration, wherein the two adjacent detection echoes are the two adjacent detection echoes corresponding to two adjacent detection waves emitted during the swinging process of the first sensing component.

[0014] To solve the above-mentioned technical problems, another technical solution adopted in this application is: a storage medium storing program instructions that can be executed to implement any of the above-described control methods for beverage output devices.

[0015] The beneficial effects of this application are as follows: This application provides a beverage dispensing device, a control method for the beverage dispensing device, and a storage medium. The beverage dispensing device includes a support platform, a beverage dispensing port, and a first sensing component. The support platform is used to support a container. The container is used to receive a beverage. The beverage dispensing port is used to dispense the beverage into the container, the beverage including fixed and / or second-type beverage ingredients. The first sensing component is rotatably disposed between the support platform and the beverage dispensing port. The first sensing component can swing and scan the container between the support platform and the beverage dispensing port to obtain the height of the container. By rotatably dispensing the first sensing component between the support platform and the beverage dispensing port, the first sensing component can swing and scan the container between the support platform and the beverage dispensing port, thereby detecting the top opening edge of the container and thus obtaining the height of the container. When the beverage is dispensed from the beverage dispensing port, because the first sensing component can obtain the height of the container, the amount of beverage dispensed can be controlled according to the height of different containers to avoid excessive dispensing and causing splashing or overflow, thus improving the user's operating experience. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein:

[0017] Figure 1 This is a front structural diagram of an embodiment of the beverage dispensing device of this application;

[0018] Figure 2 This is a flowchart of an embodiment of the control method for a beverage dispensing device according to this application;

[0019] Figure 3 This is a flowchart illustrating yet another sub-implementation of the control method for a beverage dispensing device according to this application.

[0020] Figure 4 This is a flowchart illustrating a sub-implementation of the control method for a beverage dispensing device according to this application;

[0021] Figure 5 This is a schematic diagram of container height detection according to an embodiment of the control method for beverage dispensing equipment of this application;

[0022] Figure 6 This is a schematic diagram of container height detection according to an embodiment of the control method for beverage dispensing equipment of this application;

[0023] Figure 7 This is a schematic diagram of container height detection, representing another embodiment of the control method for beverage dispensing equipment according to this application.

[0024] Figure 8 This is a schematic diagram of container height detection, representing another embodiment of the control method for beverage dispensing equipment according to this application.

[0025] Figure 9 This is a schematic diagram of a framework of an embodiment of the storage medium of this application. Detailed Implementation

[0026] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not the entire structure. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0027] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0029] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0030] Please see Figure 1 , Figure 1 This is a front structural diagram of an embodiment of the beverage dispensing device of this application.

[0031] One embodiment of this application provides a beverage dispensing device 10. The beverage dispensing device 10 includes a support platform 11, a beverage dispensing port 12, and a first sensing component 13. The support platform 11 is used to support a container. The container is used to receive a beverage. The beverage dispensing port 12 is used to dispense the beverage into the container. The beverage includes a first type of beverage ingredients and / or a second type of beverage ingredients. The first sensing component 13 is rotatably disposed between the support platform 11 and the beverage dispensing port 12. The first sensing component 13 can swing between the support platform 11 and the beverage dispensing port 12 to scan the container and obtain the height of the container.

[0032] As can be seen from the above structure, when receiving a beverage, the user can place the container on the support platform 11. At this time, the user does not need to hold the container during the entire beverage receiving process, making the process much less strenuous. By rotating the first sensing component 13 between the support platform 11 and the beverage outlet 12, the first sensing component 13 can swing and scan the container between the support platform 11 and the beverage outlet 12, thereby detecting the top opening edge of the container and thus obtaining the container's height. When the beverage is dispensed from the beverage outlet 12, because the first sensing component 13 can obtain the container's height, it can control the amount of beverage dispensed according to the different container heights, avoiding excessive dispensing that could cause splashing or overflow, thus improving the user's operating experience.

[0033] Specifically, when a user takes the first type of beverage ingredient and / or the second type of beverage ingredient, the container is placed on the support platform 11. When the first sensing component 13 rotates and simultaneously emits a detection wave to scan the container, the first sensing component 13 continuously receives detection echoes. The first sensing component 13 can calculate the distance between itself and different positions on the container based on the time interval of the received detection echoes. The time interval of the received detection echoes and the calculated distance should change regularly and slowly. However, when the first sensing component 13 scans from the edge of the container opening to another object, the time interval of the received detection echoes will change abruptly, and the calculated distance will also change abruptly, which does not conform to the characteristics of a container under conventional scanning rules. At this point, it can be confirmed that the first sensing component 13 has scanned beyond the edge of the container opening. Therefore, at the instant the detection echo of the first sensing component 13 changes abruptly, the time of the previous set of detection echoes can be obtained, thus enabling the determination of the straight-line distance between the first sensing component 13 and the edge of the container opening based on the speed of the detection wave propagation. Since the vertical distance between the first sensing component 13 and the support platform 11 is known, the rotation angle of the first sensing component 13 scanning the edge of the container opening is known, and the straight-line distance between the first sensing component 13 and the edge of the container opening is known, the height of the container opening edge can be calculated. The specific calculation method will be described in detail in the relevant embodiments of the control method of the beverage output device 10.

[0034] The beverage dispensing device 10 of this application can automatically obtain the height of the container. When dispensing beverages at the beverage dispensing port 12, it can more accurately control the amount of beverage dispensing based on the container height obtained by the beverage dispensing device 10, so as to avoid excessive beverage dispensing and overflow. This structure can better improve the user's experience when using the beverage dispensing device 10.

[0035] It should be noted that the first category of beverage ingredients includes ingredients with fixed shapes, elastic ingredients, and ingredients with poor flowability, such as ice cubes, crushed ice, red beans, mung beans, peanuts, tapioca pearls in bubble tea, coconut jelly, taro balls, milk jelly, fruit jelly, herbal jelly, fruit puree, taro puree, ice cream, puffed snacks, baked goods, etc.; the second category of beverage ingredients includes ingredients with high flowability, such as water, fruit juice, milk, coffee, cola, soy milk, etc.

[0036] In one embodiment of this application, the beverage dispensing device 10 further includes a support frame 14. The support frame 14 is located above the support platform 11. A first sensing component 13 is rotatably disposed on the support frame 14 for swinging and scanning the container. The support frame 14 can effectively support the first sensing component 13, so that the first sensing component 13 can be more stable during the swinging and scanning of the container.

[0037] Furthermore, the support frame 14 includes a back plate 141 and side plates 142 disposed opposite to each other on both sides of the back plate 141. A support platform 11 is disposed at the bottom of the back plate 141 and the side plates 142. A beverage outlet 12 is disposed within the space formed by the back plate 141 and the two side plates 142. At least one first sensing component 13 is provided and rotatably disposed on the back plate 141 and / or the side plates 142.

[0038] It should be noted that only one first sensing component 13 may be provided. When only one first sensing component 13 is provided, it may be located on the back of the support frame 14, or it may be located on either of the two side plates 142 of the support frame 14; there is no limitation here. Of course, multiple first sensing components 13 may also be provided. When multiple first sensing components 13 are provided, they may be located on the back plate 141 and both side plates 142 of the support frame 14, or they may be located only on the back plate 141 of the support frame 14, or only on either of the two side plates 142; there is no limitation here. In addition, when multiple first sensing components 13 are provided, misjudgments due to the special shape of the container can be avoided, thereby improving the compatibility of the beverage dispensing device 10 with the container.

[0039] Specifically, the first sensing component 13 may be an ultrasonic detector or a time-of-flight detector (TOF).

[0040] Furthermore, to prevent splashing when beverages are dispensed from the beverage outlet 12, in one embodiment of this application, the beverage dispensing device 10 further includes a moving component 15. The moving component 15 is connected to the beverage outlet 12. The moving component 15 is used to move the beverage outlet 12 closer to or away from the support platform 11. Specifically, when a user needs to receive a beverage, the moving component 15 can move the beverage outlet 12 closer to the support platform 11. At this time, the distance between the beverage outlet 12 and the container is reduced, thus making it less likely for the beverage to splash when it is dispensed into the container. When the user finishes taking the first type of beverage ingredients and / or the second type of beverage ingredients, the moving component 15 can move the beverage outlet 12 away from the support platform 11. At this time, when the user picks up the container, their hand will not touch the beverage outlet 12. On the one hand, this can prevent bacteria from remaining in the beverage outlet 12, and on the other hand, it is less likely to cause accidental injury to the user, resulting in a better overall user experience.

[0041] To address the aforementioned problems, another embodiment of this application provides a control method for a beverage dispensing device 10. Please refer to... Figure 2 and Figure 3 , Figure 2 This is a flowchart of an embodiment of the control method for a beverage dispensing device according to this application. Figure 3 This is a flowchart illustrating another sub-implementation of the control method for a beverage dispensing device according to this application.

[0042] The control method for the beverage dispensing device is applied to the beverage dispensing device 10 in any of the above embodiments. Specifically, the control method for the beverage dispensing device includes the following:

[0043] S11: Control the first sensing component 13 to rotate between the support platform 11 and the beverage outlet 12, and control the first sensing component 13 to continuously emit detection waves.

[0044] Since the container is placed on the support platform 11 and located between the support platform 11 and the beverage outlet 12, the detection wave emitted by the first sensing component 13 can detect the specific position of the container. The distance between the first sensing component 13 and the support platform 11 can be the same as the distance between a conventional container and the support platform 11. The first sensing component 13 can even be positioned flush with the support platform 11, meaning it can only rotate upwards to detect the container.

[0045] Specifically, controlling the first sensing component 13 to rotate between the support platform 11 and the beverage outlet 12, and controlling the first sensing component 13 to continuously emit detection waves includes:

[0046] S111, Control the first sensing component 13 to horizontally emit a detection wave.

[0047] To facilitate calculation, when the first sensing component 13 swings between the support platform 11 and the beverage outlet 12 to scan the container, it first emits a detection wave horizontally to compare the height of the first sensing component 13 with the edge of the container opening.

[0048] S112. Determine whether the first sensing component 13 receives the detection echo of the detection wave within a first preset time period.

[0049] If the first sensing component 13 receives the detection echo of the detection wave within the first preset time period, it means that the vertical distance H between the edge of the container opening and the support platform 11 is greater than or equal to the vertical distance h1 between the first sensing component 13 and the support platform 11, that is, H≥h1.

[0050] The first preset duration can be determined based on the actual size of the support platform 11 and the support frame 14. For example, the first preset duration can be the duration for the first sensing component 13 to horizontally detect the reflected echo from the middle, two-thirds, or three-quarters of the distance of the support platform 11. If the first preset duration is exceeded, it can be determined that the first sensing component 13 has horizontally detected outside the support platform 11. In this case, the opening edge of the container is lower than the first sensing component 13.

[0051] S113. If so, control the first sensing component 13 to rotate upward and control the first sensing component 13 to continuously emit detection waves.

[0052] If the first sensing component 13 receives a detection echo of the detection wave within a first preset time period, it can be determined that the height H of the container opening edge is greater than or equal to the vertical distance h1 between the first sensing component 13 and the support platform 11, i.e., H≥h1. At this time, the first sensing component 13 is controlled to rotate upward and continuously emit detection waves to detect the opening edge of the container.

[0053] S114. If not, control the first sensing component 13 to rotate downwards and control the first sensing component 13 to continuously emit detection waves.

[0054] If the first sensing component 13 does not receive a detection echo of the detection wave within a first preset time period, it can be determined that the height H of the container opening edge is less than the vertical distance h1 between the first sensing component 13 and the support platform 11, i.e., H < h1. At this time, the first sensing component 13 is controlled to rotate downward and continuously emit detection waves to detect the opening edge of the container.

[0055] S12: Determine the scanning distance of the first sensing component 13 to the edge of the container opening based on the parameter change amplitude of the detection echo received by the first sensing component 13.

[0056] When the first sensing component 13 scans the container, the parameter change amplitude of the detection echo received by the first sensing component 13 is slow and regular. When the parameter change amplitude of the detection echo received by the first sensing component 13 is greater than the preset amplitude, it can be determined that the first sensing component 13 has scanned the edge of the container opening, that is, the upper edge of the container.

[0057] Specifically, the detection echo before the sudden change in the parameter variation of the detection echo can be taken as the detection echo reflected back from the opening edge of the container; and the rotation angle α of the first sensing component 13 when the detection wave corresponding to this detection echo is emitted can be determined as the rotation angle α of the first sensing component 13 rotating to scan to the opening edge of the container.

[0058] Of course, in some embodiments, since the propagation speed of the detection wave is very fast, the rotation speed of the first sensing component 13 is relatively slow. When it is determined that the parameter change amplitude of the first sensing component 13 receiving the detection echo is greater than a preset amplitude, the rotation angle of the first sensing component 13 scanning away from the edge of the container opening can be ignored. When the parameter change amplitude of the first sensing component 13 receiving the detection echo is greater than the preset amplitude, the first sensing component 13 is stopped, and the current rotation angle α of the first sensing component 13 is directly used as the rotation angle α of the first sensing component 13 scanning to the edge of the container opening. Among them, the parameters of the detection echo include the reception time 2t between the received detection echo and the corresponding detection wave, the detection distance L corresponding to the detection echo, the interval between two adjacent detection echoes, etc., and one or more parameter change amplitudes of the detection echo can be selected to determine whether the first sensing component 13 has scanned to the edge of the container opening.

[0059] For example, determining the opening edge of the container scanned by the first sensing component 13 based on the parameter change amplitude of the detection echo received by the first sensing component 13 includes: in response to the interval between two adjacent detection echoes being longer than a second predetermined duration, determining that the first sensing component 13 has scanned to the opening edge of the container, wherein the two adjacent detection echoes are the adjacent two-sided detection echoes corresponding to the two adjacent detection waves emitted during the swinging process of the first sensing component 13.

[0060] When the interval between two adjacent detection echoes is longer than the second predetermined time, it can be determined that the parameter change amplitude of the detection echo is abnormal and the parameter of the detection echo has changed abruptly. The first sensing component 13 has scanned the edge of the container opening.

[0061] S13: Determine the vertical distance H between the container opening edge and the support platform 11 based on the vertical distance h between the first sensing component 13 and the support platform 11, the rotation angle α when the first sensing component 13 scans to the opening edge of the container, and the detection distance L.

[0062] Since the vertical distance h between the first sensing component 13 and the support platform is known, the rotation angle α of the first sensing component 13 scanning the edge of the container opening is known, and the detection distance L of the first sensing component 13 scanning the edge of the container opening is known, the height of the container opening edge can be obtained through calculation.

[0063] Please see Figure 4 , Figure 4 This is a flowchart illustrating a sub-implementation of the control method for a beverage dispensing device according to this application;

[0064] In some embodiments, determining the vertical distance H between the container opening edge and the support platform 11 based on the vertical distance h between the first sensing component 13 and the support platform 11, the rotation angle α when the first sensing component 13 scans to the opening edge of the container, and the detection distance L includes:

[0065] S131. Calculate the rotation angle α of the first sensing component 13 when it rotates from the horizontal direction to scan the edge of the container opening, and take the upward rotation as the positive angle value and the downward rotation as the negative angle value, and record it as the first angle α.

[0066] Since each container has a different height, and the vertical distance h between the first sensing component 13 and the support platform 11 is fixed, when the vertical distance H between the opening edge of the container and the support platform 11 is greater than the vertical distance h between the first sensing component 13 and the support platform 11 (i.e., H ≥ h), the first sensing component 13 rotates upwards by a positive angle α. Conversely, when the vertical distance H between the opening edge of the container and the support platform 11 is less than the vertical distance h between the first sensing component 13 and the support platform 11 (i.e., H < h), the first sensing component 13 rotates downwards by a negative angle α.

[0067] S132. Calculate the detection distance L when the first sensing component 13 scans to the edge of the container opening, and record it as the first distance L.

[0068] Since the time it takes for the first sensing component 13 to receive the detection echo when it scans to the edge of the container opening is 2t, and the propagation speed of the detection wave is v, the detection distance L when the first sensing component 13 scans to the edge of the container opening is L = t * v. That is, the first distance L = t * v.

[0069] S133. Using the sine value of the first distance L multiplied by the first angle α, the vertical distance difference between the edge of the container opening and the first sensing component 13 is obtained and denoted as the first height h1.

[0070] Specifically, see Figure 5When the height H of the container is greater than the vertical distance h between the first sensing component 13 and the support platform 11, that is, H≥h, the first sensing component 13 rotates upward from the horizontal direction by α. At this time, h1=L*sinα=t*v*sina.

[0071] See Figure 6 When the height H of the container is less than the vertical distance h between the first sensing component 13 and the support platform 11, i.e. H < h, the first sensing component 13 rotates downward from the horizontal direction by α. The first angle α is negative. At this time, h1 = L*sin(α) = -L*sin∣α∣ = -t*v*sin∣α∣.

[0072] S134. The vertical distance h between the first sensing component 13 and the support platform 11 is summed with the first height h1 to obtain the vertical distance H between the edge of the container opening and the support platform 11.

[0073] Specifically, when the height H of the container is greater than the vertical distance between the first sensing component 13 and the support platform 11, i.e., H ≥ h, the first sensing component 13 rotates upwards by α from the horizontal direction. At this time, H = h + h1 = h + t * v * sinα. When the height H of the container is less than the vertical distance h between the first sensing component 13 and the support platform 11, i.e., H < h, the first sensing component 13 rotates downwards by α from the horizontal direction. At this time, H = h + h1 = ht * v * sin |α|.

[0074] In some embodiments, when the rotation angle of the first sensing component 13 when it scans the edge of the container opening is very small and can be ignored, the vertical distance between the first sensing component 13 and the support platform 11 can be used as the vertical distance H between the edge of the container opening and the support platform 11. Specifically, if the absolute value of the rotation angle of the first sensing component 13 when it scans the edge of the container opening is less than or equal to the predetermined angle value and the vertical distance between it and the support platform 11, then the vertical distance h1 between the first sensing component 13 and the support platform 11 is used as the vertical distance H between the edge of the container opening and the support platform 11, i.e., H = h1.

[0075] It should be noted that the rotation angle of the first sensing component 13 has a predetermined angle value, λ, which is 0-5°. The absolute value of the rotation angle α when the first sensing component 13 scans to the edge of the container opening can be less than or equal to the predetermined angle value λ.

[0076] The predetermined angle value λ can be 0°, or 1°, or 2.5°, or 4°, without any restrictions.

[0077] It should be noted that you should refer to [link / reference]. Figure 7In some other embodiments, the height of the container opening edge can also be obtained by the horizontal distance x between the sidewall of the container and the first sensing component 13. Specifically, when the height H of the container opening edge is greater than the vertical distance h between the first sensing component 13 and the support platform 11, i.e., H≥h, the first sensing component 13 rotates upward from the horizontal direction by α. The difference in vertical distance between the container opening edge and the first sensing component 13, i.e., the first height h1, can be obtained through the tangent function. Where h1=x*tanα. Therefore, the height H of the container opening edge is H=h+h1=h+xtanα.

[0078] Please see Figure 8 When the height H of the container opening edge is less than the vertical distance h between the first sensing component 13 and the support platform 11 (i.e., H < h), the first sensing component 13 rotates downwards by α from the horizontal direction. The height difference between the container opening edge and the first sensing component 13, i.e., the first height h1, can be obtained through the tangent function. Here, h1 = -x * tan∣α∣. Therefore, the height H of the container opening edge is H = h + h1 = h - x tan∣α∣.

[0079] When the tangent function is used to obtain the vertical distance difference between the container opening edge and the first sensing component 13, the shape of the container will affect the horizontal distance x between the container sidewall and the first sensing component 13, which in turn will affect the height difference h1 between the container opening edge and the first sensing component 13, thus affecting the height H of the container opening edge obtained by the beverage dispensing device 10. Therefore, in this application, the detection distance L when the first sensing component 13 scans to the container opening edge is obtained, and the vertical distance between the container opening edge and the first sensing component 13 is calculated using a sine function, thereby obtaining the height H of the container opening edge.

[0080] Please see Figure 9 To solve the above-mentioned technical problems, this application also provides a storage medium 30, which stores program instructions that can be executed to implement any of the control methods for beverage output devices described above.

[0081] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0082] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0083] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0084] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium 30. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium 30 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium 30 includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0085] The terms "first," "second," and "third" in this application are for descriptive purposes only and should not be construed as indicating the number of technical features indicated. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of those features. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movements between components in a specific orientation (as shown in the figures). If the specific orientation changes, the directional indications will change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. A process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0086] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A beverage dispensing device, characterized in that, include: A support platform for holding containers, the containers being used to hold beverages; A beverage outlet for dispensing a beverage into the container, the beverage comprising a first type of beverage ingredients and / or a second type of beverage ingredients; A first sensing component is rotatably disposed between the support platform and the beverage outlet. The first sensing component can swing and scan the container between the support platform and the beverage outlet to obtain the height of the container. A carrier frame is located above the carrier platform, and the first sensing component is rotatably disposed on the carrier frame for swinging and scanning the container; The support frame includes a back plate and two side plates disposed opposite to each other on both sides of the back plate. The support platform is disposed at the bottom of the back plate and the side plates. The beverage outlet is disposed within the space formed by the back plate and the two side plates. At least one first sensing component is provided and is rotatably disposed on the back plate and / or the side plates. The first sensing component can emit a detection wave horizontally; the first sensing component can rotate upward and continuously emit a detection wave; and the first sensing component can rotate downward and continuously emit a detection wave.

2. The beverage dispensing device according to claim 1, characterized in that, The beverage dispensing device also includes: A movable component is connected to the beverage outlet, and the movable component is used to move the beverage outlet closer to or away from the support platform.

3. A control method for a beverage dispensing device, characterized in that, The control method, applied to the beverage dispensing device according to any one of claims 1-2, comprises: The first sensing component is controlled to rotate between the support platform and the beverage outlet, and the first sensing component is controlled to continuously emit detection waves; The scanning range of the first sensing component to the edge of the container opening is determined based on the parameter change amplitude of the detection echo received by the first sensing component. The vertical distance between the container opening edge and the support platform is determined based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance when the first sensing component scans to the opening edge of the container.

4. The control method for a beverage dispensing device according to claim 3, characterized in that, The control of the first sensing component to rotate between the support platform and the beverage outlet, and the control of the first sensing component to continuously emit detection waves include: Control the first sensing component to horizontally emit a detection wave; Determine whether the first sensing component receives a detection echo of the detection wave within a first preset time period; If so, control the first sensing component to rotate upwards, and control the first sensing component to continuously emit detection waves; If not, control the first sensing component to rotate downwards and control the first sensing component to continuously emit detection waves.

5. The control method for a beverage dispensing device according to claim 4, characterized in that, The step of determining the vertical distance between the container opening edge and the support platform based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance of the first sensing component when scanning to the opening edge of the container, includes: Calculate the rotation angle of the first sensing component when it rotates from the horizontal direction to scan the edge of the opening of the container, and take upward rotation as the positive angle value and downward rotation as the negative angle value, and record it as the first angle; Calculate the detection distance when the first sensing component scans to the edge of the container's opening, and record it as the first distance; The vertical distance difference between the opening edge of the container and the first sensing component is obtained by multiplying the first distance by the sine of the first angle, and is denoted as the first height. The vertical distance between the edge of the container opening and the support platform is obtained by summing the vertical distance between the first sensing component and the support platform and the first height.

6. The control method for a beverage dispensing device according to claim 5, characterized in that, The step of determining the vertical distance between the container opening edge and the support platform based on the vertical distance between the first sensing component and the support platform, and the rotation angle and detection distance of the first sensing component when scanning to the opening edge of the container, further includes: The absolute value of the rotation angle when the first sensing component scans to the edge of the container opening is less than a predetermined angle value; The vertical distance between the first sensing component and the support platform is taken as the vertical distance between the edge of the container opening and the support platform.

7. The control method for a beverage dispensing device according to any one of claims 3-6, characterized in that, The step of determining the scanning distance of the first sensing component to the opening edge of the container based on the parameter change amplitude of the detected echo received by the first sensing component includes: In response to the interval between two adjacent detection echoes being longer than a second predetermined duration, it is determined that the first sensing component has scanned to the edge of the opening of the container, wherein the two adjacent detection echoes are the two adjacent detection echoes corresponding to the two adjacent detection waves emitted during the swinging process of the first sensing component.

8. A storage medium, characterized in that, The storage medium stores program instructions that can be executed to implement the control method for a beverage dispensing device as described in any one of claims 3-7.