A door control system for a toilet

By combining pressure sensing circuits and analog-to-digital converter chips, rapid resistance detection and timely stopping of the bathroom door are achieved, solving the electromagnetic interference and pinching problems of sensor-based door control systems and ensuring the stability and safety of the door control system.

CN224317938UActive Publication Date: 2026-06-02HUNAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
HUNAN UNIV OF TECH
Filing Date
2025-09-02
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing sensor-operated restroom door control systems are susceptible to electromagnetic interference, which can cause the door switch to malfunction. Furthermore, they lack accurate resistance detection and timely stopping mechanisms, which may result in injuries to people.

Method used

The detection system, composed of a pressure sensing circuit, a low-pass filter circuit, and an analog-to-digital converter chip, detects the resistance signal of the bathroom door in real time and controls the working status of the door motor through a controller, so as to quickly identify the door encountering resistance and cut off the power.

Benefits of technology

This effectively prevents the bathroom door from continuing to move when it encounters an obstruction, thus eliminating the safety hazard of pinching people and improving the system's reliability and response accuracy in complex electromagnetic environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224317938U_ABST
    Figure CN224317938U_ABST
Patent Text Reader

Abstract

The utility model provides a door control system of bathroom, and the door control system includes: the door control motor of being located bathroom door top, the pressure sensing circuit of being located bathroom door, be located bathroom door, and respectively with Door control motor and pressure sensing circuit electric connection's controller, wherein, pressure sensing circuit includes: pressure response circuit, with pressure response circuit electric connection's low pass filter circuit and ad converter chip, ad converter chip with controller electric connection, the target electric signal that pressure response circuit inducted passes through low pass filter circuit filter and inputs ad converter chip, is converted as target digital electric signal by ad converter chip and is inputed to controller, and the working state of door control motor is controlled according to target digital electric signal by controller. The utility model can recognize the bathroom door resistance state fast, and cut off the power of door control motor, avoid the bathroom door to continue the movement and cause the extrusion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of bathroom control technology, and in particular to a bathroom door control system. Background Technology

[0002] Automated door control systems for bathrooms are now widely used, but existing sensor-operated door switches are susceptible to interference from electromagnetic signals in the environment, causing them to malfunction. They also lack accurate resistance detection and timely stopping mechanisms, meaning that when the bathroom door encounters resistance during closing, it cannot accurately determine and stop in time, which can easily lead to injuries such as people being pinched. Utility Model Content

[0003] The purpose of this invention is to provide a bathroom door control system that can quickly identify when the bathroom door is obstructed and cut off the power to the door control motor to prevent the bathroom door from continuing to move and causing squeezing, thus fundamentally eliminating the safety hazard of pinching people.

[0004] To solve the above-mentioned technical problems, the technical solution of this utility model is as follows:

[0005] A bathroom access control system, comprising:

[0006] A door control motor located above the bathroom door;

[0007] Pressure sensing circuit installed on the bathroom door;

[0008] A controller installed on the bathroom door and electrically connected to the door control motor and the pressure sensing circuit respectively;

[0009] The pressure sensing circuit includes a pressure sensing circuit, a low-pass filter circuit electrically connected to the pressure sensing circuit, and an analog-to-digital converter chip. The analog-to-digital converter chip is electrically connected to the controller. The target electrical signal sensed by the pressure sensing circuit is filtered by the low-pass filter circuit and then input to the analog-to-digital converter chip. The analog-to-digital converter chip converts the signal into a target digital electrical signal, which is then input to the controller. The controller controls the working state of the gate motor according to the target digital electrical signal.

[0010] Optionally, the pressure sensing circuit includes:

[0011] First bridge arm strain gauge;

[0012] Second bridge arm resistance;

[0013] Third bridge arm strain gauge;

[0014] Fourth bridge arm resistor;

[0015] First interface component;

[0016] The first bridge arm strain gauge, the second bridge arm resistor, the third bridge arm strain gauge, and the fourth bridge arm resistor are connected in a bridge configuration to form a bridge circuit. The four connection points of the bridge circuit are electrically connected to the four interfaces of the first interface component, respectively. The first interface component is electrically connected to the low-pass filter circuit.

[0017] Optionally, the analog-to-digital converter chip includes:

[0018] First signal input pin;

[0019] Second signal input pin;

[0020] Data output pin;

[0021] The controller is electrically connected to the data output pin.

[0022] Optionally, the low-pass filter includes:

[0023] Third resistor;

[0024] Fourth resistor;

[0025] Fourth capacitor;

