Water dispenser water ordering device based on vibration detection and use method thereof
Through vibration detection and digital signal processing combined with CAT.1 module communication, the problem of water dispenser water volume detection is solved without automation and wifi signal limitation, and high-precision automated water volume monitoring and remote control are realized, which is suitable for a variety of environments.
Patent Information
- Application Number
- CN202311823836.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2025-07-01
AI Technical Summary
The existing water dispenser water volume detection method is not automated enough, it is easy to affect the beauty and is limited by wifi signal, resulting in untimely supply and large labor consumption, and it cannot be used in a network-free environment.
The water volume is calculated by vibration detection combined with digital signal processing, and communication is carried out through the CAT.1 module, and automated monitoring and remote control are achieved using terminal equipment and mobile equipment, including power supply modules, vibration sensors, temperature sensors, alarm modules and CAT.1 modules, and message transmission is carried out using MQTT servers.
It realizes high-precision automated water volume monitoring, is convenient to install, does not affect the beauty of the environment, is suitable for environments without wifi coverage, has a wide range of applications, and is suitable for homes and offices and other places.
Smart Images

Figure CN120232491A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water ordering for water dispensers, and particularly to a water dispenser water ordering device based on vibration detection and its usage method. Background Art
[0002] With the development of the economy, people have higher and higher requirements for the water quality of drinking water. In addition to families, offices, and factories, water dispensers are also installed in some public places for people to drink at any time. Although the widespread use of water dispensers brings convenience to people's drinking water. However, when the water in the water dispenser is consumed, it needs to be discovered by people around before replacing the barreled water or re-ordering water from the water supply company, which easily leads to the problem of short-term water shortage due to untimely supply and high labor consumption. Currently, in terms of detection methods, existing water volume detection methods include ultrasonic detection and pressure detection. The ultrasonic detection method requires attaching the probe to the water bucket, which is not only easy to slip off, unsightly, but also requires re-fixing the device every time the water is changed. The pressure detection method requires fixing the sensor to the four feet of the water dispenser, which easily causes the water dispenser to be unstable. In terms of communication methods, a wifi module is usually used for networking, which requires configuring a wifi connection and cannot be used in places without a network connection. Therefore, there is an urgent need to develop a water dispenser water ordering device based on vibration detection and its usage method to solve the above technical problems.
[0003] In view of this, the present invention is specifically proposed. Summary of the Invention
[0004] The object of the present invention is to provide a water dispenser water ordering device based on vibration detection and its usage method, which not only has a high degree of automation and higher accuracy, but also is convenient to install, does not affect the environmental beauty. In addition, it is not restricted by wifi signals and can still be used in an environment without wifi coverage, with a wide application range and strong applicability, and has broad application prospects and is conducive to popularization and application.
[0005] To achieve the above object, a water dispenser water ordering device based on vibration detection provided by the present invention includes a terminal device, an MQTT server, and a mobile device;
[0006] The terminal device includes a power module, a processor, a vibration sensor, a temperature sensor, an alarm module, and a CAT.1 module. The power module, the vibration sensor, and the temperature sensor are all positively connected to the processor. The processor is respectively positively connected to the alarm module and the CAT.1 module. The CAT.1 module is sequentially positively connected to the MQTT server and the mobile device;
[0007] The MQTT server is used to complete the functions of message reception and forwarding, and send messages to subscribers according to the topics of the publishers;
[0008] The mobile device is a mobile phone APP, which is used to complete the functions of information display and parameter setting.
[0009] Preferably, the power supply module is used to provide a constant voltage source for the terminal device.
[0010] Preferably, the vibration sensor is used to convert mechanical energy into electrical energy and transmit it to the processor in the form of a level signal.
[0011] Preferably, the temperature sensor is used to monitor the temperature change around the device and send the temperature value to the processor in the form of a serial port.
[0012] Preferably, the alarm module issues an alarm when the water dispenser runs out of water or the temperature is too high, preventing the water dispenser from overheating and causing a fire.
[0013] Preferably, the CAT.1 module is used to access the Internet, send device information to the server, and finally send it to the mobile terminal for display.
[0014] The present invention also provides a usage method of the above water dispenser water ordering device based on vibration detection, including the following steps:
[0015] S1: The system is powered on and initialized, the system clock, IO ports, adc and serial ports are initialized, so that the power supplies of each module can be connected to the CAT.1 module through the network;
[0016] S2: It includes thread one and thread two:
[0017] The thread one includes the following steps:
[0018] SS1: When air enters the water bucket, the water dispenser vibrates mechanically. At this time, the voltage value of the vibration sensor is read through adc sampling;
[0019] SS2: Analyze the adc sampling value, calculate the mean value and root mean square value; use the FFT algorithm to analyze the sampling points to obtain the corresponding signal power spectrum;
[0020] SS3: By comparing the mean value, root mean square value and signal power spectrum, obtain the actual remaining water volume;
[0021] SS4: Report the current water volume once every 5 minutes;
[0022] SS5: If the current water volume is less than 3% of the total volume, the buzzer alarms for 5s to remind to change water or cut off the power in time; otherwise, continue to monitor;
[0023] SS6: Every time a bucket of water is used up, new thresholds will be re-determined according to 80% of the previous peak value and bandwidth threshold and 20% of the current peak value and bandwidth threshold; when a bucket of water is used up, the number of empty buckets will be incremented by one and reported to the mobile terminal. After the water supply plant receives the message, it will automatically deliver water to the location of the terminal device;
[0024] The second thread includes the following steps:
[0025] SS1: Read the temperature value and determine whether the current temperature value is greater than 50°C;
[0026] SS2: If the temperature is greater than 50°C, the buzzer will continuously alarm to remind that the water dispenser needs to be powered off.
[0027] Preferably, in SS2 of the first thread, the data processing method is as follows:
[0028] (1) Time-domain mean value: This value reflects the DC component of the signal value and is the average value of the sampled signal within a certain time period;
[0029]
[0030] In the above formula represents the mean value of the sampled signal, s i represents the values of different sampling points, and n represents the number of sampling points;
[0031] (2) Root mean square value in the time domain: This value reflects the degree of deviation of the signal from the time-domain mean value and is used as a condition for judging the water volume in the bucket;
[0032]
[0033] In the above formula, RMS represents the root mean square value of the sampled signal, represents the mean value of the sampled signal, s i represents the values of different sampling points, and n represents the number of sampling points. When the water volume in the bucket decreases, the root mean square value decreases accordingly;
[0034] (3) Signal power spectrum: The time-domain signal is transformed into a frequency-domain expression through the FFT algorithm. By comparing the differences in the power spectrum amplitude and bandwidth, the remaining water volume in the bucket is obtained. When the water volume decreases, the power spectrum amplitude and bandwidth decrease accordingly. Calculate the mean value of the frequency-domain signal, and judge the current water volume according to the size of the frequency-domain mean value; Determine the signal bandwidth according to the 3dB attenuation of the frequency-domain mean value, and judge the current water volume according to the size of the bandwidth.
[0035] Preferably, each terminal device has a number. The published and subscribed topics are both their respective serial numbers. The published information is the water volume information, and the subscribed information is the parameter information; The mobile APP publishes and subscribes messages for the serial numbers of the terminal devices that need services. The published information is the parameters corresponding to the device numbers, and the subscribed information is the water volume information of each device.
[0036] Preferably, the software functions of the mobile device include the display of the online status of the device, the remaining number of water buckets, the percentage of the remaining water volume, the completion of real-time monitoring of water consumption remotely, and also include the configuration function for the terminal device to support the configuration of the alarm temperature and the percentage of the remaining water volume alarm.
[0037] A water dispenser water ordering device based on vibration detection and its usage method provided by the present invention have the following beneficial effects.
[0038] 1. The present invention calculates the water volume by using vibration detection and digital signal processing methods, with a high degree of automation, higher accuracy, convenient installation, only need to be fixed to the bottom of the water dispenser, does not affect the environmental beauty, and is less affected by the external environment.
[0039] 2. The present invention uses a CAT.1 module for communication in the communication method, is not restricted by the wifi signal, as long as the cellular mobile network covers, the module can work, is not restricted by the office environment, and can still be used in the environment without wifi coverage, with a wide application range and strong applicability, and can be applied to living families, indoor offices, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a structural block diagram of a water dispenser water ordering device based on vibration detection provided by the present invention;
[0041] Figure 2 It is a working flow chart of a water dispenser water ordering device based on vibration detection provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following further describes the present invention in conjunction with specific embodiments and drawings to help understand the content of the present invention.
[0043] As Figure 1 shown, it is a structural block diagram of a water dispenser water ordering device based on vibration detection provided by the present invention. The water dispenser water ordering device based on vibration detection includes a terminal device, an MQTT server, and a mobile device;
[0044] The terminal device includes a power module, a processor, a vibration sensor, a temperature sensor, an alarm module, and a CAT.1 module. The power module, the vibration sensor, and the temperature sensor are all connected to the processor in the forward direction. The processor is respectively connected to the alarm module and the CAT.1 module in the forward direction. The CAT.1 module is sequentially connected to the MQTT server and the mobile device in the forward direction; the power module is used to provide a constant voltage source for the terminal device. The vibration sensor is used to convert mechanical energy into electrical energy and transmit it to the processor in the form of a level signal. The temperature sensor is used to monitor the temperature change around the device and send the temperature value to the processor in the form of a serial port. The alarm module issues an alarm when the water dispenser runs out of water or the temperature is too high to prevent a fire caused by overheating of the water dispenser. The CAT.1 module is used to access the Internet, send device information to the server, and finally send it to the mobile terminal for display.
[0045] The MQTT server is used to complete the functions of message reception and forwarding, and send messages to subscribers according to the topics of the publishers;
[0046] The mobile device is a mobile phone APP, which is used to complete the functions of information display and parameter setting.
[0047] As Figure 2 shown, it is the working flow chart of a water dispenser water ordering device based on vibration detection provided by the present invention. The usage method of the water dispenser water ordering device based on vibration detection includes the following steps:
[0048] S1: The system is powered on and initialized, the system clock, IO ports, adc, and serial ports are initialized, so that the power supplies of each module can be connected to the network through the CAT.1 module;
[0049] S2: It includes Thread 1 and Thread 2:
[0050] The Thread 1 includes the following steps:
[0051] SS1: When air enters the water bucket, the water dispenser vibrates mechanically. At this time, the voltage value of the vibration sensor is read through adc sampling;
[0052] SS2: Analyze the adc sampling value, calculate the mean value and the root mean square value; use the FFT algorithm to analyze the sampling points to obtain the corresponding signal power spectrum;
[0053] SS3: By comparing the mean value, the root mean square value, and the signal power spectrum, obtain the actual remaining water volume;
[0054] SS4: Report the current water volume once every 5 minutes;
[0055] SS5: If the current water volume is less than 3% of the total volume, the buzzer alarms for 5s to remind to change water or cut off the power in time; otherwise, continue to monitor;
[0056] SS6: Each time a bucket of water is used up, new thresholds are re-determined based on 80% of the previous peak value and bandwidth threshold and 20% of the current peak value and bandwidth threshold; when a bucket of water is used up, the number of empty buckets is incremented by one and reported to the mobile device. After receiving the message, the water supply plant will automatically deliver water to the location of the terminal device.
[0057] The second thread includes the following steps:
[0058] SS1: Read the temperature value and determine whether the current temperature value is greater than 50°C.
[0059] SS2: If the temperature is greater than 50°C, the buzzer will continuously alarm to remind that the water dispenser needs to be powered off.
[0060] In SS2 of the first thread, the data processing method is:
[0061] (1) Time-domain mean value: This value reflects the DC component of the signal value and is the average value of the sampled signal within a certain time period.
[0062]
[0063] In the above formula represents the mean value of the sampled signal, s i represents the values at different sampling points, and n represents the number of sampling points;
[0064] (2) Root mean square value in the time domain: This value reflects the degree of deviation of the signal from the time-domain mean value and is used as a condition for judging the amount of water in the bucket.
[0065]
[0066] In the above formula, RMS represents the root mean square value of the sampled signal, represents the mean value of the sampled signal, s i represents the values at different sampling points, and n represents the number of sampling points. When the amount of water in the bucket decreases, the root mean square value decreases accordingly;
[0067] (3) Signal power spectrum: The time-domain signal is converted into a frequency-domain expression through the FFT algorithm. By comparing the amplitude and bandwidth differences of the power spectrum, the remaining amount of water in the bucket is obtained. When the amount of water decreases, the amplitude and bandwidth of the power spectrum decrease accordingly. Calculate the mean value of the frequency-domain signal and judge the current amount of water based on the size of the frequency-domain mean value; determine the signal bandwidth according to the 3dB attenuation of the frequency-domain mean value and judge the current amount of water based on the size of the bandwidth.
[0068] Each terminal device has a number. The published and subscribed topics are their respective serial numbers. The published information is water volume information, and the subscribed information is parameter information. For the mobile APP, the published and subscribed messages are the serial numbers of the terminal devices that need services. The published information is the parameters corresponding to the device numbers, and the subscribed information is the water volume information of each device.
[0069] The software functions of the mobile terminal include displaying the online status of the device, the remaining number of water buckets, the percentage of remaining water volume, achieving real-time monitoring of water consumption remotely, and also including the configuration function for the terminal device to support configuring the alarm temperature and the percentage of remaining water volume alarm.
[0070] The present invention calculates the water volume by means of vibration detection and digital signal processing, with a high degree of automation, higher precision, convenient installation, only need to be fixed to the bottom of the water dispenser, without affecting the environmental beauty and being less affected by the external environment. In terms of communication method, the present invention uses a CAT.1 module for communication, which is not restricted by the wifi signal. As long as the cellular mobile network covers, the module can work, is not restricted by the office environment, and can still be used in an environment without wifi coverage, with a wide application range and strong applicability, and can be applied to domestic households, indoor offices, etc.
[0071] Specific examples are used in this article to elaborate on the inventive concept in detail. The description of the above embodiments is only used to help understand the core idea of the present invention. It should be noted that for those of ordinary skill in the art of this technology, any obvious modification, equivalent replacement or other improvement made without departing from the inventive concept shall be included within the protection scope of the present invention.
Claims
1. A water dispenser water ordering device based on vibration detection, characterized in that It includes a terminal device, an MQTT server, and a mobile device; The terminal device includes a power module, a processor, a vibration sensor, a temperature sensor, an alarm module, and a CAT.1 module. The power module, the vibration sensor, and the temperature sensor are all positively connected to the processor. The processor is respectively positively connected to the alarm module and the CAT.1 module. The CAT.1 module is successively positively connected to the MQTT server and the mobile device; The MQTT server is used to complete the functions of message reception and forwarding, and send messages to subscribers according to the topics of the publishers; The mobile device is a mobile phone APP, which is used to complete the functions of information display and parameter setting.
2. The water ordering device for a water dispenser based on vibration detection according to claim 1, characterized in that The power module is used to provide a constant voltage source for the terminal device.
3. The water ordering device for a water dispenser based on vibration detection according to claim 2, characterized in that, The vibration sensor is used to convert mechanical energy into electrical energy and transmit it to the processor in the form of a level signal.
4. The water ordering device for a water dispenser based on vibration detection according to claim 3, characterized in that, The temperature sensor is used to monitor the temperature change around the device and send the temperature value to the processor in the form of a serial port.
5. The water ordering device for a water dispenser based on vibration detection according to claim 4, characterized in that, The alarm module issues an alarm when the water dispenser runs out of water or the temperature is too high, preventing the water dispenser from overheating and causing a fire.
6. The water ordering device for a water dispenser based on vibration detection according to claim 5, characterized in that, The CAT.1 module is used to access the Internet, send device information to the server, and finally send it to the mobile terminal for display.
7. A method for using the water dispenser water ordering device based on vibration detection according to any one of claims 1-6, characterized in that, It includes the following steps: S1: The system is powered on and initialized, the system clock, IO ports, adc, and serial ports are initialized, so that the power supplies of each module can be connected to the Internet through the CAT.1 module; S2: It includes Thread 1 and Thread 2: The steps of Thread 1 are as follows: SS1: When air enters the water bucket, the water dispenser vibrates mechanically. At this time, the voltage value of the vibration sensor is read through adc sampling; SS2: Analyze the adc sampling value, calculate the mean value and the root mean square value; use the FFT algorithm to analyze the sampling points to obtain the corresponding signal power spectrum; SS3: By comparing the mean value, the root mean square value, and the signal power spectrum, obtain the actual remaining water volume; SS4: Report the current water volume once every 5 minutes; SS5: If the current water volume is less than 3% of the total volume, the buzzer alarms for 5s to remind to change water or cut off the power in time; otherwise, continue to monitor; SS6: Every time a bucket of water is used up, a new threshold will be re-determined according to 80% of the previous peak value and bandwidth threshold and 20% of the current peak value and bandwidth threshold; when a bucket of water is used up, the number of empty buckets will be incremented by one and reported to the mobile terminal. After the water supply plant receives the message, it will automatically send water to the location of the terminal device; The steps of Thread 2 are as follows: SS1: Read the temperature value and judge whether the current temperature value is greater than 50°C; SS2: If the temperature is greater than 50°C, the buzzer will keep alarming to remind that the water dispenser needs to be powered off.
8. The usage method of a water dispenser water ordering device based on vibration detection according to claim 7, characterized in that, In SS2 of Thread 1, the data processing method is: (1) Time-domain mean value: This value reflects the DC component of the signal value and is the average value of the sampled signal within a certain time period; In the above formula represents the mean value of the sampling signal, and s i represents the values at different sampling points, and n represents the number of sampling points; (2) Time-domain root mean square value: This value reflects the degree of deviation of the signal from the time-domain mean value and is used as a condition for judging the water volume in the bucket; In the above formula, RMS represents the root mean square value of the sampled signal, represents the mean value of the sampled signal, s i represents the values at different sampling points, m represents the number of sampling points. When the water volume in the bucket decreases, the root mean square value decreases accordingly; (3) Signal power spectrum: The time-domain signal is converted into a frequency-domain expression through the FFT algorithm. By comparing the differences in power spectrum amplitude and bandwidth, the remaining water volume in the water bucket is obtained. When the water volume decreases, the power spectrum amplitude and bandwidth also decrease. Calculate the mean value of the frequency-domain signal, and judge the current water volume according to the size of the frequency-domain mean value; determine the signal bandwidth according to the 3dB attenuation of the frequency-domain mean value, and judge the current water volume according to the bandwidth size.
9. The usage method of a water dispenser water ordering device based on vibration detection according to claim 8, characterized in that, Each terminal device has a number. Both the published and subscribed topics are their respective serial numbers. The published information is water volume information, and the subscribed information is parameter information; the mobile APP publishes and subscribes messages as the serial numbers of the terminal devices that need services. The published information is the parameters of the corresponding device numbers, and the subscribed information is the water volume information of each device.
10. The usage method of a water dispenser water ordering device based on vibration detection according to claim 9, characterized in that, The software functions of the mobile end include the display of the online status of the device, the remaining number of water buckets, the percentage of the remaining water volume, and the completion of real-time monitoring of water consumption remotely. It also includes the configuration function for the terminal device, which is used to support the configuration of the alarm temperature and the percentage of the remaining water volume alarm.