Intelligent toilet door lock controller and system based on millimeter wave radar
By using millimeter-wave radar in public toilets to detect heart rate abnormalities and automatically control door locks, the problems of rapid rescue and lock damage in the existing technology are solved, and safe and timely rescue and privacy protection are achieved in emergencies.
Patent Information
- Application Number
- CN202421511987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2034-06-28
AI Technical Summary
The existing public toilet door locks are difficult to quickly rescue when people are unconscious or critical, and the single lock core design needs to be sawed out of the lock in an emergency, which may damage the lock and affect use.
Design an intelligent door lock control system based on millimeter wave radar to detect heart rate abnormalities of people in the toilet through the radar module, the MCU module analyzes the signal, triggering the local door lock control module to automatically open the inner lock and lock the outer lock to ensure privacy and security , and the wireless remote alarm module sends an alarm.
It realizes that while ensuring privacy, abnormal conditions of personnel in the toilet are monitored in a timely manner, and the possibility of emergency rescue is improved, and lock damage and resource waste are avoided.
Smart Images

Figure CN222350471U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of intelligent door lock control, in particular to a toilet intelligent door lock controller and system based on millimeter wave radar. Background Art
[0002] With the development of society, people's requirements for privacy protection have increased, and the independence of public toilets has also been improved. However, once the people inside are in danger, such as coma or shock, people outside have no way of knowing, and it is difficult to rescue them quickly, often missing the best rescue period. On the other hand, most public toilets now have single lock cylinders, which means that only the inside can be opened. If the person inside loses consciousness, the lock cylinder can only be sawed open. This is not only time-consuming, but may also cause irreversible damage to the lock, affecting the normal use of the toilet. Summary of the invention
[0003] The utility model aims to at least solve the technical problems existing in the prior art, and in particular innovatively proposes a toilet intelligent door lock controller and system based on millimeter wave radar.
[0004] In order to achieve the above-mentioned purpose of the utility model, the utility model provides a bathroom intelligent door lock controller based on millimeter wave radar, including: a radar module, an MCU module, a wireless remote alarm module, a local door lock control module and a power supply module, the data output end of the radar module is connected to the data input end of the MCU module, and the data output end of the MCU module is respectively connected to the data input end of the wireless remote alarm module and the local door lock control module;
[0005] The power supply module is respectively connected to the radar module, the MCU module and the wireless remote alarm module to provide power for the radar module, the MCU module and the wireless remote alarm module.
[0006] Furthermore, the radar module includes:
[0007] The crystal oscillator terminal CLKP of the radar chip U1A and the first end of the crystal oscillator X1 are connected to the first end of the capacitor C1; the second end of the capacitor C1 is connected to the power ground;
[0008] The external clock terminal CLKM of the radar chip U1A and the second end of the crystal oscillator X1 are connected to the first end of the capacitor C2; the second end of the capacitor C2 is connected to the power ground;
[0009] The radar signal output terminal VOUT_PA of the radar chip U1A sends out an amplified radar signal. Through power amplification, the radar system can achieve target detection and tracking at a longer distance, improving the radar's detection capability and communication efficiency.
[0010] The internal low-dropout linear regulator output terminal VOUT_14APLL of the radar chip U1A is connected to the power supply RADAR_3V3.
[0011] The output terminal VOUT_14SYNTH of the internal low-dropout linear regulator of the radar chip U1A is connected to the power supply RADAR_3V3.
[0012] The bandgap reference output terminal VBGAP of the radar chip U1A is connected to the power supply RADAR_3V3.
[0013] Furthermore, the MCU module includes:
[0014] The startup mode configuration terminal BOOT0 of the microcontroller U2 is connected to the first end of the resistor R5 and the first end of the resistor R8, the second end of the resistor R5 is connected to the power supply 3V3, and the second end of the resistor R8 is connected to the power ground.
[0015] The power monitoring enable terminal PDR_ON of the microcontroller U2 is connected to the first end of the resistor R6 and the first end of the resistor R7. The second end of the resistor R6 is connected to the power supply 3V3. The second end of the resistor R7 is connected to the power ground.
[0016] The external clock input terminal PC14-OSC32_IN of the microcontroller U2 is connected to the first terminal of the crystal oscillator X2 and the first terminal of the capacitor C3.
[0017] The external clock input terminal PC15-OSC32_OUT of the microcontroller U2 is connected to the first end of the crystal oscillator X2 and the first end of the capacitor C4, and the second end of the capacitor C3 and the second end of the capacitor C4 are connected to the power ground;
[0018] The clock signal input terminal PH0-OSC_IN of the microcontroller U2 is connected to the first end of the crystal oscillator X3 and the first end of the resistor R1, the second end of the resistor R1 is connected to the first end of the capacitor C5, and the second end of the capacitor C5 is connected to the power ground;
[0019] The clock signal output terminal PH1-OSC_OUT of the microcontroller U2 is connected to the second end of the crystal oscillator X3 and the first end of the resistor R2, the second end of the resistor R2 is connected to the first end of the capacitor C6, and the second end of the capacitor C6 is connected to the power ground;
[0020] The power supply terminals VDD_5, VDD_12, VDD_4, VDD_6, VDD_7, VDD_1, VDD_8, VDD_2, VDD_10, VDD_11, and VDD_3 of the microcontroller U2 are connected to the power supply VDD_MCU;
[0021] The power supply terminal VDDA of the microcontroller U2 is connected to the first end of the resistor R9, the first end of the capacitor C8, the positive electrode of the polarized capacitor C7, and the first end of the inductor L1. The second end of the inductor L1 is connected to the power supply VDD_MCU; the negative electrode of the polarized capacitor C7 and the second end of the capacitor C8 are connected to the power ground;
[0022] The reference voltage terminal VREF+ of the microcontroller U2 is connected to the first end of the capacitor C10, the positive electrode of the polarized capacitor C9, and the second end of the resistor R9; the negative electrode of the polarized capacitor C9 and the second end of the capacitor C10 are connected to the power ground;
[0023] The power supply terminal VDD_USB of the microcontroller U2 is connected to the first end of the capacitor C13, the positive electrode of the polar capacitor C12, and the first end of the resistor R11, and the second end of the resistor R11 is connected to the power supply VDD_MCU; the negative electrode of the polar capacitor C12 and the second end of the capacitor C13 are connected to the power ground;
[0024] The ground terminals VSS_5, VSS_4, VSS_6, VSS_7, VSS_8, VSS_9, VSS_2, VSS_10, VSS_11, and VSSA_VREF of the microcontroller U2 are connected to the power ground;
[0025] The power supply terminal VBAT of the microcontroller U2 is connected to the first end of the capacitor C11 and the first end of the resistor R10; the second end of the capacitor C11 is connected to the power ground, and the second end of the resistor R10 is connected to the power supply VDD_MCU;
[0026] The external capacitor terminal VCAP2 of the microcontroller U2 is connected to a first terminal of the capacitor C18, and a second terminal of the capacitor C18 is connected to a power ground;
[0027] The external capacitor terminal VCAP1 of the microcontroller U2 is connected to a first terminal of the capacitor C17, and a second terminal of the capacitor C17 is connected to a power ground.
[0028] Furthermore, the local door lock control module includes:
[0029] The data transmission terminal PC10 of the microcontroller U2 is connected to the first end of the resistor R2, the second end of the resistor R2 is connected to the collector of the transistor Q2, the emitter of the transistor Q2 is connected to the power ground, the collector of the transistor Q2 is connected to the first end of the inner locking motor B1, and the second end of the inner locking motor B1 is connected to the power supply 3V3;
[0030] The data transmission terminal PC12 of the microcontroller U2 is connected to the first end of the resistor R21, the second end of the resistor R21 is connected to the collector of the transistor Q3, the emitter of the transistor Q3 is connected to the power ground, the collector of the transistor Q3 is connected to the first end of the external lock motor B2, and the second end of the external lock motor B2 is connected to the power supply 3V3.
[0031] When the radar monitoring system detects abnormal heart rate or other dangerous conditions in the toilet, the microcontroller U2 will receive these abnormal signals. Once the signal is received, U2 will immediately send instructions to the inner lock motor B1 and the outer lock motor B2. The inner lock motor B1 will automatically open the inner lock cylinder, allowing outsiders to use the safety key to open the toilet door without destroying the lock cylinder for emergency rescue. At the same time, the outer lock motor B2 will lock the outer lock cylinder to ensure that the privacy of the people inside the toilet is protected during the rescue process. In this way, the safety of the people is guaranteed and the right to privacy is maintained.
[0032] Furthermore, the local door lock control module also includes an alarm:
[0033] The data transmission terminal PC8 of the microcontroller U2 is connected to the first end of the resistor R1, the second end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the power ground, the collector of the transistor Q1 is connected to the first end of the alarm (buzzer) LS1, and the second end of the alarm LS1 is connected to the power supply 3V3.
[0034] When the system detects an abnormal heart rate or other dangerous conditions in the bathroom, in addition to opening the inner door lock and locking the outer door lock, an alarm sounds to remind people of the abnormal situation.
[0035] Furthermore, the wireless remote alarm module includes:
[0036] The power supply terminal VCC of the wireless remote alarm M1, the first end of the capacitor C19, the first end of the resistor R14, and the first end of the resistor R13 are connected to the power supply 3V3, and the second end of the capacitor C19 is connected to the power ground;
[0037] The chip select terminal CS of the wireless remote alarm M1 is connected to the second end of the resistor R14.
[0038] The reset terminal RST of the wireless remote alarm M1 is connected to the second end of the resistor R13 and the first end of the capacitor C20, and the second end of the capacitor C20 is connected to the power ground;
[0039] The alarm signal transmission terminal Alarm of the wireless remote alarm M1 is connected to the data transmission terminal of the microcontroller U2;
[0040] The ground terminal of the wireless remote alarm M1 is connected to the power ground.
[0041] When the system detects an abnormal heart rate of a person in the toilet, the wireless remote alarm is used to send a wireless signal to the alarm in the security room, causing the alarm in the security room to sound.
[0042] Furthermore, the power supply module includes:
[0043] The power input terminal Vin of the voltage regulator U3, the first end of the capacitor C14, and the first end of the battery BT1 are connected to the 5V power supply, and the second end of the battery BT1 is connected to the power ground, wherein the battery BT1 serves as a backup power supply. When there is no external 5V power supply, the built-in power supply BT1 is used for power supply. The power output terminal Vout and the heat dissipation terminal Tab of the voltage regulator U3 are connected to the first end of the capacitor C15 and the first end of the fuse SB1, and the second end of the fuse SB1 is connected to the first end of the capacitor C16 and the first end of the resistor R12. The second end of the fuse SB1 outputs two power supplies, namely the power supply 3V3 and the power supply VDD_MCU, which have the same voltage. The power supply VDD_MCU is used to power the MCU, and the power supply 3V3 is used to power the radar chip; the second end of the resistor R12 outputs the power supply RADAR_3V3; the second end of the capacitor C14, the second end of the capacitor C15, the second end of the capacitor C16, and the ground terminal Gnd of the voltage regulator U3 are connected to the power ground; the model of the voltage regulator U3 is preferably LD1117S33TR.
[0044] Furthermore, the model of radar chip U1A is IWR6843QAGABL.
[0045] Furthermore, the model of the microcontroller U2 is STM32F413H.
[0046] The present invention also proposes a bathroom intelligent door lock system based on millimeter wave radar, wherein the bathroom intelligent door lock controller based on millimeter wave radar is installed on the bathroom intelligent door.
[0047] In summary, due to the adoption of the above technical solution, compared with the existing smart door lock, the utility model can effectively monitor the abnormal conditions of people in the toilet, such as coma or shock, while ensuring the protection of the privacy of people in the toilet, so as to provide timely help to people who have accidents in the toilet and increase their chances of survival. At the same time, it avoids the situation where the door lock can only be sawed off in the event of an accident, which can save resources and costs.
[0048] Additional aspects and advantages of the present invention will be given in part in the following description, and in part will become apparent from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0050] Figure 1 It is a flow chart of the utility model toilet intelligent door lock control system.
[0051] Figure 2It is a schematic diagram of the connection relationship between the radar module of the utility model and the MCU.
[0052] Figure 3 It is a schematic diagram of the signal processing and data analysis algorithm flow of the utility model.
[0053] Figure 4 It is a control logic schematic diagram of the local door lock control module of the utility model.
[0054] Figure 5 The utility model is a control logic schematic diagram of a wireless remote alarm module.
[0055] Figure 6 It is a circuit connection diagram of the radar module of the utility model.
[0056] Figure 7 It is a circuit connection diagram of the MCU main control module of the utility model.
[0057] Figure 8 The utility model is a circuit connection diagram of a wireless remote alarm module.
[0058] Fig. 9 It is a circuit connection diagram of the power supply module of the utility model.
[0059] Fig.10 It is an assembly schematic diagram of the utility model. DETAILED DESCRIPTION
[0060] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0061] The utility model provides a bathroom intelligent door lock controller based on millimeter wave radar, which uses 60-64GHz millimeter wave radar to transmit electromagnetic waves, receives signals reflected by small movements of multiple people in the environment, extracts heartbeat information from radar signals through advanced signal processing and data analysis algorithms to measure heart rate, and determines whether to issue an alarm and open the inner door lock based on whether the heart rate of people inside the toilet is abnormal, so that security personnel can treat the injured in time. Figure 1 As shown:
[0062] First, the millimeter-wave radar module transmits electromagnetic waves to the personnel in the detection space environment and receives the echo;
[0063] Then: the echo data sampled by the radar module is transmitted to the MCU, and the heart rate is analyzed and processed by the MCU to calculate the heartbeat information of the people in the detection space environment to measure the heart rate;
[0064] Finally, the local door lock control module and the wireless remote alarm module are used to determine whether the heart rate is abnormal to monitor whether an accident has occurred to the internal personnel. If an accident occurs, a series of safety measures are taken, such as sounding an alarm and opening the inner door lock.
[0065] The radar module transmits millimeter wave signals through the TX antenna, and the RX antenna receives the reflected signals. The A / D converter in the module converts the received analog signals into digital signals for subsequent signal processing and analysis. Figure 2 As shown, the radar module transmits the converted data to the main control unit through the SPI module. The SPI module includes four main signal lines: CLK, MISO, MOSI and CS.
[0066] The MCU is mainly responsible for processing the data transmitted by the radar module through an efficient algorithm and calculating the heart rate information contained in the signal. The algorithm processing flow is as follows: Figure 3 : By analyzing the echo signal received by the radar (such as the signal reflected from the human chest or abdomen), signal processing technology (such as FFT transformation, phase extraction, etc.) is used to extract the heartbeat phase information and further estimate the heartbeat rate, that is, the heart rate.
[0067] The local door lock control module mainly monitors whether the internal personnel have an accident by checking whether the heart rate is abnormal, and determines whether a series of safety measures such as issuing an alarm and opening the internal door lock are needed. Its specific control logic is as follows Figure 4 As shown: First, determine whether the calculated heart rate H is within the range of the threshold [H1, H2]. If it is, keep the current state; if not, determine that the person in the bathroom may have an accident, the door lock sounds an alarm, and the inner door lock is opened and the outer door lock is closed.
[0068] The wireless remote alarm module determines whether to send a wireless signal to the security room alarm by monitoring whether the heart rate of the people in the toilet is abnormal, so that the alarm in the security room sounds. Its control logic is as follows Figure 5 As shown: First, determine whether the calculated heart rate H is within the range of the threshold [H1, H2]. If it is, keep the current state; if not, determine that the person in the bathroom may have an accident, send a wireless signal to the security room, and sound the alarm in the security room.
[0069] Figure 6 This is a circuit connection diagram of the radar module of the utility model: the crystal oscillator terminal CLKP of the radar chip U1A, the first end of the crystal oscillator X1 and the first end of the capacitor C1 are connected; the second end of the capacitor C1 is connected to the power ground;
[0070] The external clock terminal CLKM of the radar chip U1A and the second end of the crystal oscillator X1 are connected to the first end of the capacitor C2; the second end of the capacitor C2 is connected to the power ground;
[0071] The radar signal output terminal VOUT_PA of the radar chip U1A sends out an amplified radar signal. Through power amplification, the radar system can achieve target detection and tracking at a longer distance, improving the radar's detection capability and communication efficiency.
[0072] The internal low-dropout linear regulator output terminal VOUT_14APLL of the radar chip U1A is connected to the power supply RADAR_3V3.
[0073] The output terminal VOUT_14SYNTH of the internal low-dropout linear regulator of the radar chip U1A is connected to the power supply RADAR_3V3.
[0074] The bandgap reference output terminal VBGAP of the radar chip U1A is connected to the power supply RADAR_3V3;
[0075] The preferred model of radar chip U1A is IWR6843QAGABL.
[0076] Figure 7 The schematic diagram of the circuit connection of the MCU main control module of the utility model is shown in Figure 1. The startup mode configuration terminal BOOT0 of the microcontroller U2 is connected to the first end of the resistor R5 and the first end of the resistor R8. The second end of the resistor R5 is connected to the power supply 3V3. The second end of the resistor R8 is connected to the power supply ground.
[0077] The power monitoring enable terminal PDR_ON of the microcontroller U2 is connected to the first end of the resistor R6 and the first end of the resistor R7. The second end of the resistor R6 is connected to the power supply 3V3. The second end of the resistor R7 is connected to the power ground.
[0078] The data transmission terminal PC8 of the microcontroller U2 is connected to the first end of the resistor R1, the second end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the power ground, the collector of the transistor Q1 is connected to the first end of the alarm (buzzer) LS1, and the second end of the alarm LS1 is connected to the power supply 3V3;
[0079] The data transmission terminal PC10 of the microcontroller U2 is connected to the first end of the resistor R2, the second end of the resistor R2 is connected to the collector of the transistor Q2, the emitter of the transistor Q2 is connected to the power ground, the collector of the transistor Q2 is connected to the first end of the inner locking motor B1, and the second end of the inner locking motor B1 is connected to the power supply 3V3;
[0080] The data transmission terminal PC12 of the microcontroller U2 is connected to the first end of the resistor R21, the second end of the resistor R21 is connected to the collector of the transistor Q3, the emitter of the transistor Q3 is connected to the power ground, the collector of the transistor Q3 is connected to the first end of the external lock motor B2, and the second end of the external lock motor B2 is connected to the power supply 3V3;
[0081] The external clock input terminal PC14-OSC32_IN of the microcontroller U2 is connected to the first terminal of the crystal oscillator X2 and the first terminal of the capacitor C3.
[0082] The external clock input terminal PC15-OSC32_OUT of the microcontroller U2 is connected to the first end of the crystal oscillator X2 and the first end of the capacitor C4, and the second end of the capacitor C3 and the second end of the capacitor C4 are connected to the power ground;
[0083] The clock signal input terminal PH0-OSC_IN of the microcontroller U2 is connected to the first end of the crystal oscillator X3 and the first end of the resistor R1, the second end of the resistor R1 is connected to the first end of the capacitor C5, and the second end of the capacitor C5 is connected to the power ground;
[0084] The clock signal output terminal PH1-OSC_OUT of the microcontroller U2 is connected to the second end of the crystal oscillator X3 and the first end of the resistor R2, the second end of the resistor R2 is connected to the first end of the capacitor C6, and the second end of the capacitor C6 is connected to the power ground;
[0085] Crystal oscillator X2 is an internal low-speed crystal oscillator (32.768kHz), which is connected to LSE (low-speed external clocksignal) and finally reaches RTC (real-time clock). RTC is an independent timer that can record the current system time and date for the system in real time, regardless of whether the chip is powered off. If you want to use RTC to record the system time in real time, the chip needs to be connected to an additional backup power supply, usually a button battery. In this way, the RTC can continue to run with battery power after the chip is powered off. For situations where the system time does not need to be recorded after power off, we discard the low-speed crystal oscillator to save board space and simplify circuit design.
[0086] Crystal oscillator X3 is an external high-speed crystal oscillator (8MHZ), which is connected to HSE (high-speed external clocksignal) and finally reaches SYSCLK (system clock). SYSCLK is the system clock, which provides power for the operation of various modules inside the chip and is indispensable. As the source of the system clock, the high-speed crystal oscillator can be provided by the HSI RC clock source inside the chip or an independent clock source outside the chip. When using the HSIRC clock source inside the chip as the system clock, it is found that the clock is deviated, resulting in the serial port device being unusable. Since the HSI RC clock source inside the chip is not accurate enough, we usually use an external independent clock source to provide the system clock for the chip.
[0087] Therefore, in actual use, an external high-speed crystal oscillator is indispensable to provide the system clock for the chip so that the chip can work normally.
[0088] The power supply terminals VDD_5, VDD_12, VDD_4, VDD_6, VDD_7, VDD_1, VDD_8, VDD_2, VDD_10, VDD_11, and VDD_3 of the microcontroller U2 are connected to the power supply VDD_MCU;
[0089] The power supply terminal VDDA of the microcontroller U2 is connected to the first end of the resistor R9, the first end of the capacitor C8, the positive electrode of the polarized capacitor C7, and the first end of the inductor L1. The second end of the inductor L1 is connected to the power supply VDD_MCU; the negative electrode of the polarized capacitor C7 and the second end of the capacitor C8 are connected to the power ground;
[0090] The reference voltage terminal VREF+ of the microcontroller U2 is connected to the first end of the capacitor C10, the positive electrode of the polarized capacitor C9, and the second end of the resistor R9; the negative electrode of the polarized capacitor C9 and the second end of the capacitor C10 are connected to the power ground;
[0091] The power supply terminal VDD_USB of the microcontroller U2 is connected to the first end of the capacitor C13, the positive electrode of the polar capacitor C12, and the first end of the resistor R11, and the second end of the resistor R11 is connected to the power supply VDD_MCU; the negative electrode of the polar capacitor C12 and the second end of the capacitor C13 are connected to the power ground;
[0092] The ground terminals VSS_5, VSS_4, VSS_6, VSS_7, VSS_8, VSS_9, VSS_2, VSS_10, VSS_11, and VSSA_VREF of the microcontroller U2 are connected to the power ground;
[0093] The power supply terminal VBAT of the microcontroller U2 is connected to the first end of the capacitor C11 and the first end of the resistor R10; the second end of the capacitor C11 is connected to the power ground, and the second end of the resistor R10 is connected to the power supply VDD_MCU;
[0094] The external capacitor terminal VCAP2 of the microcontroller U2 is connected to a first terminal of the capacitor C18, and a second terminal of the capacitor C18 is connected to a power ground;
[0095] The external capacitor terminal VCAP1 of the microcontroller U2 is connected to a first terminal of a capacitor C17, and a second terminal of the capacitor C17 is connected to a power ground;
[0096] The VCAP terminals of the microcontroller U2 are dedicated pins for connecting external capacitors, usually called VCAP_1 and VCAP_2. These terminals are used in conjunction with the voltage regulator (LDO - Low Dropout Regulator) inside the microcontroller to ensure a stable power supply for the digital circuits.
[0097] The model of the microcontroller U2 is preferably STM32F413H.
[0098] Figure 8 This is a circuit connection diagram of the wireless remote alarm module of the utility model. The power supply terminal VCC of the wireless remote alarm M1, the first end of the capacitor C19, the first end of the resistor R14, and the first end of the resistor R13 are connected to the power supply 3V3, and the second end of the capacitor C19 is connected to the power ground;
[0099] The chip select terminal CS of the wireless remote alarm M1 is connected to the second end of the resistor R14.
[0100] The reset terminal RST of the wireless remote alarm M1 is connected to the second end of the resistor R13 and the first end of the capacitor C20, and the second end of the capacitor C20 is connected to the power ground;
[0101] The alarm signal transmission terminal Alarm of the wireless remote alarm M1 is connected to the data transmission terminal of the microcontroller U2;
[0102] The ground terminal of the wireless remote alarm M1 is connected to the power ground.
[0103] Fig. 9This is a schematic diagram of the circuit connection of the power supply module of the utility model. The power input terminal Vin of the voltage regulator U3, the first terminal of the capacitor C14, and the first terminal of the battery BT1 are connected to the 5V power supply, and the second terminal of the battery BT1 is connected to the power ground, wherein the battery BT1 is used as a backup power supply. When there is no external 5V power supply, the built-in power supply BT1 is used for power supply. The power output terminal Vout and the heat dissipation terminal Tab of the voltage regulator U3 are connected to the first end of the capacitor C15 and the first end of the fuse SB1. The second end of the fuse SB1 is connected to the first end of the capacitor C16 and the first end of the resistor R12. The second end of the fuse SB1 outputs two power supplies, namely the power supply 3V3 and the power supply VDD_MCU, which have the same voltage. The power supply VDD_MCU is used to power the MCU, and the power supply 3V3 is used to power the radar chip; the second end of the resistor R12 outputs the power supply RADAR_3V3; the second end of the capacitor C14, the second end of the capacitor C15, the second end of the capacitor C16, and the ground terminal Gnd of the voltage regulator U3 are connected to the power ground; the model of the voltage regulator U3 is preferably LD1117S33TR.
[0104] The assembly diagram of the bathroom intelligent door lock controller based on millimeter wave radar designed by this utility model is as follows Fig.10 As shown: the gray part is the lock body, the alarm is located outside the lock body, and the lock body has an outer lock core, an inner lock core, and the bathroom smart door lock controller designed by this application. The inner lock core is controlled by a manual knob inside the lock body.
[0105] In summary, this application can reduce the situation where people cannot get treatment alone in the toilet due to sudden illness. By monitoring the heart rate of the person in the toilet to judge his vital signs, if it is lower or higher than the critical value, the security room will be alarmed, and the door lock will also sound an alarm to attract the attention of other people in the public toilet, providing an additional first-line rescue channel for the injured inside; at the same time, the inner and outer lock cylinders are designed to avoid the situation where the lock has to be sawed once the person in the toilet cannot open the door. The outer lock cylinder is generally in the open state, and people can only control the switch of the inner lock cylinder. When the person inside has an abnormal heart rate or other dangerous situation, the inner lock cylinder is automatically opened and the outer lock cylinder is locked. While protecting the privacy of the people inside the toilet, the security room personnel can use the safety key to open the toilet door and rescue the people inside without damaging the lock cylinder.
[0106] Although the embodiments of the present invention have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A bathroom intelligent door lock controller based on millimeter wave radar, characterized in that: include: Radar module, MCU module, wireless remote alarm module, local door lock control module and power supply module, the data output end of the radar module is connected to the data input end of the MCU module, and the data output end of the MCU module is connected to the data input end of the wireless remote alarm module and the local door lock control module respectively; The power supply module is respectively connected to the radar module, the MCU module and the wireless remote alarm module to provide power for the radar module, the MCU module and the wireless remote alarm module.
2. According to claim 1, a bathroom intelligent door lock controller based on millimeter wave radar is characterized in that: The radar module includes: The crystal oscillator terminal CLKP of the radar chip U1A and the first end of the crystal oscillator X1 are connected to the first end of the capacitor C1; the second end of the capacitor C1 is connected to the power ground; The external clock terminal CLKM of the radar chip U1A and the second end of the crystal oscillator X1 are connected to the first end of the capacitor C2; the second end of the capacitor C2 is connected to the power ground; The radar signal output terminal VOUT_PA of the radar chip U1A sends out a radar signal; The internal low-dropout linear regulator output terminal VOUT_14APLL of the radar chip U1A is connected to the power supply RADAR_3V3. The output terminal VOUT_14SYNTH of the internal low-dropout linear regulator of the radar chip U1A is connected to the power supply RADAR_3V3. The bandgap reference output terminal VBGAP of the radar chip U1A is connected to the power supply RADAR_3V3.
3. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The MCU module includes: The startup mode configuration terminal BOOT0 of the microcontroller U2 is connected to the first end of the resistor R5 and the first end of the resistor R8, the second end of the resistor R5 is connected to the power supply 3V3, and the second end of the resistor R8 is connected to the power ground. The power monitoring enable terminal PDR_ON of the microcontroller U2 is connected to the first end of the resistor R6 and the first end of the resistor R7. The second end of the resistor R6 is connected to the power supply 3V3. The second end of the resistor R7 is connected to the power ground. The external clock input terminal PC14-OSC32_IN of the microcontroller U2 is connected to the first terminal of the crystal oscillator X2 and the first terminal of the capacitor C3. The external clock input terminal PC15-OSC32_OUT of the microcontroller U2 is connected to the first end of the crystal oscillator X2 and the first end of the capacitor C4, and the second end of the capacitor C3 and the second end of the capacitor C4 are connected to the power ground; The clock signal input terminal PH0-OSC_IN of the microcontroller U2 is connected to the first end of the crystal oscillator X3 and the first end of the resistor R1, the second end of the resistor R1 is connected to the first end of the capacitor C5, and the second end of the capacitor C5 is connected to the power ground; The clock signal output terminal PH1-OSC_OUT of the microcontroller U2 is connected to the second end of the crystal oscillator X3 and the first end of the resistor R2, the second end of the resistor R2 is connected to the first end of the capacitor C6, and the second end of the capacitor C6 is connected to the power ground; The power supply terminals VDD_5, VDD_12, VDD_4, VDD_6, VDD_7, VDD_1, VDD_8, VDD_2, VDD_10, VDD_11, and VDD_3 of the microcontroller U2 are connected to the power supply VDD_MCU; The power supply terminal VDDA of the microcontroller U2 is connected to the first end of the resistor R9, the first end of the capacitor C8, the positive electrode of the polarized capacitor C7, and the first end of the inductor L1. The second end of the inductor L1 is connected to the power supply VDD_MCU; the negative electrode of the polarized capacitor C7 and the second end of the capacitor C8 are connected to the power ground; The reference voltage terminal VREF+ of the microcontroller U2 is connected to the first end of the capacitor C10, the positive electrode of the polarized capacitor C9, and the second end of the resistor R9; the negative electrode of the polarized capacitor C9 and the second end of the capacitor C10 are connected to the power ground; The power supply terminal VDD_USB of the microcontroller U2 is connected to the first end of the capacitor C13, the positive electrode of the polar capacitor C12, and the first end of the resistor R11, and the second end of the resistor R11 is connected to the power supply VDD_MCU; the negative electrode of the polar capacitor C12 and the second end of the capacitor C13 are connected to the power ground; The ground terminals VSS_5, VSS_4, VSS_6, VSS_7, VSS_8, VSS_9, VSS_2, VSS_10, VSS_11, and VSSA_VREF of the microcontroller U2 are connected to the power ground; The power supply terminal VBAT of the microcontroller U2 is connected to the first end of the capacitor C11 and the first end of the resistor R10; the second end of the capacitor C11 is connected to the power ground, and the second end of the resistor R10 is connected to the power supply VDD_MCU; The external capacitor terminal VCAP2 of the microcontroller U2 is connected to a first terminal of the capacitor C18, and a second terminal of the capacitor C18 is connected to a power ground; The external capacitor terminal VCAP1 of the microcontroller U2 is connected to a first terminal of the capacitor C17, and a second terminal of the capacitor C17 is connected to a power ground.
4. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The local door lock control module includes: The data transmission terminal PC10 of the microcontroller U2 is connected to the first end of the resistor R2, the second end of the resistor R2 is connected to the collector of the transistor Q2, the emitter of the transistor Q2 is connected to the power ground, the collector of the transistor Q2 is connected to the first end of the inner locking motor B1, and the second end of the inner locking motor B1 is connected to the power supply 3V3; The data transmission terminal PC12 of the microcontroller U2 is connected to the first end of the resistor R21, the second end of the resistor R21 is connected to the collector of the transistor Q3, the emitter of the transistor Q3 is connected to the power ground, the collector of the transistor Q3 is connected to the first end of the external lock motor B2, and the second end of the external lock motor B2 is connected to the power supply 3V3.
5. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The local door lock control module also includes an alarm: The data transmission terminal PC8 of the microcontroller U2 is connected to the first end of the resistor R1, the second end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the power ground, the collector of the transistor Q1 is connected to the first end of the alarm LS1, and the second end of the alarm LS1 is connected to the power supply 3V3.
6. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: Wireless remote alarm module includes: The power supply terminal VCC of the wireless remote alarm M1, the first end of the capacitor C19, the first end of the resistor R14, and the first end of the resistor R13 are connected to the power supply 3V3, and the second end of the capacitor C19 is connected to the power ground; The chip select terminal CS of the wireless remote alarm M1 is connected to the second end of the resistor R14. The reset terminal RST of the wireless remote alarm M1 is connected to the second end of the resistor R13 and the first end of the capacitor C20, and the second end of the capacitor C20 is connected to the power ground; The alarm signal transmission terminal Alarm of the wireless remote alarm M1 is connected to the data transmission terminal of the microcontroller U2; The ground terminal of the wireless remote alarm M1 is connected to the power ground.
7. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The power supply module includes: The power input terminal Vin of the voltage regulator U3, the first end of the capacitor C14, and the first end of the battery BT1 are connected to the 5V power supply, the second end of the battery BT1 is connected to the power ground, the power output terminal Vout of the voltage regulator U3, the heat dissipation terminal Tab are connected to the first end of the capacitor C15 and the first end of the fuse SB1, the second end of the fuse SB1 is connected to the first end of the capacitor C16 and the first end of the resistor R12, the second end of the fuse SB1 outputs two power supplies, namely the power supply 3V3 and the power supply VDD_MCU, which have the same voltage, the power supply VDD_MCU is used to power the MCU, and the power supply 3V3 is used to power the radar chip; the second end of the resistor R12 outputs the power supply RADAR_3V3; the second end of the capacitor C14, the second end of the capacitor C15, the second end of the capacitor C16, and the ground terminal Gnd of the voltage regulator U3 are connected to the power ground.
8. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The model of radar chip U1A is IWR6843QAGABL.
9. The intelligent bathroom door lock controller based on millimeter wave radar according to claim 1 is characterized in that: The model of microcontroller U2 is STM32F413H.
10. A bathroom intelligent door lock system based on millimeter wave radar, characterized in that: The bathroom smart door lock controller based on millimeter wave radar as described in any one of claims 1 to 9 is installed on the bathroom smart door.