[0026] Wherein, one end of the third resistor is connected to the first signal output pin of the first interface device, and the other end is connected to the first signal input pin; one end of the fourth resistor is connected to the second signal output pin of the first interface device, and the other end is connected to the second signal input pin; one end of the fourth capacitor is connected to the connection point between the third resistor and the first signal input pin, and the other end is connected to the connection point between the fourth resistor and the second signal input pin.

[0027] Optionally, this gate control system may also include:

[0028] The first testing facility is located on the front of the bathroom door;

[0029] A second inspection unit located on the back of the bathroom door;

[0030] The controller is electrically connected to the first detection mechanism and the second detection mechanism respectively.

[0031] Optionally, the first testing institution includes:

[0032] First distance sensor; and infrared gesture recognition sensor;

[0033] The second testing institution includes:

[0034] Second distance sensor;

[0035] The controller is electrically connected to the first distance sensor, the infrared gesture recognition sensor, and the second distance sensor.

[0036] Optionally, the first distance sensor includes: a first chip unit; the first chip unit includes:

[0037] Receive pin;

[0038] Transmit pin;

[0039] The controller is electrically connected to the receive pin and the transmit pin, respectively.

[0040] The infrared gesture recognition sensor includes: a second chip unit; the second chip unit includes:

[0041] Bidirectional signal pin;

[0042] The controller is electrically connected to the bidirectional signal pin.

[0043] Optionally, this gate control system may also include:

[0044] An alarm circuit installed on the bathroom door;

[0045] The controller is electrically connected to the alarm circuit.

[0046] Optionally, the alarm circuit includes:

[0047] Indicator light branch;

[0048] Buzzer branch:

[0049] Alarm interface;

[0050] The alarm interface is electrically connected to the indicator light branch, the buzzer branch, and the controller, respectively.

[0051] Optionally, the gate control motor includes: a second interface component, the second interface component including:

[0052] First signal control pin;

[0053] Second signal control pin;

[0054] The controller is electrically connected to the first signal control pin and the second signal control pin, respectively.

[0055] The beneficial effects of this utility model are:

[0056] In the above-described solution of this utility model, the control chip compares the filtered and analog-to-digital converted resistance digital signal with a preset threshold in real time. When the detected resistance value exceeds the threshold, the door control motor is immediately stopped. This allows for rapid identification of the obstructed state of the bathroom door and cuts off the motor power in a very short time, preventing the bathroom door from continuing to move and causing crushing, thus fundamentally eliminating the safety hazard of pinching people.

[0057] The resistance signal (analog signal) detected by the pressure sensing circuit is first filtered by a low-pass filter circuit to remove high-frequency electromagnetic interference signals from the environment, and then converted into a clean digital signal by an analog-to-digital converter chip before being input to the control chip. This reduces the impact of electromagnetic interference on the detection data from the signal source, avoids door motor malfunctions or failures caused by signal distortion, ensures stable and accurate response during the opening and closing of the bathroom door, and significantly improves the reliability of the system in complex electromagnetic environments.

[0058] The pressure sensing circuit is directly installed on the bathroom door, which can detect the resistance signal encountered during the opening and closing of the bathroom door in real time, making the detection more accurate. Attached Figure Description

[0059] Figure 1 This is a circuit diagram of the pressure sensing circuit of the bathroom door control system of this utility model.

[0060] Figure 2 This is a circuit diagram of the control chip for the bathroom door control system of this utility model.

[0061] Figure 3 This is a schematic diagram of the bathroom door control system of this utility model.

[0062] Figure 4 This is a circuit diagram of the first chip unit of the bathroom door control system of this utility model.

[0063] Figure 5 This is a circuit diagram of the second chip unit of the bathroom door control system of this utility model.

[0064] Figure 6 This is a circuit diagram of the indicator light branch of the bathroom door control system of this utility model.

[0065] Figure 7 This is a circuit diagram of the buzzer branch of the bathroom door control system of this utility model.

[0066] Figure 8 This is a circuit diagram of the second interface component of the bathroom door control system of this utility model.

[0067] Explanation of reference numerals in the attached figures:

[0068] 1. Bathroom door; 2. Door control motor; U1. Analog-to-digital converter chip; U2. First interface component; U3. Control chip; H1. Third interface component; H2. Second chip unit; H4. First chip unit; H5. Second interface component. Detailed Implementation

[0069] Exemplary embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0070] like Figures 1 to 3 As shown, an embodiment of this utility model proposes a bathroom door control system, comprising:

[0071] Door control motor 2 is located above bathroom door 1;

