A toilet control method, system and toilet based on millimeter wave radar

By combining millimeter wave radar technology with FSK and FMCW mode in smart toilets, combined with FFT calculation and amplitude variance calculation, the problem that existing smart toilets cannot detect static objects and the micro-movement of the human body is solved, and the accurate identification of the human body is achieved and Open cover control improves the reliability and accuracy of toilet control.

CN114814809BActive Publication Date: 2024-11-08XIAMEN JINGYI YUANDA INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210330230.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-11-08
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

When using millimeter-wave radar for human body recognition, existing smart toilets have problems such as inability to detect static objects and the micro-movement of the body, inaccurate distance measurement, and inconsistent responses to opening the cover are affected by different human body shapes.

Method used

A toilet control method based on millimeter wave radar is adopted to detect moving targets through FSK mode, switch to FMCW mode to judge stationary or small moving targets, combine FFT operation and amplitude variance calculation to accurately determine whether the target is in the toilet sensing area and output it Opening instructions.

Benefits of technology

It improves the reliability of toilet control, reduces the misjudgment rate, avoids the inconsistent response of the single FSK solution and the single FMCW solution, and realizes accurate detection and opening of the cover for different human bodies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114814809B_ABST
    Figure CN114814809B_ABST
Patent Text Reader

Abstract

The present invention relates to a toilet control method, system and toilet based on millimeter wave radar, and the method comprises the following steps: in response to the toilet lid being closed, the working mode of the millimeter wave radar is switched to FSK mode; an FSK frequency modulation signal is transmitted and the reflected FSK frequency modulation signal is received to judge whether there is a moving target close to the toilet, and if so, the working mode of the millimeter wave radar is switched to FMCW mode; an FMCW frequency modulation signal is transmitted and the reflected FMCW frequency modulation signal is received to judge whether there is a stationary or slightly moving target in the toilet sensing area, and if so, an opening instruction is output. The present invention adopts the FSK mode first and then the FMCW mode, and compared with the single FSK or single FMCW scheme, the reliability is improved and the false judgment rate is reduced, and the high false touch of the single FSK scheme and the inconsistent response of the single FMCW are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of toilet control, and in particular to a toilet control method and system based on millimeter wave radar, and a toilet. Background Art

[0002] The smart toilet can open the lid and ring of the toilet seat without contact. The principle is based on human body recognition. When a person approaches or leaves, the smart toilet will make corresponding action instructions. In order to accurately identify the approach or departure of a person, the smart toilet is set with a sensing range. The target needs to be within the sensing range before the lid opening instruction is issued.

[0003] Existing smart toilets generally use millimeter wave radars to achieve the above functions. They mostly adopt a one-transmit-one-receive design, and the waveform generally uses FSK (Frequency Shift Keying) or FMCW (Frequency Modulated Continuous Wave). The solution of using single FSK or single FMCW has the following disadvantages:

[0004] FSK radar: 1. It can only detect moving objects, not stationary objects, and cannot continuously detect slight movements of the human body; 2. The distance is the radial distance from the radar, and the sensing range on the left and right sides cannot be controlled.

[0005] FMCW radar: 1. Unable to accurately measure distance; 2. Affected by the height and body shape of the person, the cover opening response of different people is inconsistent.

[0006] The purpose of the present invention is to design a toilet control method, system and toilet based on millimeter wave radar to solve the problems existing in the prior art. Summary of the invention

[0007] In view of the problems existing in the above-mentioned prior art, the present invention provides a toilet control method, system and toilet based on millimeter-wave radar, which can effectively solve the problems existing in the above-mentioned prior art.

[0008] The technical solution of the present invention is:

[0009] A toilet control method based on millimeter wave radar comprises the following steps:

[0010] In response to the toilet lid being closed, the working mode of the millimeter wave radar is switched to the FSK mode;

[0011] Transmitting an FSK frequency modulation signal and receiving a reflected FSK frequency modulation signal to determine whether there is a moving target approaching the toilet, and if so, switching the working mode of the millimeter wave radar to the FMCW mode;

[0012] The FMCW frequency modulation signal is transmitted and the reflected FMCW frequency modulation signal is received to determine whether there is a stationary or slightly moving target in the toilet sensing area. If so, an opening instruction is output.

[0013] Further, the determining whether there is a moving target approaching the toilet includes:

[0014] Perform an FFT operation on the reflected FSK frequency modulation signal, calculate the distance of the target according to the phase difference, and when the distance of the target is within a first threshold range, determine that the target is close to the toilet.

[0015] Furthermore, the first threshold interval is 0-0.4m.

[0016] Further, the determining whether there is a stationary or slightly moving target in the toilet sensing area includes:

[0017] Performing a two-dimensional FFT operation on the FMCW frequency modulation signal reflected back in the N frames to obtain a first distance dimension, and calculating the amplitude variance of the first distance dimension;

[0018] If the amplitude variance is greater than a second threshold, it is determined that the target is in the toilet sensing area.

[0019] Furthermore, the frame rate of the millimeter wave radar is defined as M, N=a positive integer between 0.2M-1M.

[0020] Furthermore, the second threshold is 5000-15000.

[0021] Further, the process of determining whether there is a stationary or slightly moving target in the toilet sensing area, and if so, outputting the lid opening instruction, then executing the following steps:

[0022] If not, the working mode of the millimeter wave radar is switched to FSK mode.

[0023] Further, the determining whether there is a stationary or slightly moving target in the toilet sensing area includes:

[0024] Performing a two-dimensional FFT operation on the FMCW frequency modulation signal reflected back in the N frames to obtain a first distance dimension, and calculating the amplitude variance of the first distance dimension;

[0025] If the amplitude variance is less than a third threshold, it is determined that there is no target in the toilet sensing area, and the third threshold is 800-1200.

[0026] A toilet control system based on millimeter wave radar is further provided, comprising:

[0027] An FSK switching module is used to switch the working mode of the millimeter wave radar to the FSK mode in response to the toilet lid being closed;

[0028] An FMCW switching module is used to transmit an FSK frequency modulation signal and receive the reflected FSK frequency modulation signal to determine whether there is a moving target approaching the toilet. If so, the working mode of the millimeter wave radar is switched to FMCW mode;

[0029] The judgment module is used to transmit the FMCW frequency modulation signal and receive the reflected FMCW frequency modulation signal to judge whether there is a stationary or slightly moving target in the toilet sensing area, and if so, output the lid opening instruction.

[0030] A millimeter-wave radar-based toilet is further provided, comprising a toilet provided with a toilet cover, and comprising the millimeter-wave radar-based toilet control system, wherein the toilet cover is controlled by the millimeter-wave radar-based toilet control system.

[0031] Therefore, the present invention provides the following effects and / or advantages:

[0032] The present invention uses the one-transmit-one-receive system of millimeter wave radar, first uses the FSK mode to determine whether there is an active target approaching, and then uses the FMCW mode to determine whether the target is stationary and in the sensing area, and then determines whether the person needs to use the toilet and controls the opening of the toilet seat based on the approach and micro-movement detection of the person. Compared with the single FSK or single FMCW solution, the reliability is improved and the false judgment rate is reduced, avoiding the high false touch of the single FSK solution and the inconsistent response of the single FMCW solution.

[0033] This application can be implemented by only transmitting and receiving millimeter waves, without the need for complex antenna design.

[0034] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a schematic diagram of the process.

[0036] Figure 2 is a logical diagram.

[0037] Figure 3 A schematic diagram of the toilet sensor area. DETAILED DESCRIPTION

[0038] In order to facilitate understanding by those skilled in the art, the structure of the present invention is further described in detail with reference to the embodiments in conjunction with the accompanying drawings. It should be understood that the steps mentioned in the present embodiment, unless otherwise specified, can be adjusted in sequence according to actual needs, and can even be executed simultaneously or partially simultaneously.

[0039] refer to Figure 1-2. A toilet control method based on millimeter wave radar, comprising the following steps:

[0040] S1, in response to the toilet lid being closed, switching the working mode of the millimeter wave radar to the FSK mode;

[0041] Step 1 of this embodiment starts working after the toilet lid is closed. In FSK mode, the millimeter-wave radar sends an FSK frequency modulation signal with a frequency difference of 20 MHz to all directions. In this embodiment, as used herein, the term "FSK mode" may be considered synonymous with and / or referred to as: FSK modulation. To generate an FSK signal, the simplest method is to switch between two independent oscillators according to whether the input data bit is 0 or 1, thereby interleaving and generating two waveforms with different frequencies.

