Liquid injection detection method, automatic liquid injection system, and computer readable storage medium
Patent Information
- Application Number
- CN202510175350.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2026-08-18
AI Technical Summary
[0003]当前的自动注液系统存在光电传感器被干扰导致的异常触发自动出液操作等问题
[0015] The beneficial effects of this application are as follows: Unlike the prior art, the liquid injection detection method, automatic liquid injection system, and computer-readable storage medium provided in this application utilize the method of updating the reference sampling value to make the reference sampling value more adapted to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation, reducing problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with photoelectric sensors, and improving the accuracy of triggering automatic liquid injection operation.
Smart Images

Figure CN122581602A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of liquid injection detection technology, and in particular to liquid injection detection methods, automatic liquid injection systems, and computer-readable storage media. Background Technology
[0002] More and more automatic liquid dispensing systems, such as water dispensers, are equipped with the functions of automatically dispensing water when the container is placed and automatically stopping the water supply when the container is full. This is usually achieved by using photoelectric sensors to detect the corresponding container, thereby triggering the automatic dispensing operation.
[0003] Current automated liquid dispensing systems suffer from problems such as abnormal triggering of automatic liquid dispensing operations due to interference with photoelectric sensors. Summary of the Invention
[0004] The injection detection method, automatic injection system, and computer-readable storage medium provided in this application can improve the accuracy of triggering automatic injection operations.
[0005] In a first aspect, this application provides a liquid injection detection method for use in an automatic liquid injection system. The liquid injection detection method includes: acquiring a current sample value; the current sample value is acquired by at least one photoelectric sensor; comparing the current sample value with a reference sample value; the reference sample value is updated by sampling values acquired when the automatic liquid injection system is in an idle state; and determining whether to trigger an automatic liquid injection operation based on the comparison result.
[0006] The process of comparing the current sampled value with the baseline sampled value includes: comparing the difference between the current sampled value and the baseline sampled value, and using the difference as the comparison result; and determining whether to trigger the automatic injection operation based on the comparison result, including: triggering the automatic injection operation in response to the difference being greater than a threshold; and not triggering the automatic injection operation in response to the difference being less than a threshold.
[0007] After deciding not to trigger the automatic injection operation, the process also includes updating the baseline sample value using the current sample value.
[0008] The current sampled value is acquired by at least two photoelectric sensors. Based on the comparison result, a decision is made on whether to trigger an automatic liquid injection operation, including: in response to the comparison result indicating that the difference between the current sampled value and the reference sampled value is greater than a threshold, obtaining the sequence number corresponding to the target photoelectric sensor among the at least two photoelectric sensors; wherein the current sampled value acquired by the target photoelectric sensor is greater than the sampled value acquired by the target photoelectric sensor at the previous moment, and the number of target photoelectric sensors is at least two; in response to the sequence numbers corresponding to the at least two target photoelectric sensors being consecutive, triggering an automatic liquid injection operation.
[0009] The automatic liquid injection operation is triggered in response to the consecutive serial numbers corresponding to at least two target photoelectric sensors, including: acquiring a target serial number in response to the consecutive serial numbers corresponding to at least two target photoelectric sensors; wherein the target serial number is the minimum or maximum serial number among the serial numbers corresponding to at least two target photoelectric sensors; and triggering the automatic liquid injection operation in response to the target serial number being a default serial number; the photoelectric sensor corresponding to the default serial number is located at the bottom.
[0010] The automatic liquid injection operation includes: determining the number of target photoelectric sensors; and triggering the automatic liquid injection operation in response to the number being greater than a threshold, wherein the threshold is greater than two.
[0011] The automatic liquid injection operation is further comprised of: determining the number of target photoelectric sensors; and obtaining the target liquid level height to be dispensed based on the number of sensors.
[0012] Secondly, this application provides an automatic liquid injection system, which includes: at least one photoelectric sensor; a processor coupled to the at least one photoelectric sensor for acquiring a current sampled value; the current sampled value is acquired by the at least one photoelectric sensor; comparing the current sampled value with a reference sampled value; the reference sampled value is updated by sampling values acquired when the automatic liquid injection system is in an idle state; and determining whether to trigger an automatic liquid injection operation based on the comparison result; and an injection circuit configured to complete liquid injection according to the automatic liquid injection operation.
[0013] The number of photoelectric sensors is at least two. At least two photoelectric sensors are sequentially arranged in the automatic liquid injection system along the vertical direction of the automatic liquid injection system. Each photoelectric sensor has a corresponding serial number in the processor, and adjacent photoelectric sensors are arranged in sequence according to the serial number.
[0014] Thirdly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, is used to implement the liquid injection detection method provided in the first aspect.
[0015] The beneficial effects of this application are as follows: Unlike the prior art, the liquid injection detection method, automatic liquid injection system, and computer-readable storage medium provided in this application utilize the method of updating the reference sampling value to make the reference sampling value more adapted to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation, reducing problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with photoelectric sensors, and improving the accuracy of triggering automatic liquid injection operation. 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 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 schematic flowchart of an embodiment of the liquid injection detection method provided in this application;
[0018] Figure 2 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application;
[0019] Figure 3 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application;
[0020] Figure 4 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application;
[0021] Figure 5 This is a schematic diagram of an embodiment of the automatic liquid injection system provided in this application;
[0022] Figure 6 This is a schematic diagram of the structure of an embodiment of the photoelectric sensing component provided in this application;
[0023] Figure 7 This is a schematic diagram of another embodiment of the photoelectric sensing component provided in this application;
[0024] Figure 8 This is a schematic diagram of another embodiment of the automatic liquid injection system provided in this application;
[0025] Figure 9 This is a schematic diagram of another embodiment of the automatic liquid injection system provided in this application;
[0026] Figure 10 This is a schematic diagram of another embodiment of the automatic liquid injection system provided in this application;
[0027] Figure 11 This is a schematic diagram of another embodiment of the automatic liquid injection system provided in this application;
[0028] Figure 12 This is a schematic diagram of the structure of an embodiment of the water dispenser provided in this application;
[0029] Figure 13 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are only for explaining this application and not for limiting it. Furthermore, it should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all structures. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0031] 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.
[0032] More and more automatic liquid dispensing systems, such as water dispensers, are equipped with the functions of automatically dispensing water when the container is placed and automatically stopping the water supply when the container is full. This is usually achieved by using photoelectric sensors to detect the corresponding container, thereby triggering the automatic dispensing operation.
[0033] Current automated liquid dispensing systems suffer from problems such as abnormal triggering of automatic liquid dispensing operations due to interference with photoelectric sensors.
[0034] Based on this, this application proposes to update the reference sampling value to better adapt the reference sampling value to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared to a fixed reference sampling value; that is, a relative value is used to determine whether to trigger the automatic liquid injection operation. This reduces problems such as abnormal triggering of automatic liquid dispensing operations caused by interference with the photoelectric sensor, and improves the accuracy of triggering the automatic liquid injection operation. See any of the following embodiments for specific technical solutions.
[0035] See Figure 1 , Figure 1 This is a schematic flowchart of an embodiment of the liquid injection detection method provided in this application. Applied to an automated liquid injection system, the liquid injection detection method includes:
[0036] Step 11: Obtain the current sampled value; the current sampled value is obtained by at least one photoelectric sensor.
[0037] In some embodiments, an automatic liquid injection system may be equipped with a photoelectric sensor, which can collect sampled values. Specifically, the magnitude of the sampled values can be used to determine whether an automatic liquid injection operation is needed.
[0038] In some embodiments, the liquid in the automatic dispensing system may be purified water, mineral water, tap water, beverages, or other liquids that can be used and / or consumed.
[0039] In other embodiments, the liquid in the automated liquid dispensing system may also be a reagent or other liquid required by the corresponding equipment.
[0040] In some embodiments, the automated liquid dispensing system may be equipped with multiple photoelectric sensors, and at least some of these sensors may be used to collect sampled values. That is, when liquid needs to be injected into the container, the container is placed in front of the multiple photoelectric sensors so that at least some of them can collect sampled values. It is understood that since there are multiple photoelectric sensors, each with a corresponding sampled value, the current sampled value in step 11 can correspond to all the sampled values from the multiple photoelectric sensors. During this process, some of the photoelectric sensors may exhibit significant changes in their sampled values, while others may not. The photoelectric sensors exhibiting significant changes in their sampled values can be considered to have received reflected light signals. During this process, the automated liquid dispensing system records the sequence number of the photoelectric sensor exhibiting significant changes in its sampled values for subsequent operations.
[0041] Step 12: Compare the current sampled value with the baseline sampled value; the baseline sampled value is updated by the sampled value collected when the automatic injection system is in an idle state.
[0042] In some embodiments, the magnitude relationship between the current sampled value and the reference sampled value can be compared, and the magnitude relationship can be used as the comparison result.
[0043] In some embodiments, the difference between the current sampled value and the reference sampled value can be calculated and used as the comparison result.
[0044] Step 13: Based on the comparison results, decide whether to trigger the automatic liquid injection operation.
[0045] In some embodiments, the size relationship is used as an example of the comparison result. If the comparison result indicates that the current sampled value is greater than the reference sampled value, it means that there is a container that needs to be injected with liquid, and an automatic liquid injection operation is triggered, in which the automatic liquid injection system injects liquid into the container. If the comparison result indicates that the current sampled value is less than or equal to the reference sampled value, it means that there is no container that needs to be injected with liquid, and an automatic liquid injection operation is not triggered, allowing the automatic liquid injection system to enter standby mode and reduce energy consumption.
[0046] In this embodiment, by updating the reference sampling value, the reference sampling value is made more suitable to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation. This reduces problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with the photoelectric sensor, and can improve the accuracy of triggering the automatic liquid injection operation.
[0047] In some embodiments, photoelectric sensors typically face complex environmental interference factors such as sunlight, water mist, oil stains, and invalid targets.
[0048] See Figure 2 , Figure 2 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application. Applied to an automated liquid injection system, the liquid injection detection method includes:
[0049] Step 21: Obtain the current sampled value; the current sampled value is acquired by at least one photoelectric sensor.
[0050] Step 23: Compare the difference between the current sampled value and the baseline sampled value.
[0051] In some embodiments, the difference can be obtained by subtracting the baseline sample value from the current sample value.
[0052] Step 24: In response to the difference being greater than the threshold, an automatic injection operation is triggered.
[0053] When the difference is greater than the threshold, it indicates that there is a container that needs to be injected with liquid. In this case, an automatic liquid injection operation is triggered, and the automatic liquid injection system injects liquid into the container.
[0054] Step 25: In response to the difference being less than the threshold, decide not to trigger the automatic injection operation.
[0055] When the difference is less than the threshold, it indicates that no container needs to be injected with liquid, and the automatic liquid injection operation is not triggered, allowing the automatic liquid injection system to enter standby mode and reduce energy consumption. In this case, only the detection function of the photoelectric sensor can be retained.
[0056] Furthermore, after deciding not to trigger the automatic injection operation in step 25, the reference sample value is updated using the current sample value. That is, the current sample value is used as the reference sample value to ensure the real-time nature of the reference sample value in the automatic injection system.
[0057] In this embodiment, by updating the reference sampling value, the reference sampling value is made more suitable to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation. This reduces problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with the photoelectric sensor, and can improve the accuracy of triggering the automatic liquid injection operation.
[0058] In some scenarios, false triggering occurs. Based on this, this application proposes the following solution. (See reference...) Figure 3 , Figure 3 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application. Applied to an automated liquid injection system, the liquid injection detection method includes:
[0059] Step 31: Obtain the current sampled value; the current sampled value is obtained by at least two photoelectric sensors.
[0060] In some embodiments, the automated dispensing system is equipped with multiple photoelectric sensors. Therefore, each photoelectric sensor can collect a corresponding sample value. For a given container, the sample value collected by the photoelectric sensor corresponding to that container may vary.
[0061] Step 32: Compare the current sampled value with the baseline sampled value; the baseline sampled value is updated by the sampled value collected when the automatic injection system is in an idle state.
[0062] Step 33: In response to the comparison result indicating that the difference between the current sampled value and the reference sampled value is greater than the threshold, obtain the serial number corresponding to the target photoelectric sensor among at least two photoelectric sensors.
[0063] In some embodiments, the current sampled value collected by the target photoelectric sensor is greater than the sampled value collected by the target photoelectric sensor at the previous moment, and the number of target photoelectric sensors is at least two.
[0064] In some embodiments, the automated liquid injection system records the changes in the sampled values of each sensor. Then, when the difference between the current sampled value and the reference sampled value exceeds a threshold, the target photoelectric sensor and its corresponding serial number can be identified. It can be understood that each photoelectric sensor in the automated liquid injection system is assigned a corresponding serial number. For example, the photoelectric sensors can be numbered according to their arrangement order to obtain the serial number of each photoelectric sensor.
[0065] Step 34: In response to the consecutive serial numbers corresponding to at least two target photoelectric sensors, trigger the automatic liquid injection operation.
[0066] In some embodiments, the automatic liquid injection operation is not triggered in response to a discontinuity in the serial numbers corresponding to at least two target photoelectric sensors.
[0067] In one application scenario, let's take an automated liquid injection system with five photoelectric sensors as an example:
[0068] The five photoelectric sensors, numbered 1, 2, 3, 4, and 5, are arranged sequentially from bottom to top in the automatic liquid dispensing system. The target photoelectric sensor corresponds to 1, 2, and 3. The consecutive numbers indicate the presence of a complete object (container), triggering the automatic liquid dispensing operation. A specific scenario could be a user holding a water cup and placing it in front of photoelectric sensors 1, 2, and 3.
[0069] If the sequence number corresponding to the target photoelectric sensor is photoelectric sensor 1, photoelectric sensor 3, and photoelectric sensor 5, the sequence number is not consecutive, indicating that there is no complete object (container) present at this time. This is a false detection and the automatic liquid injection operation will not be triggered.
[0070] In this embodiment, by updating the reference sampling value, the reference sampling value is made more suitable to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation. This reduces problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with the photoelectric sensor, and can improve the accuracy of triggering the automatic liquid injection operation.
[0071] Furthermore, considering that liquid injection systems using photoelectric sensors often face complex environmental interference factors such as sunlight, water mist, oil stains, and invalid targets, which can lead to false triggering, when the difference between the current sampled value and the benchmark sampled value is greater than a threshold, the sequence number corresponding to the target photoelectric sensor among at least two photoelectric sensors is obtained, and when the sequence numbers are consecutive, an automatic liquid injection operation is triggered, thereby increasing the effectiveness of the liquid receiving target and reducing false triggering.
[0072] In some scenarios, false triggering occurs. Based on this, this application proposes the following solution. (See reference...) Figure 4 , Figure 4 This is a schematic flowchart of another embodiment of the liquid injection detection method provided in this application. Applied to an automated liquid injection system, the liquid injection detection method includes:
[0073] Step 41: Obtain the current sampled value; the current sampled value is obtained by at least two photoelectric sensors.
[0074] In some embodiments, the automated dispensing system is equipped with multiple photoelectric sensors. Therefore, each photoelectric sensor can collect a corresponding sample value. For a given container, the sample value collected by the photoelectric sensor corresponding to that container may vary.
[0075] Step 42: Compare the current sampled value with the baseline sampled value; the baseline sampled value is updated by the sampled value collected when the automatic injection system is in an idle state.
[0076] Step 43: In response to the comparison result indicating that the difference between the current sampled value and the reference sampled value is greater than the threshold, obtain the serial number corresponding to the target photoelectric sensor among at least two photoelectric sensors.
[0077] Among them, the current sample value collected by the target photoelectric sensor is greater than the sample value collected by the target photoelectric sensor at the previous moment, and the number of target photoelectric sensors is at least two.
[0078] Step 44: In response to the consecutive serial numbers corresponding to at least two target photoelectric sensors, obtain the target serial number.
[0079] The target sequence number is the smallest or largest sequence number among the sequence numbers corresponding to at least two target photoelectric sensors.
[0080] In some embodiments, if multiple photoelectric sensors are arranged sequentially from bottom to top in an automatic liquid injection system, the serial numbers corresponding to the multiple photoelectric sensors can be set in ascending or descending order. If set in ascending order, the serial numbers of the multiple photoelectric sensors increase from bottom to top, and the target serial number is the smallest serial number among the serial numbers corresponding to at least two target photoelectric sensors. For example, if the serial numbers of the five photoelectric sensors from bottom to top are photoelectric sensor 1, photoelectric sensor 2, photoelectric sensor 3, photoelectric sensor 4, and photoelectric sensor 5, and the serial numbers corresponding to at least two target photoelectric sensors are photoelectric sensor 2, photoelectric sensor 3, and photoelectric sensor 4, then the target serial number is photoelectric sensor 2.
[0081] If set in ascending order, the serial numbers of multiple photoelectric sensors decrease from bottom to top, and the target serial number is the largest among the serial numbers corresponding to at least two target photoelectric sensors. For example, if the serial numbers of five photoelectric sensors from bottom to top are photoelectric sensor 5, photoelectric sensor 4, photoelectric sensor 3, photoelectric sensor 2, and photoelectric sensor 1, and the serial numbers corresponding to at least two target photoelectric sensors are photoelectric sensor 2, photoelectric sensor 3, and photoelectric sensor 4, then the target serial number is photoelectric sensor 4.
[0082] Step 45: In response to the target sequence number being the default sequence number, trigger the automatic liquid injection operation; the photoelectric sensor corresponding to the default sequence number is located at the bottom.
[0083] In some embodiments, if the target number is the default number, it means that the detected object is placed at the bottom. In this case, the object can be identified as a container that needs to be injected with liquid, and the automatic liquid injection operation is triggered.
[0084] In some embodiments, the automatic liquid injection operation is not triggered if the target sequence number is not the default sequence number. The target sequence number not being the default sequence number may be due to erroneous operation, where multiple consecutive photoelectric sensors detect this, thus preventing the automatic liquid injection operation from being triggered. It could also be that the user is holding the container but has not placed it on the container placement assembly of the automatic liquid injection system, in which case the automatic liquid injection operation will not be triggered. However, the automatic liquid injection system can provide voice prompts to instruct the user to place the container on the container placement assembly. When the user places the container on the container placement assembly, meeting the requirements for triggering the automatic liquid injection operation, the automatic liquid injection operation can be triggered according to the above process to inject liquid into the container.
[0085] In this embodiment, by updating the reference sampling value, the reference sampling value is made more suitable to the actual environmental parameters of the automatic liquid injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value. That is, a relative value is used to determine whether to trigger the automatic liquid injection operation. This reduces problems such as abnormal triggering of automatic liquid dispensing operation caused by interference with the photoelectric sensor, and can improve the accuracy of triggering the automatic liquid injection operation.
[0086] Furthermore, considering that liquid injection systems using photoelectric sensors often face complex environmental interference factors such as sunlight, water mist, oil stains, and invalid targets, which can lead to false triggering, when the difference between the current sampled value and the benchmark sampled value is greater than a threshold, the sequence number corresponding to the target photoelectric sensor among at least two photoelectric sensors is obtained, and the sequence numbers are consecutive. When the target sequence number is the default sequence number, the automatic liquid injection operation is triggered, thereby increasing the effectiveness of the liquid receiving target and reducing false triggering.
[0087] In some embodiments, although the serial numbers corresponding to at least two target photoelectric sensors are consecutive, and the target serial number is a default serial number, there may be instances where the object detected by the target photoelectric sensor does not belong to the container or is not tall enough. Therefore, before triggering the automatic liquid injection operation, the number of target photoelectric sensors is determined; in response to the number being greater than a threshold, the automatic liquid injection operation is triggered; wherein, the threshold is greater than two.
[0088] In other embodiments, the threshold can be determined based on the distance and / or number of photoelectric sensors.
[0089] In some embodiments, when the serial numbers corresponding to at least two target photoelectric sensors are consecutive and the target serial number is the default serial number, the target liquid level height to be dispensed can also be obtained based on the number of target photoelectric sensors. This allows for detection of the injection height during automatic injection, enabling automatic termination of injection. In some embodiments, a height sensor, such as an ultrasonic sensor or a TOF (Time-of-flight) sensor, can be installed at the injection port of the automatic injection system to detect the injection height. The automatic injection system automatically terminates injection when the injection height reaches the target liquid level height.
[0090] In one application scenario, an automated liquid dispensing system can use an AD (Analog-to-Digital) sampling device to acquire digital signals from a photoelectric sensor. For example, a 12-bit AD sampling device has a sampling range of 0–4095. When the automated liquid dispensing system is idle (e.g., after the water cup has not been used for a long time or has been removed), the currently acquired photoelectric sensor signal AD value is stored in the memory as a calibration value (reference sampling value) for the current environment. This calibration value is mainly affected by ambient light, the light transmittance of the cover plate, and the ambient temperature and humidity.
[0091] Then, when placing the water cup, the difference between the real-time AD value (current sampled value) and the AD value stored in the previous step is compared as a judgment feature value. Only when the feature value exceeds the specified threshold is it considered a valid trigger value.
[0092] Finally, the number of continuously triggered photoelectric sensors is used to convert the cup height value, thereby determining the required water level. This method effectively solves the problems of inaccurate cup height measurement or false triggering caused by oil stains, light exposure, and aging and decay of photoelectric sensors.
[0093] See Figure 5 , Figure 5 This is a schematic diagram of an embodiment of the automatic liquid injection system provided in this application. The automatic liquid injection system 200 includes: a processor 50, a liquid injection circuit 60, and at least one photoelectric sensor 70.
[0094] The processor 50 is coupled to at least one photoelectric sensor 70 for acquiring a current sampled value; the current sampled value is acquired by at least one photoelectric sensor 70; and comparing the current sampled value with a reference sampled value; the reference sampled value is updated by a sampled value acquired when the automatic injection system 200 is in an idle state; and determining whether to trigger an automatic injection operation based on the comparison result.
[0095] The injection circuit 60 is configured to complete injection according to an automatic injection operation. In some embodiments, the injection circuit 60 may consist of a power pump, an outlet, and a liquid flow circuit, with the outlet connected to one end of the liquid flow circuit. The power pump responds to the automatic injection operation by controlling the flow of liquid in the liquid flow circuit, allowing it to flow out from the outlet. A corresponding container may be placed below the outlet to receive the liquid.
[0096] In some embodiments, the number of photoelectric sensors 70 is at least two. At least two photoelectric sensors 70 are sequentially arranged in the automatic liquid injection system 200 along the vertical direction of the automatic liquid injection system 200. Each photoelectric sensor 70 has a corresponding serial number in the processor 50, and adjacent photoelectric sensors 70 are consecutive according to their serial numbers. In some embodiments, the number of photoelectric sensors 70 can be 5, 6, 7, 8, 9, 10, 15, 20, 25, etc., which can be determined according to the volume of the automatic liquid injection system 200.
[0097] The processor 50, the liquid injection circuit 60, and at least one photoelectric sensor 70 work together to implement the solution mentioned in any embodiment of this application.
[0098] Current water dispensers and other liquid dispensing systems increasingly feature automatic water dispensing upon container placement and automatic water shut-off when the container is full. However, liquid dispensing systems employing photoelectric sensors often face complex environmental interference factors such as sunlight, water mist, oil stains, and unwanted targets. Therefore, this application proposes a first light-shielding structure between the receiving and transmitting units to reduce direct internal interference between them, and a second light-shielding structure for the receiving unit to limit its light reception range and reduce the possibility of interference.
[0099] See Figure 6 , Figure 6 This is a schematic diagram of an embodiment of the photoelectric sensing component provided in this application. The photoelectric sensing component includes: a photoelectric sensor 70 and an anti-interference component; wherein, the anti-interference component includes: a first light-shielding structure 81 and a second light-shielding structure 82.
[0100] The first light-shielding structure 81 is disposed between the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70; wherein the photoelectric sensor 70 is disposed in the automatic liquid injection system 200. In some embodiments, the first light-shielding structure 81 may be disposed at the center position between the receiving unit 72 and the transmitting unit 71.
[0101] The second light-shielding structure 82 is disposed on the side of the receiving unit 72 away from the first light-shielding structure 81. The second light-shielding structure 82 includes a first bending portion 821, which is disposed towards the first light-shielding structure 81 to limit the light-receiving range of the receiving unit 72. In some embodiments, the first bending portion 821 may be disposed in front of the receiving unit 72, and there is a gap between it and the first light-shielding structure 81. This "in front" refers to the direction in which the receiving unit 72 receives light. In this way, the light-receiving range of the receiving unit 72 is determined by the gap, which can reduce the light-receiving range of the receiving unit 72, thereby reducing environmental interference to the photoelectric sensor 70.
[0102] In this application, a first light-shielding structure 81 is provided between the receiving unit 72 and the transmitting unit 71 to reduce direct internal interference between the transmitting unit 71 and the receiving unit 72, and a second light-shielding structure 82 is provided for the receiving unit 72 to limit the light receiving range of the receiving unit 72 and reduce the possibility of the receiving unit 72 being interfered with.
[0103] See Figure 7 , Figure 7 This is a schematic diagram of another embodiment of the photoelectric sensing component provided in this application. The photoelectric sensing component includes: a photoelectric sensor 70 and an anti-interference component; wherein, the anti-interference component includes: a first light-shielding structure 81, a second light-shielding structure 82 and a third light-shielding structure 83.
[0104] The first light-shielding structure 81 is disposed between the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70; wherein the photoelectric sensor 70 is disposed in the automatic liquid injection system 200. In some embodiments, the first light-shielding structure 81 may be disposed at the center position between the receiving unit 72 and the transmitting unit 71.
[0105] The second light-shielding structure 82 is disposed on the side of the receiving unit 72 away from the first light-shielding structure 81. The second light-shielding structure 82 includes a first bending portion 821 facing the first light-shielding structure 81, used to limit the light receiving range of the receiving unit 72. In some embodiments, the first bending portion 821 may be disposed in front of the receiving unit 72. This "in front" refers to the direction in which the receiving unit 72 receives light. In this way, the first bending portion 821 can reduce the light receiving range of the receiving unit 72, thereby reducing environmental interference to the photoelectric sensor 70. In some embodiments, the end of the first bending portion 821 facing the first light-shielding structure 81 is inclined, and the inclination is from the side closer to the receiving unit 72 to the side away from the receiving unit 72. This can reduce the material cost of the first light-shielding structure 81 and ensure the light receiving range of the receiving unit 72.
[0106] A third light-shielding structure 83 is disposed on the side of the emitting unit 71 away from the first light-shielding structure 81. The third light-shielding structure 83 includes a second bending portion 831 facing the first light-shielding structure 81, used to limit the light emission range of the emitting unit 71. In some embodiments, the second bending portion 831 may be disposed in front of the emitting unit 71. This "in front" refers to the direction in which the emitting unit 71 emits light. In this way, the second bending portion 831 can reduce the light emission range of the emitting unit 71, thereby reducing environmental interference with the photoelectric sensor 70.
[0107] In this application, a first light-shielding structure 81 is provided between the receiving unit 72 and the transmitting unit 71 to reduce direct internal interference between the transmitting unit 71 and the receiving unit 72, and a second light-shielding structure 82 is provided for the receiving unit 72 to limit the light receiving range of the receiving unit 72 and reduce the possibility of the receiving unit 72 being interfered with.
[0108] When using multiple photoelectric sensors 70, anti-interference components can be used to isolate mutual interference between adjacent photoelectric sensors 70.
[0109] In some embodiments, the anti-interference component further includes a sliding portion (not shown). A first light-shielding structure 81 is disposed between the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70 via the sliding portion. A second light-shielding structure 82 is disposed on the side of the receiving unit 72 away from the first light-shielding structure 81 via the sliding portion. The sliding portion is configured to adjust the light receiving range of the receiving unit 72 and / or the light emission range of the transmitting unit 71. For example, adjusting the distance between the first light-shielding structure 81 and the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70 via the sliding portion; adjusting the distance between the receiving unit 72 and the first light-shielding structure 81 and the second light-shielding structure 82 via the sliding portion; thereby changing the light receiving range of the receiving unit 72. For example, adjusting the distance between the transmitting unit 71 and the first light-shielding structure 81 and the third light-shielding structure 83 via the sliding portion; thereby changing the light emission range of the transmitting unit 71.
[0110] Therefore, the anti-interference component can be adapted to different automatic liquid dispensing systems 200 with varying cover thicknesses and container placement component lengths. For example, the light receiving range of the receiving unit 72 and / or the light emitting range of the emitting unit 71 can be adjusted via the sliding part, thereby ensuring that the same photoelectric sensor 70 can be adapted to different automatic liquid dispensing systems 200, ensuring that there is no blind spot when the container and photoelectric sensor 70 are too close, and that false detection will not lead to accidental liquid dispensing when the distance is too far.
[0111] In some embodiments, the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70 are arranged from top to bottom along the vertical direction of the automatic liquid injection system.
[0112] In some embodiments, the distance between the receiving unit 72 and the first bending portion 821 is less than the distance between the transmitting unit 71 and the second bending portion 831, thereby reducing the interference of external ambient light on the receiving unit 72.
[0113] In some embodiments, the distance from the first light-shielding structure 81 to the transmitting unit 71 is less than the distance from the first light-shielding structure 82 to the receiving unit 72.
[0114] See Figure 8 , Figure 8 This is a schematic diagram of another embodiment of the automated liquid injection system provided in this application. The automated liquid injection system 200 includes: a photoelectric sensing component and a container placement component 52.
[0115] The photoelectric sensing component is the photoelectric sensing component of any of the above embodiments.
[0116] The container placement component 52 is vertically positioned below the photoelectric sensing component. The liquid receiving container can be placed on the container placement component 52 during the liquid receiving process. That is, when using a liquid receiving container, by placing the container on the container placement component 52, the photoelectric sensing component detects the corresponding light signal, thereby controlling the liquid dispensing by the automatic liquid dispensing system 200, achieving automatic liquid dispensing operation.
[0117] In some embodiments, the width of the first light-shielding structure 81 is determined by a container placement reference position or a target position on the container placement assembly 52; wherein, the target position is obtained by statistically analyzing the historical placement positions of containers on the container placement assembly. In one application scenario, the historical placement positions of containers in automated liquid dispensing systems with the same container placement assembly can be collected in advance, and the placement area with the highest frequency of containers on the container placement assembly can be obtained by statistically analyzing the historical placement positions. The width of the first light-shielding structure 81 is then set based on the edge of this placement area. For example, the width of the first light-shielding structure 81 can be set using the distance from the farthest end of the placement area to the outer surface of the photoelectric sensing component. Here, the distance from the farthest end of the placement area to the outer surface of the photoelectric sensing component refers to the vertical distance from the farthest point of the placement area to the outer surface of the photoelectric sensing component.
[0118] Similarly, the container placement reference position can also be obtained in the above way. That is, a corresponding mark for the container placement reference position can be set on the container placement component 52 to guide the user to place the container at the mark. In this way, the width of the first light-shielding structure 81 can be set in combination with the container placement reference position.
[0119] In some embodiments, the minimum distance between the first bending portion 821 and the first light-shielding structure 81 corresponds to the distance from the farthest end of the container placement assembly 52 to the outer surface of the photoelectric sensing assembly. In other words, the minimum distance between the first bending portion 821 and the first light-shielding structure 81 is determined by the distance from the farthest end of the container placement assembly 52 to the outer surface of the photoelectric sensing assembly. When the distance between the first bending portion 821 and the first light-shielding structure 81 is the minimum distance, the maximum detection distance of the photoelectric sensor 70 is at the farthest end of the container placement assembly 52. The distance from the farthest end of the container placement assembly 52 to the outer surface of the photoelectric sensing assembly refers to the vertical distance from the farthest point of the container placement assembly 52 to the outer surface of the photoelectric sensing assembly. The farthest end refers to the point on the container placement assembly 52 at the furthest point of the vertical distance between it and the outer surface of the photoelectric sensing assembly.
[0120] See Figure 9 , Figure 9 This is a schematic diagram of another embodiment of the automatic liquid injection system provided in this application. The automatic liquid injection system 200 includes: a first light-shielding structure 81, a second light-shielding structure 82, a third light-shielding structure 83, a cover plate 51, a receiving unit 72 and a transmitting unit 71 of the photoelectric sensor 70.
[0121] The cover plate 51 is attached to the side of the first bend 821 away from the second light-shielding structure 82. The width of the first light-shielding structure 81 corresponds to the thickness of the cover plate 51. In other words, the width of the first light-shielding structure 81 is determined by the thickness of the cover plate 51.
[0122] In some embodiments, when the width of the first light-shielding structure 81 is at its maximum width, the minimum detection distance of the photoelectric sensor 70 is located on the outer surface of the cover plate 51. That is, the maximum width is used to ensure that the minimum detection distance of the photoelectric sensor 70 is located on the outer surface of the cover plate 51. This prevents the formation of a detection blind zone. For example, half the width H1 of the first light-shielding structure 81 should be equal to the thickness D1 * tanβ of the cover plate 51. Therefore, the width of the first light-shielding structure 81 is 2 * H1.
[0123] Furthermore, the container placement assembly 52 is disposed on the outer surface of the cover plate 51, and the minimum distance between the first bending portion 821 and the first light-shielding structure 81 is determined by the distance from the farthest end of the container placement assembly 52 to the outer surface of the cover plate 51. Specifically, when the distance between the first bending portion 821 and the first light-shielding structure 81 is at its minimum, the maximum detection distance of the photoelectric sensor 70 is located at the farthest end of the container placement assembly 50. That is, the minimum distance is used to ensure that the maximum detection distance of the photoelectric sensor 70 is located at the farthest end of the container placement assembly 52. For example, the minimum distance between the first bending portion 821 and the first light-shielding structure 81 satisfies the following formula: H2=(D1+D2)*tanα-H1; where H2 represents the minimum distance between the first bending portion 821 and the first light-shielding structure 81, D1 represents the thickness of the cover plate 51, D2 represents the distance from the farthest end of the container placement component 52 to the outer surface of the cover plate 51, H1 represents half the width of the first light-shielding structure 81, and α represents the angle between the extension line of the half-width position of the first light-shielding structure 81 in the thickness direction of the cover plate 51 and the extension line corresponding to the target position on the first bending portion 821, where the target position is closest to the first light-shielding structure 81. That is, the minimum distance H2 between the first bending portion 821 and the first light-shielding structure 81 should be ((D1+D2)*tanα)-H1, so that the maximum detection distance from the outer surface of the cover plate 51 is exactly D2. The liquid receiving container can be placed on the container placement component 52 to receive liquid during the liquid receiving process.
[0124] In some embodiments, the first bent portion 821 is inclined at one end toward the first light-shielding structure 81, and is inclined from the side closer to the receiving unit 72 toward the side farther away from the receiving unit 72. The inclined shape can effectively ensure the light receiving range of the receiving unit.
[0125] In some embodiments, such as Figure 9 As shown, the transmitting unit 71 and receiving unit 72 of the photoelectric sensor 70 are arranged from top to bottom along the vertical direction of the automatic liquid injection system 200.
[0126] Under the specific detection range limitation principle, the center distance between the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70 is D. The first light-shielding structure 81 is located between the receiving unit 72 and the transmitting unit 71, and its half-width H1 should be the thickness D1*tanβ of the cover plate 51. In this way, the minimum detection distance is exactly at the outer surface of the cover plate 51, and no detection blind zone will be generated. The second light-shielding structure 82 and the third light-shielding structure 83 are located on both sides of the receiving unit 72 and the transmitting unit 71, and their window size H2 should be ((D1+D2)*tanα)-H1. In this way, the maximum detection distance from the outer surface of the cover plate 51 is exactly D2. D2 can be taken as the width of the water receiving box. This structure can ensure that the detection range of the water cup is within the range of the water receiving tray, and ensure that there is no blind zone when the water cup and the photoelectric sensor 70 are too close, and no false detection leading to accidental water discharge when the distance is too far.
[0127] Furthermore, the first light-shielding structure 81, the second light-shielding structure 82, and the third light-shielding structure 83 can be made of light-absorbing materials. The first light-shielding structure 81, the second light-shielding structure 82, and the third light-shielding structure 83 can limit the detection range of the photoelectric sensor 70 to a certain range, reducing environmental interference.
[0128] In some embodiments, a cover plate 51 may be optionally installed after the first light-shielding structure 81, the second light-shielding structure 82, and the third light-shielding structure 83 are provided.
[0129] The above structure can effectively control the detection range of photoelectric sensing, but there is still considerable room for improvement in its resistance to sunlight interference. Based on this, the following is proposed: Figure 10 In the structure shown, the receiving unit 72 and the transmitting unit 71 of the photoelectric sensor 70 are arranged vertically from top to bottom along the automatic liquid injection system 200. That is, the receiving unit 72 is positioned above the transmitting unit 71. Furthermore, the first light-shielding structure 81 is biased towards the transmitting unit 71 to reduce the amount of sunlight received. In other words, the distance from the first light-shielding structure 81 to the transmitting unit 71 can be made smaller than the distance from the first light-shielding structure 81 to the receiving unit 72, thereby reducing the amount of sunlight received and thus reducing interference to the transmitting unit 71.
[0130] The specific principles of resisting sunlight interference are as follows: Figure 11 As shown, considering that the infrared interference is strongest in the direct sunlight area, it can be approximated as parallel light rays at a certain angle to the horizontal line, i.e., light entering the receiving unit 72 from above; while the transmitting unit 71, placed at the lower end, can form a signal source that does not overlap with the sunlight, i.e., light entering the receiving unit 72 from below. Under this premise, by adjusting the second light-shielding structure 82 and the third light-shielding structure 83 to further reduce the opening of the receiving unit 72 (to ensure that the detection range remains unchanged, the opening of the transmitting unit 71 needs to be increased), most of the interference signals caused by direct sunlight can be blocked.
[0131] Furthermore, the receiving unit 72 can be moved back a certain distance relative to the window position to further reduce sunlight interference. That is, the distance between the receiving unit 72 and the first bend can be made smaller than the distance between the transmitting unit 71 and the second bend. This structure can significantly reduce the influence of the infrared component of sunlight received by the receiving unit 72, thereby improving its anti-interference capability.
[0132] Based on the above structure, the modulation power required by the transmitting unit 71 can be reduced, thereby reducing the power consumption of the components and increasing the lifespan of the components.
[0133] In one application scenario, the aforementioned automatic liquid dispensing system 200 can be a water dispenser. For example... Figure 12 As shown, the water dispenser includes a body 111, a dispenser head 112, and a water collection box 114. Several photoelectric sensors 70 are installed on the body 111. A water outlet 113 and a height sensor 115 are located at the dispenser head 112. The water collection box 114 is located below the dispenser head 112. The water collection box 114 is positioned below the lowest photoelectric sensor 70 in the vertical direction of the body 111. When water is collected using the water container 300, detection is performed according to any of the above embodiments to complete the automatic water filling operation.
[0134] See Figure 13 , Figure 13 This is a schematic diagram of an embodiment of the computer-readable storage medium provided in this application. The computer-readable storage medium 130 is used to store a computer program 131, which, when executed by the processor 50, implements the following method:
[0135] Obtain the current sampled value; the current sampled value is acquired by at least one photoelectric sensor 70; compare the current sampled value with the reference sampled value; the reference sampled value is updated by the sampled value acquired when the automatic liquid injection system 200 is in an idle state; based on the comparison result, decide whether to trigger the automatic liquid injection operation.
[0136] In some embodiments, when executed by a processor, computer program 131 is also used to implement the methods of any of the above embodiments.
[0137] In summary, the injection detection method, automatic injection system 200, and computer-readable storage medium 130 provided in this application utilize the method of updating the reference sampling value to make the reference sampling value more adaptable to the actual environmental parameters of the automatic injection system. Therefore, when comparing the current sampling value and the reference sampling value, the current sampling value is not compared with a fixed reference sampling value, that is, a relative value is used to determine whether to trigger the automatic injection operation. This reduces problems such as abnormal triggering of automatic injection operation caused by interference with photoelectric sensors, and can improve the accuracy of triggering automatic injection operation.
[0138] Furthermore, the anti-interference component, photoelectric sensing component, and automatic liquid injection system 200 provided in this application provide a first light-shielding structure 81 between the receiving unit 72 and the transmitting unit 71 to reduce direct internal interference between the transmitting unit 71 and the receiving unit 72, and provide a second light-shielding structure 82 for the receiving unit 72 to limit the light receiving range of the receiving unit 72 and reduce the possibility of the receiving unit 72 being interfered with.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments 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, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0140] If the integrated units in the other embodiments described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. 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 and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processing circuit component (processor) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0141] 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 method for detecting liquid injection, characterized in that, The liquid injection detection method, applied to an automated liquid injection system, includes: The current sampled value is obtained; the current sampled value is acquired by at least one photoelectric sensor. The current sampled value is compared with the baseline sampled value; the baseline sampled value is updated using sampled values collected when the automatic injection system is in an idle state. Based on the comparison results, a decision is made on whether to trigger the automatic fluid injection operation.
2. The method according to claim 1, characterized in that, The comparison between the current sampled value and the reference sampled value includes: Compare the difference between the current sampled value and the reference sampled value, and use the difference as the comparison result; The step of determining whether to trigger the automatic fluid injection operation based on the comparison results includes: In response to the difference being greater than a threshold, an automatic injection operation is triggered; In response to the difference being less than the threshold, it is decided not to trigger the automatic injection operation.
3. The method according to claim 2, characterized in that, After deciding not to trigger the automatic injection operation, the following is also included: Update the baseline sample value using the current sample value.
4. The method according to claim 1, characterized in that, The current sampled value is obtained by at least two photoelectric sensors; The step of determining whether to trigger the automatic fluid injection operation based on the comparison results includes: In response to the comparison result indicating that the difference between the current sampled value and the reference sampled value is greater than a threshold, the sequence number corresponding to the target photoelectric sensor among the at least two photoelectric sensors is obtained; wherein, the current sampled value collected by the target photoelectric sensor is greater than the sampled value collected by the target photoelectric sensor at the previous moment, and the number of the target photoelectric sensors is at least two; Automatic liquid injection operation is triggered in response to the consecutive serial numbers corresponding to the at least two target photoelectric sensors.
5. The method according to claim 4, characterized in that, In response to the consecutive sequence numbers corresponding to the at least two target photoelectric sensors, an automatic liquid injection operation is triggered, including: In response to the consecutive serial numbers corresponding to the at least two target photoelectric sensors, a target serial number is obtained; wherein, the target serial number is the minimum or maximum serial number among the serial numbers corresponding to the at least two target photoelectric sensors; In response to the target sequence number being the default sequence number, an automatic liquid injection operation is triggered; the photoelectric sensor corresponding to the default sequence number is located at the bottom.
6. The method according to claim 4 or 5, characterized in that, The triggering of the automatic injection operation includes: Determine the number of the target photoelectric sensors; In response to the quantity being greater than a threshold, an automatic injection operation is triggered; wherein the threshold is greater than two.
7. The method according to claim 5, characterized in that, The triggering of the automatic injection operation further includes: Determine the number of the target photoelectric sensors; The target liquid level height to be discharged is obtained based on the stated quantity.
8. An automatic liquid injection system, characterized in that, The automated liquid injection system includes: At least one photoelectric sensor; A processor, coupled to the at least one photoelectric sensor, is configured to acquire a current sampled value, which is obtained by the at least one photoelectric sensor; compare the current sampled value with a reference sampled value, which is updated by sampling values acquired when the automatic injection system is in an idle state; and determine whether to trigger an automatic injection operation based on the comparison result. The injection circuit is configured to complete the injection according to the automatic injection operation.
9. The automatic liquid injection system according to claim 8, characterized in that, The number of photoelectric sensors is at least two. At least two photoelectric sensors are sequentially arranged in the automatic liquid injection system along the vertical direction of the automatic liquid injection system. Each photoelectric sensor has a corresponding serial number in the processor, and adjacent photoelectric sensors are arranged consecutively according to their serial numbers.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, which, when executed by a processor, is used to implement the injection detection method as described in any one of claims 1-7.