[0072] Pressure sensing circuit installed on bathroom door 1;

[0073] A controller is installed on the bathroom door 1 and is electrically connected to the door control motor 2 and the pressure sensing circuit respectively;

[0074] The pressure sensing circuit includes a pressure sensing circuit, a low-pass filter circuit electrically connected to the pressure sensing circuit, and an analog-to-digital converter chip U1. The analog-to-digital converter chip U1 is electrically connected to the controller. The target electrical signal sensed by the pressure sensing circuit is filtered by the low-pass filter circuit and then input to the analog-to-digital converter chip. The analog-to-digital converter chip converts the signal into a target digital electrical signal, which is then input to the controller. The controller controls the working state of the gate motor according to the target digital electrical signal.

[0075] Specifically, the controller includes a control chip U3.

[0076] In practical operation, during the opening and closing of the door, the pressure sensing circuit detects the resistance signal received by the bathroom door 1. The resistance signal is filtered by the low-pass filter circuit, converted into a digital signal by the analog-to-digital converter chip U1, and then input to the control chip U3. The control chip U3 compares the digital signal with a set threshold (such as 15N). If the set threshold is exceeded, the door control motor 2 is controlled to stop working to avoid injury to personnel.

[0077] In this embodiment, the control chip U3 compares the filtered and analog-to-digital converted resistance digital signal with a preset threshold in real time. When the detected resistance value exceeds the threshold, it immediately controls the door motor 2 to stop working. This allows for rapid identification of the obstructed state of the bathroom door 1 and cuts off the motor power in a very short time, preventing the bathroom door 1 from continuing to move and causing crushing, thus fundamentally eliminating the safety hazard of pinching people.

[0078] The resistance signal (analog signal) detected by the pressure sensing circuit is first filtered by a low-pass filter circuit to remove high-frequency electromagnetic interference signals from the environment, and then converted into a clean digital signal by the analog-to-digital converter chip U1 before being input to the control chip U3. This reduces the impact of electromagnetic interference on the detection data from the signal source, avoids malfunctions or failures of the door control motor due to signal distortion, ensures stable and accurate opening and closing of the bathroom door 1, and significantly improves the reliability of the system in complex electromagnetic environments.

[0079] The pressure sensing circuit is directly installed on the bathroom door 1, which can detect the resistance signal encountered by the bathroom door 1 during opening and closing in real time, making the detection more accurate.

[0080] like Figure 1 As shown, in an optional embodiment of the present invention, the pressure sensing circuit includes:

[0081] First bridge arm strain gauge R11;

[0082] Second bridge arm resistor R12;

[0083] Third bridge arm strain gauge R13;

[0084] Fourth bridge arm resistor R14;

[0085] First interface component U2;

[0086] The first bridge arm strain gauge R11, the second bridge arm resistor R12, the third bridge arm strain gauge R13, and the fourth bridge arm resistor R14 are connected in a bridge configuration to form a bridge circuit. The four connection points of the bridge circuit are electrically connected to the four interfaces of the first interface component U2, respectively. The first interface component U2 is electrically connected to the low-pass filter circuit.

[0087] The analog-to-digital converter chip U1 includes:

[0088] First signal input pin INNA;

[0089] Second signal input pin INPA;

[0090] Data output pin DOUT;

[0091] The controller is electrically connected to the data output pin DOUT.

[0092] The low-pass filter includes:

[0093] Third resistor R3;

[0094] Fourth resistor R4;

[0095] Fourth capacitor C4;

[0096] Specifically, one end of the third resistor R3 is connected to the first signal output pin OUPT1 of the first interface device U2, and the other end is connected to the first signal input pin INNA; one end of the fourth resistor R4 is connected to the second signal output pin OUPT2 of the first interface device U2, and the other end is connected to the second signal input pin INPA; one end of the fourth capacitor C4 is connected to the connection point between the third resistor R3 and the first signal input pin INNA, and the other end is connected to the connection point between the fourth resistor R4 and the second signal input pin INPA.

[0097] Specifically, the analog-to-digital converter chip U1 further includes: peripheral circuitry, comprising: a first capacitor C1, a first transistor Q1, a first resistor R1, a second resistor R2, a second capacitor C2, and a third capacitor; one end of the first capacitor C1 is connected to the power supply VCC, and the other end is connected to the collector of the first transistor Q1; the base of the first transistor Q1 is connected to the voltage regulator control output pin BASE of the analog-to-digital converter chip U1, and the emitter is connected to one end of the first resistor R1; the other end of the first resistor R1 is connected to one end of the second resistor R2, and simultaneously connected to the voltage regulator control input pin VFB of the analog-to-digital converter chip U1; the other end of the second resistor R2 is grounded, forming a voltage divider circuit with the first resistor R1; one end of both the second capacitor C2 and the third capacitor C3 is connected to the junction of the first resistor R1 and the second resistor R2, and the other end is grounded.

