Intelligent socket with power-off protection
By integrating current detection, voltage detection, and timing circuits into the socket, and using a microcontroller control circuit to achieve power-off protection for the socket, the problem of low socket safety is solved, fire prevention is prevented, and the safety of electrical equipment is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2026-03-10
AI Technical Summary
Existing sockets have limited functionality and low safety, making them prone to fires due to abnormal mains power.
Design a smart socket with power failure protection, integrating current detection, voltage detection and timing circuits. The socket is controlled by a microcontroller to disconnect the power connection in case of overcurrent or overvoltage, and the working time can be manually set.
Effectively protects electrical equipment, prevents fires, and improves the safety and reliability of sockets.
Smart Images

Figure CN223986818U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of socket technology, specifically to a smart socket with power failure protection. Background Technology
[0002] With the development of electronic technology, various electrical appliances (such as mobile phones, televisions, and computers) need to be connected to power through sockets, making sockets increasingly important. Sockets can be installed anywhere in a room according to people's needs, and the socket assembly in the socket is usually always connected to power. When an appliance needs to be connected to power, the user simply plugs the appliance into the socket assembly.
[0003] However, commonly used sockets generally have a limited function, only providing charging capabilities. Therefore, when the mains power is abnormal, it often leads to fires caused by household appliances, failing to meet current needs. Utility Model Content
[0004] This invention proposes a smart socket with power failure protection, which solves the technical problems of limited functionality and low safety of existing sockets.
[0005] The technical solution of this utility model is as follows:
[0006] A smart socket with power failure protection includes a microcontroller, an interruption control circuit, a current detection circuit, a voltage detection circuit, and a timing circuit. The input terminal of the current detection circuit is connected to the mains power, and the output terminal of the current detection circuit is connected to the microcontroller. The input terminal of the voltage detection circuit is connected to the mains power, and the output terminal of the voltage detection circuit is connected to the microcontroller. The output terminal of the timing circuit is connected to the microcontroller. The microcontroller is connected to the input terminal of the interruption control circuit. The output terminal of the interruption control circuit is used to control the electrical connection between the mains power and the socket.
[0007] Furthermore, the switching control circuit includes a resistor R1, a transistor Q1, an optocoupler U1, a bidirectional thyristor Q2, and a bidirectional thyristor Q3. The PA1 pin of the microcontroller is connected to the base of the transistor Q1 through the resistor R1. The emitter of the transistor Q1 is grounded. The collector of the transistor Q1 is connected to the input terminal of the optocoupler U1. The output terminal of the optocoupler U1 is grounded through the resistor R2. The output terminal of the optocoupler U1 is connected to the gate of the bidirectional thyristor Q2. The bidirectional thyristor Q2 is used to connect the neutral wire and the socket. The output terminal of the optocoupler U1 is connected to the gate of the bidirectional thyristor Q3. The bidirectional thyristor Q3 is used to connect the live wire and the socket.
[0008] Furthermore, the current detection circuit includes resistors R3, R4, and R5, operational amplifier U2, resistor R7, and optocoupler U3. The first end of resistor R3 is connected to the neutral wire, and the second end of resistor R3 is connected to the live wire. The first end of resistor R3 is connected to the inverting input terminal of operational amplifier U2 through resistor R4, and the second end of resistor R3 is connected to the non-inverting input terminal of operational amplifier U2 through resistor R5. The output terminal of operational amplifier U2 is connected to the input terminal of optocoupler U3 through resistor R7, and the output terminal of optocoupler U3 is connected to pin PA2 of the microcontroller.
[0009] Furthermore, the voltage detection circuit includes resistors R9, R10, and R11, diode D1, and optocoupler U4. The first end of resistor R9 is connected to the neutral wire, the second end of resistor R9 is connected to the live wire through resistor R10, the second end of resistor R9 is connected to the anode of diode D1, the cathode of diode D1 is connected to the input terminal of optocoupler U4 through resistor R11, and the output terminal of optocoupler U4 is connected to pin PA3 of the microcontroller.
[0010] Furthermore, the timing circuit includes a switch S1, a variable resistor RP1, a capacitor C3, a diode D2, a thyristor Q4, resistors R14 and R18, and an optocoupler U5. The first terminal of the switch S1 is connected to a 5V power supply, and the second terminal of the switch S1 is connected to the first terminal of the variable resistor RP1. The second terminal of the variable resistor RP1 is connected to the positive terminal of the capacitor C3. The negative terminal of the capacitor C3 is grounded, and the positive terminal of the capacitor C3 is grounded through the resistor R14. The positive terminal of the capacitor C3 is connected to the anode of the diode D2, and the cathode of the diode D2 is connected to the gate of the thyristor Q4. The first terminal of the thyristor Q4 is connected to a 5V power supply, and the second terminal of the thyristor Q4 is grounded through the resistor R18. The second terminal of the thyristor Q4 is connected to the input terminal of the optocoupler U5, and the output terminal of the optocoupler U5 is connected to pin PA4 of the microcontroller.
[0011] The working principle and beneficial effects of this utility model are as follows:
[0012] In this invention, a current detection circuit detects whether there is an overcurrent condition in the mains power supply, and a voltage detection circuit detects whether there is an overvoltage condition. When the mains power supply experiences overcurrent or overvoltage, the current detection circuit or the voltage detection circuit inputs a fault signal to the microcontroller. Upon receiving the fault signal, the microcontroller uses a disconnection control circuit to disconnect the electrical connection between the mains power supply and the socket, protecting the safety of the electrical equipment. Simultaneously, a timing circuit allows users to manually set the socket's operating time, turning off the power supply when the socket is not in use, further enhancing electrical safety.
[0013] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Attached Figure Description
[0014] Figure 1 This is a schematic diagram of the principle of this utility model;
[0015] Figure 2 This is a circuit diagram of the switching control circuit in this utility model;
[0016] Figure 3 This is a circuit diagram of the current detection circuit in this utility model;
[0017] Figure 4 This is a circuit diagram of the voltage detection circuit in this utility model;
[0018] Figure 5 This is a circuit diagram of the timing circuit in this utility model. Detailed Implementation
[0019] The technical solutions of this utility model will be clearly and completely described below with reference to the embodiments of this utility model. Obviously, the described embodiments are only some embodiments of this utility model, and not all embodiments. Based on the embodiments of this utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this utility model. Example
[0020] This embodiment proposes a smart socket with power failure protection, such as... Figure 1 As shown, the device includes a microcontroller, an interruption control circuit, a current detection circuit, a voltage detection circuit, and a timing circuit. The input terminal of the current detection circuit is connected to the mains power, and the output terminal of the current detection circuit is connected to the microcontroller. The input terminal of the voltage detection circuit is connected to the mains power, and the output terminal of the voltage detection circuit is connected to the microcontroller. The output terminal of the timing circuit is connected to the microcontroller. The microcontroller is connected to the input terminal of the interruption control circuit, and the output terminal of the interruption control circuit is used to control the electrical connection between the mains power and the socket.
[0021] In this embodiment, a current detection circuit detects whether there is an overcurrent condition in the mains power, and a voltage detection circuit detects whether there is an overvoltage condition. When there is an overcurrent or overvoltage, the current detection circuit or the voltage detection circuit inputs a fault signal to the microcontroller. In response to receiving the fault signal, the microcontroller uses a disconnection control circuit to disconnect the electrical connection between the mains power and the socket, protecting the safety of the electrical equipment. Simultaneously, a timing circuit allows users to manually set the socket's operating time, turning off the power supply when the socket is not in use, further ensuring electrical safety.
[0022] further,
[0023] like Figure 2 As shown, the switching control circuit includes a resistor R1, a transistor Q1, an optocoupler U1, a bidirectional thyristor Q2, and a bidirectional thyristor Q3. The PA1 pin of the microcontroller is connected to the base of the transistor Q1 through the resistor R1. The emitter of the transistor Q1 is grounded. The collector of the transistor Q1 is connected to the input terminal of the optocoupler U1. The output terminal of the optocoupler U1 is grounded through the resistor R2. The output terminal of the optocoupler U1 is connected to the gate of the bidirectional thyristor Q2. The bidirectional thyristor Q2 is used to connect the neutral wire and the socket. The output terminal of the optocoupler U1 is connected to the gate of the bidirectional thyristor Q3. The bidirectional thyristor Q3 is used to connect the live wire and the socket.
[0024] In this embodiment, the microcontroller inputs a high-level signal to the switching control circuit, driving transistor Q1 to conduct, which in turn drives optocoupler U1 to conduct, thereby driving bidirectional thyristors Q2 and Q3 to conduct, connecting the socket to the mains power and providing normal power supply. When a fault occurs, the microcontroller inputs a low-level signal to the switching control circuit, cutting off transistor Q1, which in turn cuts off optocoupler U1, thereby turning off bidirectional thyristors Q2 and Q3, disconnecting the socket from the mains power, and stopping power supply.
[0025] further,
[0026] like Figure 3 As shown, the current detection circuit includes resistors R3, R4, and R5, operational amplifier U2, resistor R7, and optocoupler U3. The first end of resistor R3 is connected to the neutral wire, and the second end of resistor R3 is connected to the live wire. The first end of resistor R3 is connected to the inverting input terminal of operational amplifier U2 through resistor R4, and the second end of resistor R3 is connected to the non-inverting input terminal of operational amplifier U2 through resistor R5. The output terminal of operational amplifier U2 is connected to the input terminal of optocoupler U3 through resistor R7, and the output terminal of optocoupler U3 is connected to pin PA2 of the microcontroller.
[0027] In this embodiment, the acquisition of mains current utilizes the principle of Ohm's law to convert a large current signal into a small voltage signal. The mains current is converted into a voltage signal through resistor R3, then amplified by single-stage negative feedback operational amplifier U2. The voltage signal after low-pass filtering through resistor R8 and capacitor C1 is sufficient to drive optocoupler U3 to conduct. This signal is then isolated and input to the microcontroller.
[0028] further,
[0029] like Figure 4As shown, the voltage detection circuit includes resistors R9, R10, and R11, diode D1, and optocoupler U4. The first end of resistor R9 is connected to the neutral wire, the second end of resistor R9 is connected to the live wire through resistor R10, the second end of resistor R9 is connected to the anode of diode D1, the cathode of diode D1 is connected to the input terminal of optocoupler U4 through resistor R11, and the output terminal of optocoupler U4 is connected to pin PA3 of the microcontroller.
[0030] In this embodiment, the acquisition of the mains voltage signal adopts the principle of resistor voltage division. The mains voltage of 220 V is divided into a 0-5 V voltage signal by resistors R9 and R10. After half-wave rectification by diode D1, and low-pass filtering by R12 and capacitor C2, the voltage signal is sufficient to drive optocoupler U4 to conduct. The signal is then isolated and input to the microcontroller.
[0031] further,
[0032] like Figure 5 As shown, the timing circuit includes a switch S1, a variable resistor RP1, a capacitor C3, a diode D2, a thyristor Q4, resistors R14 and R18, and an optocoupler U5. The first terminal of the switch S1 is connected to a 5V power supply, and the second terminal of the switch S1 is connected to the first terminal of the variable resistor RP1. The second terminal of the variable resistor RP1 is connected to the positive terminal of the capacitor C3. The negative terminal of the capacitor C3 is grounded, and the positive terminal of the capacitor C3 is grounded through the resistor R14. The positive terminal of the capacitor C3 is connected to the anode of the diode D2, and the cathode of the diode D2 is connected to the gate of the thyristor Q4. The first terminal of the thyristor Q4 is connected to a 5V power supply, and the second terminal of the thyristor Q4 is grounded through the resistor R18. The second terminal of the thyristor Q4 is connected to the input terminal of the optocoupler U5, and the output terminal of the optocoupler U5 is connected to pin PA4 of the microcontroller.
[0033] In this embodiment, when the working time of the socket needs to be set, pressing switch S1 starts charging capacitor C3, thus achieving a timing effect. The resistance of the externally provided knob RP1 is adjusted to change the charging time of C3, thereby adjusting the timing. When capacitor C3 charges to a certain value, diode D2 drives thyristor Q4 to conduct, which in turn drives optocoupler U5 to conduct, inputting a high-level signal to the microcontroller. The microcontroller's PA4 pin recognizes this signal and outputs a low-level signal to the switching control circuit, cutting off the path between the socket and the mains power, stopping the socket's power supply, and ensuring electrical safety. The function of diode D2 is to provide a voltage drop across the diode; therefore, diode D3 can be connected in series with diode D2 to increase the charging time.
[0034] The above are merely preferred embodiments of the present utility model and are not intended to limit the present utility model. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present utility model shall be included within the protection scope of the present utility model.
Claims
1. A smart socket with power-off protection, characterized in that, The utility model discloses a circuit for controlling the power supply to be cut off, which comprises a single-chip microcomputer, a cut-off control circuit, a current detection circuit, a voltage detection circuit and a timing circuit, the input end of the current detection circuit is connected to the mains, the output end of the current detection circuit is connected to the single-chip microcomputer, the input end of the voltage detection circuit is connected to the mains, the output end of the voltage detection circuit is connected to the single-chip microcomputer, the output end of the timing circuit is connected to the single-chip microcomputer, the input end of the cut-off control circuit is connected to the single-chip microcomputer, and the output end of the cut-off control circuit is used for controlling the electrical connection between the mains and the socket.
2. The smart socket with power-off protection according to claim 1, characterized in that, The cut-off control circuit comprises a resistor R1, a transistor Q1, an optical coupler U1, a bidirectional thyristor Q2 and a bidirectional thyristor Q3, the PA1 pin of the single-chip microcomputer is connected to the base of the transistor Q1 through the resistor R1, the emitter of the transistor Q1 is grounded, the collector of the transistor Q1 is connected to the input end of the optical coupler U1, the output end of the optical coupler U1 is grounded through a resistor R2, the output end of the optical coupler U1 is connected to the gate of the bidirectional thyristor Q2, the bidirectional thyristor Q2 is used for connecting the zero line and the socket, the output end of the optical coupler U1 is connected to the gate of the bidirectional thyristor Q3, and the bidirectional thyristor Q3 is used for connecting the live line and the socket.
3. The smart socket with power-off protection according to claim 1, characterized in that, The current detection circuit comprises a resistor R3, a resistor R4, a resistor R5, an operational amplifier U2, a resistor R7 and an optical coupler U3, the first end of the resistor R3 is connected to the zero line, the second end of the resistor R3 is connected to the live line, the first end of the resistor R3 is connected to the inverting input end of the operational amplifier U2 through the resistor R4, the second end of the resistor R3 is connected to the non-inverting input end of the operational amplifier U2 through the resistor R5, the output end of the operational amplifier U2 is connected to the input end of the optical coupler U3 through the resistor R7, and the output end of the optical coupler U3 is connected to the PA2 pin of the single-chip microcomputer.
4. The smart socket with power-off protection according to claim 1, characterized in that, The voltage detection circuit comprises a resistor R9, a resistor R10, a resistor R11, a diode D1 and an optical coupler U4, the first end of the resistor R9 is connected to the zero line, the second end of the resistor R9 is connected to the live line through the resistor R10, the second end of the resistor R9 is connected to the anode of the diode D1, the cathode of the diode D1 is connected to the input end of the optical coupler U4 through the resistor R11, and the output end of the optical coupler U4 is connected to the PA3 pin of the single-chip microcomputer.
5. The smart socket with power-off protection according to claim 1, wherein, The timing circuit includes switch S1, rheostat RP1, capacitor C3, diode D2, thyristor Q4, resistor R14, resistor R18 and optocoupler U5, the first end of the switch S1 is connected with 5V power supply, the second end of the switch S1 is connected with the first end of the rheostat RP1, the second end of the rheostat RP1 is connected with the positive electrode of the capacitor C3, the negative electrode of the capacitor C3 is grounded, the positive electrode of the capacitor C3 is grounded through the resistor R14, the positive electrode of the capacitor C3 is connected with the anode of the diode D2, the cathode of the diode D2 is connected with the gate of the thyristor Q4, the first end of the thyristor Q4 is connected with 5V power supply, the second end of the thyristor Q4 is grounded through the resistor R18, the second end of the thyristor Q4 is connected with the input end of the optocoupler U5, and the output end of the optocoupler U5 is connected with the PA4 pin of the single-chip microcomputer.