Intelligent closestool control circuit with electric leakage protection function
By combining the leakage protector with the main control circuit of the smart toilet and using a microcontroller and electromagnetic switch to automatically detect leakage current, the problem of manual testing of the leakage protector of the smart toilet is solved, automatic detection and circuit breaker protection are achieved, safety is improved and production costs are reduced.
Patent Information
- Application Number
- CN202422663636.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2034-11-01
AI Technical Summary
The leakage protector of existing smart toilets needs to be tested manually, which users often ignore, resulting in safety hazards. In addition, the smart toilet control panel cannot automatically detect the working status of the leakage protector.
A smart toilet control circuit with leakage protection is designed. The leakage protector test is combined with the main control circuit of the smart toilet. A microcontroller and electromagnetic switch are used to achieve automatic detection. The leakage current is monitored by a current transformer. When leakage is detected, the live and neutral wires are disconnected. An optocoupler isolation switch module is used for automatic testing and protection.
The automatic testing and circuit breaker protection of the leakage protector are realized, the production cost is reduced, the safety is improved, and the safety of the users is ensured.
Smart Images

Figure CN223309579U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of intelligent toilet control circuit manufacturing, in particular to an intelligent toilet control circuit with leakage protection. Background Art
[0002] Leakage current protectors (RCPs) generally need to be tested regularly to ensure they are functioning properly. Most current smart toilets require manual testing (typically, the device will remind the user to test the RCP once a month to ensure it is functioning properly). However, few users actually test the RCP, which can be very dangerous.
[0003] Current smart toilet control panels require an additional leakage protector to be safer, but the smart toilet control panel does not interfere with the function of the leakage protector. Even if the leakage protector fails, there will be no reminder action. Utility Model Content
[0004] In order to solve the above technical problems and shortcomings: how to combine the test of the leakage protector with the control of the smart toilet main control board, the utility model provides a smart toilet control circuit with leakage protection.
[0005] To achieve the above-mentioned and other related purposes, the present invention adopts the following technical solutions:
[0006] A smart toilet control circuit with leakage protection includes a mains power input port, a live wire, a neutral wire, an electromagnetic switch, a current transformer, a sampling input circuit, a first microcontroller, a drive circuit, a first test circuit, and a second test circuit. The live wire and the neutral wire are connected from the mains power input port. The electromagnetic switch is provided on the live wire and the neutral wire near the mains power input port. The current transformer is provided on the live wire and the neutral wire and transmits the induced signal to the sampling input circuit. The input circuit transmits the signal to the first microcontroller. The first microcontroller is connected to the drive circuit, and the drive circuit is connected to the electromagnetic switch. The first test circuit is connected to the neutral wire and leads out after passing through the current transformer. The second test circuit is connected to the live wire and leads out through a resistor.
[0007] Preferably, the electromagnetic switch adopts a normally closed double-pole double-throw relay, including a double-pole switch part and an electromagnetic coil part. The double-pole switch part is connected to the live wire and the neutral wire, one end of the electromagnetic coil part is connected to the neutral wire, and the other end of the electromagnetic coil part is connected to the anode of the diode D1, and the cathode of the diode D1 is connected to the drive circuit.
[0008] Preferably, the driving circuit includes a diode D2, a capacitor C3 and a thyristor T2, the anode of the thyristor T2 is connected to the cathode of the diode D1, the cathode of the thyristor T2 is grounded, the control end of the thyristor is connected to the cathode of the diode D2 and one end of the capacitor C3, and the anode of the diode D2 and the other end of the capacitor C3 are connected to an output pin of the microcontroller.
[0009] Preferably, the sampling input circuit includes a resistor R4, a resistor R11, a capacitor C1, a capacitor C2 and a capacitor C4, the A input terminal of the first microprocessor is connected to one end of the current transformer, one end of the resistor R4, one end of the capacitor C1, one end of the capacitor C2 and one end of the capacitor C4, the B input terminal of the first microprocessor is connected to the other end of the capacitor C2 and one end of the resistor R11, the other end of the resistor R11 is connected to the other end of the capacitor C1, the other end of the resistor R4 and the other end of the current transformer, and the other end of the capacitor C4 is grounded.
[0010] Preferably, a zero point detection circuit is provided between the live wire and the neutral wire, and the parts detection circuit includes a diode D19, a resistor R94, a resistor R93, an optocoupler U13, a resistor R92, a resistor R89, an N-type transistor Q3, a resistor R27, and a capacitor C48. The live wire is connected to the anode of the diode D19, and the cathode of the diode D19 is connected in series with the resistor R94 and the resistor R93. The other end of the resistor R93 is connected to the anode of the optocoupler U13, and the cathode of the optocoupler U13 is connected to the neutral wire. The collector of the optocoupler U13 is connected to one end of the resistor R92, and the other end of the resistor R92 is connected to one end of the resistor R89 and the base of the N-type transistor Q3. The emitter of the N-type transistor Q3 and the other end of the resistor R89 are connected to a weak voltage source. The collector of the N-type transistor Q3 is connected to one end of the resistor R27 and one end of the capacitor C48 and outputs a zero point signal. The other end of the capacitor C48, the other end of the resistor R27, and the emitter of the optocoupler U13 are grounded.
[0011] Preferably, a second microprocessor is further included, and the second microprocessor receives a zero point signal. A multi-channel optocoupler isolation switch module is also provided on the live wire and the neutral wire.
[0012] In summary, the invention of this utility model includes at least one of the following beneficial technical effects:
[0013] 1. Combining the leakage protector test with the smart toilet main control circuit to form a new type of smart toilet control circuit (controller), it uses the control circuit of the smart toilet control board to perform regular detection of the leakage protector and realize the automatic testing function of the leakage protector, which reduces the cost and realizes automatic testing;
[0014] 2. When leakage occurs, the relay can be controlled to cut off the live wire and the neutral wire to achieve circuit breaker protection and improve the safety level;
[0015] 3. Based on this circuit structure, this solution can also effectively reduce the production process cost, such as the cost of welding process, moisture-proof process, assembly process, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is the first circuit diagram of the embodiment of the utility model;
[0017] Figure 2 This is the second circuit diagram of the embodiment of the utility model;
[0018] Figure 3 This is the third part of the circuit diagram.
[0019] Description of the reference numerals of the main components:
[0020] 100, electromagnetic switch; 110, double-pole switch unit; 120, electromagnetic coil unit; 200, current transformer; 300, sampling input circuit; 400, drive circuit; 500, first test circuit; 600, second test circuit; 700, zero point detection circuit; 800, second microprocessor; 900, optocoupler isolation switch module. DETAILED DESCRIPTION
[0021] The following describes the implementation of the present invention through specific examples. Those skilled in the art will readily understand the other advantages and benefits of the present invention from the disclosure herein. The present invention may also be implemented or applied through different specific implementations, and the details in this specification may be modified or altered based on different perspectives and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features within these embodiments may be combined with one another, unless they conflict.
[0022] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention. The illustrations only show the components related to the present invention and are not drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0023] The following is combined with Figure 1-2 The specific implementation methods of the utility model are further described.
[0024] Example:
[0025] The present utility model is an embodiment of an intelligent toilet control circuit with leakage protection, which includes a mains input port, a live wire, a neutral wire, an electromagnetic switch 100, a current transformer 200, a sampling input circuit 300, a first microcontroller, a drive circuit 400, a first test circuit 500 and a second test circuit 600. The live wire and the neutral wire are connected from the mains input port. The electromagnetic switch 100 is set on the live wire and the neutral wire near the mains input port. The current transformer 200 is set on the live wire and the neutral wire and transmits the induced signal to the sampling input circuit 300. The input circuit is used to transmit the signal to the first microcontroller. The first microcontroller is connected to the drive circuit 400, and the drive circuit 400 is connected to the electromagnetic switch 100.
[0026] The mains input port can be a plug that plugs into a mains outlet. The mains power specification is 220V AC. F2 on the neutral wire is a fuse. The live wire and neutral wire can also be represented as hot-load and neutral-load in the accompanying diagram.
[0027] In this solution, the electromagnetic switch 100 adopts a normally closed double-pole double-throw relay, such as Figure 1 As shown, it includes a double-pole switch unit 110 and an electromagnetic coil unit 120. The double-pole switch unit 110 is connected to the live wire and the neutral wire. One end of the electromagnetic coil unit 120 is connected to the neutral wire, and the other end of the electromagnetic coil unit 120 is connected to the anode of the diode D1. The cathode of the diode D1 is connected to the drive circuit 400. The diode D1 can prevent reverse current.
[0028] The first microcontroller is a chip IC1, which may be a single chip microcomputer module, and is used for signal acquisition and outputting high and low levels.
[0029] The drive circuit 400 includes a diode D2, a capacitor C3, and a thyristor T2. The anode of the thyristor T2 is connected to the cathode of the diode D1, which is grounded. The control terminal of the thyristor is connected to the cathode of the diode D2 and one end of the capacitor C3. The anode of the diode D2 and the other end of the capacitor C3 are connected to an output pin of a microcontroller. The output of the first microcontroller outputs a high level, which turns on the thyristor T2. At this time, one end of the electromagnetic coil unit 120 is connected to ground, forming a current loop, thereby controlling the double-pole switch unit 110 to operate, disconnecting the circuit and implementing circuit breaker protection. This protection mechanism is triggered by detecting leakage current.
[0030] Leakage current detection is achieved using a current transformer 200. Specifically, a sampling input circuit 300 includes resistors R4, R11, C1, C2, and C4. The A input of the first microprocessor is connected to one end of the current transformer 200, one end of the resistor R4, one end of the capacitor C1, one end of the capacitor C2, and one end of the capacitor C4. The B input of the first microprocessor is connected to the other end of the capacitor C2 and one end of the resistor R11. The other end of the resistor R11 is connected to the other end of the capacitor C1, the other end of the resistor R4, and the other end of the current transformer 200. The other end of the capacitor C4 is grounded. The current detected by the current transformer 200 is filtered by the sampling input circuit 300, and a determination is made as to whether the current is excessive before inputting it to the first microprocessor.
[0031] In addition, reference Figure 2 A zero point detection circuit 700 is provided between the live wire and the neutral wire. The parts detection circuit includes a diode D19, a resistor R94, a resistor R93, an optocoupler U13, a resistor R92, a resistor R89, an N-type transistor Q3, a resistor R27, and a capacitor C48. The live wire is connected to the anode of the diode D19, and the cathode of the diode D19 is connected in series with the resistor R94 and the resistor R93. The other end of the resistor R93 is connected to the anode of the optocoupler U13, and the cathode of the optocoupler U13 is connected to the neutral wire. The collector of the optocoupler U13 is connected to one end of the resistor R92, and the other end of the resistor R92 is connected to one end of the resistor R89 and the base of the N-type transistor Q3. The emitter of the N-type transistor Q3 and the other end of the resistor R89 are connected to a weak voltage source. The collector of the N-type transistor Q3 is connected to one end of the resistor R27 and one end of the capacitor C48 and outputs a zero point signal. The other end of the capacitor C48, the other end of the resistor R27, and the emitter of the optocoupler U13 are grounded. This solution also includes a second microprocessor 800, which receives a zero-point signal. A multi-channel optocoupler isolation switch module 900 is also provided on the live and neutral wires. The second microprocessor 800 can be another single-chip microcomputer. Optocoupler U13 is used to isolate and transmit signals between strong and weak currents. As we know, the live wire is the strong current component, while the single-chip microcomputer is the weak current component, typically powered by a voltage of 0-5V.
[0032] Combine Figure 1 and Figure 3 As shown, the first test circuit 500 is connected to the neutral line and leads out after passing through the current transformer 200, and the second test circuit 600 is connected to the live line and leads out through a resistor. After the first test circuit 500 and the second test circuit 600 are led out, they are connected to the optocoupler isolating switch. In this way, the second microprocessor 800 can be used to control the triggering of the optocoupler isolating switch, thereby controlling the operation of the first test circuit 500 and the second test circuit 600 to achieve the purpose of leakage testing. Similarly, the operation of the seat heater, blower heater, heater, etc. can also be achieved through other optocoupler isolating switches. For the optocoupler isolating switch part, it is as follows Figure 3 As shown, there are multiple independent modules that can control the on and off of the power circuit respectively. The seat heater, blower heater and heater can also have indicator lights to facilitate signal feedback.
[0033] As can be seen from this, 1. This design uses a relay opening and closing method to implement the protection function of the leakage protector. The relay uses a normally closed double-pole double-throw scheme. During normal operation, the relay is in the normally closed state; if a leakage occurs, the relay opens, simultaneously cutting the live and neutral wires. Utilizing the principle that the current flowing through the live and neutral wires (under normal circumstances) is symmetrical, an induction coil is added to the live and neutral wires. By monitoring the current flowing through the induction coil, leakage current in the live and neutral wires can be monitored. Under normal circumstances, current flows through the live wire to the electrical appliance and then from the appliance to the neutral wire. The current in the circuit is equal everywhere. The current in the live and neutral wires is equal in magnitude and opposite in direction. At this time, the induction coil will not generate an induced current. When leakage current occurs, that is, part of the current flowing out of the live wire flows to the earth through the electrical appliances, and the current flowing back to the neutral wire from the electrical appliances becomes smaller, so an alternating current difference is generated on the live and neutral wires. The alternating electric field formed will cause the induction coil to generate an induced current. In this design, when the live and neutral wire current difference is 6-9mA (that is, when a 6-9mA leakage current is generated), the current will generate an action signal, which controls the switch tube to drive the relay to disconnect the live and neutral wires.
[0034] The chip IC1 in the first microprocessor is a Youwang 54123 chip. Its functions are to detect current, issue an action signal, and latch the signal. The chip detects the current in the induction coil to monitor the current difference between the live and neutral wires. If the current difference reaches a certain value (6-9mA), the chip generates a signal level, which controls an external switching device (which can be a MOS tube, thyristor, or transistor) to drive the relay coil. The relay coil is energized and disconnects, providing power-off protection in the event of leakage. The chip also has a built-in latch. Once the chip issues the power-off action signal, the latch simultaneously latches the signal, keeping the relay in the disconnected state. The circuit remains in the leakage protection state until the main power supply is disconnected, resetting the latch.
[0035] In order to achieve isolation control, this circuit uses an optocoupler isolating switch module 900 to control the on and off of the power supply of the high-voltage part. The same method is also to control the optocoupler isolating switch module 900 to send a test signal to the leakage protector. If the test is successful, the relay will be activated and the power will be cut off. The AC zero-crossing detection function can use the zero-point detection circuit 700 to detect whether there is AC power at present; if the zero-crossing detection can still detect AC power after the second microprocessor 800 sends the test signal, it means that the test has failed and the protection function of the leakage protector has failed. When the leakage protector is detected to be faulty, the smart toilet controller will notify the user through a buzzer or an external light display screen and other devices that the leakage protection device needs to be repaired to avoid electric shock accidents.
[0036] The above embodiments are merely illustrative of the principles and effects of this invention and are not intended to limit this invention. Anyone skilled in the art may modify or alter these embodiments without departing from the spirit and scope of this invention. Therefore, any equivalent variations based on the structure, shape, or principles of this invention are intended to be within the scope of protection of this invention.
Claims
1. A smart toilet control circuit with leakage protection, comprising a mains input port, a live wire, a neutral wire, an electromagnetic switch (100), a current transformer (200), a sampling input circuit (300), a first microcontroller, a drive circuit (400), an optocoupler isolation switch, a first test circuit (500) and a second test circuit (600), characterized in that: A live wire and a neutral wire are connected from a mains power input port; an electromagnetic switch (100) is provided on the live wire and the neutral wire near the mains power input port; a current transformer (200) is provided on the live wire and the neutral wire and transmits an induction signal to a sampling input circuit (300); the input circuit transmits the signal to a first microcontroller; the first microcontroller is connected to a drive circuit (400); the drive circuit (400) is connected to the electromagnetic switch (100); a first test circuit (500) is connected to the neutral wire and leads out after passing through the current transformer (200); a second test circuit (600) is connected to the live wire and leads out through a resistor; and the first test circuit (500) and the second test circuit (600) are connected to an optocoupler isolation switch after being led out.
2. The intelligent toilet control circuit with leakage protection according to claim 1, characterized in that: The electromagnetic switch (100) adopts a normally closed double-pole double-throw relay, comprising a double-pole switch portion (110) and an electromagnetic coil portion (120). The double-pole switch portion (110) is connected to a live wire and a neutral wire, one end of the electromagnetic coil portion (120) is connected to the neutral wire, and the other end of the electromagnetic coil portion (120) is connected to the anode of a diode D1, and the cathode of the diode D1 is connected to a drive circuit (400).
3. The intelligent toilet control circuit with leakage protection according to claim 2, characterized in that: The driving circuit (400) comprises a diode D2, a capacitor C3 and a thyristor T2, wherein the anode of the thyristor T2 is connected to the cathode of the diode D1, the cathode of the thyristor T2 is grounded, the control end of the thyristor is connected to the cathode of the diode D2 and one end of the capacitor C3, and the anode of the diode D2 and the other end of the capacitor C3 are connected to an output pin of a microcontroller.
4. The intelligent toilet control circuit with leakage protection according to claim 1, characterized in that: The sampling input circuit (300) comprises a resistor R4, a resistor R11, a capacitor C1, a capacitor C2 and a capacitor C4; an A input terminal of the first microprocessor is connected to one end of the current transformer (200), one end of the resistor R4, one end of the capacitor C1, one end of the capacitor C2 and one end of the capacitor C4; a B input terminal of the first microprocessor is connected to the other end of the capacitor C2 and one end of the resistor R11; the other end of the resistor R11 is connected to the other end of the capacitor C1, the other end of the resistor R4 and the other end of the current transformer (200); and the other end of the capacitor C4 is grounded.
5. The intelligent toilet control circuit with leakage protection according to claim 1, characterized in that: A zero point detection circuit (700) is provided between the live wire and the neutral wire. The part detection circuit comprises a diode D19, a resistor R94, a resistor R93, an optical coupler U13, a resistor R92, a resistor R89, an N-type transistor Q3, a resistor R27, and a capacitor C48. The live wire is connected to the anode of the diode D19, the cathode of the diode D19 is connected in series with the resistor R94 and the resistor R93, the other end of the resistor R93 is connected to the anode of the optical coupler U13, the cathode of the optical coupler U13 is connected to the neutral wire, the collector of the optical coupler U13 is connected to one end of the resistor R92, the other end of the resistor R92 is connected to one end of the resistor R89 and the base of the N-type transistor Q3, the emitter of the N-type transistor Q3 and the other end of the resistor R89 are connected to a weak voltage source, the collector of the N-type transistor Q3 is connected to one end of the resistor R27 and one end of the capacitor C48 and outputs a zero point signal, and the other end of the capacitor C48, the other end of the resistor R27, and the emitter of the optical coupler U13 are grounded.
6. The intelligent toilet control circuit with leakage protection according to claim 5, characterized in that: It also includes a second microprocessor (800) that receives a zero-point signal, and a multi-channel optical coupling isolation switch module (900) is provided on the live wire and the neutral wire.