Container, cleaning equipment base station, air conditioning equipment, cooking utensil, liquid level detection method and device, electronic equipment and medium
By forming a resonant cavity in the container and using a pickup to detect sound signals, the existing liquid level detection device is solved in the complex structure and insufficient accuracy, and low-cost and accurate liquid level monitoring is achieved, improving the user experience.
Patent Information
- Application Number
- CN202410121759.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2025-07-29
AI Technical Summary
The existing liquid level detection devices have problems such as complex structure, high detection cost and insufficient detection accuracy, especially factors such as water vapor interfere with the detection results.
The box and the cover are used to form a resonant cavity. By setting a pickup at the cover, the characteristics of the resonant cavity are used to determine the liquid level according to the sound signal detected by the pickup through the controller, and non-contact liquid level measurement is realized to avoid water vapor interference.
It realizes low-cost and accurate liquid level detection, improves user experience, and avoids interference from factors such as water vapor on the detection results.
Smart Images

Figure CN120385409A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of liquid level detection, and particularly relates to a container, a cleaning equipment base station, an air conditioning equipment, a cooking appliance, a liquid level detection method, a device, an electronic device and a medium. Background Art
[0002] Liquid level detection technology measures the height position of a liquid medium in a container through a liquid level detection device, and can provide necessary data for production management to adjust and control the liquid level according to the detection result, so that various liquid level detection devices have been widely used in fields such as household appliances, chemical industry, food, and environmental monitoring.
[0003] However, when detecting the liquid level of a container in related technologies, there are problems such as complex structure, high detection cost, and insufficient detection accuracy. Summary of the Invention
[0004] To overcome the problems existing in the related technologies, the present disclosure provides a container, a cleaning equipment base station, an air conditioning equipment, a cooking appliance, a liquid level detection method, a device, an electronic device and a medium.
[0005] According to the first aspect of the embodiments of the present disclosure, a container is provided, including: a box body, the interior of the box body has a first cavity for accommodating liquid, and an opening communicating with the first cavity is provided on the surface of the box body;
[0006] a cover body, the cover body has a second cavity, the cover body is movably arranged at the opening of the container for closing or opening the opening; when the cover body is in a state of closing the opening, the second cavity is respectively communicated with the first cavity and the external environment, and the second cavity and the first cavity are used to form a resonant cavity;
[0007] a pickup, arranged on the cover body, the pickup is used to collect the sound signal in the resonant cavity;
[0008] a controller, arranged on the box body or the cover body, the controller is communicatively connected with the pickup, and the controller is used to determine the liquid level in the first cavity according to the sound signal.
[0009] In some embodiments of the present disclosure, the pickup is arranged at the connection between the second cavity and the external environment.
[0010] In some embodiments of the present disclosure, both the first cavity and the second cavity are cylinders or close to cylinders, the height and radius of the second cavity are both less than 1 / 10 of the wavelength of sound in the external environment, and the volume of the second cavity is less than 1 / 10 of the volume of the first cavity.
[0011] In some embodiments of the present disclosure, the lid is provided with a sealing structure, and the sealing structure is used to seal the gap between the lid and the opening in a state where the lid closes the opening.
[0012] According to the second aspect of the embodiments of the present disclosure, a cleaning device base station is provided for docking with a cleaning device main body. The cleaning device base station includes the container described in the first aspect, and the cleaning device main body includes any one of a floor sweeper, a mopping machine, and a sweeping and mopping integrated machine.
[0013] According to the third aspect of the embodiments of the present disclosure, an air conditioning device is provided. The air conditioning device includes the container described in the first aspect, and the air conditioning device includes any one of a humidifier and a dehumidifier.
[0014] According to the fourth aspect of the embodiments of the present disclosure, a cooking appliance is provided. The cooking appliance includes the container described in the first aspect.
[0015] In some embodiments of the present disclosure, the cooking appliance is an electric rice cooker, which includes an inner pot with an opening at the top and a lid that can cover the opening. The inner pot constitutes the box body, and the lid constitutes the lid body.
[0016] According to the fifth aspect of the embodiments of the present disclosure, a liquid level detection method is provided, including:
[0017] Obtaining a sound signal in a resonance cavity collected by a pickup. The resonance cavity includes a first cavity and a second cavity. The first cavity is used to accommodate liquid, the second cavity is provided with the pickup, and the second cavity is respectively connected to the first cavity and the external environment;
[0018] Based on the sound signal, determining the resonance frequency of the resonance cavity;
[0019] Based on the resonance frequency, determining the liquid level in the first cavity.
[0020] In some embodiments of the present disclosure, the determining the resonance frequency of the resonance cavity based on the sound signal includes:
[0021] Based on the sound signal, determining the correspondence between the frequency of the sound signal and the sound pressure amplitude;
[0022] Determining the frequency of the sound signal corresponding to the peak value of the sound pressure amplitude as the resonance frequency; and / or,
[0023] The determining the resonance frequency of the resonance cavity based on the sound signal includes:
[0024] Based on the sound signal, determining the correspondence between the frequency of the sound signal and the quality factor;
[0025] Determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency.
[0026] In some embodiments of the present disclosure, determining the correspondence between the frequency and the sound pressure amplitude of the sound signal based on the sound signal includes:
[0027] Perform Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrogram.
[0028] In some embodiments of the present disclosure, when both the first cavity and the second cavity are cylinders or close to cylinders, determining the liquid level in the first cavity based on the resonance frequency includes:
[0029] Based on the resonance frequency, the radius of the first cavity, and the height and radius of the second cavity, determine the distance between the liquid surface in the first cavity and the connection between the first cavity and the second cavity;
[0030] Based on the height of the first cavity and the distance, determine the liquid level in the first cavity.
[0031] According to the sixth aspect of the embodiments of the present disclosure, a liquid level detection device is provided, including:
[0032] An acquisition module, configured to acquire a sound signal in a resonant cavity collected by a pickup. The resonant cavity includes a first cavity and a second cavity. The first cavity is used to hold liquid, the second cavity is provided with the pickup, and the second cavity is respectively connected to the first cavity and the external environment;
[0033] A first determination module, configured to determine the resonance frequency of the resonant cavity based on the sound signal;
[0034] A second determination module, configured to determine the liquid level in the first cavity based on the resonance frequency.
[0035] In some embodiments of the present disclosure, the first determination module is further configured to:
[0036] Based on the sound signal, determine the correspondence between the frequency and the sound pressure amplitude of the sound signal;
[0037] Determine the frequency of the sound signal corresponding to the peak value of the sound pressure amplitude as the resonance frequency; and / or,
[0038] Based on the sound signal, determine the correspondence between the frequency and the quality factor of the sound signal;
[0039] Determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency.
[0040] In some embodiments of the present disclosure, the first determination module is further configured to: perform Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrogram.
[0041] In some embodiments of the present disclosure, when both the first cavity and the second cavity are cylinders or near-cylinders, the second determination module is further configured to:
[0042] Based on the resonance frequency, the radius of the first cavity, and the height and radius of the second cavity, determine the distance between the liquid level in the first cavity and the connection between the first cavity and the second cavity;
[0043] Based on the height of the first cavity and the distance, determine the liquid level in the first cavity.
[0044] According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic device, the electronic device includes:
[0045] A processor;
[0046] A memory for storing processor-executable instructions;
[0047] Wherein, the processor is configured to:
[0048] Obtain the sound signal in the resonant cavity collected by the pickup, the resonant cavity includes a first cavity and a second cavity, the first cavity is used to hold liquid, the second cavity is provided with the pickup, and the second cavity is respectively connected to the first cavity and the external environment;
[0049] Based on the sound signal, determine the resonance frequency of the resonant cavity;
[0050] Based on the resonance frequency, determine the liquid level in the first cavity.
[0051] According to an eighth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, enabling the electronic device to execute a liquid level detection method, the liquid level detection method includes:
[0052] Obtain the sound signal in the resonant cavity collected by the pickup, the resonant cavity includes a first cavity and a second cavity, the first cavity is used to hold liquid, the second cavity is provided with the pickup, and the second cavity is respectively connected to the first cavity and the external environment;
[0053] Based on the sound signal, determine the resonance frequency of the resonant cavity;
[0054] Based on the resonance frequency, determine the liquid level in the first cavity.
[0055] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: In the container of the present disclosure, the first cavity of the box body and the second cavity of the cover body can form a resonant cavity. By utilizing the characteristics of the resonant cavity and arranging a pickup at the cover body, the controller can determine the liquid level in the first cavity according to the sound signal detected by the pickup, realizing real-time monitoring of the liquid level. The structure of the container is simple, the detection cost during liquid level detection is low, and it can prevent interference from factors such as water vapor to the detection result, ensuring the detection accuracy and improving the user experience.
[0056] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0058] Figures 1a to 1g is a schematic diagram of a liquid level detection device in the related art.
[0059] Figure 2 is a schematic diagram of a container shown according to an exemplary embodiment.
[0060] Figure 3 is a schematic diagram of a water tank, a water tank cover, a first through hole, and a pickup shown according to an exemplary embodiment.
[0061] Figure 4 is a schematic diagram of a rice cooker in an open lid state shown according to an exemplary embodiment.
[0062] Figure 5 is a schematic diagram of a rice cooker in a closed lid state shown according to an exemplary embodiment.
[0063] Figure 6 is a flowchart of a liquid level detection method shown according to an exemplary embodiment.
[0064] Figure 7 is a flowchart of determining the resonance frequency of a resonant cavity based on a sound signal shown according to an exemplary embodiment.
[0065] Figure 8 is a flowchart of determining the resonance frequency of a resonant cavity based on a sound signal shown according to another exemplary embodiment.
[0066] Figure 9It is a frequency-quality factor spectrogram shown according to an exemplary embodiment.
[0067] Figure 10 It is a frequency-sound pressure amplitude spectrogram shown according to an exemplary embodiment.
[0068] Figure 11 It is a flowchart for determining the liquid level in a box based on the resonance frequency shown according to an exemplary embodiment.
[0069] Figure 12 It is a flowchart of a liquid level detection method shown according to another exemplary embodiment.
[0070] Figure 13 It is a block diagram of a liquid level detection device shown according to an exemplary embodiment.
[0071] Figure 14 It is a block diagram of an electronic device shown according to an exemplary embodiment.
[0072] In the figure:
[0073] 10 - box; 11 - first cavity; 12 - opening; 20 - cover; 21 - second cavity; 30 - pickup; 41 - water tank; 42 - water tank cover; 43 - first through hole; 51 - inner pot; 52 - pot lid; 53 - second through hole; 60 - acquisition module; 70 - first determination module; 80 - second determination module; 101 - processing component; 102 - memory; 103 - power component; 104 - multimedia component; 105 - audio component; 106 - input / output interface; 107 - sensor component; 108 - communication component; 109 - processor. Detailed implementation manners
[0074] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0075] Liquid level detection technology measures the height position of the liquid to be measured in a container or pipeline through a liquid level detection device, and can provide necessary data for activities such as production management, so as to adjust and control the liquid level according to the detection results and control the liquid level height of the liquid to be measured within a reasonable range. Nowadays, various liquid level detection devices have been widely used in fields such as household appliances, chemical industry, food, and environmental monitoring. Refer to Figures 1a to 1gAs shown, they are respectively float type, capacitive type, magnetostrictive type, differential pressure type, communicating pipe type, ultrasonic type and optical type liquid level detection devices, which are applicable to different detection conditions.
[0076] However, when using the liquid level detection devices of related technologies to detect the liquid level, some liquid level detection devices need to transform the structure of the container itself or need to set up complex components. In some detection devices, the steam generated by the liquid to be measured will seriously interfere with the measurement results, and there are problems such as complex structure, high detection cost and insufficient detection accuracy.
[0077] Based on this, the exemplary embodiments of the present disclosure provide a container. In the container of the present disclosure, the first cavity of the box body and the second cavity of the cover body can form a resonant cavity. Utilizing the characteristics of the resonant cavity, by setting a pickup at the cover body, the controller can determine the liquid level in the first cavity according to the sound signal detected by the pickup, realizing real-time monitoring of the liquid level. The structure of the container is simple, the detection cost is low when detecting its liquid level, and it can prevent factors such as water vapor from interfering with the detection results, ensuring the detection accuracy and improving the user experience.
[0078] In an exemplary embodiment, a container is provided. Referring to Figure 2 As shown, the container includes a box body 10, a cover body 20, a pickup 30 and a controller. The box body 10 has a first cavity 11 for accommodating liquid inside, and an opening 12 communicating with the first cavity 11 is provided on the surface of the box body 10. The cover body 20 has a second cavity 21, and the cover body 20 is movably arranged at the opening 12 of the box body 10 for closing or opening the opening 12. When the cover body 20 is in the state of closing the opening 12, the second cavity 21 is respectively connected to the first cavity 11 and the external environment, and the second cavity 21 and the first cavity 11 are used to form a resonant cavity. The pickup 30 is arranged on the cover body 20, and the pickup 30 is used to collect the sound signal in the resonant cavity. The controller is arranged on the box body 10 or the cover body 20, and the controller is communicatively connected to the pickup 30. The controller is used to determine the liquid level in the first cavity 11 according to the sound signal.
[0079] Wherein, the outer walls of the box body 10 and the cover body 20 are both made of hard materials. The cover body 20 can be movably connected to the box body 10 at the opening 12 through connecting components such as hinge structures to open or close the opening 12. The first cavity 11 is used to accommodate liquid. When the cover body 20 is in the state of closing the opening 12, the second cavity 21 is respectively connected to the first cavity 11 and the external environment. Whether there is liquid in the first cavity 11 or not, the first cavity 11 and the second cavity 21 can both form a resonant cavity. The formed resonant cavity includes the part of the first cavity 11 except the liquid and the whole of the second cavity 21. The resonant cavity can be a Helmholtz resonant cavity for example, and air can resonate in the resonant cavity.
[0080] The pickup 30 is disposed at the cover body 20. The pickup 30 can detect the sound signal in the resonant cavity. Exemplarily, the pickup 30 can be a sound detection device such as a radio microphone, etc. The sound signal can be, for example, a sound wave signal. The sound source generating the sound signal can be, for example, white noise in the external environment, or other artificially controlled input sounds. The controller can be disposed in the box body 10 or the cover body 20 and is communicatively connected to the pickup 30, and can receive the sound signal detected by the pickup 30. The controller can be composed of a memory and a processor, for example. By virtue of the inherent characteristics of the resonant cavity, the controller can determine the liquid level in the first cavity 11 according to the sound signal in the resonant cavity. Exemplarily, for example, the resonant frequency of the resonant cavity can be determined according to the sound signal, and then the height of the resonant cavity can be inversely deduced according to the calculation method of the resonant frequency of the resonant cavity, realizing the determination of the liquid level in the first cavity 11. Compared with the liquid level detection device adopted in the related art, the container of the present disclosure only needs to be provided with the cover body 20 and the pickup 30 on the box body 10, and can utilize the characteristics of the resonant cavity to realize non-contact liquid level measurement, and can eliminate the interference of steam or smoke on the detection result.
[0081] In this embodiment, by providing the box body 10 and the cover body 20, the first cavity 11 and the second cavity 21 can form a resonant cavity. By utilizing the characteristics of the resonant cavity, by providing the pickup 30 at the cover body 20, the controller can determine the liquid level in the first cavity 11 according to the sound signal detected by the pickup 30, realizing real-time monitoring of the liquid level. The structure of the container is simple, the detection cost is low when using it for liquid level detection, and it can prevent factors such as water vapor from interfering with the detection result, ensuring the detection accuracy and improving the user experience.
[0082] In some embodiments, referring to Figure 2 As shown, the pickup 30 is disposed at the connection between the second cavity 21 and the external environment.
[0083] Since the position where the resonant cavity generates resonance is at the connection position of the box body 10 and the cover body 20, that is, the junction position of the first cavity 11 and the second cavity 21, the detection of the sound signal in the resonant cavity needs to be performed after the first cavity 11 and the second cavity 21 interact to generate resonance. Therefore, the pickup 30 can be disposed at the connection between the second cavity and the external environment, that is, the pickup 30 is disposed at one end of the second cavity 21 away from the first cavity 11.
[0084] In this embodiment, by disposing the pickup 30 at the connection between the second cavity 21 and the external environment, a certain distance is provided between the position where the pickup 30 can interact with the first cavity 11 and the second cavity 21 to generate resonance, so as to prevent the sound signal detected by the pickup 30 from bypassing the resonance effect of the resonance cavity, ensuring that the sound signal can be used to determine the liquid level in the first cavity 11, and thus ensuring the detection accuracy of liquid level detection through the container.
[0085] In some embodiments, the first cavity 11 can be, for example, a sphere or a cube, and the second cavity 21 can be, for example, a cube. The radius or length, width, and height of the first cavity 11 can be controlled, and the length, width, and height of the second cavity 21 can be controlled to ensure that the geometric dimensions of the first cavity 11 and the second cavity 21 meet the conditions for forming a resonance cavity.
[0086] In other embodiments, both the first cavity 11 and the second cavity 21 are cylinders or near-cylinders. The height and radius of the second cavity 21 are both less than 1 / 10 of the wavelength of sound in the external environment, and the volume of the second cavity 21 is less than 1 / 10 of the volume of the first cavity 11.
[0087] The box body 10 and the cover body 20 make both the first cavity 11 and the second cavity 21 cylinders or near-cylinders, that is, the cross-sectional shapes of the first cavity 11 and the second cavity 21 are both circular and have different radii. The height and radius of the second cavity 21 are both set to be less than 1 / 10 of the wavelength of sound in the external environment, and the volume of the second cavity 21 is set to be less than 1 / 10 of the volume of the first cavity 11, so that the air in the second cavity 21 can be equivalent to a mass block in the resonance cavity system, and the air in the first cavity 11 can be equivalent to a spring in the resonance cavity system, ensuring that the structural dimensions of the first cavity 11 and the second cavity 21 meet the necessary conditions for forming a resonance cavity.
[0088] In this embodiment, by setting both the first cavity 11 and the second cavity 21 as cylinders or near-cylinders and controlling the height, radius of the second cavity 21, and the volume ratio of the second cavity 21 to the first cavity 11, it can be ensured that the structural dimensions of the first cavity 11 and the second cavity 21 meet the necessary conditions for forming a resonance cavity, enabling the first cavity 11 and the second cavity 21 to form a resonance cavity required for liquid level detection, providing a basis for liquid level detection.
[0089] In some embodiments, the cover body 20 is provided with a sealing structure for sealing the gap between the cover body 20 and the opening 12 when the cover body 20 closes the opening 12.
[0090] Since the box body 10 and the cover body 20 are movably connected, there may be a gap between the cover body 20 and the opening 12 when the cover body 20 closes the opening 12, which will cause the air in the first cavity 11 to flow out through the gap, affecting the formation of the resonant cavity and thus the liquid level detection accuracy. Therefore, a sealing structure is provided at the cover body 20 to seal the gap between the cover body 20 and the opening 12. Exemplarily, the material of the sealing structure can be materials such as rubber and plastic with good sealing performance and heat resistance, and the sealing structure can be arranged at the edge position of the cover body 20.
[0091] In this embodiment, by providing a sealing structure on the cover body 20, the gap between the cover body 20 and the opening 12 can be sealed when the cover body 20 closes the opening 12, preventing the air in the first cavity 11 from flowing out through the gap, ensuring the formation and sealing of the resonant cavity, and improving the liquid level detection accuracy.
[0092] In an exemplary embodiment, a cleaning device base station is provided for docking with a cleaning device main body. The cleaning device base station includes the container as described above, and the cleaning device main body includes any one of a sweeper, a mopping machine, and a sweeping and mopping integrated machine.
[0093] The cleaning device base station can be docked with cleaning device main bodies such as a sweeper, a mopping machine, and a sweeping and mopping integrated machine. The cleaning device base station can provide functions such as automatic cleaning and automatic dust collection for the cleaning device main body. The cleaning device base station can include the container as described above. Refer to Figure 3 As shown, the cleaning device base station includes a water tank 41 with an opening 12 at the top and a water tank upper cover 42 that can cover the opening 12. The water tank 41 constitutes the box body 10, and the water tank upper cover 42 constitutes the cover body 20. When the water tank upper cover 42 covers the opening 12 of the water tank 41, it forms a closure for the water tank 41, so that the water tank 41 has a first cavity 11 capable of accommodating liquid. A first through hole 43 is provided on the water tank upper cover 42, and the first through hole 43 forms a second cavity 21 communicating with the first cavity 11 and the external environment, and enables the first cavity 11 and the second cavity 21 to form a resonant cavity.
[0094] The pickup 30 is arranged at the first through hole 43. When the liquid level in the water tank 41 changes, the resonance frequency of the resonant cavity changes accordingly, and different sound signals are generated. The controller can determine the liquid level in the water tank 41 based on the sound signals detected by the pickup 30, so as to realize the liquid level monitoring of the water tank 41 in the cleaning device base station and facilitate the timely control of the liquid level in the water tank 41.
[0095] In this embodiment, a water tank 41 and a water tank upper cover 42 capable of covering the opening 12 are provided in the cleaning device base station. The box body 10 that can use the water tank 41 as a container and the cover body 20 that can use the water tank upper cover 42 as a container form a resonant cavity in the cleaning device base station, which can determine the liquid level in the water tank 41 according to the sound signal, realize the liquid level detection of the water tank 41 of the cleaning device base station, and further ensure the normal use of the cleaning device base station and the cleaning device main body docked with the cleaning device base station, improving the user experience.
[0096] In an exemplary embodiment, an air conditioning device is provided. The air conditioning device may include the container as described above, and the air conditioning device includes any one of a humidifier and a dehumidifier.
[0097] The air conditioning device can be, for example, a humidifier or a dehumidifier and other air conditioning devices for adjusting air humidity. The air conditioning device may include the container as described above. Refer to Figure 3 As shown, the air conditioning device includes a water tank 41 with an opening 12 at the top and a water tank upper cover 42 capable of covering the opening 12. The water tank 41 constitutes the box body 10, and the water tank upper cover 42 constitutes the cover body 20. When the water tank upper cover 42 covers the opening 12 of the water tank 41, it forms a closure for the water tank 41, so that the water tank 41 has a first cavity 11 capable of accommodating liquid. A first through hole 43 is provided on the water tank upper cover 42, and the first through hole 43 forms a second cavity 21 communicating with the first cavity 11 and the external environment, and enables the first cavity 11 and the second cavity 21 to form a resonant cavity.
[0098] In this embodiment, by setting the air conditioning device in the structural form of a container, a resonant cavity is formed in the air conditioning device, which can determine the liquid level in the water tank 41 according to the sound signal, realize the liquid level detection of the water tank 41 of the air conditioning device, can timely control the liquid level in the water tank 41, and further ensure the normal use of the air conditioning device, improving the user experience.
[0099] In an exemplary embodiment, a cooking appliance is provided. The cooking appliance includes the container as described above.
[0100] In this embodiment, by setting the cooking appliance in the structural form of a container, a resonant cavity is formed in the cooking appliance, which can determine the liquid level in the cooking appliance according to the sound signal, realize the liquid level detection of the cooking appliance, can timely control the liquid level in the cooking appliance, and further ensure the normal use of the cooking appliance, improving the user experience.
[0101] In some embodiments, the cooking appliance is a wall breaker. In other embodiments, refer to Figure 4 and Figure 5As shown, the cooking appliance is an electric rice cooker, which includes an inner pot 51 with an opening 12 at the top and a lid 52 that can cover the opening 12. The inner pot 51 forms the box body 10, and the lid 52 forms the lid body 20.
[0102] The cooking appliance can be an electric rice cooker or the like. The electric rice cooker includes an inner pot 51 with an opening 12 at the top and a lid 52 that can cover the opening 12. When the lid 52 covers the opening 12, it forms a seal for the inner pot 51, enabling the inner pot 51 to serve as the box body 10 of the container and having a first cavity 11 that can hold liquid. A second through hole 53 is provided on the lid 52, such that the second through hole 53 forms a second cavity 21 that communicates with the first cavity 11 and the external environment, and the first cavity 11 and the second cavity 21 form a resonant cavity.
[0103] The pickup 30 is arranged at the second through hole 53. When the liquid level in the inner pot 51 changes, the resonance frequency of the resonant cavity changes accordingly, and different sound signals are generated. The controller can determine the liquid level in the inner pot 51 based on the sound signals detected by the pickup 30, so as to realize the liquid level monitoring of the inner pot 51 in the electric rice cooker and facilitate the timely control of the liquid level in the inner pot 51.
[0104] In this embodiment, the cooking appliance is a cooking appliance including an inner pot 51 with an opening 12 at the top and a lid 52 that can cover the opening 12. It can use the inner pot 51 as the box body 10 of the container and the lid 52 as the lid body 20 of the container, form a resonant cavity in the inner pot 51 of the electric rice cooker, determine the liquid level in the inner pot 51 according to the sound signal, realize the liquid level detection of the electric rice cooker, ensure the normal use of the electric rice cooker, and improve the use experience of the electric rice cooker.
[0105] In an exemplary embodiment, a liquid level detection method is provided. The liquid level in the first cavity 11 of the container can be detected by using the above-mentioned method. Refer to Figure 6 As shown, the liquid level detection method includes:
[0106] S100. Obtain the sound signal in the resonant cavity collected by the pickup. The resonant cavity includes a first cavity and a second cavity. The first cavity is used to hold liquid, and the second cavity is provided with the pickup. The second cavity is respectively connected to the first cavity and the external environment.
[0107] In step S100, the first cavity 11 of the container is used to hold liquid. The second cavity 21 is respectively connected to the first cavity 11 and the external environment, and the second cavity 21 and the first cavity 11 form a resonant cavity. The sound signal collected by the pickup 30 provided in the second cavity 21 can be obtained. Exemplarily, the pickup 30 can be a radio microphone, for example, the sound signal can be a sound wave signal, and the sound source generating the sound signal can be white noise in the external environment, or other artificially controlled input sounds.
[0108] S200. Based on the sound signal, determine the resonance frequency of the resonant cavity.
[0109] In step S200, since the part of the first cavity 11 other than the liquid and the whole of the second cavity 21 form a resonant cavity, when the liquid level in the first cavity 11 changes, the resonance frequency of the resonant cavity and the sound signal in the resonant cavity change accordingly. The controller provided in the box body 10 or the cover body 20 can determine the resonance frequency f of the resonant cavity according to the acquired sound signal. r 。
[0110] S300. Based on the resonance frequency, determine the liquid level in the first cavity.
[0111] In step S300, according to the determined resonance frequency, the height of the part of the first cavity 11 other than the liquid can be determined. Furthermore, based on this height and the height of the first cavity 11, the liquid level in the first cavity 11 can be determined, realizing the liquid level detection of the liquid in the first cavity 11.
[0112] In this embodiment, by acquiring the sound signal in the resonant cavity, the resonance frequency of the resonant cavity can be determined according to the sound signal, and the liquid level in the first cavity 11 can be determined according to the resonance frequency, realizing the liquid level detection of the liquid in the first cavity 11. The box body 10 and the cover body 20 of the container adopted by the liquid level detection method of this embodiment respectively have the first cavity 11 and the second cavity 21 that can form a resonant cavity. Utilizing the characteristics of the resonant cavity, by providing the pickup 30 at the cover body 20, the controller can determine the liquid level in the first cavity 11 according to the sound signal detected by the pickup 30. When using the liquid level detection method of this embodiment for liquid level detection, the detection cost is relatively low, and it can prevent factors such as water vapor from interfering with the detection result, ensuring the detection accuracy.
[0113] In some embodiments, as shown in Figure 7 Based on the sound signal, determining the resonance frequency of the resonant cavity includes:
[0114] S210. Based on the sound signal, determine the correspondence between the frequency of the sound signal and the sound pressure amplitude.
[0115] In step S210, based on the sound signal, the corresponding relationship between the frequency of the sound signal and the sound pressure amplitude can be determined. The frequency of the sound signal can be, for example, the angular frequency of the sound signal, and the unit of the angular frequency can be, for example, Hertz (Hz) or kilohertz (kHz). The sound pressure amplitude of the sound signal is the change in pressure generated by vibration when the sound wave passes through the medium, and the unit of the sound pressure amplitude can be, for example, Pascal (Pa) or decibel (dB). After determining the corresponding relationship between the frequency and the sound pressure amplitude of the sound signal, the frequency of the sound signal corresponding to the sound pressure amplitude can be determined according to the sound pressure amplitude. S220: Determine the frequency of the sound signal corresponding to the peak sound pressure amplitude as the resonance frequency. In step S220, after determining the corresponding relationship between the frequency and the sound pressure amplitude of the sound signal, based on the resonance principle of the resonant cavity, the frequency of the sound signal corresponding to the peak sound pressure amplitude, that is, the maximum sound pressure amplitude, can be determined as the resonance frequency, realizing the determination of the resonance frequency, which can provide a basis for determining the liquid level in the first cavity 11 subsequently.
[0116] In this embodiment, determining the corresponding relationship between the frequency of the sound signal and the sound pressure amplitude based on the sound signal enables the frequency of the sound signal corresponding to the peak sound pressure amplitude to be determined as the resonance frequency based on the resonance principle of the resonant cavity, realizing the determination of the resonance frequency and providing a basis for determining the liquid level in the first cavity 11 subsequently.
[0117] In some other embodiments, as shown in Figure 8 Based on the sound signal, determining the resonance frequency of the resonant cavity includes: S230: Based on the sound signal, determine the corresponding relationship between the frequency of the sound signal and the quality factor.
[0118] In step S230, based on the sound signal, the corresponding relationship between the frequency of the sound signal and the quality factor can be determined. The frequency of the sound signal can be, for example, the angular frequency of the sound signal, and the unit of the angular frequency can be, for example, Hertz (Hz) or kilohertz (kHz). The quality factor of the sound signal, that is, the sound amplification factor of the sound signal, is the ratio of the sound pressure in the resonant cavity to the external sound pressure. The sound amplification factor H can be calculated, for example, by the following formula (1):
[0119]
[0120] where P2 is the sound pressure in the resonant cavity, P1 is the external sound pressure, and R a , C a and M a represent the acoustic resistance, acoustic capacitance, and acoustic mass of the resonant cavity respectively. The acoustic resistance R a , acoustic mass M a and acoustic capacitance C a of the resonant cavity can be calculated, for example, by the following formulas (2), (3), and (4):
[0121]
[0122]
[0123]
[0124] Among them, ρ0 is the medium density, η is the shear viscosity coefficient of the liquid medium, ω is the angular frequency of the sound signal, c0 is the sound speed. For air at 20 °C, ρ0 = 1.21 kg / m 3 , η = 0.000018 Pa·s, c0 = 340 m / s. a, l, R, and S1 are respectively the radius of the second cavity 21, the length of the second cavity 21, the radius of the first cavity 11, and the cross-sectional area of the first cavity 11.
[0125] After determining the correspondence between the frequency and the quality factor of the sound signal, the frequency of the sound signal corresponding to the quality factor can be determined according to the quality factor. The correspondence between the frequency of the sound signal and the quality factor can be characterized, for example, by a frequency-quality factor spectrum diagram as Figure 9 shown. The horizontal axis in the figure represents the frequency of the sound signal, and the vertical axis represents the quality factor of the sound signal.
[0126] S240. Determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency.
[0127] In step S240, after determining the correspondence between the frequency and the quality factor of the sound signal, based on the resonance principle of the resonant cavity, the frequency of the sound signal corresponding to the peak value of the quality factor, that is, the maximum value of the quality factor, can be determined as the resonance frequency, realizing the determination of the resonance frequency, and providing a basis for subsequent determination of the liquid level in the first cavity 11.
[0128] In this embodiment, determining the correspondence between the frequency and the quality factor of the sound signal according to the sound signal can, based on the resonance principle of the resonant cavity, determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency, realizing the determination of the resonance frequency, and providing a basis for subsequent determination of the liquid level in the first cavity 11.
[0129] In some embodiments, based on the sound signal, determining the correspondence between the frequency and the sound pressure amplitude of the sound signal includes: performing Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrum diagram.
[0130] By performing Fourier transform processing on the time-domain signal of the sound signal, the time-domain signal can be converted into a frequency-domain signal to obtain a frequency-sound pressure amplitude spectrum diagram. Exemplarily, as Figure 10 shown, for example, as Figure 10Performing Fourier transform processing on the white noise signal shown as the sound source can obtain a spectrogram corresponding to the frequency and sound pressure amplitude of the white noise signal. In the figure, the horizontal axis represents the frequency of the white noise signal, and the vertical axis represents the sound pressure amplitude of the white noise signal. When performing Fourier transform processing on the sound signal passing through the resonant cavity, a corresponding frequency-sound pressure amplitude spectrogram can be obtained, and thus the corresponding relationship between the frequency and sound pressure amplitude of the sound signal can be determined, and further the resonance frequency of the resonant cavity can be determined.
[0131] In this embodiment, by performing Fourier transform processing on the sound signal, a frequency-sound pressure amplitude spectrogram can be obtained, realizing the determination of the corresponding relationship between the frequency and sound pressure amplitude of the sound signal, providing a basis for subsequent determination of the resonance frequency of the resonant cavity.
[0132] In some embodiments, when the first cavity 11 and the second cavity 21 are both cylinders or close to cylinders, refer to Figure 11 As shown, based on the resonance frequency, determining the liquid level in the first cavity 11 includes:
[0133] S310. Based on the resonance frequency, the radius of the first cavity, and the height and radius of the second cavity, determine the distance between the liquid surface in the first cavity and the connection between the first cavity and the second cavity.
[0134] In step S310, based on the resonance principle of the resonant cavity, the resonance frequency of the resonant cavity can be calculated by the following formula (5):
[0135]
[0136] Where C a and M a respectively represent the acoustic capacitance and acoustic mass of the resonant cavity. After substituting formulas (3) and (4), the following formula (6) is obtained:
[0137]
[0138] Where a, l, R, and S1 are respectively the radius of the second cavity 21, the length of the second cavity 21, the radius of the first cavity 11, and the cross-sectional area of the first cavity 11, and L is the distance between the liquid surface in the first cavity 11 and the connection between the first cavity 11 and the second cavity 21.
[0139] Therefore, after determining the resonance frequency, the distance L between the liquid surface in the first cavity 11 and the connection between the first cavity 11 and the second cavity 21 can be determined according to formula (6) based on the resonance frequency f r , the radius R of the first cavity 11, and the height l and radius a of the second cavity 21.
[0140] S320. Determine the liquid level in the first cavity based on the height and distance of the first cavity.
[0141] In step S320, since the height of the first cavity 11 is the sum of the distance L and the height of the liquid level in the first cavity 11, after determining the distance L between the liquid surface in the first cavity 11 and the connection between the first cavity 11 and the second cavity 21, the liquid level in the first cavity 11 can be determined based on the height of the first cavity 11 and the distance L, realizing the detection of the liquid level of the liquid in the first cavity 11.
[0142] In this embodiment, based on the resonance principle of the resonant cavity, the distance between the liquid surface in the first cavity 11 and the connection between the first cavity 11 and the second cavity 21 can be determined according to the resonance frequency, the radius of the first cavity 11, and the height and radius of the second cavity 21. Furthermore, the liquid level in the first cavity 11 can be determined based on the height of the first cavity 11 and this distance, realizing the detection of the liquid level of the liquid in the first cavity 11.
[0143] In an exemplary embodiment, a liquid level detection method is provided. The liquid level detection method uses the container described above for detection. The first cavity 11 and the second cavity 21 of the container are both cylinders or close to cylinders. Refer to Figure 12 As shown, the liquid level detection method includes:
[0144] S1. Obtain the sound signal in the resonant cavity collected by the pickup.
[0145] S2. Perform Fourier transform processing on the sound signal to obtain a frequency - sound pressure amplitude spectrogram.
[0146] S3. Determine the resonance frequency as the frequency of the sound signal corresponding to the peak sound pressure amplitude.
[0147] S4. Determine the distance between the liquid surface in the first cavity and the connection between the first cavity and the second cavity based on the resonance frequency, the radius of the first cavity, and the height and radius of the second cavity.
[0148] S5. Determine the liquid level in the first cavity based on the height of the first cavity and the distance.
[0149] In this embodiment, by acquiring a sound signal, the resonance frequency of the resonant cavity can be determined according to the sound signal, and the liquid level in the first cavity 11 can be determined according to the resonance frequency, thereby realizing the detection of the liquid level of the liquid in the first cavity 11. The first cavity 11 and the second cavity 21 respectively provided in the box body 10 and the cover body 20 of the container adopted by the liquid level detection method of this embodiment can form a resonant cavity. By using the characteristics of the resonant cavity, the liquid level in the first cavity 11 can be determined according to the sound signal detected by the pickup 30 by arranging the pickup 30 at the cover body 20. When the liquid level detection method of this embodiment is used for liquid level detection, the detection cost is relatively low, and factors such as water vapor can be prevented from interfering with the detection result, ensuring the detection accuracy.
[0150] In an exemplary embodiment, a liquid level detection device is provided. Refer to Figure 13 As shown, the liquid level detection device includes an acquisition module 60, a first determination module 70, and a second determination module 80. The acquisition module is used to acquire the sound signal in the resonant cavity collected by the pickup 30. The resonant cavity includes a first cavity 11 and a second cavity 21. The first cavity 11 is used to accommodate the liquid, the second cavity 21 is provided with the pickup 30, and the second cavity 21 is respectively connected to the first cavity 11 and the external environment. The first determination module 70 is used to determine the resonance frequency of the resonant cavity based on the sound signal. The second determination module 80 is used to determine the liquid level in the first cavity 11 based on the resonance frequency.
[0151] In this embodiment, by acquiring the sound signal in the resonant cavity through the acquisition module 60, the resonance frequency of the resonant cavity can be determined by the first determination module 70 according to the sound signal, and the liquid level in the first cavity 11 can be determined by the second determination module 80 according to the resonance frequency, thereby realizing the detection of the liquid level of the liquid in the first cavity 11. The first cavity 11 and the second cavity 21 respectively provided in the box body 10 and the cover body 20 of the container adopted by the liquid level detection method of this embodiment can form a resonant cavity. By using the characteristics of the resonant cavity, the liquid level in the first cavity 11 can be determined according to the sound signal detected by the pickup 30 by the controller through arranging the pickup 30 at the cover body 20. When the liquid level detection method of this embodiment is used for liquid level detection, the detection cost is relatively low, and factors such as water vapor can be prevented from interfering with the detection result, ensuring the detection accuracy.
[0152] In one embodiment, the first determination module 70 is further configured to: determine the correspondence between the frequency of the sound signal and the sound pressure amplitude based on the sound signal; and determine the frequency of the sound signal corresponding to the peak sound pressure amplitude as the resonance frequency.
[0153] In one embodiment, the first determination module 70 is further configured to: determine the correspondence between the frequency of the sound signal and the quality factor based on the sound signal; and determine the frequency of the sound signal corresponding to the peak quality factor as the resonance frequency.
[0154] In one embodiment, the first determination module 70 is further configured to: perform Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrogram.
[0155] In one embodiment, when both the first cavity 11 and the second cavity 21 are cylinders or near cylinders, the second determination module 80 is further configured to: determine the distance between the liquid level in the first cavity 11 and the connection between the first cavity 11 and the second cavity 21 based on the resonance frequency, the radius of the first cavity 11, and the height and radius of the second cavity 21; determine the liquid level in the first cavity 11 based on the height and distance of the first cavity 11.
[0156] In an exemplary embodiment, an electronic device is provided. The electronic device can be, for example, a mobile phone, a tablet computer, or other devices capable of performing liquid level detection.
[0157] Reference Figure 14 As shown, the electronic device may include one or more of the following components: a processing component 101, a memory 102, a power component 103, a multimedia component 104, an audio component 105, an input / output (I / O) interface 106, a sensor component 107, and a communication component 108.
[0158] The processing component 101 generally controls the overall operation of the electronic device, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 101 may include one or more processors 109 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 101 may include one or more modules to facilitate the interaction between the processing component 101 and other components. For example, the processing component 101 may include a multimedia module to facilitate the interaction between the multimedia component 104 and the processing component 101.
[0159] The memory 102 is configured to store various types of data to support the operation of the electronic device. Examples of these data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc. The memory 102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0160] The power component 103 provides power for various components of the electronic device. The power component 103 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device.
[0161] The multimedia component 104 includes a screen that provides an output interface between the electronic device and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 104 includes a front camera and / or a rear camera. When the electronic device is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0162] The audio component 105 is configured to output and / or input audio signals. For example, the audio component 105 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 102 or transmitted via the communication component 108. In some embodiments, the audio component 105 further includes a speaker for outputting audio signals.
[0163] The I / O interface 106 provides an interface between the processing component 101 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0164] The sensor component 107 includes one or more sensors for providing a status assessment of various aspects of the electronic device. For example, the sensor component 107 can detect the on / off state of the electronic device, the relative positioning of components, such as the display and the keypad of the electronic device. The sensor component 107 can also detect a change in the position of the electronic device or a component of the electronic device, the presence or absence of user contact with the electronic device, the orientation or acceleration / deceleration of the electronic device, and the temperature change of the electronic device. The sensor component 107 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 107 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 107 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0165] The communication component 108 is configured to facilitate communication between the electronic device and other devices in a wired or wireless manner. The device can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 108 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 108 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0166] In an exemplary embodiment, the electronic device can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described liquid level detection method.
[0167] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 102 including instructions, and the above instructions can be executed by the processor 109 of the electronic device to complete the above-described liquid level detection method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc. When the instructions in the storage medium are executed by the processor 109 of the electronic device, the electronic device is enabled to execute the liquid level detection method shown in the above embodiments.
[0168] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only to be considered exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0169] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
Claims
1. A container, characterized in that, Comprising: A box body (10), the interior of the box body (10) has a first cavity (11) for accommodating liquid, and an opening (12) communicating with the first cavity (11) is provided on the surface of the box body (10); A cover body (20), the cover body (20) has a second cavity (21), the cover body (20) is movably arranged at the opening (12) of the container (10) for closing or opening the opening (12); when the cover body (20) is in a state of closing the opening (12), the second cavity (21) is respectively communicated with the first cavity (11) and the external environment, and the second cavity (21) and the first cavity (11) are used to form a resonant cavity; A pick-up (30), arranged on the cover body (20), the pick-up (30) is used for collecting sound signals in the resonant cavity; A controller, arranged in the box body (10) or the cover body (20), the controller is communicatively connected with the pick-up (30), and the controller is used for determining the liquid level in the first cavity (11) according to the sound signal.
2. The container according to claim 1, characterized in that, The pick-up (30) is arranged at the place where the second cavity (21) communicates with the external environment.
3. The container according to claim 1, wherein Both the first cavity (11) and the second cavity (21) are cylinders or nearly cylinders, the height and radius of the second cavity (21) are both less than 1 / 10 of the wavelength of sound in the external environment, and the volume of the second cavity (21) is less than 1 / 10 of the volume of the first cavity (11).
4. The container according to claim 1, characterized in that, The cover body (20) is provided with a sealing structure, and the sealing structure is used for sealing the gap between the cover body (20) and the opening (12) when the cover body (20) closes the opening (12).
5. A cleaning device base station for docking with a cleaning device main body, characterized in that, The cleaning device base station includes the container according to any one of claims 1-4, and the cleaning device main body includes any one of a floor sweeper, a mopping machine, and a sweeping and mopping integrated machine.
6. An air conditioning device, characterized in that, The air conditioning device includes the container according to any one of claims 1-4, and the air conditioning device includes any one of a humidifier and a dehumidifier.
7. A cooking appliance, characterized in that, The cooking appliance includes the container according to any one of claims 1-4.
8. The cooking appliance according to claim 7, characterized in that, The cooking appliance is an electric rice cooker, the electric rice cooker includes an inner pot (51) with an opening (12) provided at the top and a rice cooker lid (52) capable of covering the opening (12), the inner pot (51) constitutes the box body (10), and the rice cooker lid (52) constitutes the cover body (20).
9. A liquid level detection method, characterized in that, Comprising: Obtaining the sound signal in the resonant cavity collected by the pick-up (30), the resonant cavity includes a first cavity (11) and a second cavity (21), the first cavity (11) is used for accommodating liquid, the second cavity (21) is provided with the pick-up (30), and the second cavity (21) is respectively communicated with the first cavity (11) and the external environment; Based on the sound signal, determining the resonance frequency of the resonant cavity; Based on the resonance frequency, determining the liquid level in the first cavity (11).
10. The liquid level detection method according to claim 9, characterized in that, The determining the resonance frequency of the resonant cavity based on the sound signal includes: Based on the sound signal, determine the corresponding relationship between the frequency and the sound pressure amplitude of the sound signal; Determine the frequency of the sound signal corresponding to the peak value of the sound pressure amplitude as the resonance frequency; and / or, The determining the resonance frequency of the resonant cavity based on the sound signal includes: Based on the sound signal, determine the corresponding relationship between the frequency and the quality factor of the sound signal; Determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency.
11. The liquid level detection method according to claim 10, wherein The determining the corresponding relationship between the frequency and the sound pressure amplitude of the sound signal based on the sound signal includes: Perform Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrogram.
12. The liquid level detection method according to claim 9, wherein, When the first cavity (11) and the second cavity (21) are both cylinders or close to cylinders, the determining the liquid level in the first cavity (11) based on the resonance frequency includes: Based on the resonance frequency, the radius of the first cavity (11), and the height and radius of the second cavity (21), determine the distance between the liquid surface in the first cavity (11) and the connection between the first cavity (11) and the second cavity (21); Based on the height of the first cavity (11) and the distance, determine the liquid level in the first cavity (11).
13. A liquid level detection device, characterized in that, Including: An acquisition module (60), the acquisition module (60) is used to acquire the sound signal in the resonant cavity collected by the pickup (30), the resonant cavity includes a first cavity (11) and a second cavity (21), the first cavity (11) is used to hold liquid, the second cavity (21) is provided with the pickup (30), and the second cavity (21) is respectively connected to the first cavity (11) and the external environment; A first determination module (70), the first determination module (70) is used to determine the resonance frequency of the resonant cavity based on the sound signal; A second determination module (80), the second determination module (80) is used to determine the liquid level in the first cavity (11) based on the resonance frequency.
14. The liquid level detection device according to claim 13, characterized in that The first determination module (70) is further used for: Based on the sound signal, determine the corresponding relationship between the frequency and the sound pressure amplitude of the sound signal; Determine the frequency of the sound signal corresponding to the peak value of the sound pressure amplitude as the resonance frequency; and / or, Based on the sound signal, determine the corresponding relationship between the frequency and the quality factor of the sound signal; Determine the frequency of the sound signal corresponding to the peak value of the quality factor as the resonance frequency.
15. The liquid level detection device according to claim 14, wherein, The first determination module (70) is further used for: performing Fourier transform processing on the sound signal to obtain a frequency-sound pressure amplitude spectrogram.
16. The liquid level detection device according to claim 13, wherein When the first cavity (11) and the second cavity (21) are both cylinders or close to cylinders, the second determination module (80) is further used for: Based on the resonance frequency, the radius of the first cavity (11), and the height and radius of the second cavity (21), determine the distance between the liquid surface in the first cavity (11) and the connection between the first cavity (11) and the second cavity (21); Determine the liquid level in the first cavity (11) based on the height of the first cavity (11) and the distance.
17. An electronic device, characterized in that, The electronic device includes: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: acquire a sound signal in a resonant cavity collected by a pickup (30), the resonant cavity including a first cavity (11) and a second cavity (21), the first cavity (11) being for accommodating liquid, the second cavity (21) being provided with the pickup (30), and the second cavity (21) being in communication with the first cavity (11) and the external environment respectively; determine the resonance frequency of the resonant cavity based on the sound signal; determine the liquid level in the first cavity (11) based on the resonance frequency.
18. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to execute a liquid level detection method, and the liquid level detection method includes: acquire a sound signal in a resonant cavity collected by a pickup (30), the resonant cavity including a first cavity (11) and a second cavity (21), the first cavity (11) being for accommodating liquid, the second cavity (21) being provided with the pickup (30), and the second cavity (21) being in communication with the first cavity (11) and the external environment respectively; determine the resonance frequency of the resonant cavity based on the sound signal; determine the liquid level in the first cavity (11) based on the resonance frequency.