[0042] S2, transmitting an FSK frequency modulation signal and receiving a reflected FSK frequency modulation signal to determine whether there is a moving target approaching the toilet, and if so, switching the working mode of the millimeter wave radar to the FMCW mode;

[0043] By receiving the reflected FSK frequency modulation signal, the distance change between the active target and the radar can be calculated, thereby obtaining the current distance between the active target and the radar. Calculating the distance between the current target and the radar belongs to the prior art.

[0044] Since the target (such as a human body) is often active when approaching the toilet, this embodiment can determine whether there is a moving target approaching the toilet after calculating the distance of the moving target through the FSK mode of the radar. If there is a target approaching the toilet, the target will often become still or slightly active after approaching the toilet, and the FSK mode of the radar can no longer sense the target. Therefore, in this step, the working mode of the millimeter wave radar is switched to the FMCW mode.

[0045] S3, transmits an FMCW frequency modulation signal and receives the reflected FMCW frequency modulation signal to determine whether there is a stationary or slightly moving target in the toilet sensing area, and if so, outputs an opening instruction.

[0046] In this embodiment, as used herein, the term "FMCW mode" may be considered synonymous with and / or referred to as the following terms: FMCW mode mainly transmits and receives continuous millimeter waves, mixes the echo signal with the local oscillator signal, and uses the mixing detection technology to measure the frequency difference between the transmission and reception, and then converts the frequency difference into the distance of the target. Specifically, the millimeter wave is reflected after hitting the target, and the reflection affects the frequency of the millimeter wave - if the target approaches the radar, the frequency will increase; if the target moves away from the radar, the frequency will decrease. When the reflected wave returns to the detector, compared with the frequency at the time of transmission, the difference between the two frequencies can be measured, thereby calculating the distance information of the object.

[0047] Through step S2, this embodiment preliminarily determines that a target is close to the toilet. Next, through step S3, this embodiment can accurately determine whether the target is in the toilet sensing area. Figure 1 As shown, the toilet sensing area generally refers to within 40 cm in front of the toilet bowl and within 20 cm on the side of the toilet. When the target is close to the toilet and resides in the toilet sensing area, it is determined that a human body needs to use the toilet, and then a corresponding instruction is issued. In this embodiment, the radar transmits an FMCW frequency modulation signal in FMCW mode and receives the reflected FMCW frequency modulation signal, thereby calculating the distance between the stationary target and the toilet, and outputs an opening instruction if it is in the toilet sensing area.

[0048] Therefore, this embodiment uses the one-transmit-one-receive system of the millimeter wave radar, first uses the FSK mode to determine whether there is an active target approaching, and then uses the FMCW mode to determine whether the target is stationary and in the sensing area, and then determines whether the person needs to use the toilet and controls the opening of the toilet seat based on the approach and micro-motion detection of the person. Compared with the single FSK or single FMCW solution, the reliability is improved and the false judgment rate is reduced, avoiding the high false touch of the single FSK solution and the inconsistent response of the single FMCW solution.

[0049] Some specific or optimized directions of this application are introduced below.

[0050] Further, the determining whether there is a moving target approaching the toilet includes:

[0051] Perform FFT operation on the reflected FSK frequency modulation signal, calculate the distance of the target based on the phase difference, and when the distance of the target in front of the toilet is within the first threshold interval, it is determined that the target is close to the toilet. The first threshold interval is 0-0.4m. For example, in this application, the installation position of the millimeter-wave radar is 0.7m away from the front end of the toilet. When the distance between the millimeter-wave radar and the target is 0.7-1.1m, it is determined that the target is close to the toilet.

[0052] For example, in this embodiment, the reflected signal is a time-delayed replica of the transmitted signal, and the echo delay is linearly related to the beat frequency. The echo delay can be calculated by the beat frequency, thereby calculating the target distance.

[0053] refer to Figure 3 The present application further defines the first threshold interval as a condition for the target to be close to the toilet. This is because the applicant has found that the target is often active when approaching the toilet. Only when the distance between the target and the front side of the toilet is 0-0.4m, the target's moving speed is greatly reduced and gradually turns to stillness or micro-activity. The first threshold interval can effectively screen whether the target is close to the toilet and reduce misjudgment.

[0054] Further, the determining whether there is a stationary or slightly moving target in the toilet sensing area includes:

