Water level monitoring methods, devices, water supply devices and electrical equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2026-08-14
AI Technical Summary
[0004]基于此,有必要针对上述对供水装置的水位状态监测存在两个数据来源,无法做到统一同步,稳定性较差技术问题,提供水位监测方法、装置、供水装置及电器设备
[0035]上述水位监测方法、装置、供水装置及电器设备,响应于任务进入指令,获取电器设备的当前执行任务类型,控制电器设备进入与当前执行任务类型对应的水位监测模式,获取水位传感器的传感器实时数值;水位传感器设置于电器设备的出水管道以及供水装置的内部,且位于供水装置的水满线高度;在根据传感器实时数值判定供水装置的水位状态变化为水位监测模式对应的水位监测状态的情况下,控制电器设备退出当前执行任务。本申请的水位监测方法仅通过同一水位传感器采集的实时数值实现,统一的监测方案可提高系统稳定性。
Smart Images

Figure CN116839697B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a water level monitoring method, device, water supply device, and electrical equipment. Background Technology
[0002] With the development of smart home appliance technology, most water-using electrical appliances are now equipped with water supply devices for greater convenience. Examples include water purifiers and coffee makers, as well as cleaning robots and floor scrubbers. For instance, a cleaning robot has a built-in water tank to supply water for its cleaning functions.
[0003] Driven by the demand for intelligent products, most current electrical appliances can monitor the water level of water supply devices, thereby detecting whether the devices are low on water or full. However, current methods for monitoring water levels in water supply devices typically involve using two different sensors, one at the top and one at the bottom of the device. This results in two data sources, making it impossible to achieve unified synchronization and leading to poor stability. Summary of the Invention
[0004] Therefore, it is necessary to provide water level monitoring methods, devices, water supply devices, and electrical equipment to address the technical problems mentioned above, such as the existence of two data sources for monitoring the water level status of water supply devices, the inability to achieve unified synchronization, and the poor stability.
[0005] In a first aspect, this application provides a water level monitoring method, the method comprising:
[0006] In response to a task entry command, obtain the current task type being executed by the electrical device;
[0007] Control the electrical equipment to enter the water level monitoring mode corresponding to the currently executed task type;
[0008] The real-time value of the water level sensor is obtained; the water level sensor is installed inside the water outlet pipe and water supply device of the electrical equipment, and is located at the water level line height of the water supply device;
[0009] If the water level of the water supply device changes to the water level monitoring state corresponding to the water level monitoring mode based on the real-time values of the sensor, the electrical equipment is controlled to exit the current execution task.
[0010] In one embodiment, the current task type of the electrical device includes a water-using task type, the water level monitoring mode includes a water shortage monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is a water shortage status.
[0011] The step of determining the water level status change of the water supply device based on the real-time values of the sensor to the water level monitoring status corresponding to the water level monitoring mode, and controlling the electrical equipment to exit the currently executing task, includes:
[0012] If the real-time value of the sensor meets the water shortage threshold, the water level of the water supply device is determined to be in a water shortage state, and the electrical equipment is controlled to stop the water supply task.
[0013] In one embodiment, the method further includes:
[0014] If the real-time value of the sensor is between the water shortage threshold and the intermediate threshold, it is determined that the water level of the water supply device should remain unchanged.
[0015] In one embodiment, the current task type of the electrical device includes a water replenishment task type, the water level monitoring mode includes a full water level monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is a full water status.
[0016] The step of determining the water level status change of the water supply device based on the real-time values of the sensor to the water level monitoring status corresponding to the water level monitoring mode, and controlling the electrical equipment to exit the currently executing task, includes:
[0017] If the real-time value of the sensor meets the full water threshold, the water level of the water supply device is determined to be in a full water state, and the electrical equipment is controlled to exit the water replenishment task.
[0018] In one embodiment, the method further includes:
[0019] If the real-time value of the sensor is between the full water threshold and the intermediate threshold, it is determined that the water level of the water supply device should remain unchanged.
[0020] The value of the intermediate threshold is between the water shortage threshold and the full water threshold.
[0021] In one embodiment, the method further includes:
[0022] After the electrical equipment enters the threshold calibration mode, the real-time values of a preset number of sensors are obtained respectively when the water supply device is in the first preset state, the second preset state, and the third preset state.
[0023] The water shortage threshold, the intermediate threshold, and the full water threshold are obtained by real-time numerical analysis of a preset number of sensors.
[0024] The first preset state is when the water outlet pipe is dry and the water level of the water supply device has not reached the full water level; the second preset state is when the water outlet pipe has water and the water level of the water supply device has not reached the full water level; and the third preset state is when the water outlet pipe is dry and the water level of the water supply device has reached the full water level.
[0025] In one embodiment, the step of obtaining the water shortage threshold, the intermediate threshold, and the full water threshold through real-time numerical analysis based on a preset number of sensors includes:
[0026] Based on the normal value range corresponding to the water shortage threshold, the intermediate threshold and the full water threshold, the real-time values of the preset number of sensors are filtered to obtain the filtered real-time values of the sensors.
[0027] Remove the maximum and minimum values from the filtered real-time sensor values and calculate the average value to obtain the water shortage threshold, the intermediate threshold, and the full water threshold.
[0028] Secondly, this application also provides a water level monitoring device, the device comprising:
[0029] The task type acquisition module is used to obtain the current task type of the electrical device in response to the task entry command;
[0030] The monitoring mode control module is used to control the electrical equipment to enter the water level monitoring mode corresponding to the currently executed task type;
[0031] A real-time value acquisition module is used to acquire the real-time value of the water level sensor; the water level sensor is installed inside the water outlet pipe and water supply device of the electrical equipment, and is located at the water level line height of the water supply device.
[0032] The water level status judgment module is used to control the electrical equipment to exit the current execution task when the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time values of the sensor.
[0033] Thirdly, this application also provides a water supply device, including a water level sensor, a water tank, an inlet pipe, an outlet pipe, and a water pump. The inlet pipe is connected to the water tank, the outlet pipe is connected to the bottom of the water tank, the water pump is located in the outlet pipe, and the water level sensor is located inside the outlet pipe and the water tank, and the water level sensor is located at the water level line height of the water tank.
[0034] Fourthly, this application also provides an electrical device, including a control device and the aforementioned water supply device, wherein the control device is connected to the water supply device, and the control device monitors the water level of the water supply device based on the aforementioned water level monitoring method.
[0035] The aforementioned water level monitoring method, device, water supply device, and electrical equipment, in response to a task entry command, acquire the current task type of the electrical equipment, control the electrical equipment to enter the water level monitoring mode corresponding to the current task type, and acquire the real-time sensor value of the water level sensor. The water level sensor is installed in the outlet pipe of the electrical equipment and inside the water supply device, and is located at the water level mark of the water supply device. When the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time sensor value, the electrical equipment is controlled to exit the current task. The water level monitoring method of this application is implemented using only the real-time value collected by the same water level sensor, and the unified monitoring scheme can improve system stability. Attached Figure Description
[0036] Figure 1 This is a diagram illustrating the application environment of a water level monitoring method in one embodiment;
[0037] Figure 2 This is a flowchart illustrating a water level monitoring method in one embodiment;
[0038] Figure 3 This is a flowchart illustrating the water level monitoring method in another embodiment;
[0039] Figure 4 This is a flowchart illustrating the water level monitoring method in another embodiment;
[0040] Figure 5 This is a flowchart illustrating the threshold adaptive calibration step in one embodiment;
[0041] Figure 6 This is a structural block diagram of a water level monitoring device in one embodiment;
[0042] Figure 7 This is an internal structural diagram of a computer device in one embodiment;
[0043] Figure 8 This is a schematic diagram of the water supply device in one embodiment;
[0044] Figure 9 This is a flowchart illustrating the threshold adaptive calibration step in another embodiment;
[0045] Figure 10 This is a flowchart illustrating the process of a cleaning robot performing a water shortage monitoring of the clean water tank in one embodiment.
[0046] Figure 11 This is a flowchart illustrating the process of a cleaning robot performing a water tank full monitoring in one embodiment. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0048] The water level monitoring method provided in this application embodiment can be applied to, for example... Figure 1 The application environment shown is specifically applied to electrical appliances including water supply devices, such as water purifiers and coffee makers, as well as cleaning robots and floor scrubbers. Specifically, the control device 110 of the electrical appliance is connected to the water supply device 120. In response to a task entry command, the control device 110 obtains the current task type of the electrical appliance and controls it to enter the water level monitoring mode corresponding to the current task type. The control device 110 obtains the real-time value of the water level sensor in the water supply device 120. The water level sensor is located in the outlet pipe of the electrical appliance and inside the water supply device 120, at the full water level of the water supply device 120. When the real-time sensor value indicates that the water level of the water supply device has changed to the water level monitoring state corresponding to the current monitoring mode, the control device exits the current task. It is understood that the control device 110 for water level monitoring of the electrical appliance can be a controller directly installed inside the electrical appliance or an external control system implemented based on wireless communication.
[0049] In one embodiment, such as Figure 2 As shown, a water level monitoring method is provided, which can be applied to... Figure 1 The control device 110 is described using the following example: S300 to S600.
[0050] S300: In response to a task entry command, obtain the current task type being executed by the electrical device.
[0051] The task entry command is an instruction that directs the electrical equipment to enter and execute the corresponding task function. It can be issued by the user through the electrical equipment itself, its interactive device, or a control terminal that communicates wirelessly with the equipment, or it can be triggered based on the status information of the electrical equipment itself. Upon receiving the task entry command, the control device of the electrical equipment can control the corresponding module to start operating and enter and execute the corresponding task function.
[0052] Specifically, while the control device controls the electrical equipment to enter and execute the corresponding task function, in response to the task entry command, it also needs to obtain the execution task type corresponding to the task entry command, that is, the current execution task type of the electrical equipment. Taking the electrical equipment as a cleaning robot as an example, the task entry command can be a cleaning task entry command or a water replenishment task entry command, etc., and correspondingly, the current execution task type can be a cleaning task or a water replenishment task, etc.
[0053] S400: Control electrical equipment to enter the water level monitoring mode corresponding to the type of task currently being performed.
[0054] Specifically, after obtaining the current task type of the electrical equipment, the equipment can be controlled to enter the water level monitoring mode corresponding to the current task type. The water level monitoring mode represents the working mode for real-time monitoring of the water level status of the water supply device, and this working mode can coexist with the working mode of the electrical equipment performing the corresponding task function.
[0055] It's understandable that the water level monitoring mode isn't unique and must be determined based on the current task type. For example, when the electrical equipment is currently performing a water usage task, it needs to monitor the water level in the water supply system in real time to see if it has entered a water shortage state; in this case, the water level monitoring mode could be a water shortage monitoring mode. When the electrical equipment is currently performing a water replenishment task, it needs to monitor the water level in the water supply system in real time to see if it has entered a full water state; in this case, the water level monitoring mode could be a full water level monitoring mode. Furthermore, if the electrical equipment is currently performing a no-water usage task, meaning the task performed by the electrical equipment is unrelated to the water volume in the water supply system, the water level monitoring mode could also be a mode that doesn't require monitoring water level changes.
[0056] S500: Acquires real-time values from the water level sensor; the water level sensor is installed inside the water outlet pipe of the electrical equipment and the water supply device, and is located at the water level line height of the water supply device.
[0057] The water level sensor is a detection device used to monitor the water level in the water tank of the water supply system. It is installed inside the water tank at the full water level mark, so that when the water level reaches the full water level mark, it contacts the water level sensor. In addition, the water level sensor is also used to detect whether the water supply system is supplying water; it is also installed in the water outlet pipe of the electrical equipment, so that when water flows through the outlet pipe, it triggers a real-time change in the water level sensor's reading.
[0058] Specifically, when the electrical control equipment enters the water level monitoring mode corresponding to the current task type, and the water level monitoring mode is a water use task or a water replenishment task, the real-time sensor value of the water level sensor is obtained to subsequently determine the water level status change of the water supply device.
[0059] It is understood that the real-time value displayed by the sensor is not unique and needs to be determined based on the hardware type and acquisition principle of the water level sensor. For example, in this embodiment, the water level sensor is based on a capacitive sensor, which is fitted onto the outlet pipe of the water supply device and positioned at the water level mark inside the water tank. When water flows through the outlet pipe inside the capacitive sensor and / or the outer wall contacts the liquid, the capacitive sensor outputs a voltage value that changes with capacitance. A control device is then connected to the capacitive sensor and acquires its output voltage value to determine the water level changes in the water supply device. In other embodiments, the water level sensor may also be implemented using a photoelectric sensor or other sensor principles.
[0060] S600: When the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time values of the sensor, the electrical control device exits the current execution task.
[0061] Specifically, the water level monitoring status corresponding to the water level monitoring mode represents the target water level that the water supply device needs to reach under the current water level monitoring mode. For example, when the water level monitoring mode is a water shortage monitoring mode, the corresponding water level monitoring status could be whether the water supply device has entered a water shortage state, which needs to be monitored in real time. When the water level monitoring mode is a full water level monitoring mode, the corresponding water level monitoring status could be whether the water supply device has entered a full water state, which needs to be monitored in real time.
[0062] Furthermore, if the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time values of the sensor, it indicates that the water level status of the water supply device has reached the target water level. The electrical equipment needs to stop executing the corresponding task function, and then a task exit command needs to be triggered to control the electrical equipment to exit the currently executing task.
[0063] It should be noted that the currently executing task exited here refers to the task function corresponding to the currently executing task type obtained above. If the electrical device is simultaneously executing multiple task functions, this embodiment only controls the exit of the task function corresponding to the currently executing task type obtained above, without interfering with the execution of other task functions.
[0064] It is understandable that there is no single way to determine the water level change of a water supply device based on real-time sensor values. One approach is to pre-obtain the sensor values corresponding to the water level changes when the device is in a water shortage or full state, and then use these pre-obtained values as a threshold. This threshold is then compared with the real-time sensor values to determine the water level change. Alternatively, another approach is to pre-obtain a threshold value representing the change in sensor values when the water level changes from a normal state to a water shortage or full state, and then compare the real-time sensor value change with this threshold value to determine the water level change.
[0065] The aforementioned water level monitoring method, in response to a task entry command, obtains the current task type of the electrical equipment, controls the electrical equipment to enter the water level monitoring mode corresponding to the current task type, and acquires the real-time value of the water level sensor. The water level sensor is installed inside the outlet pipe of the electrical equipment and the water supply device, and is located at the water level of the water supply device. When the water level status of the water supply device changes to the water level monitoring state corresponding to the water level monitoring mode based on the real-time sensor value, the electrical equipment is controlled to exit the current task. The water level monitoring method of this application is implemented using only the real-time value collected by the same water level sensor, and the unified monitoring scheme can improve system stability.
[0066] In one embodiment, the current task type of the electrical device includes a water-using task type, and the water level monitoring mode includes a water shortage monitoring mode, with the water level monitoring status corresponding to the water level monitoring mode being a water shortage state. The water-using task type indicates that the current function of the electrical device requires water supply from the water supply device. Therefore, to prevent the water in the water supply device from being depleted and affecting the normal execution of the current function, the electrical device needs to be controlled to enter the water shortage monitoring mode to monitor in real time whether the water level status of the water supply device changes to a water shortage state.
[0067] Correspondingly, such as Figure 3 S600, as shown, is as follows: when the real-time value of the sensor meets the water shortage threshold, it determines that the water level of the water supply device has changed to a water shortage state, and controls the electrical equipment to stop the water use task.
[0068] The water shortage threshold represents the sensor value corresponding to a water level shortage state in the water supply device. When the real-time sensor value meets the water shortage threshold, it can be determined that the water level of the water supply device has changed to a water shortage state, meaning the water stored in the device has been depleted and can no longer support the water usage of electrical equipment. Therefore, to prevent the electrical equipment from performing water usage tasks under water shortage conditions and thus wasting resources, a task exit command is triggered to control the electrical equipment to stop using water.
[0069] Specifically, the way in which the sensor's real-time value meets the water shortage threshold is not unique. It can be represented by the sensor's real-time value exceeding the water shortage threshold, or it can be represented by the sensor's real-time value falling below the water shortage threshold. The representation can be determined based on the trend of the sensor's real-time value as the water level of the water supply device changes. For example, in this embodiment, as the water level of the water supply device changes from a water shortage state to a full water state, the sensor's real-time value will decrease. Therefore, it is necessary to represent that the sensor's real-time value meets the water shortage threshold by the sensor's real-time value exceeding the water shortage threshold.
[0070] In one embodiment, the method further includes: when the real-time value of the sensor is between the water shortage threshold and the intermediate threshold, determining that the water level of the water supply device should remain unchanged.
[0071] The intermediate threshold represents the sensor value corresponding to the water level status of the water supply device when it is in an intermediate state between a water shortage state and a full water state. The real-time sensor value being between the water shortage threshold and the intermediate threshold can mean that the real-time sensor value remains between these two thresholds, or that the real-time sensor value changes from below the intermediate threshold to between these two thresholds, or that the real-time sensor value changes from above the water shortage threshold to between these two thresholds. It can be understood that the change in the real-time sensor value from below the intermediate threshold to between these two thresholds could indicate that the water stored in the water supply device is continuously consumed as water usage tasks occur. However, the change in the real-time sensor value from above the water shortage threshold to between these two thresholds could be due to the water in the water supply device being depleted, but there is still residual water in the outlet pipe.
[0072] To prevent the water supply device from changing to a non-water shortage state due to the depletion of water in the water supply device but the presence of residual water in the outlet pipe, which could then erroneously trigger the control electrical equipment to resume water use, the water supply device is determined to maintain its current water level when the real-time sensor value is between the water shortage threshold and the intermediate threshold.
[0073] Specifically, if the current water level is in a water shortage state, and the real-time sensor value is between the water shortage threshold and the intermediate threshold, then the water supply device is determined to still be in a water shortage state, and the electrical equipment will be controlled to stop using water under this water shortage condition. If the current water level is in an intermediate or full state, and the real-time sensor value is between the water shortage threshold and the intermediate threshold, then the water supply device is determined to still be in an intermediate or full state, and the electrical equipment will continue to use water.
[0074] In one embodiment, the current task type of the electrical equipment includes a water replenishment task, and the water level monitoring mode includes a full water level monitoring mode, with the water level monitoring status corresponding to the full water state. The water replenishment task type indicates that the electrical equipment is currently performing a task to replenish the water supply device. Therefore, to avoid over-replenishing the water supply device to the point of overflow, which would waste water resources and potentially affect the normal operation of the electrical equipment, it is necessary to control the electrical equipment to enter the full water level monitoring mode and monitor in real time whether the water level status of the water supply device changes to a full water state.
[0075] Correspondingly, such as Figure 4 As shown, S600 is: when the real-time value of the sensor meets the full water threshold, it determines that the water level of the water supply device has changed to a full water state, and controls the electrical equipment to exit the water replenishment task.
[0076] The full-water threshold represents the sensor value corresponding to the water level status of the water supply device when it is at full water. When the real-time sensor value meets the full-water threshold, it can be determined that the water level status of the water supply device has changed to full water, and the water supply device has been fully replenished, requiring no further replenishment. Furthermore, to prevent electrical equipment from continuing to perform water replenishment tasks while in a full-water state, which could lead to water waste or even affect the normal operation of the equipment, a task exit command is triggered to control the electrical equipment to exit the water replenishment task.
[0077] Specifically, the way in which the sensor's real-time value meets the full water threshold is not unique. It can be represented by the sensor's real-time value exceeding the full water threshold, or it can be represented by the sensor's real-time value falling below the full water threshold. Similarly, it can be determined based on the trend of the sensor's real-time value as the water level of the water supply device changes. For example, in this embodiment, as the water level of the water supply device changes from a water shortage state to a full water state, the sensor's real-time value will decrease. Therefore, it is necessary to represent that the sensor's real-time value meets the full water threshold by the sensor's real-time value falling below the full water threshold.
[0078] In one embodiment, the method further includes: when the real-time value of the sensor is between the full water threshold and the intermediate threshold, determining that the water level status of the water supply device should remain unchanged at the current water level.
[0079] Specifically, the situation where the sensor's real-time value is between the full water threshold and the intermediate threshold can be due to several factors: the sensor's real-time value remains consistently between these two thresholds; the sensor's real-time value changes from exceeding the intermediate threshold to falling within this range; or the sensor's real-time value changes from below the full water threshold to falling within this range. It can be understood that the change in the sensor's real-time value from exceeding the intermediate threshold to falling within this range could indicate a continuous increase in the water level in the water supply device as replenishment is carried out. However, the change in the sensor's real-time value from below the full water threshold to falling within this range could be due to a non-static water surface within the water supply device, i.e., water surface fluctuations.
[0080] To prevent the water level of the water supply device from changing to a non-full state due to fluctuations in the water level inside the device, which could then trigger the control electrical equipment to re-enter the water replenishment task, the water level of the water supply device is determined to remain unchanged when the real-time sensor value is between the full water threshold and the intermediate threshold.
[0081] Specifically, if the sensor's real-time value is between the full water threshold and the intermediate threshold when the current water level is at full capacity, the water supply device is determined to be still at full capacity, and the electrical equipment is controlled to stop the water replenishment task while maintaining the full water level. If the current water level is in the intermediate or water shortage state, and the sensor's real-time value is between the full water threshold and the intermediate threshold, the water supply device is determined to be in the intermediate or water shortage state, and the electrical equipment is controlled to continue performing the water replenishment task.
[0082] It can be understood that the intermediate threshold value lies between the water shortage threshold and the full water threshold. If the real-time sensor value decreases as the water level of the water supply device changes from a water shortage state to a full water state, then the water shortage threshold is greater than the intermediate threshold, and the intermediate threshold is greater than the full water threshold. Conversely, if the real-time sensor value increases as the water level of the water supply device changes from a water shortage state to a full water state, then the full water threshold is greater than the intermediate threshold, and the intermediate threshold is greater than the water shortage threshold.
[0083] In one embodiment, the specific values of the water shortage threshold, intermediate threshold, and full water threshold can be determined based on the initial preset values fixed when the electrical equipment leaves the factory. Specifically, technicians can conduct tests based on the corresponding scheme to determine the initial preset values of the water shortage threshold, intermediate threshold, and full water threshold, and store them in the control device, so as to obtain them when the control device is first powered on and used.
[0084] In other embodiments, the specific values of the water shortage threshold, intermediate threshold, and full water threshold can also be obtained through adaptive calibration triggered during the application of the electrical equipment. It is understood that adaptive calibration of the above thresholds can be performed during the initial use of the electrical equipment, periodically during use, or based on a threshold calibration command actively issued by the user. Periodic threshold calibration can be triggered based on a preset time interval, and the threshold calibration command issued by the user can be sent through the electrical equipment itself, the electrical equipment's interactive device, or a control terminal that wirelessly communicates with the electrical equipment.
[0085] In one embodiment, such as Figure 3 and Figure 4 As shown, the above-mentioned water level monitoring method also includes the following steps S100 to S200, wherein:
[0086] S100: After the electrical equipment enters the threshold calibration mode, it acquires the real-time values of a preset number of sensors in the first preset state, the second preset state, and the third preset state of the water supply device.
[0087] Specifically, after the adaptive calibration program is triggered and the electrical equipment enters the threshold calibration mode, the control device will automatically change the water level status of the water supply device to the first preset state, the second preset state, and the third preset state in sequence, and obtain the real-time values of a preset number of sensors under the above three preset states for analysis to obtain the water shortage threshold, the intermediate threshold, and the full water threshold.
[0088] The system has three preset states: a first preset state where the outlet pipe is empty and the water level in the water supply device is below the full water level mark; a second preset state where the outlet pipe contains water and the water level in the water supply device is below the full water level mark; and a third preset state where the outlet pipe is empty and the water level in the water supply device is at the full water level mark. The condition of having water in the outlet pipe is controlled by the activation of the water pump connected to the outlet pipe to ensure sufficient water volume and prevent inaccurate real-time sensor readings. The condition of the water level not reaching the full water level mark can be any water level in the water supply device below the full water level mark. Since the water surface does not contact the water level sensor in this state, it will not cause any change in the sensor's real-time readings. Simultaneously, to ensure more accurate real-time sensor readings, the water level in the water supply device can be kept as low as possible to avoid water surface fluctuations that could cause the water level sensor to mistakenly contact the water surface.
[0089] Furthermore, the preset quantity is not unique; an appropriate value can be selected based on actual needs to ensure that the aforementioned threshold can be obtained as accurately as possible without consuming too much memory in the control device due to the acquisition of too many values. In this embodiment, the preset quantity can be between 10 and 15, such as 10, 12, or 15.
[0090] S200: Based on real-time numerical analysis of a preset number of sensors, the water shortage threshold, intermediate threshold, and full water threshold are obtained.
[0091] Specifically, there is no single way to obtain the water shortage threshold, intermediate threshold, and full water threshold based on the real-time data analysis of a preset number of sensors. One approach is to directly use the mean or median of the real-time data from the preset number of sensors as the water shortage threshold, intermediate threshold, and full water threshold. Alternatively, after filtering outliers, the mean or median of the remaining real-time data from the sensors can be used as the water shortage threshold, intermediate threshold, and full water threshold.
[0092] In one embodiment, such as Figure 5 As shown, S200 includes the following S220 to S240, wherein:
[0093] S220: Filter the real-time values of a preset number of sensors based on the normal value range corresponding to the water shortage threshold, intermediate threshold, and full water threshold to obtain the filtered real-time sensor values.
[0094] Before the electrical equipment leaves the factory, technicians can determine the normal range of water shortage threshold, intermediate threshold and full water threshold based on tests, and store them in the control device, so that they can be obtained when the control device is powered on for the first time.
[0095] Specifically, after obtaining a preset number of real-time sensor values for calculating the water shortage threshold, these values can be filtered based on the normal value range corresponding to the water shortage threshold. Real-time sensor values exceeding this range are removed, resulting in filtered real-time sensor values for calculating the water shortage threshold. It should be understood that the number of filtered real-time sensor values for calculating the water shortage threshold should be less than or equal to the preset number.
[0096] After obtaining a preset number of real-time sensor values for calculating the intermediate threshold, these values can be filtered based on the normal value range corresponding to the intermediate threshold. Real-time sensor values exceeding this range are removed, resulting in filtered real-time sensor values for calculating the intermediate threshold. It is understood that the number of filtered real-time sensor values used for calculating the intermediate threshold should also be less than or equal to the preset number.
[0097] After obtaining a preset number of real-time sensor values for calculating the full-water threshold, these values can be filtered based on the normal value range corresponding to the full-water threshold. Real-time sensor values exceeding this range are removed, resulting in filtered real-time sensor values for calculating the full-water threshold. It is understood that the number of filtered real-time sensor values for calculating the full-water threshold should also be less than or equal to the preset number.
[0098] S240: Remove the maximum and minimum values from the filtered real-time sensor values and calculate the average value to obtain the water shortage threshold, intermediate threshold, and full water threshold.
[0099] Specifically, after obtaining the filtered real-time sensor values used to calculate the water shortage threshold, intermediate threshold, and full water threshold, it is necessary to remove the maximum and minimum values from the real-time sensor values to further ensure the accuracy of the threshold calculation.
[0100] Furthermore, after removing the maximum and minimum values, the average of the remaining real-time sensor values used to calculate the water shortage threshold is calculated to obtain the calibrated water shortage threshold. Similarly, the average of the remaining real-time sensor values used to calculate the intermediate threshold is calculated to obtain the calibrated intermediate threshold. Finally, the average of the remaining real-time sensor values used to calculate the full water threshold is calculated to obtain the calibrated full water threshold.
[0101] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0102] Based on the same inventive concept, this application also provides a water level monitoring device for implementing the water level monitoring method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more water level monitoring device embodiments provided below can be found in the limitations of the water level monitoring method described above, and will not be repeated here.
[0103] In one embodiment, such as Figure 6As shown, a water level monitoring device is provided, including: a task type acquisition module 101, a monitoring mode control module 102, a real-time value acquisition module 103, and a water level status judgment module 104, wherein:
[0104] The task type acquisition module 101 is used to acquire the current task type of the electrical device in response to the task entry command;
[0105] The monitoring mode control module 102 is used to control the electrical equipment to enter the water level monitoring mode corresponding to the current task type.
[0106] The real-time value acquisition module 103 is used to acquire the real-time value of the water level sensor; the water level sensor is installed in the water outlet pipe of the electrical equipment and inside the water supply device, and is located at the water level line height of the water supply device.
[0107] The water level status judgment module 104 is used to control the electrical equipment to exit the current execution task when the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time values of the sensor.
[0108] In one embodiment, the current task type of the electrical equipment includes a water-using task type, the water level monitoring mode includes a water shortage monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is a water shortage status.
[0109] The water level status judgment module 104 is also used to determine that the water level status of the water supply device has changed to a water shortage state when the real-time value of the sensor meets the water shortage threshold, and to control the electrical equipment to stop the water use task.
[0110] In one embodiment, the water level status judgment module 104 is further configured to determine that the water level status of the water supply device remains unchanged when the real-time value of the sensor is between the water shortage threshold and the intermediate threshold.
[0111] In one embodiment, the current task type of the electrical equipment includes a water replenishment task type, the water level monitoring mode includes a full water level monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is a full water status.
[0112] The water level status judgment module 104 is also used to determine that the water level status of the water supply device has changed to a full water state when the real-time value of the sensor meets the full water threshold, and to control the electrical equipment to exit the water replenishment task.
[0113] In one embodiment, the water level status determination module 104 is further configured to determine that the water level status of the water supply device remains unchanged when the real-time value of the sensor is between the full water threshold and the intermediate threshold; wherein the value of the intermediate threshold is between the water shortage threshold and the full water threshold.
[0114] In one embodiment, the apparatus further includes:
[0115] The threshold calibration module is used to acquire real-time values of a preset number of sensors when the electrical equipment enters the threshold calibration mode, respectively, when the water supply device is in the first preset state, the second preset state, and the third preset state; and to analyze the real-time values of the preset number of sensors to obtain the water shortage threshold, the intermediate threshold, and the full water threshold.
[0116] The first preset state is that there is no water in the outlet pipe and the water level of the water supply device has not reached the full water level; the second preset state is that there is water in the outlet pipe and the water level of the water supply device has not reached the full water level; and the third preset state is that there is no water in the outlet pipe and the water level of the water supply device has reached the full water level.
[0117] In one embodiment, the threshold calibration module is further configured to filter a preset number of real-time sensor values based on the normal value range corresponding to the water shortage threshold, intermediate threshold, and full water threshold to obtain filtered real-time sensor values; remove the maximum and minimum values from the filtered real-time sensor values and calculate the average value to obtain the water shortage threshold, intermediate threshold, and full water threshold.
[0118] Each module in the aforementioned water level monitoring device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0119] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores real-time values from the water level sensor. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a water level monitoring method.
[0120] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0121] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.
[0122] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0123] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described above.
[0124] In one embodiment, a water supply device is provided, including a water level sensor, a water tank, an inlet pipe, an outlet pipe, and a water pump. The inlet pipe is connected to the water tank, the outlet pipe is connected to the bottom of the water tank, the water pump is located in the outlet pipe, and the water level sensor is located inside the outlet pipe and the water tank, with the water level sensor positioned at the water full line height of the water tank.
[0125] like Figure 8 The diagram illustrates one possible configuration of a water supply device. An inlet pipe 123 connects to the bottom of a water tank 122 to replenish water to the tank. An outlet pipe 124 extends from the bottom of the water tank 122, rising along its side to the full water level. A water pump 125 is positioned at the full water level of the outlet pipe 124 to pump water, powering the electrical equipment to complete the water supply task. A water level sensor 121 is fitted onto the outlet pipe 124 to detect whether water is flowing through it. The water level sensor 121 is also positioned inside the water tank 122 at the full water level to detect whether the water level inside the tank has risen to the full water level.
[0126] It is understandable that the water level sensor 121 can be as follows: Figure 8 The position shown is located in the middle of the water tank body 122, or it can be located at any position off the middle, as long as it is fitted onto the water outlet pipe 124 and is also located at the water full line height inside the water tank body 122.
[0127] The water level sensor 121 is based on a capacitive sensor. When water flows through the internal outlet pipe of the capacitive sensor and / or the outer wall comes into contact with liquid, the capacitive sensor will output a voltage value that changes with capacitance. A further control device is connected to the capacitive sensor and acquires its output voltage value to determine the water level change in the water tank 122 of the water supply device.
[0128] The solution provided by this water supply device is similar to the solution described in the above-mentioned water level monitoring method. Therefore, the specific limitations in the above-mentioned water supply device embodiment can be found in the limitations of the water level monitoring method described above, and will not be repeated here.
[0129] In one embodiment, such as Figure 1 As shown, an electrical device is provided, including a control device 110 and a water supply device 120. The control device 110 is connected to the water supply device 120, and the control device 110 monitors the water level of the water supply device 120 based on the water level monitoring method described in the above embodiments.
[0130] It is understood that the solution provided by this electrical device is similar to the solution described in the above-mentioned water level monitoring method and the above-mentioned water supply device. Therefore, the specific limitations in the embodiment of this electrical device can be found in the limitations of the water level monitoring method and the water supply device mentioned above, and will not be repeated here.
[0131] The following uses electrical appliances as examples of cleaning robots, and Figures 9 to 11 Using the flowchart shown as an example, the specific process of applying the water level monitoring method provided in this application to a cleaning robot will be explained.
[0132] Currently, most cleaning appliances on the market, such as cleaning robots and floor scrubbers, have a water tank for supplying water to the cleaning system. When the cleaning robot detects a low water level, it can automatically return to its base to refill. Once the tank is full, it continues working, completely freeing the user's hands. Therefore, the robot can detect water level in real time. Existing solutions use two different sensors for detection. For example, a photoelectric sensor connected to the water pump outlet detects a low water level, while a metal electrode mounted on the full water line detects a full water level. Using different sensors for these two detections results in inconsistent and synchronized detection methods, higher costs, and larger required structural space.
[0133] In this embodiment, a method is provided to detect the water shortage and fullness of the clean water tank in real time using a single water level sensor, thereby achieving unified synchronization of the detection scheme, improving system stability, reducing controller costs, and minimizing structural control space.
[0134] Specifically, the location of the water level sensor is as follows: Figure 8 As shown, it is placed at the top of the water tank, at the same height as the water level. The sensor contains capacitors and related circuitry. Based on the principle that capacitive sensors can directly or indirectly sense various factors, when the water outlet channel and the outer wall of the sensor come into contact with liquid, the sensor's output voltage changes with the capacitance. The connected control device can then detect whether the sensor is in contact with liquid.
[0135] Furthermore, due to material variations, the water level sensors installed on various electrical devices have a certain deviation range. Therefore, these devices require an adaptive calibration process upon initial application. The adaptive calibration process is as follows: Figure 9 As shown, firstly, when the pipe is dry and the water level in the tank is below the full mark, the system reads and saves a preset number of sensor values (1). Then, when the pipe contains water but the water level in the tank is below the full mark, the system reads and saves a preset number of sensor values (2). Finally, when the pipe is dry and the water level in the tank reaches the full mark, the system reads and saves a preset number of sensor values (3). After obtaining these three preset number of sensor values, the three types of data are filtered based on different normal value ranges set by the calibration algorithm. The maximum and minimum values are then removed, and the average is taken to obtain preset thresholds 1, 2, and 3. Preset threshold 3 < preset threshold 2 < preset threshold 1.
[0136] In practical applications, such as Figure 10 As shown, when the cleaning robot is performing a cleaning task, the detection algorithm is set to check if the water tank is low on water. The water tank status is either full or low on water. When the real-time sensor value is less than a preset threshold of 2, it indicates that water is flowing through the outlet pipe, indirectly indicating that the water tank is full, and the cleaning robot can continue performing the cleaning task. When the real-time sensor value is greater than a preset threshold of 1, it indicates that no water is flowing through the outlet pipe, indirectly indicating that the water tank is low on water, and the cleaning robot must stop performing the cleaning task. When the preset threshold of 2 ≤ the real-time sensor value ≤ the preset threshold of 1, the water tank status remains unchanged based on the previous judgment, and the cleaning robot's current task is not controlled.
[0137] like Figure 11As shown, when the cleaning robot is performing a water tank replenishment operation, the detection algorithm is set to check if the water tank is full. The water tank status is either not full or full. When the real-time sensor value is less than a preset threshold of 3, it indicates that the sensor's outer wall is in contact with water, indirectly indicating that the water tank is full, and the cleaning robot can be controlled to stop replenishing. When the real-time sensor value is greater than a preset threshold of 2, it indicates that the sensor's outer wall is not in contact with water, indirectly indicating that the water tank is not full, and the cleaning robot can be controlled to continue replenishing. When the preset threshold of 3 ≤ the real-time sensor value ≤ the preset threshold of 2, the water tank status remains unchanged based on the previous judgment, and no control is applied to the task being performed by the cleaning robot.
[0138] In this embodiment, a detection algorithm based on a capacitive sensor is used to detect whether the water tank is low or full, according to the corresponding filtering logic and calibration threshold. This allows a single sensor to detect both low and full water levels. The unified detection scheme can improve system stability and simultaneously reduce controller cost and structural space.
[0139] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0140] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0141] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0142] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A water level monitoring method, characterized in that, The method includes: After the electrical equipment enters the threshold calibration mode, the real-time sensor values of a preset number of water level sensors are acquired in the first, second, and third preset states of the water supply device, respectively. The water level sensors are sleeved on the water outlet pipe of the electrical equipment and are also set at the water level line height inside the water supply device. The first preset state is when there is no water in the water outlet pipe and the water level of the water supply device has not reached the water level line height. The second preset state is when there is water in the water outlet pipe and the water level of the water supply device has not reached the water level line height. The third preset state is when there is no water in the water outlet pipe and the water level of the water supply device has reached the water level line height. The water shortage threshold, intermediate threshold, and full water threshold are obtained by real-time numerical analysis based on a preset number of sensors. In response to a task entry command, the current task type being executed by the electrical device is obtained; Control the electrical equipment to enter the water level monitoring mode corresponding to the currently executed task type; Obtain the real-time sensor value of the water level sensor; If the water level of the water supply device changes to the water level monitoring state corresponding to the water level monitoring mode based on the real-time values of the sensor, the electrical equipment is controlled to exit the current execution task.
2. The method according to claim 1, characterized in that, The current task type of the electrical equipment includes water use task type, the water level monitoring mode includes water shortage monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is water shortage status. The step of determining the water level status change of the water supply device based on the real-time values of the sensor to the water level monitoring status corresponding to the water level monitoring mode, and controlling the electrical equipment to exit the currently executing task, includes: If the real-time value of the sensor meets the water shortage threshold, the water level of the water supply device is determined to be in a water shortage state, and the electrical equipment is controlled to stop the water supply task.
3. The method according to claim 2, characterized in that, The method further includes: If the real-time value of the sensor is between the water shortage threshold and the intermediate threshold, it is determined that the water level of the water supply device should remain unchanged.
4. The method according to claim 2, characterized in that, The current task type of the electrical equipment includes a water replenishment task type, the water level monitoring mode includes a full water level monitoring mode, and the water level monitoring status corresponding to the water level monitoring mode is a full water status. The step of determining the water level status change of the water supply device based on the real-time values of the sensor to the water level monitoring status corresponding to the water level monitoring mode, and controlling the electrical equipment to exit the currently executing task, includes: If the real-time value of the sensor meets the full water threshold, the water level of the water supply device is determined to be in a full water state, and the electrical equipment is controlled to exit the water replenishment task.
5. The method according to claim 4, characterized in that, The method further includes: If the real-time value of the sensor is between the full water threshold and the intermediate threshold, it is determined that the water level of the water supply device should remain unchanged. The value of the intermediate threshold is between the water shortage threshold and the full water threshold.
6. The method according to claim 5, characterized in that, The process of obtaining the water shortage threshold, intermediate threshold, and full water threshold through real-time numerical analysis based on a preset number of sensors includes: Based on the normal value range corresponding to the water shortage threshold, the intermediate threshold and the full water threshold, the real-time values of the preset number of sensors are filtered to obtain the filtered real-time values of the sensors. Remove the maximum and minimum values from the filtered real-time sensor values and calculate the average value to obtain the water shortage threshold, the intermediate threshold, and the full water threshold.
7. A water level monitoring device, characterized in that, The device includes: A threshold calibration module is used to acquire real-time sensor values from a preset number of water level sensors in a first, second, and third preset state of the water supply device after the electrical equipment enters the threshold calibration mode. The water level sensors are fitted onto the outlet pipe of the electrical equipment and are also positioned at the water level mark inside the water supply device. The first preset state is when there is no water in the outlet pipe and the water level in the water supply device has not reached the water level mark; the second preset state is when there is water in the outlet pipe and the water level in the water supply device has not reached the water level mark; and the third preset state is when there is no water in the outlet pipe and the water level in the water supply device has reached the water level mark. Based on the real-time sensor values of the preset number of sensors, a water shortage threshold, an intermediate threshold, and a full water threshold are obtained. The task type acquisition module is used to acquire the current task type of the electrical device in response to a task entry command; The monitoring mode control module is used to control the electrical equipment to enter the water level monitoring mode corresponding to the currently executed task type; The real-time value acquisition module is used to acquire the real-time values of the water level sensor. The water level status judgment module is used to control the electrical equipment to exit the current execution task when the water level status of the water supply device changes to the water level monitoring status corresponding to the water level monitoring mode based on the real-time values of the sensor.
8. A water supply device, characterized in that, The system includes a water level sensor, a water tank, an inlet pipe, an outlet pipe, and a water pump. The inlet pipe is connected to the water tank, the outlet pipe is connected to the bottom of the water tank, the water pump is installed in the outlet pipe, and the water level sensor is sleeved in the outlet pipe and also installed inside the water tank. The water level sensor is located at the water level line height of the water tank. The real-time sensor values obtained by the water level sensor are used in the water level monitoring method as described in any one of claims 1 to 6 to monitor the water level of the water supply device.
9. An electrical appliance, characterized in that, It includes a control device and a water supply device as described in claim 8, wherein the control device is connected to the water supply device, and the control device monitors the water level of the water supply device based on the water level monitoring method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Cleaning robot
CN107224251A
Water supplementing mechanism for cleaning robot, service base station and cleaning system
CN115104978A
Control method, device and equipment for cleaning robot system
CN115956846A