[0098] In practical operation, when the bathroom door 1 comes into contact with a person or obstacle during opening and closing, the resistance experienced by the bathroom door 1 will cause the strain gauge resistors R11 and R13 of the first and third bridge arms to deform, resulting in a change in their resistance values. Since the four bridge arms (R11, R12, R13, R14) form a bridge circuit, resistance imbalance will cause the bridge to output a differential voltage signal, which will be output through the OUPT1 and OUPT2 pins of the first interface device U2.

[0099] The differential voltage signals are transmitted through the third resistor R3 and the fourth resistor R4, respectively, and the fourth capacitor C4 is connected between the two signal paths to form an RC low-pass filter network. This circuit can suppress high-frequency interference (such as electromagnetic noise generated by motor operation), and after the signal is smoothed and stabilized, it is input to the first signal input pin INNA and the second signal input pin INPA of the analog-to-digital converter chip U1, respectively.

[0100] When the analog-to-digital converter chip U1 is working, its peripheral circuits operate synchronously: the power supply VCC, after being filtered by the first capacitor C1, supplies power to the first transistor Q1. The voltage regulator circuit controls the output pin BASE to adjust the transistor's conduction state. A reference voltage is generated through the voltage divider network of the first resistor R1 and the second resistor R2. This reference voltage is fed back to the chip through the input pin VFB controlled by the voltage regulator circuit. Combined with the filtering effect of the second capacitor C2 and the third capacitor C3, a stable reference voltage is provided for U1, ensuring the accuracy of the analog-to-digital conversion. Finally, the analog-to-digital converter chip U1 converts the differential analog signal into a digital signal and sends it to the control chip U3 through the data output pin DOUT.

[0101] After receiving the digital signal, the control chip U3 compares it with a preset threshold (such as 15N) in real time: when the detected resistance signal is less than the threshold, it is determined that the bathroom door 1 is moving normally, and the control signal is continuously output to make the door motor 2 run; when the resistance signal exceeds the threshold, the protection mechanism is immediately triggered to cut off the drive signal of the door motor 2 and make the motor stop working; if it is necessary to restore the action, the lock can be released through the reset logic (such as reverse operation after delay or manual triggering).

[0102] In this embodiment, a bridge circuit is formed by the first bridge arm strain gauge R11, the third bridge arm strain gauge R13, and fixed resistors R12 and R14. When the bathroom door 1 is subjected to force, the strain gauges undergo precise resistance changes due to deformation, and the bridge imbalance outputs a differential voltage signal proportional to the resistance. Compared with single-resistor detection, this differential detection method can effectively cancel common-mode interference such as temperature drift, significantly improving the linearity and sensitivity of pressure detection.

[0103] The low-pass filter circuit composed of the third resistor R3, the fourth resistor R4, and the fourth capacitor C4 can effectively filter out high-frequency interference signals generated by motor operation and environmental electromagnetic radiation. Symmetrical filtering on the differential voltage signal path ensures signal integrity and avoids signal distortion that may be caused by single-ended filtering, making the signal input to the analog-to-digital converter chip U1 purer.

[0104] The peripheral circuit of the analog-to-digital converter chip U1 consists of a voltage regulator network composed of a first transistor Q1, voltage divider resistors R1 and R2, and filter capacitors C1, C2, and C3, providing a stable reference voltage for the chip. This network can resist the influence of power supply fluctuations on conversion accuracy, ensuring a stable and reliable conversion process from analog to digital signals and avoiding detection errors caused by voltage drift.

[0105] like Figures 4 to 5 As shown, in an optional embodiment of the present invention, the gate control system further includes:

[0106] The first inspection unit is located on the front of the toilet door 1;

[0107] A second detection mechanism is located on the back of bathroom door 1;

[0108] The controller is electrically connected to the first detection mechanism and the second detection mechanism respectively.

[0109] The first testing institution includes:

[0110] First distance sensor; and infrared gesture recognition sensor;

[0111] The second testing institution includes:

[0112] Second distance sensor;

[0113] The controller is electrically connected to the first distance sensor, the infrared gesture recognition sensor, and the second distance sensor.

[0114] The first distance sensor includes: a first chip unit H4; the first chip unit H4 includes:

[0115] Receive pin RX;

[0116] Transmit pin TX;

[0117] The controller is electrically connected to the receive pin RX and the transmit pin TX, respectively.

[0118] The infrared gesture recognition sensor includes: a second chip unit H2; the second chip unit H2 includes:

[0119] Signal bidirectional pin I / O1;

[0120] The controller is electrically connected to the bidirectional signal pin I / O1.

[0121] In practical operation, when no one is using the toilet, the control chip U3 controls the first and second detection mechanisms to enter standby mode to reduce power consumption. When the first detection mechanism detects a signal that someone is outside the door, the control chip U3 controls the door control motor 2 to open the toilet door 1. When a person enters the toilet, the second detection mechanism detects a signal that someone is inside the door, the control chip U3 controls the door control motor 2 to close the toilet door 1, and controls the first detection mechanism to disable its detection function to prevent other people from opening the toilet door 1. When a person leaves the toilet (the door control motor 2 allows the toilet door 1 to be pushed open from the inside), the second detection mechanism detects a signal that no one is inside the door, the control chip U3 controls the door control motor 2 to close the toilet door 1, and controls the first detection mechanism to resume its detection function.

[0122] The control chip U3 controls the first detection mechanism (first distance sensor, infrared gesture recognition sensor) and the second detection mechanism (second distance sensor) to enter a low-power standby mode, maintaining only basic detection functions to reduce energy consumption. At this time, the bathroom door 1 is in a closed and locked state.

[0123] When someone approaches the bathroom door, the first chip unit H4 of the first detection mechanism transmits a detection signal through the transmit pin TX and receives the reflected signal through the receive pin RX, calculating the distance to the person; when the distance is less than the set value, it sends a trigger signal to the control chip U3.

[0124] Meanwhile, the second chip unit H2 detects the hand gestures (such as waving) of people outside the door through the bidirectional signal pin I / O1 to further confirm the intention to open the door;

[0125] After integrating the signals from the two sensors, the control chip U3 determines that the request to open the door is valid and immediately drives the door control motor 2 to run in the forward direction, thereby automatically opening the bathroom door 1.

[0126] After a person enters the restroom, the second distance sensor of the second detection mechanism detects that someone is inside the door (the distance is less than the set value) and sends a signal to the control chip U3;

[0127] After receiving a signal that someone is inside the door, the control chip U3 drives the door control motor 2 to rotate in reverse, causing the bathroom door 1 to close and lock automatically.

[0128] At the same time, the control chip U3 disables the detection function of the first detection mechanism (cuts off its power supply or stops signal reception) to prevent people outside the door from triggering the door opening signal and ensure the privacy and safety of people inside the restroom.

[0129] When personnel are ready to leave, they can manually push the door from the inside out (door control motor 2 allows one-way manual pushing and does not trigger reverse resistance protection).

[0130] After the personnel left, the second distance sensor of the second detection agency detected that no one was inside the door and sent a signal to the control chip U3;

[0131] The control chip U3 drives the door motor 2 to rotate in reverse, causing the bathroom door 1 to close completely and lock.

[0132] Subsequently, the control chip U3 controls the first detection mechanism to resume working status, restarts the detection function, and the system returns to standby mode, waiting for the next door opening request.

[0133] In this embodiment, the first detection mechanism integrates a first distance sensor and an infrared gesture recognition sensor to form a dual judgment logic of distance detection + gesture confirmation. When a person approaches the outside of the restroom door (the distance is less than a set value) and makes a preset gesture (such as waving), the system determines it as a valid door opening request, which avoids false triggering (such as a person passing by) and provides an intuitive and natural interaction method.

[0134] The second distance sensor of the second detection mechanism monitors the status of people inside the door in real time. When people enter, the door is automatically triggered to close. When they leave, the door is automatically closed and reset. No manual operation is required throughout the process.

[0135] When not in use, the control chip U3 puts the first and second detection mechanisms into standby mode, maintaining only basic detection functions, significantly reducing the overall system power consumption. Compared to traditional systems that always run at full speed, this significantly extends the equipment's battery life and the lifespan of components.

[0136] The first detection mechanism automatically shuts down after the door is opened to avoid wasting energy on ineffective detection; it resumes operation after personnel leave, further optimizing energy consumption through precise start-stop control.

[0137] When the second detection mechanism detects someone inside the door, the control chip U3 will actively shut down the detection function of the first detection mechanism. Even if someone approaches or makes a gesture outside the door, the door will not be opened, thus fundamentally avoiding the privacy leak problem caused by people outside accidentally opening the door during use.

