Intelligent anti-overflow control system and method for water purifier based on gravity sensor
Patent Information
- Application Number
- CN202510373876.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2026-09-29
AI Technical Summary
[0003]可见,相关技术中大部分净水器需要用户通过停止按压的方式关闭出水口,这类技术方案依赖用户的主观能动性去主动关闭出水口,操作繁琐且易遗忘
[0037]本申请实施例提出基于重力传感器的净水器智能防溢流控制系统及方法。通过重力传感器实时检测水流冲击力,智能判断接水容器是否移开,在接水容器移开的情况下触发对应的电磁阀瞬时关闭,消除水流惯性导致的溢流。
Smart Images

Figure CN122837294A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water purifier technology, and in particular to an intelligent anti-overflow control system and method for water purifiers based on gravity sensors. Background Technology
[0002] In related technologies, most water purifiers have a water outlet button near the outlet. When the button is pressed, water flows from the corresponding outlet; when the button is unpressed, water flow stops. In some related technologies, a solenoid valve controls the water flow, and an infrared sensor detects the presence of a cup for collecting water. When the cup is removed, the solenoid valve automatically closes the valve corresponding to the outlet, thus stopping water flow.
[0003] As can be seen, most water purifiers using related technologies require users to manually close the water outlet by stopping the press. This type of solution relies on the user's initiative to actively close the outlet, which is cumbersome and easily forgotten. Another type of solution uses infrared sensors to detect the cup, which can improve the automation of the outlet closing, but it is easily affected by ambient light and water mist, leading to false triggering or failure. Furthermore, the timing control is inflexible and cannot adapt to the water filling needs of different containers, easily causing overflow or premature closure.
[0004] Furthermore, the relevant technologies generally cannot perform impact detection, and cannot quickly respond to overflow problems caused by water flow impact when the container is accidentally moved. Summary of the Invention
[0005] This application provides an intelligent anti-overflow control system and method for water purifiers based on gravity sensors, which can solve at least one of the aforementioned technical problems.
[0006] According to one aspect of the embodiments of this application, a water purifier anti-overflow control system based on a gravity sensor is provided, including a water purifier having an inlet and at least one outlet.
[0007] It also includes a platform, a microcontroller, and a solenoid valve corresponding to each of the aforementioned water outlets;
[0008] For each water outlet, a corresponding gravity sensor is installed at the corresponding position on the shelf to detect the impact force of the water flow from the corresponding water outlet on the shelf.
[0009] Each gravity sensor is connected to the microcontroller, and the microcontroller is connected to each solenoid valve to control the closing of the corresponding solenoid valve based on the water flow impact force detected by each gravity sensor.
[0010] In one embodiment, a solenoid valve corresponding to each of the water outlets is disposed on the water path connecting the water outlet and the water inlet.
[0011] The gravity sensor is a strain gauge sensor, and the solenoid valve is a bistable solenoid valve.
[0012] In one embodiment, for each of the water outlets, a corresponding water receiving tray is provided on the platform, and the strain gauge sensor corresponding to the water outlet is located below the water receiving tray.
[0013] The strain gauge sensor has a range of 0 to 5 kg and a resolution of ±10 g.
[0014] The microcontroller has a built-in analog-to-digital converter module, which is used to receive the detection signal of water flow impact force output by the corresponding strain gauge sensor and output a pulse width modulation signal. The pulse width modulation signal is used to control the corresponding bistable solenoid valve.
[0015] The bistable solenoid valve has a power-off self-locking capability and a response time of less than or equal to 50 milliseconds.
[0016] According to another aspect of the embodiments of this application, a water purifier overflow prevention control method based on a gravity sensor is provided, the method being applied to the aforementioned water purifier overflow prevention control system based on a gravity sensor, the method comprising:
[0017] When the water container leaves the platform, the gravity sensor detects the impact force of the water flow and outputs a target impact force detection signal to the microcontroller.
[0018] The microcontroller determines whether the target impact force detection signal is a valid detection signal;
[0019] If the target impact force detection signal is a valid detection signal, the corresponding solenoid valve is triggered to close.
[0020] In one implementation, before the microcontroller determines whether the target impact force detection signal is a valid detection signal, the method includes:
[0021] The impact force detection signal output by the gravity sensor is sampled at regular intervals, and a moving average value is determined based on the average value of a preset number of sampling results. The moving average value indicates the intensity of interference signals generated by environmental noise.
[0022] The method includes:
[0023] If the amplitude of the target impact force detection signal is less than or equal to the moving average value, the target impact force detection signal is determined to be an invalid detection signal.
[0024] In one embodiment, the method further includes:
[0025] If the amplitude of the target impact force detection signal is greater than the moving average value, determine the amplitude abrupt change value of the target impact force detection signal.
[0026] The duration of the target impact force detection signal is obtained;
[0027] Frequency domain analysis is performed on the target impact force detection signal to determine the frequency domain energy spectrum;
[0028] Based on the amplitude abrupt change value, the duration, and the frequency domain energy spectrum, it is determined whether the target impact force detection signal is a valid detection signal.
[0029] In one embodiment, the method further includes:
[0030] If the amplitude mutation value is greater than a preset weight threshold, the duration is greater than a first preset duration, and the frequency domain energy indicated by the frequency domain energy spectrum is within a preset energy range, then the target impact force detection signal is determined to be a valid detection signal.
[0031] In one embodiment, the weight threshold is greater than 140 grams, the duration is greater than 180 milliseconds, and the preset energy range is between 5 Hz and 20 Hz.
[0032] In one embodiment, the system further includes a control chip connected to the microcontroller, and the method further includes:
[0033] The control chip detects the operating status of the microcontroller. If the detected operating status indicates that the microcontroller has not responded after a timeout, the microcontroller is forcibly reset.
[0034] In one embodiment, the system further includes a buzzer alarm connected to the microcontroller, and the method further includes:
[0035] If the duration exceeds the second preset duration, the microcontroller forcibly closes the solenoid valve and triggers the buzzer alarm to start, wherein the second preset duration is greater than the first preset duration.
[0036] The technical solution provided in this application can bring the following beneficial effects:
[0037] This application proposes an intelligent anti-overflow control system and method for water purifiers based on a gravity sensor. The gravity sensor detects the water flow impact force in real time, intelligently determining whether the water container has been moved. If the water container is moved, the corresponding solenoid valve is triggered to close instantaneously, eliminating overflow caused by water flow inertia.
[0038] Furthermore, the embodiments of this application also include the following improvements and innovations:
[0039] First, address the issue of automatic shut-off delay in related technologies, and resolve the overflow problem caused by water inertia after the water container is removed.
[0040] Secondly, to address the problem of insufficient anti-interference capability in related technologies and avoid misjudgments caused by mechanical vibration, temperature changes, or instantaneous impacts, improvements were made to the methods for microcontrollers to detect whether a solenoid valve needs to be closed.
[0041] Third, intelligent handling of unexpected situations is implemented, and relevant safety protection methods are designed to deal with abnormal scenarios such as sensor failure and power outage.
[0042] Fourth, this is the first time that strain gauge sensors have been combined with frequency domain analysis and applied to the field of water purifier control. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a schematic diagram of the logical component connection relationship of a water purifier anti-overflow control system based on a gravity sensor provided in one embodiment of this application;
[0045] Figure 2 This is a flowchart of a water purifier overflow prevention control method based on a gravity sensor, provided in one embodiment of this application.
[0046] Figure 3 This is a flowchart of an effective detection signal determination method provided in one embodiment of this application;
[0047] Figure 4 This is a schematic diagram of a control framework provided in one embodiment of this application. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be noted that all data used in the embodiments of this application has been fully authorized by the relevant parties before use.
[0049] This application provides a gravity sensor-based anti-overflow control system for a water purifier, including a water purifier with an inlet and at least one outlet, a shelf, a microcontroller, and a solenoid valve corresponding to each outlet. This application does not limit the mechanical positions of the shelf, inlet, and outlet, and does not constitute an obstacle to implementation. The solenoid valve corresponding to each outlet can control the opening and closing of the water flow at that outlet; when the solenoid valve is closed, water flow stops from the outlet.
[0050] For each water outlet, a corresponding gravity sensor is installed at the corresponding position on the shelf to detect the impact force of the water flow from the corresponding water outlet on the shelf.
[0051] In one embodiment, at least one water outlet can be provided above the shelf, and a corresponding gravity sensor can be installed at each water outlet directly opposite the shelf. If the gravity sensor is located at this position, the impact force of the water flow directly hitting the shelf can be directly detected.
[0052] In one embodiment, for each of the water outlets, a corresponding water receiving tray is provided on the platform, and a strain gauge sensor corresponding to the water outlet is located below the water receiving tray. The water receiving tray can support the water container. If the water container is removed, the water flow will directly impact the water receiving tray, thereby generating a water flow impactor on the platform. This water flow impact force can be detected by a gravity sensor located between the water receiving tray and the platform.
[0053] Please refer to Figure 1 This illustration shows a schematic diagram of the logical component connection relationship of a gravity sensor-based anti-overflow control system for a water purifier provided in an exemplary embodiment of this application. Each outlet has a corresponding solenoid valve disposed on the water path connecting the outlet and the inlet. Each gravity sensor is connected to a microcontroller, which in turn is connected to each solenoid valve, for controlling the opening or closing of the corresponding solenoid valve based on the water flow impact force detected by each gravity sensor. In some embodiments, if the gravity sensor is directly mounted on the platform, a rubber vibration damping pad can be installed between each gravity sensor and the platform to isolate external mechanical vibration interference, thereby reducing the false triggering rate of the solenoid valve from 15% in conventional solutions to below 0.5%. In some embodiments, if the gravity sensor is disposed below the water receiving tray, a rubber vibration damping pad can be installed between each gravity sensor and the water receiving tray to isolate external mechanical vibration interference, thereby reducing the false triggering rate of the solenoid valve from 15% in conventional solutions to below 0.5%.
[0054] In one embodiment, the gravity sensor is a strain gauge sensor, and the solenoid valve is a bistable solenoid valve. The strain gauge sensor has a measurement range between 0 and 5 kg and a resolution of ±10 g. The microcontroller has a built-in analog-to-digital converter module, which receives the water flow impact force detection signal output by the corresponding strain gauge sensor and outputs a pulse width modulation signal. The pulse width modulation signal is used to control the corresponding bistable solenoid valve. The bistable solenoid valve has a power-off self-locking capability and a response time of less than or equal to 50 milliseconds.
[0055] In one specific implementation, a gravity sensor is installed below the water receiving tray, employing a high-precision strain gauge sensor (range 0-5kg, resolution ±10g). The improved solenoid valve adopts a bistable solenoid valve, which self-locks after power failure, with a response time ≤50ms. This design, combined with the control method described below, can reduce the overflow shut-off delay from 2-3 seconds in related technical solutions to within 0.3 seconds, reducing the overflow flow by 90%.
[0056] Please refer to Figure 2 This document illustrates a flowchart of a gravity sensor-based anti-overflow control method for a water purifier, according to an embodiment of this application. The method is applied to the aforementioned gravity sensor-based anti-overflow control system for a water purifier, and includes:
[0057] S201. When the water container leaves the platform, the gravity sensor detects the water flow impact force and outputs a target impact force detection signal to the microcontroller.
[0058] In one embodiment, a water container is placed directly on the platform, with water flowing out of the corresponding outlet. The water flows towards the water container, such as a cup or kettle. When the water container leaves the platform, the platform directly receives the impact of the water flow. The corresponding gravity sensor in the platform that is impacted can then output a target impact force detection signal to the microcontroller.
[0059] In one embodiment, a tray is placed on a shelf, and a water container is placed on the tray. Water flows out from the corresponding outlet and flows to the water container, such as a water cup or kettle. When the water container leaves the tray, the tray directly receives the impact of the water flow. The corresponding gravity sensor under the tray that is impacted can then output a target impact force detection signal to the microcontroller.
[0060] S202. The microcontroller determines whether the target impact force detection signal is a valid detection signal.
[0061] This application does not limit the method for determining a valid detection signal. In one exemplary embodiment, please refer to... Figure 3 The flowchart illustrates the effective detection signal determination method according to an embodiment of this application.
[0062] S301. Before the microcontroller determines whether the target impact force detection signal is a valid detection signal, it performs timed sampling of the impact force detection signal output by the gravity sensor, and determines a moving average value based on the average value of a preset number of sampling results. The moving average value indicates the intensity of interference signals generated by environmental noise.
[0063] This application embodiment can perform timed sampling of the impact force detection signal output by the gravity sensor. This application embodiment does not limit the sampling frequency and preset number. For example, the microcontroller can sample once every 100 milliseconds and take the average of 10 sampled values as the moving average.
[0064] S302. If the amplitude of the target impact force detection signal is less than or equal to the moving average value, the target impact force detection signal is determined to be an invalid detection signal.
[0065] S303. If the amplitude of the target impact force detection signal is greater than the moving average value, determine the amplitude abrupt change value generated by the amplitude of the target impact force detection signal.
[0066] This application does not limit the method for obtaining the amplitude mutation value. For example, the difference between the amplitude of the target impact force detection signal and the amplitude of the impact force detection signal previously output by the gravity sensor can be used as the amplitude mutation value. In another embodiment, the difference between the amplitude of the target impact force detection signal and the average amplitude of N impact force detection signals output by the gravity sensor can be used as the amplitude mutation value. N is an integer greater than 2, and N can be set according to actual needs, without posing an obstacle to implementation.
[0067] S304. Obtain the duration of the target impact force detection signal.
[0068] In one implementation, if the amplitude of the target impact force detection signal changes abruptly beyond a preset weight threshold, the microsystem controller starts timing and records the duration of the target impact force detection signal. Otherwise, the target impact force detection signal is directly determined to be invalid.
[0069] S305. Perform frequency domain analysis on the target impact force detection signal to determine the frequency domain energy spectrum.
[0070] This application does not limit the frequency domain analysis method; FFT analysis can be used. "FFT" commonly refers to "Fast Fourier Transform," which is an efficient algorithm for calculating the Discrete Fourier Transform. It has wide applications in many fields such as signal processing, image processing, communication, and numerical analysis. It can convert time-domain signals into frequency-domain signals, thereby facilitating the analysis of frequency components and other characteristics of signals.
[0071] S306. Based on the amplitude abrupt change value, the duration, and the frequency domain energy spectrum, determine whether the target impact force detection signal is a valid detection signal.
[0072] In one embodiment, the gravity sensor is a strain gauge sensor. By combining a strain gauge sensor with frequency domain analysis for the first time in the field of water purifier control, the sensitivity of the effective detection signal is significantly improved.
[0073] In one embodiment, if the amplitude mutation value is greater than a preset weight threshold, the duration is greater than a first preset duration, and the frequency domain energy indicated by the frequency domain energy spectrum is within a preset energy range, the target impact force detection signal is determined to be a valid detection signal.
[0074] This application does not limit the weight threshold, the first preset duration, or the preset energy range in its embodiments. For example, the weight threshold is greater than 140 grams, the duration is greater than 180 milliseconds, and the preset energy range is between 5 Hz and 20 Hz.
[0075] In one specific implementation, the gravity sensor employs a high-precision strain gauge sensor (range 0-5kg, resolution ±10g), and the solenoid valve has also been improved, adopting a bistable solenoid valve that self-locks after power failure, with a response time ≤50ms. In this specific implementation, if the amplitude change value is greater than 150g, the duration is greater than 200ms, and 90% of the frequency domain energy is concentrated in the 5Hz to 20Hz range (including the endpoints), then the target impact force detection signal is determined to be a valid detection signal.
[0076] In one specific implementation, the gravity sensor employs a high-precision strain gauge sensor (range 0-5kg, resolution ±10g), and the solenoid valve has also been improved, adopting a bistable solenoid valve that self-locks after power failure, with a response time ≤50ms. In this specific implementation, if the amplitude change value is greater than 140g, the duration is greater than 180ms, and 95% of the frequency domain energy is concentrated in the 5Hz to 20Hz range (inclusive), then the target impact force detection signal is determined to be a valid detection signal.
[0077] The method for determining a valid detection signal in this embodiment combines a digital filtering algorithm with a multi-condition decision mechanism, which can effectively distinguish between real water flow impact and environmental noise, and reduce the false trigger rate.
[0078] In one embodiment, the system further includes a control chip connected to the microcontroller, and the method further includes: the control chip detecting the operating status of the microcontroller; if the detected operating status indicates that the microcontroller has not responded after a timeout, the microcontroller is forcibly reset. Additionally, the system includes a buzzer alarm connected to the microcontroller, and the method further includes: if the duration exceeds a second preset duration, the microcontroller forcibly closes the solenoid valve, triggering the buzzer alarm to start, where the second preset duration is longer than the first preset duration.
[0079] This application does not limit the second preset duration; it can be set according to actual conditions and does not constitute an obstacle to implementation. In one exemplary embodiment, the control chip is a MAX706 chip, which is a microprocessor monitoring circuit chip manufactured by Maxim Integrated. Its main functions include:
[0080] Power-on reset: When the power supply voltage is lower than the reset threshold, the chip will output a reset signal to ensure that the microprocessor can be correctly initialized when powered on, and to avoid abnormal system startup due to unstable power supply.
[0081] Power-down reset: When the power supply voltage drops to a certain level, a reset signal is generated in a timely manner to protect the safety of system data and programs.
[0082] Watchdog timer: If the microprocessor does not refresh the watchdog input within a specified time, the chip will output a reset signal to prevent the program from crashing or getting stuck in an infinite loop.
[0083] Manual Reset: A manual reset pin is provided, which can be used to manually trigger the reset operation via an external button or other means.
[0084] The MAX706 chip's watchdog function monitors the microcontroller's operating status in real time, forcibly resetting it if there is no response within a timeout period. If continuous water flow exceeds 5 minutes (e.g., due to sensor failure), the solenoid valve is forcibly shut off and a buzzer alarm is triggered. This dual redundancy protection mechanism of hardware watchdog and software timeout shutdown strategy ensures system reliability with an MTBF > 100,000 hours, complying with the IEC 60730 safety standard.
[0085] S203. If the target impact force detection signal is a valid detection signal, trigger the corresponding solenoid valve to close.
[0086] Please refer to Figure 4The diagram illustrates the control framework of an embodiment of this application. In this control system, power-on initialization is performed first, including each gravity sensor and the microcontroller. Each gravity sensor performs baseline calibration to avoid baseline drift. Baseline drift refers to the slow, irregular shift or change of the signal baseline (i.e., the signal's base level or zero-point reference line) during signal detection and recording. The microcontroller continuously acquires and receives the impact force detection signals output by each gravity sensor.
[0087] If a target impact force detection signal is detected (which can be understood as any impact force detection signal output by any gravity sensor), a moving average filter is applied to this signal. This moving average filtering process determines the amplitude abrupt change value and identifies invalid target impact force detection signals based on this value. If the amplitude abrupt change value of the target impact force detection signal is greater than a preset weight, impact characteristic analysis is performed, which calculates the duration of the target impact force detection signal. FFT frequency domain processing is then performed to extract the frequency domain energy spectrum. If the duration, amplitude abrupt change value, and energy of the frequency domain energy spectrum all meet the preset requirements for a valid detection signal—for example, an amplitude abrupt change value greater than 150 grams, a duration greater than 200 milliseconds, and energy concentrated between 5 Hz and 20 Hz—then the target impact force detection signal is considered valid, triggering the corresponding solenoid valve to close and stopping water flow from the corresponding outlet.
[0088] The microcontroller records the corresponding event log and continuously monitors the system status. If a timeout occurs, it forcibly closes the solenoid valve and triggers a buzzer alarm.
[0089] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is executed by a processor to implement the water purifier anti-overflow control method.
[0090] Specifically, the overflow prevention control method of this water purifier includes:
[0091] When the water container leaves the platform, the gravity sensor detects the impact force of the water flow and outputs a target impact force detection signal to the microcontroller.
[0092] The microcontroller determines whether the target impact force detection signal is a valid detection signal;
[0093] If the target impact force detection signal is a valid detection signal, the corresponding solenoid valve is triggered to close.
[0094] In one exemplary embodiment, before the microcontroller determines whether the target impact force detection signal is a valid detection signal, the method includes:
[0095] The impact force detection signal output by the gravity sensor is sampled at regular intervals, and a moving average value is determined based on the average value of a preset number of sampling results. The moving average value indicates the intensity of interference signals generated by environmental noise.
[0096] The method includes:
[0097] If the amplitude of the target impact force detection signal is less than or equal to the moving average value, the target impact force detection signal is determined to be an invalid detection signal.
[0098] In one exemplary embodiment, the method further includes:
[0099] If the amplitude of the target impact force detection signal is greater than the moving average value, determine the amplitude abrupt change value of the target impact force detection signal.
[0100] The duration of the target impact force detection signal is obtained;
[0101] Frequency domain analysis is performed on the target impact force detection signal to determine the frequency domain energy spectrum;
[0102] Based on the amplitude abrupt change value, the duration, and the frequency domain energy spectrum, it is determined whether the target impact force detection signal is a valid detection signal.
[0103] In one exemplary embodiment, the method further includes:
[0104] If the amplitude mutation value is greater than a preset weight threshold, the duration is greater than a first preset duration, and the frequency domain energy indicated by the frequency domain energy spectrum is within a preset energy range, then the target impact force detection signal is determined to be a valid detection signal.
[0105] In one exemplary embodiment, the weight threshold is greater than 140 grams, the duration is greater than 180 milliseconds, and the preset energy range is between 5 Hz and 20 Hz.
[0106] In one exemplary embodiment, the system further includes a control chip connected to the microcontroller, and the method further includes:
[0107] The control chip detects the operating status of the microcontroller. If the detected operating status indicates that the microcontroller has not responded after a timeout, the microcontroller is forcibly reset.
[0108] In one exemplary embodiment, the system further includes a buzzer alarm connected to the microcontroller, and the method further includes:
[0109] If the duration exceeds the second preset duration, the microcontroller forcibly closes the solenoid valve and triggers the buzzer alarm to start, wherein the second preset duration is greater than the first preset duration.
[0110] It should be understood that "multiple" as mentioned herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0111] In addition, in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0112] The above are merely exemplary embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims
1. A water purifier anti-overflow control system based on a gravity sensor, comprising a water purifier, the water purifier including an inlet and at least one outlet, characterized in that: It also includes a platform, a microcontroller, and a solenoid valve corresponding to each of the aforementioned water outlets; For each water outlet, a corresponding gravity sensor is installed at the corresponding position on the shelf to detect the impact force of the water flow from the corresponding water outlet on the shelf. Each gravity sensor is connected to the microcontroller, and the microcontroller is connected to each solenoid valve to control the closing of the corresponding solenoid valve based on the water flow impact force detected by each gravity sensor.
2. The water purifier overflow prevention control system based on a gravity sensor according to claim 1, characterized in that: Each of the aforementioned outlets is equipped with a solenoid valve on the water path connecting the outlet and the inlet. The gravity sensor is a strain gauge sensor, and the solenoid valve is a bistable solenoid valve.
3. The water purifier overflow prevention control system based on a gravity sensor according to claim 2, characterized in that, For each of the water outlets, a corresponding water receiving tray is provided on the platform, and the strain gauge sensor corresponding to the water outlet is located below the water receiving tray. The strain gauge sensor has a range of 0 to 5 kg and a resolution of ±10 g. The microcontroller has a built-in analog-to-digital converter module, which is used to receive the detection signal of water flow impact force output by the corresponding strain gauge sensor and output a pulse width modulation signal. The pulse width modulation signal is used to control the corresponding bistable solenoid valve. The bistable solenoid valve has a power-off self-locking capability and a response time of less than or equal to 50 milliseconds.
4. A water purifier overflow prevention control method based on a gravity sensor, characterized in that, The method is applied to the overflow prevention control system of a water purifier based on a gravity sensor, as described in any one of claims 1 to 3, and the method includes: When the water container leaves the platform, the gravity sensor detects the impact force of the water flow and outputs a target impact force detection signal to the microcontroller. The microcontroller determines whether the target impact force detection signal is a valid detection signal; If the target impact force detection signal is a valid detection signal, the corresponding solenoid valve is triggered to close.
5. The overflow prevention control method for a water purifier based on a gravity sensor according to claim 4, characterized in that, Before the microcontroller determines whether the target impact force detection signal is a valid detection signal, the method includes: The impact force detection signal output by the gravity sensor is sampled at regular intervals, and a moving average value is determined based on the average value of a preset number of sampling results. The moving average value indicates the intensity of interference signals generated by environmental noise. The method includes: If the amplitude of the target impact force detection signal is less than or equal to the moving average value, the target impact force detection signal is determined to be an invalid detection signal.
6. The overflow prevention control method for a water purifier based on a gravity sensor according to claim 5, characterized in that, The method further includes: If the amplitude of the target impact force detection signal is greater than the moving average value, determine the amplitude abrupt change value of the target impact force detection signal. The duration of the target impact force detection signal is obtained; Frequency domain analysis is performed on the target impact force detection signal to determine the frequency domain energy spectrum; Based on the amplitude abrupt change value, the duration, and the frequency domain energy spectrum, it is determined whether the target impact force detection signal is a valid detection signal.
7. The overflow prevention control method for a water purifier based on a gravity sensor according to claim 6, characterized in that, The method further includes: If the amplitude mutation value is greater than a preset weight threshold, the duration is greater than a first preset duration, and the frequency domain energy indicated by the frequency domain energy spectrum is within a preset energy range, then the target impact force detection signal is determined to be a valid detection signal.
8. The water purifier overflow prevention control method based on a gravity sensor according to claim 7, characterized in that, The weight threshold is greater than 140 grams, the duration is greater than 180 milliseconds, and the preset energy range is between 5 Hz and 20 Hz.
9. The water purifier overflow prevention control method based on a gravity sensor according to claim 4, characterized in that, The system further includes a control chip connected to the microcontroller, and the method further includes: The control chip detects the operating status of the microcontroller. If the detected operating status indicates that the microcontroller has not responded after a timeout, the microcontroller is forcibly reset.
10. The water purifier overflow prevention control method based on a gravity sensor according to claim 7, characterized in that, The system also includes a buzzer alarm connected to the microcontroller, and the method further includes: If the duration exceeds the second preset duration, the microcontroller forcibly closes the solenoid valve and triggers the buzzer alarm to start, wherein the second preset duration is greater than the first preset duration.