[0055] Perform a two-dimensional FFT operation on the N frames of the reflected FMCW frequency modulation signal to calculate the first distance dimension, and calculate the amplitude variance of the first distance dimension; define the frame rate of the millimeter wave radar as M, N = a positive integer between 0.2M and 1M, and the second threshold is 5000-15000;

[0056] If the amplitude variance is greater than a second threshold, it is determined that the target is in the toilet sensing area.

[0057] In this embodiment, the frame rate of the millimeter wave radar is M=20, then N is a positive integer between 4 and 20. Further, in this application, N is 10, and the second threshold is 5000. In other embodiments, the second threshold may also be 10000 or 15000. The second threshold is related to the hardware of the calculation. Based on the computing power of the hardware, different hardware has different limits on different second thresholds.

[0058] Through this step, a two-dimensional FFT operation is performed on each FMCW frequency modulation signal in the most recent 10 historical frames to obtain the FFT data of the first distance dimension, and then the amplitude variance of the first distance dimension is calculated through the FFT data of the first distance dimension in the past 10 frames. If the variance is greater than 5000, it is considered that there is a definite target in the sensing area. At this time, the cover opening instruction can be output.

[0059] Further, the process of determining whether there is a stationary or slightly moving target in the toilet sensing area, and if so, outputting the lid opening instruction, then executing the following steps:

[0060] S4, if not, switch the working mode of the millimeter wave radar to FSK mode.

[0061] The determining whether there is a stationary or slightly moving target in the toilet sensing area includes:

[0062] Performing a two-dimensional FFT operation on the FMCW frequency modulation signal reflected back in the N frames to obtain a first distance dimension, and calculating the amplitude variance of the first distance dimension;

[0063] If the amplitude variance is less than a third threshold, it is determined that there is no target in the toilet sensing area, and the third threshold is 800-1200.

[0064] In this step, since the working process of the millimeter wave radar in the toilet is continuous, when the radar does not detect the target in the FMCW mode, the working mode of the millimeter wave radar should be switched back to the FSK mode. In this step, the two-dimensional FFT operation is performed on the FMCW frequency modulation signal reflected back by the N frames to calculate the first distance dimension. The working principle of calculating the amplitude variance of the first distance dimension is exactly the same as the above steps, except for how to judge that the target does not exist in the toilet sensing area. In this step, it is determined that the target does not exist in the toilet sensing area by the amplitude variance being less than the third threshold. Specifically, the third threshold is 800-1200, and the third threshold in this embodiment is 1000. When it is less than 1000, it can be determined that the radar does not sense the stationary or slightly moving target in the toilet sensing area through the FMCW mode. In other embodiments, the third threshold may also be 800 or 1200. At this time, the working mode of the millimeter wave radar is switched to the FSK mode, so that it can return to the FSK mode to re-judge whether there is a moving target close to the toilet.

[0065] Experimental data

[0066] The method provided in Example 1 is used for testing and compared with the working mode of the millimeter wave radar in a separate FSK mode or a separate FMCW mode.

[0067] Through the test personnel of different heights randomly walking close to the toilet for multiple times and taking statistics, the toilet lid opening rate of the method provided in Example 1 is 99%, the average lid opening time is 1.5s, and the average false touch rate is 10%. The lid opening rate of the single FSK mode is 95%, the average lid opening time is 1.0s, and the average false touch rate is 30%. The lid opening rate of the single FMCW mode is 95%, the average lid opening time is 2.1s, and the average false touch rate is 20%. It can be seen that the method provided in Example 1 improves the accuracy of the toilet's target judgment of people of different heights and different walking methods approaching the toilet, thereby improving the lid opening rate and reducing the false judgment lid opening rate.

[0068] Embodiment 2

[0069] A toilet control system based on millimeter wave radar, comprising:

[0070] An FSK switching module is used to switch the working mode of the millimeter wave radar to the FSK mode in response to the toilet lid being closed;

[0071] An FMCW switching module is used to transmit an FSK frequency modulation signal and receive the reflected FSK frequency modulation signal to determine whether there is a moving target approaching the toilet. If so, the working mode of the millimeter wave radar is switched to FMCW mode;