[0138] It allows personnel to manually push the door open from the inside without triggering the resistance protection, ensuring a rapid evacuation route in emergencies while preventing forced opening from the outside through a motor locking mechanism.

[0139] like Figures 6 to 7 As shown, in an optional embodiment of the present invention, the gate control system further includes:

[0140] An alarm circuit installed on bathroom door 1;

[0141] The controller is electrically connected to the alarm circuit.

[0142] The alarm circuit includes:

[0143] Indicator light branch;

[0144] Buzzer branch:

[0145] Alarm interface BUZZ;

[0146] The alarm interface BUZZ is electrically connected to the indicator light branch, the buzzer branch, and the controller, respectively.

[0147] Specifically, the indicator light branch includes: a third interface component H1, wherein the third interface component H1 has a fifth resistor R5 connected in series with an indicator light LED1, and the other end of the indicator light LED1 is grounded; the third interface component H1 is also connected to a +3.3V power supply; the alarm interface BUZZ of the third interface component H1 is connected to the control chip U3, and the control chip U3 controls the opening and closing of the +3.3V power supply by outputting high and low levels; the first interface component H1 is grounded.

[0148] The buzzer branch includes a sixth resistor R6, a seventh resistor R7, a second transistor Q2, and a buzzer BUZZER1; one end of the sixth resistor R6 is connected to the alarm interface BUZZ, and the other end is connected to the base of the second transistor Q2; one end of the seventh resistor R7 is connected to the base of the second transistor Q2, and the other end is grounded; the emitter of the second transistor Q2 is grounded, and the collector is connected to one end of the buzzer BUZZER1, and the other end of the buzzer BUZZER1 is connected to a +3.3V power supply.

[0149] In practical operation, when the system is running normally, the control chip U3 outputs a low-level signal to the alarm interface BUZZ: In the indicator light branch, the third interface of the third interface component H1 is not triggered by a high level, so the indicator light LED1 is in the off state; In the buzzer branch, the base of the second transistor Q2 is connected to a low level through the sixth resistor R6, the transistor is cut off, and no current flows through the buzzer BUZZER1, so it remains silent.

[0150] When the system detects an abnormal situation (such as the resistance of the bathroom door 1 exceeding the safety threshold, motor failure, sensor malfunction, etc.), the control chip U3 immediately outputs a high-level signal to the alarm interface BUZZ, triggering a dual alarm: the +3.3V power supply drives the indicator LED1 (resistor R5 current limiting protection LED) through the third interface of the third interface device H1 and the fifth resistor R5, visually indicating the fault location by continuously illuminating or flashing (achieved by the control chip U3 outputting a pulse signal); the high level is input to the base of the second transistor Q2 through the sixth resistor R6, overcoming the pull-down effect of the seventh resistor R7 to turn on the transistor, and the +3.3V power supply forms a circuit through the buzzer BUZZER1 and the collector-emitter of the transistor, and the buzzer emits an audio alarm (such as intermittent ringing), quickly attracting attention through sound;

[0151] Once the abnormal situation is resolved (such as obstacle removal or manual reset of fault), the control chip U3 detects that the system has returned to normal and immediately resumes outputting a low level to the alarm interface BUZZ: indicator LED1 goes out due to loss of power; the second transistor Q2 is cut off, the buzzer BUZZER1 stops sounding, and the alarm circuit returns to standby mode.

[0152] In this embodiment, the alarm circuit overcomes the limitations of a single alarm method through the dual design of indicator LED1 (visual) and buzzer BUZZER1 (audible).

[0153] The indicator LED1, by continuously lighting up or flashing (controlled by the pulse signal of the control chip U3), can intuitively indicate the location of the fault in well-lit or noisy environments. Even if people do not notice the sound, they can still capture the abnormal signal visually. On the auditory level, the buzzer, through intermittent or continuous audio alarms, can quickly attract attention in dimly lit, obstructed, or distant scenarios, avoiding risk delays caused by visual neglect.

[0154] The alarm circuit only triggers the alarm with a high level when the control chip U3 detects a clear abnormality such as resistance exceeding the threshold, motor failure, or sensor malfunction. During normal operation, it outputs a low level to remain silent, thus avoiding the false alarms and false lights caused by signal interference in traditional alarm systems.

[0155] The fifth resistor R5 connected in series in the indicator light branch can effectively limit the current flowing through LED1 (to prevent the LED from burning out due to excessive voltage) and at the same time protect the +3.3V power supply circuit to prevent short circuit risk.

[0156] In the buzzer branch, the sixth resistor R6 (current limiting) and the seventh resistor R7 (pull-down resistor) work together to prevent the base of the second transistor Q2 from being mis-converted due to signal fluctuations, and to prevent the transistor from being damaged by excessive base current, thus ensuring the long-term stable operation of the alarm circuit.

[0157] like Figure 8 As shown, in an optional embodiment of the present invention, the gate control motor 2 includes: a second interface component H5, the second interface component H5 including:

[0158] First signal control pin PU;

[0159] Second signal control pin DR;

[0160] The controller is electrically connected to the first signal control pin PU and the second signal control pin DR.

[0161] In practical operation, when the system has no action command, the control chip U3 outputs a low level to both the PU pin and the DR pin of the second interface device H5. When the PU pin (enable terminal) is connected to a low level, the motor drive circuit is in a disabled state and there is no drive current output; the DR pin (direction control terminal) signal is invalid, the motor remains stationary and in a locked state, ensuring that the position of the bathroom door 1 is stable.

[0162] When the control chip U3 determines that the door needs to be opened: the control chip U3 first outputs a high level to the PU pin to enable the motor drive circuit; at the same time, it outputs a high level to the DR pin (a preset door opening direction signal), and the motor drive circuit outputs a forward current according to the direction signal; after receiving the forward drive signal, the door motor 2 runs in the forward direction and drives the bathroom door 1 to open through the mechanical transmission mechanism; when the bathroom door 1 reaches the fully open position, the control chip U3 returns the PU pin to a low level, the motor stops running and locks;

[0163] When the control chip U3 determines that the door needs to be closed (e.g., after a person enters, the second detection mechanism detects that someone is inside the door): the control chip U3 outputs a high level to the PU pin, enabling the motor drive circuit again; it outputs a low level to the DR pin (a preset closing direction signal), and the motor drive circuit outputs a reverse current; the door control motor 2 receives the reverse drive signal and runs in reverse, driving the bathroom door 1 to close; when the bathroom door 1 reaches the fully closed position, the control chip U3 pulls the PU pin low, the motor stops and locks the bathroom door 1.

[0164] When the system detects an anomaly (such as the pressure sensing circuit detecting resistance exceeding the threshold): the control chip U3 immediately pulls the PU pin low, cutting off the motor drive signal, and the motor stops running immediately; the DR pin signal also fails, ensuring that the bathroom door 1 is locked in the current position to avoid injury caused by continuous movement.

[0165] In this embodiment, by separating the first signal control pin PU (enable terminal) and the second signal control pin DR (direction control terminal), independent control of motor start / stop and direction is achieved. The PU pin is responsible for enabling / disabling the motor drive circuit, while the DR pin precisely controls the forward and reverse rotation of the motor (corresponding to door opening / closing actions) through high and low level switching, avoiding malfunctions that may be caused by a single control signal and ensuring that the bathroom door 1 runs stably in the preset direction.

[0166] Once the bathroom door 1 reaches the fully open or fully closed position, the control chip U3 immediately pulls the PU pin low, causing the motor to stop and enter a locked state. This accurately maintains the position of the bathroom door 1, preventing it from shifting due to motor inertia or external forces, thus improving the positioning accuracy and operational stability of the bathroom door 1.

[0167] When the system detects an anomaly (such as resistance exceeding the threshold or sensor failure), the control chip U3 immediately pulls the PU pin low, instantly cutting off the motor drive signal and achieving an emergency stop for the motor. Compared to the delayed stop mechanism of traditional motor control, this can terminate the movement of the bathroom door 1 within milliseconds, minimizing the occurrence of safety accidents such as pinching and squeezing.

[0168] When an anomaly occurs, the DR pin signal synchronization fails, and the motor locks at its current position to prevent the bathroom door 1 from continuing to move due to inertia or gravity, thus avoiding secondary damage. Simultaneously, the locked state also prevents mechanical damage caused by personnel forcibly pushing the door in an emergency.

[0169] This utility model's pressure sensing circuit employs a bridge strain gauge and low-pass filter to accurately detect the resistance of the bathroom door. Combined with an analog-to-digital converter and voltage stabilization design, it cancels interference, ensures signal purity, and stops the motor immediately if the threshold is exceeded, eliminating the risk of pinching injuries. A dual detection mechanism achieves both distance and gesture-based door opening judgment, avoiding false triggering. When someone is inside the door, the external detection is closed, balancing privacy and energy saving. The alarm circuit provides dual warnings with light and buzzer, adapting to complex environments and promptly alerting to malfunctions. The door control motor is controlled by independent pins for start / stop and direction, with millisecond-level emergency stop locking in case of abnormalities to prevent deviation and secondary injury. All modules form a closed loop of detection-judgment-execution-alarm, adaptable to bathroom scenarios and significantly superior to traditional systems.