[0072] The judgment module is used to transmit the FMCW frequency modulation signal and receive the reflected FMCW frequency modulation signal to judge whether there is a stationary or slightly moving target in the toilet sensing area, and if so, output the lid opening instruction.

[0073] The working principle of this embodiment is basically the same as that of the first embodiment, and will not be described in detail here.

[0074] Embodiment 3

[0075] A toilet based on millimeter wave radar comprises a toilet provided with a toilet cover, and comprises a toilet control system based on millimeter wave radar as described in Example 2, wherein the toilet cover is controlled by the toilet control system based on millimeter wave radar.

[0076] The working principle of this embodiment is basically the same as that of the first embodiment, and will not be described in detail here.

[0077] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0078] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0079] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0080] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0081] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0082] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0083] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0084] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0085] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0086] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0087] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

Claims

1. A toilet control method based on millimeter wave radar, characterized in that: The following steps are involved: In response to the toilet lid being closed, the working mode of the millimeter wave radar is switched to the FSK mode; Transmit an FSK frequency modulation signal and receive a reflected FSK frequency modulation signal to determine whether there is a moving target close to the toilet, specifically: perform an FFT operation on the reflected FSK frequency modulation signal, calculate the distance of the target according to the phase difference, and when the distance of the target in front of the toilet is within a first threshold interval, determine that the target is close to the toilet; If yes, the working mode of the millimeter wave radar is switched to FMCW mode; Transmitting an FMCW frequency modulation signal and receiving a reflected FMCW frequency modulation signal, determining whether there is a stationary or slightly moving target in the toilet sensing area, specifically: performing a two-dimensional FFT operation on the N frames of the reflected FMCW frequency modulation signal, calculating the first distance dimension, and calculating the amplitude variance of the first distance dimension; if the amplitude variance is less than a third threshold, determining that there is no target in the toilet sensing area; If yes, then output the cover opening instruction; Otherwise, the working mode of the millimeter wave radar is switched to FSK mode.

2. The toilet control method based on millimeter wave radar according to claim 1, characterized in that: The first threshold interval is 0-0.4m.

3. The toilet control method based on millimeter wave radar according to claim 1, characterized in that: The determining whether there is a stationary or slightly moving target in the toilet sensing area includes: Performing a two-dimensional FFT operation on the FMCW frequency modulation signal reflected back in the N frames to obtain a first distance dimension, and calculating the amplitude variance of the first distance dimension; If the amplitude variance is greater than a second threshold, it is determined that the target is in the toilet sensing area.

4. A toilet control method based on millimeter wave radar according to claim 3, characterized in that: The frame rate of the millimeter wave radar is defined as M, where N is a positive integer between 0.2M and 1M.

5. The toilet control method based on millimeter wave radar according to claim 3, characterized in that: The second threshold is 5000-15000.

6. The toilet control method based on millimeter wave radar according to claim 1, characterized in that: The third threshold is 800-1200.

7. A toilet control system based on millimeter wave radar, characterized in that: include: An FSK switching module is used to switch the working mode of the millimeter wave radar to the FSK mode in response to the toilet lid being closed; The FMCW switching module is used to transmit an FSK frequency modulation signal and receive the reflected FSK frequency modulation signal to determine whether there is a moving target close to the toilet. Specifically, it is used to: perform FFT operation on the reflected FSK frequency modulation signal, calculate the distance of the target according to the phase difference, and when the distance of the target in front of the toilet is within the first threshold interval, it is determined that the target is close to the toilet. If so, the working mode of the millimeter wave radar is switched to the FMCW mode; A judgment module is used to transmit an FMCW frequency modulation signal and receive a reflected FMCW frequency modulation signal to judge whether there is a stationary or slightly moving target in the toilet sensing area, and is specifically used to: perform a two-dimensional FFT operation on the N frames of the reflected FMCW frequency modulation signal to calculate the first distance dimension, and calculate the amplitude variance of the first distance dimension; if the amplitude variance is less than a third threshold, it is determined that there is no target in the toilet sensing area; If yes, then output the cover opening instruction; Otherwise, the working mode of the millimeter wave radar is switched to FSK mode.

8. A toilet based on millimeter wave radar, comprising a toilet, wherein the toilet is provided with a toilet cover, characterized in that: It includes a toilet control system based on millimeter wave radar as described in claim 7, and the toilet cover is controlled by the toilet control system based on millimeter wave radar.