[0170] The above description is the preferred embodiment of this utility model. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this utility model, and these improvements and modifications should also be considered within the protection scope of this utility model.

Claims

1. A bathroom door control system, characterized in that, include: Door control motor (2) installed above the bathroom door (1); Pressure sensing circuit installed on the bathroom door (1); A controller installed on the bathroom door (1) and electrically connected to the door control motor (2) and the pressure sensing circuit respectively; The pressure sensing circuit includes a pressure sensing circuit, a low-pass filter circuit electrically connected to the pressure sensing circuit, and an analog-to-digital converter chip (U1). The analog-to-digital converter chip (U1) is electrically connected to the controller. The target electrical signal sensed by the pressure sensing circuit is filtered by the low-pass filter circuit and then input to the analog-to-digital converter chip. The analog-to-digital converter chip converts the signal into a target digital electrical signal, which is then input to the controller. The controller controls the working state of the gate motor according to the target digital electrical signal.

2. The bathroom door control system according to claim 1, characterized in that, The pressure sensing circuit includes: First bridge arm strain gauge (R11). Second bridge arm resistor (R12); Third bridge arm strain gauge (R13); Fourth bridge arm resistor (R14); First interface component (U2); The first bridge arm strain gauge (R11), the second bridge arm resistor (R12), the third bridge arm strain gauge (R13), and the fourth bridge arm resistor (R14) are connected in a bridge configuration to form a bridge circuit. The four connection points of the bridge circuit are electrically connected to the four interfaces of the first interface component (U2). The first interface component (U2) is electrically connected to the low-pass filter circuit.

3. The bathroom door control system according to claim 2, characterized in that, The analog-to-digital converter chip (U1) includes: First signal input pin (INNA); Second signal input pin (INPA); Data output pin (DOUT); The controller is electrically connected to the data output pin (DOUT).

4. The bathroom door control system according to claim 3, characterized in that, The low-pass filter includes: Third resistor (R3); Fourth resistor (R4); Fourth capacitor (C4); The third resistor (R3) is connected at one end to the first signal output pin (OUPT1) of the first interface device (U2) and at the other end to the first signal input pin (INNA); the fourth resistor (R4) is connected at one end to the second signal output pin (OUPT2) of the first interface device (U2) and at the other end to the second signal input pin (INPA); the fourth capacitor (C4) is connected at one end to the connection point between the third resistor (R3) and the first signal input pin (INNA) and at the other end to the connection point between the fourth resistor (R4) and the second signal input pin (INPA).

5. The bathroom door control system according to claim 1, characterized in that, Also includes: The first inspection mechanism is located on the front of the toilet door (1); A second detection mechanism is located on the back of the toilet door (1); The controller is electrically connected to the first detection mechanism and the second detection mechanism respectively.

6. The bathroom door control system according to claim 5, characterized in that, The first testing institution includes: First distance sensor; and infrared gesture recognition sensor; The second testing institution includes: Second distance sensor; The controller is electrically connected to the first distance sensor, the infrared gesture recognition sensor, and the second distance sensor.

7. The bathroom door control system according to claim 6, characterized in that, The first distance sensor includes: a first chip unit (H4); the first chip unit (H4) includes: Receive pin (RX); Transmit pin (TX); The controller is electrically connected to the receive pin (RX) and the transmit pin (TX), respectively. The infrared gesture recognition sensor includes: a second chip unit (H2); the second chip unit (H2) includes: Bidirectional signal pin (I / O1); The controller is electrically connected to the bidirectional signal pin (I / O1).

8. The bathroom door control system according to claim 1, characterized in that, Also includes: An alarm circuit is installed on the bathroom door (1); The controller is electrically connected to the alarm circuit.

9. The bathroom door control system according to claim 8, characterized in that, The alarm circuit includes: Indicator light branch; Buzzer branch: Alarm interface (BUZZ); The alarm interface (BUZZ) is electrically connected to the indicator light branch, the buzzer branch, and the controller, respectively.

10. The bathroom door control system according to claim 1, characterized in that, The gate control motor (2) includes: a second interface component (H5), the second interface component (H5) including: First signal control pin (PU); Second signal control pin (DR); The controller is electrically connected to the first signal control pin (PU) and the second signal control pin (DR).