Relay driving circuit and intelligent socket
By designing a relay drive circuit in the smart socket, the mains voltage is detected in real time and the relay is controlled to switch within the low-voltage range, which solves the arcing problem caused by the normally open relay switching in the mains voltage peak range, thereby improving safety and service life.
Patent Information
- Application Number
- CN202422666194.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2034-10-31
AI Technical Summary
The normally open relays used in existing smart sockets are prone to arcing when switching within the peak range of the mains voltage, resulting in safety hazards and reduced service life.
A relay drive circuit is designed, including a detection module, a trigger module, a control module and a relay RLY1. By detecting the instantaneous voltage of the mains in real time and outputting a signal when the instantaneous voltage is less than a first preset voltage, the relay is controlled to switch the connection state within a lower voltage range to avoid arcing.
This effectively avoids the relay from switching in the high voltage range, improving the safety and service life of the smart socket.
Smart Images

Figure CN223427425U_ABST
Abstract
Description
Technical field
[0001] The utility model relates to the technical field of electronic circuits, and in particular to a relay drive circuit and an intelligent socket. [Background Technology]
[0002] With the emergence of smart hardware devices, smart sockets, as a simple and practical smart product, have been widely used. During use, smart sockets mainly use the electromagnetic effect of relays to realize the on and off of smart sockets.
[0003] The relays used in smart sockets on the market are basically normally open relays, but the mains power is 220V / 50Hz AC. At this time, if the relay switches, it may switch in the peak range of the mains voltage, resulting in switch arcing, which poses a safety hazard to the smart socket and reduces the service life of the smart socket. [Utility Model Content]
[0004] The embodiments of the present invention provide a relay drive circuit and a smart socket, aiming to solve the technical problems of safety hazards and short service life of smart sockets in the prior art.
[0005] In order to solve the above technical problems, a technical solution adopted by the embodiment of the present utility model is: providing a relay driving circuit, the relay driving circuit includes a detection module, a trigger module, a control module and a relay RLY1;
[0006] The detection module is connected to the trigger module, the detection module is also used to connect to the mains, the trigger module is connected to the control module, the control module is connected to the coil end of the relay RLY1, the common end of the relay RLY1 is connected to the mains, the connection ends of the relay RLY1 are respectively connected to the load or the discharge port, and the trigger module is also used to receive a drive signal;
[0007] The detection module is used to detect the instantaneous voltage of the mains power and output a first signal to the trigger module when the instantaneous voltage is less than a first preset voltage;
[0008] The trigger module is used to output a corresponding control signal to the control module according to the drive signal at the moment of receiving the first signal, so that the control module controls the relay RLY1 to switch the connection state after receiving the control signal, so that the relay RLY1 completes the switching action when the instantaneous voltage is less than a second preset voltage, wherein the second preset voltage is less than the first preset voltage.
[0009] Optionally, the detection module includes a voltage dividing unit and a comparison unit;
[0010] The voltage dividing unit is connected with the commercial power and the comparison unit respectively, the comparison unit is connected with the trigger module, and the comparison unit is also used for receiving a reference voltage;
[0011] The voltage dividing unit is used for collecting an instantaneous voltage of the commercial power, dividing the instantaneous voltage, and outputting a first voltage to the comparison unit when the instantaneous voltage is less than the first preset voltage; and
[0012] The voltage dividing unit is used for collecting an instantaneous voltage of the commercial power, dividing the instantaneous voltage, and outputting a first voltage to the comparison unit when the instantaneous voltage is less than the first preset voltage; and
[0013] The comparison unit is used for outputting a first signal to the trigger module according to the first voltage and the reference voltage after receiving the first voltage; and
[0014] The comparison unit is used for outputting a first signal to the trigger module according to the first voltage and the reference voltage after receiving the first voltage; and
[0015] Optionally, the voltage dividing unit comprises a resistor R1 and a resistor R2.
[0016] The resistor R1 is connected with the commercial power and the comparison unit respectively, the resistor R1 is also connected with the resistor R2 in series, and the resistor R2 is also used for grounding.
[0017] Optionally, the comparison unit comprises a comparator U1A.
[0018] A first input end of the comparator U1A is used for receiving a reference voltage, a second input end of the comparator U1A is connected with the voltage dividing unit, and an output end of the comparator U1A is connected with the trigger module.
[0019] Optionally, the comparison unit further comprises a pull-up resistor R3.
[0020] The pull-up resistor R3 is connected with the output end of the comparator U1A, and the pull-up resistor R3 is also connected with a first power supply.
[0021] Optionally, the trigger module comprises a flip-flop U1 and a pull-up resistor R4.
[0022] A clock input end of the flip-flop U1 is connected with the detection module, a clear data end of the flip-flop U1 is connected with a second power supply through the pull-up resistor R4, a signal input end of the flip-flop U1 is used for receiving the driving signal, and an output end of the flip-flop U1 is connected with the control module.
[0023] Optionally, the trigger U1 is configured to output a corresponding control signal to the control module according to the drive signal at the moment the clock input terminal receives the first signal, so as to control the relay RLY1 to switch the connection state when the instantaneous voltage is less than the second preset voltage; and
[0024] After the clock input terminal receives the first signal or the second signal, the control signal is continuously outputted to maintain the relay RLY1 in the current connection state.
[0025] Optionally, the control module includes a resistor R5, a resistor R6 and a switch tube Q1;
[0026] The control end of the switch tube Q1 is connected to the trigger module through the resistor R5. The control end of the switch tube Q1 is also connected to the second end of the switch tube Q1 through the resistor R6. The first end of the switch tube Q1 is connected to the coil end of the relay RLY1, and the second end of the switch tube Q1 is used for grounding.
[0027] Optionally, the relay drive circuit further includes a fault detection module;
[0028] The fault detection module is connected to the discharge port, and the fault detection module is further used to receive the driving signal;
[0029] The fault detection module is used to detect the output voltage of the discharge port and output a fault signal when the output voltage is lower than the driving voltage corresponding to the driving signal.
[0030] In order to solve the above technical problems, another technical solution adopted by the embodiment of the present invention is: providing a smart socket, which includes the relay drive circuit mentioned above.
[0031] Different from the related art, the present invention provides a relay drive circuit and a smart socket. The relay drive circuit includes a detection module, a trigger module, a control module, and a relay RLY1. The detection module is connected to the trigger module, the detection module is also used to connect to the mains power, the trigger module is connected to the control module, the control module is connected to the coil end of the relay RLY1, the common end of the relay RLY1 is connected to the mains power, and the connection end of the relay RLY1 is respectively connected to the load or discharge port. The trigger module is also used to receive a drive signal. The detection module is used to detect the instantaneous voltage of the mains power and output a first signal to the trigger module when the instantaneous voltage is less than a first preset voltage. The trigger module is used to output a corresponding control signal to the control module according to the drive signal at the moment of receiving the first signal, so that the control module controls the relay RLY1 to switch the connection state after receiving the control signal, so that the relay RLY1 completes the switching action when the instantaneous voltage is less than a second preset voltage, thereby ensuring that the relay RLY1 switches the connection state within a lower voltage range, thereby avoiding arcing and improving the safety of the smart socket. The second preset voltage is lower than the first preset voltage.
Brief Description of the Drawings
[0032] One or more embodiments are exemplarily illustrated by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0033] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present utility model;
[0034] Figure 2 This is a structural block diagram of a relay drive circuit provided by an embodiment of the present utility model;
[0035] Figure 3 This is a circuit diagram of a relay drive circuit provided by an embodiment of the present utility model;
[0036] Figure 4 This is a circuit diagram of a control module provided by an embodiment of the present utility model;
[0037] Figure 5 This is a structural block diagram of a relay drive circuit provided by another embodiment of the present invention;
[0038] Figure 6 This is a circuit diagram of a fault detection module provided by an embodiment of the present utility model;
[0039] Figure 7This is a circuit diagram of a relay drive circuit provided by another embodiment of the present utility model. [Specific implementation method]
[0040] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0041] The technical features involved in the various embodiments of the present application described below do not conflict with each other and can be combined with each other.
[0042] When an element is referred to as being “connected to” another element, it can be directly connected to the other element, or one or more intervening elements may be present therebetween.
[0043] The terms "first," "second," and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein. Furthermore, the objects distinguished by "first," "second," and the like are generally of a class, and do not limit the number of objects. For example, the first object may be one or more.
[0044] Unless otherwise defined, all technical and scientific terms used in this specification have the same meanings as those commonly understood by those skilled in the art in the field of the present invention. The terms used in this specification are intended only to describe specific embodiments and are not intended to limit the present invention. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items.
[0045] See also Figure 1 , Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present utility model. Figure 1 As shown, the application scenario 1 includes a mains power supply 100, a smart socket 200 and a load 300; the mains power supply 100 supplies power to the load 300 through the smart socket 200. Figure 1As shown, the smart socket 200 includes a relay drive circuit 10 and a controller 20. The relay drive circuit 10 is connected to the mains power 100 and the load 300, respectively. The relay drive circuit 10 is also connected to the controller 20. The relay drive circuit 10 is used to receive a voltage signal output by the mains power 100 and transmit the voltage signal to the load 300 to power the load 300. While the mains power 100 is supplying power to the load 300 through the relay drive circuit 10, the relay drive circuit 10 also detects the instantaneous voltage of the mains power 100 in real time. When the instantaneous voltage meets a condition, the relay drive circuit 10 disconnects the power supply circuit of the mains power 100 according to the drive signal output by the controller 20.
[0046] In some embodiments, as Figure 1 As shown, the controller 20 is also connected to the load 300. The controller 20 is used to detect the working status of the load 300 in real time, output a corresponding driving signal in real time according to the working status of the load 300, and control the working status of the relay drive circuit 10 according to the driving signal.
[0047] See also Figure 2 , Figure 2 This is a structural block diagram of a relay drive circuit provided by an embodiment of the present invention. Figure 2 As shown, the relay drive circuit 10 includes a detection module 11, a trigger module 12, a control module 13 and a relay RLY1;
[0048] The detection module 11 is connected to the trigger module 12, and the detection module 11 is also used to connect to the mains 100. The trigger module 12 is connected to the control module 13, and the control module 13 is connected to the coil end of the relay RLY1. The common end of the relay RLY1 is connected to the mains 100, and the connection end of the relay RLY1 is respectively connected to the load 300 or the discharge port 14 (not shown). The trigger module 12 is also used to receive a drive signal;
[0049] The detection module 11 is used to detect the instantaneous voltage of the mains 100 and output a first signal to the trigger module 12 when the instantaneous voltage is less than a first preset voltage;
[0050] The trigger module 12 is used to output a corresponding control signal to the control module 13 according to the drive signal at the moment of receiving the first signal, so that the control module 13 controls the relay RLY1 to switch the connection state after receiving the control signal, so that the relay RLY1 completes the switching action when the instantaneous voltage is less than the second preset voltage, wherein the second preset voltage is less than the first preset voltage.
[0051] It can be known that when the smart socket 200 is working normally, the connection end of the relay RLY1 will be connected to the load 300, so that the mains power 100 supplies power to the load 300 through the relay RLY1. When it is necessary to stop supplying power to the load 300, the connection end of the relay RLY1 will be switched to be connected to the discharge port 14 to discharge the voltage signal output by the mains power 100. Therefore, the relay RLY1 will switch the connection state of the connection end according to different needs. However, the voltage signal output by the mains power 100 is alternating current, and its voltage signal will change over time. If the relay RLY1 switches the connection state when the voltage signal of the mains power 100 is in a high voltage state, it will cause the relay RLY1 to arc, thereby causing a safety accident.
[0052] Therefore, the detection module 11 detects the instantaneous voltage of the mains 100 in real time, and outputs a first signal to the trigger module 12 when the instantaneous voltage is less than a first preset voltage, so that the trigger module 12 outputs a control signal to the control module 13 according to the drive signal at the moment of receiving the first signal, so that the control module 13 controls the relay RLY1 to switch the connection state when the instantaneous voltage is less than a second preset voltage, thereby ensuring that the relay RLY1 switches the connection state under a low-voltage state to avoid arcing.
[0053] In some embodiments, as Figure 2 As shown, the detection module 11 includes a voltage dividing unit 111 and a comparison unit 112;
[0054] The voltage dividing unit 111 is connected to the mains 100 and the comparison unit 112 respectively. The comparison unit 112 is connected to the trigger module 12. The comparison unit 112 is also used to receive a reference voltage.
[0055] The voltage dividing unit 111 is used to collect the instantaneous voltage of the mains 100 to divide the instantaneous voltage, and output a first voltage to the comparison unit 112 when the instantaneous voltage is less than the first preset voltage; and
[0056] When the instantaneous voltage is greater than the first preset voltage, outputting a second voltage to the comparison unit 112;
[0057] The comparison unit 112 is configured to output a first signal to the trigger module 12 according to the first voltage and the reference voltage after receiving the first voltage; and
[0058] When the second voltage is received, a second signal is output to the trigger module 12 according to the second voltage and the reference voltage.
[0059] Specifically, when the mains power 100 outputs a voltage signal, the voltage divider unit 111 will collect the instantaneous voltage of the mains power 100 in real time to divide the instantaneous voltage and input the divided instantaneous voltage to the second input terminal of the comparison unit 112. When the instantaneous voltage is less than the first preset voltage, the second output terminal of the comparison unit 112 will receive the first voltage; when the instantaneous voltage is greater than the first preset voltage, the second input terminal of the comparison unit 112 will receive the second voltage. After the comparison unit 112 receives the voltage output by the voltage divider unit 111, the first input terminal of the comparison unit 112 will also receive the reference voltage and compare the reference voltage with the divided instantaneous voltage. At this time, if the reference voltage is greater than the instantaneous voltage after voltage division, it is considered that the instantaneous voltage is less than the first preset voltage, that is, the comparison unit 112 receives the first voltage, and the comparison unit 112 outputs a first signal to the trigger module 12; if the reference voltage is less than the instantaneous voltage after voltage division, it is considered that the instantaneous voltage is greater than the first preset voltage, that is, the comparison unit 112 receives the second voltage, and the comparison unit 112 outputs a second signal to the trigger module 12.
[0060] In some embodiments, see Figure 3 , Figure 3 This is a circuit diagram of a relay drive circuit provided by an embodiment of the present utility model, such as Figure 3 As shown, the voltage dividing unit 111 includes a resistor R1 and a resistor R2; the comparison unit 112 includes a comparator U1A;
[0061] The resistor R1 is connected to the mains 100 (IN-L) and the comparison unit 112 respectively. The resistor R1 is also connected in series with the resistor R2. The resistor R2 is also grounded.
[0062] The first input terminal of the comparator U1A is used to receive a reference voltage, the second input terminal of the comparator U1A is connected to the voltage divider unit 111 , and the output terminal of the comparator U1A is connected to the trigger module 12 .
[0063] When the mains 100 outputs a voltage signal, the resistors R1 and R2 can obtain the instantaneous voltage of the mains 100 in real time, divide the instantaneous voltage, and input the divided instantaneous voltage to the second input end (inverted input end) of the comparator U1A. After the comparator U1A receives the divided instantaneous voltage, the comparator U1A compares the divided instantaneous voltage with the reference voltage. If the divided instantaneous voltage is less than the reference voltage, it is considered that the instantaneous voltage is less than the first preset voltage, and at this time the comparator U1A outputs a high-level signal (first signal). If the divided instantaneous voltage is greater than the reference voltage, it is considered that the instantaneous voltage is greater than the first preset voltage, and at this time the comparator U1A outputs a low-level signal (second signal). Since the voltage signal output by the mains 100 changes over time, the output of the comparator U1A also switches between the high-level signal and the low-level signal.
[0064] It should be noted that when setting the voltage value of the reference voltage and the resistance values of the resistors R1 and R2, it is necessary to ensure that [reference voltage * (R1 + R2)] / R2 < first preset voltage. Based on this, when the instantaneous voltage divided by the resistors R1 and R2 is less than the reference voltage, the instantaneous voltage is less than the first preset voltage.
[0065] In some embodiments, as shown in Figure 3 The comparison unit 112 further includes a pull-up resistor R3.
[0066] The pull-up resistor R3 is connected to the output end of the comparator U1A, and the pull-up resistor R3 is further connected to the first power supply 51.
[0067] In another embodiment, as shown in Figure 3 The trigger module 12 includes a flip-flop U1 and a pull-up resistor R4.
[0068] The clock input end of the flip-flop U1 is connected to the detection module 11, the clear data end of the flip-flop U1 is connected to the second power supply 52 through the pull-up resistor R4, the signal input end of the flip-flop U1 is used to receive the driving signal, and the output end of the flip-flop U1 is connected to the control module 13.
[0069] It should be noted that the flip-flop U1 is a monostable flip-flop. Only when the clear data end of the flip-flop U1 receives a high level, the flip-flop U1 outputs a corresponding signal according to the input signal of the signal input end at the rising edge.
[0070] As shown in Figure 3As shown, the clear data terminal of the trigger U1 is connected to the second power supply 52 in real time through the pull-up circuit R4, thereby ensuring that the clear data terminal of the trigger U1 continues to receive a high-level signal. At this time, when the comparison unit 112 outputs the first signal, the trigger U1 will output a corresponding control signal according to the drive signal of the signal input terminal. For example, if the drive signal is a high-level signal, the control signal will also be a high-level signal. When the comparison unit 112 continues to output the first signal or the second signal, the output terminal of the trigger U1 will maintain the output state of the output terminal, that is, the control signal output by the trigger U1 is still a high-level signal. At this time, even after the drive signal is converted to the second signal, the trigger U1 will still continue to output a high-level signal. Based on this, the trigger U1 improves the stability and reliability of the relay drive circuit.
[0071] In yet another embodiment, see Figure 4 , Figure 4 This is a circuit diagram of a control module provided by an embodiment of the present utility model, such as Figure 4 As shown, the control module 11 includes a resistor R5, a resistor R6 and a switch tube Q1;
[0072] The control end of the switch tube Q1 receives a control signal (RLY-L) through the resistor R5. The control end of the switch tube Q1 is also connected to the second end of the switch tube Q1 through the resistor R6. The first end of the switch tube Q1 is connected to the coil end of the relay RLY1, and the second end of the switch tube Q1 is used for grounding.
[0073] In some embodiments, as Figure 4 As shown, the normally closed terminal of relay RLY1 is connected to the load 300 (not shown), and the normally open terminal of relay RLY1 is connected to the discharge port 14 (not shown). When trigger U1 outputs a corresponding control signal based on the drive signal (SCL), if the control signal is the first signal, switch Q1 is turned on according to the control signal, thereby grounding the coil terminal of relay RLY1 through switch Q1, and energizing the coil terminal of relay RLY1. At this time, relay RLY1 switches to connect to the discharge port 14 (i.e., relay RLY1 switches from pin 4 to pin 5), thereby stopping power supply to load 300. If the control signal is the second signal, switch Q1 is turned off, thereby maintaining the connection between relay RLY1 and load 300.
[0074] In yet another embodiment, the normally closed end of the relay RLY1 can also be connected with the drain port 14, and the normally open end of the relay RLY1 is connected with the load 300, when the control module 13 receives the first signal, the relay RLY1 is switched to be connected with the load 300 according to the first signal, and the relay RLY1 is switched to be connected with the drain port 14 according to the second signal.
[0075] In some embodiments, as shown in Figure 4 The control module 13 further comprises an anti-inverted diode D1, the cathode of the anti-inverted diode D1 is connected with the control end of the switch tube Q1 through a resistor R5, and the anode of the anti-inverted diode D1 is connected with the output end of the flip-flop U1. The anti-inverted diode D1 is used to prevent the voltage of the coil end of the relay RLY1 from flowing back to the flip-flop U1 through the switch tube Q1 when the switch tube Q1 is turned on.
[0076] In some embodiments, as shown in Figure 5 , Figure 5 is a structural block diagram of a relay driving circuit provided by another embodiment of the utility model, as shown in Figure 5 The relay driving circuit 10 further comprises a fault detection module 15;
[0077] The fault detection module 15 is connected with the drain port 14, and the fault detection module 15 is further used to receive the driving signal;
[0078] The fault detection module 15 is used to detect the output voltage of the drain port 14, and outputs a fault signal when the output voltage is lower than the voltage corresponding to the driving signal.
[0079] In some embodiments, the normally closed end of the relay RLY1 is connected with the load 300, and the normally open end of the relay RLY1 is connected with the drain port 14, when the flip-flop U1 outputs a first signal to the control module 13, the control module 13 controls the relay RLY1 to be switched to be connected with the drain port 14. At this time, the fault detection module 15 detects the output voltage of the drain port 14, and outputs a fault signal when the output voltage is lower than the driving voltage corresponding to the driving signal, and considers that the relay RLY1 is not switched to be connected, and if the output voltage is higher than the driving voltage corresponding to the driving signal, it is considered that the relay RLY1 is successfully switched to be connected, and the relay RLY1 does not have a fault.
[0080] Further, as shown in Figure 5 The relay driving circuit 10 further comprises a protection module 16;
[0081] The protection module 16 is connected with the fault detection module 15, and the protection module 16 is also connected with the normally closed end of the relay RLY1 and the load 300 respectively;
[0082] The protection module 16 is used for cutting off the voltage signal output by the relay RLY1 according to the fault signal after receiving the fault signal.
[0083] In some embodiments, when the normally closed end of the relay RLY1 is connected with the load 300, if the load 300 fails (for example, overload, etc.), the controller 20 outputs a corresponding driving signal to the flip-flop U1 based on the fault condition of the load 300, so as to output a corresponding control signal to the control module 13 based on the flip-flop U1, thereby making the relay RLY1 switch to a normally open state, and then cutting off the power supply circuit of the load 300. It should be noted that if the relay RLY1 also fails when the load 300 fails, the power supply of the load 300 by the power supply 100 through the relay RLY1 will continue, thereby causing a safety hazard. Based on this, the protection module 16 is arranged between the normally closed end of the relay RLY1 and the load 300, so that the output of the relay RLY1 is cut off according to the fault signal after the fault detection module 15 outputs the fault signal, thereby stopping the power supply of the load 300 by the power supply 100, and improving the safety of the intelligent socket.
[0084] In some embodiments, please refer to Figure 6 , Figure 6 is a circuit diagram of a fault detection module provided by the utility model embodiment, as Figure 6 shown, the fault detection module 15 includes a comparator U1B, a pull-up resistor R9, a resistor R8, a resistor R7, a voltage stabilizing tube D2 and a capacitor C2;
[0085] The resistor R8 is connected with the normally open end (bleed port 14) of the relay RLY1 and the anode of the voltage stabilizing tube D2 respectively, the resistor R7 is connected with the resistor R8 in series, and the resistor R7 is also used for grounding, the cathode of the voltage stabilizing tube D2 is connected with the capacitor C2 and the inverting input end of the comparator U1B respectively, the capacitor C2 is also used for grounding, the noninverting input end of the comparator U1B is used for receiving the driving signal, the output end of the comparator U1B is connected with the first power supply 51 through the pull-up resistor R9, and the output end of the comparator U1B is used for being connected with the protection module 16.
[0086] Specifically, when the AC power 100 supplies power to the load 300, the resistors R7 and R8 will obtain the output voltage of the normally open end of the relay RLY1 in real time to divide the output voltage and input the divided output voltage into the reverse input end of the comparator U1B. After the reverse input end of the comparator U1B receives the divided output voltage, it will compare the divided output voltage with the driving voltage corresponding to the driving signal. If the driving signal is the first signal and the divided output voltage is greater than the driving voltage, the comparator U1B will output a normal signal. At this time, it is considered that the relay RLY1 switches the connection state normally according to the driving signal; if the driving signal is the first signal and the divided output voltage is less than the driving voltage, the comparator U1B will output a high-level signal (fault signal).
[0087] In yet another embodiment, Figure 6 As shown, the protection module 16 includes a relay RLY2, a resistor R11, a capacitor C3 and a switch tube Q2;
[0088] The control end of the switch tube Q2 is connected to the fault detection module 15. The control end of the switch tube Q2 is also connected to the second end of the switch tube Q2 through the resistor R11. The capacitor C3 is connected in parallel with the resistor R11. The first end of the switch tube Q2 is connected to the coil end of the relay RLY2. The second end of the switch tube Q2 is also used for grounding. The connection end of the relay RLY2 is respectively connected to the normally closed end of the relay RLY1 and the load 300.
[0089] When the fault detection module 15 outputs a fault signal, the switch Q2 is turned on based on the fault signal, thereby forming a loop at the coil end of the relay RLY2. This means that the coil end of the relay RLY2 is energized. At this point, the relay RLY2 switches its connection state, thereby disconnecting the mains power supply circuit 100.
[0090] In some embodiments, as Figure 6 As shown, the protection module 16 further includes a light-emitting diode LED1;
[0091] The anode of the light-emitting diode LED1 is connected to the fault detection module 15, and the cathode of the light-emitting diode LED1 is connected to the control terminal of the switch tube Q2. When the fault detection module 15 outputs the fault signal, the light-emitting diode LED1 will illuminate an alarm based on the fault signal light to inform the user that the smart socket 200 has a fault, thereby improving the safety of the smart socket.
[0092] In another embodiment, the light-emitting diode LED1 is also connected to the controller 20. When the light-emitting diode LED1 prompts an alarm based on the fault signal, the fault signal (M-LEDN-O) is also input into the controller 20 to inform the user that the smart socket has a fault based on the controller 20, thereby improving the safety of the smart socket.
[0093] In another embodiment, Figure 6 As shown, the protection module 16 also includes a recoverable fuse F1, which is connected to the normally closed end of the relay RLY2 and the load 300 respectively. The recoverable fuse F1 is used to fuse when all units in the fault detection module fail, so as to physically protect the smart socket.
[0094] In some embodiments, see Figure 7 , Figure 7 This is a circuit diagram of a relay drive circuit provided by another embodiment of the present invention, such as Figure 7 As shown, when the mains 100 outputs a voltage signal, the resistors R1 and R2 acquire the instantaneous voltage of the mains 100 in real time to divide the instantaneous voltage. The divided instantaneous voltage is then input into the comparator U1A, causing the comparator U1A to determine whether the instantaneous voltage is less than a first preset voltage. When the instantaneous voltage is less than the first preset voltage, the comparator U1A outputs a first signal to the trigger U1. Upon receiving the first signal, the trigger U1 outputs a corresponding control signal to the switch Q1 based on the drive signal input from the controller 20. The switch Q1 controls the coil end of the relay RLY1 to be energized based on the control signal, thereby controlling the relay RLY1 to switch its connection state when the instantaneous voltage is less than the second preset voltage. It should be noted that the voltage value of the AC power will change over time. When it is detected that the instantaneous voltage of the AC power 100 is less than the first preset voltage, the trigger U1 will perform corresponding operations and transmit a control signal to the control module 13. During the process of the control module 13 receiving the control signal and acting based on the control signal, the AC power 100 is still changing, so that when the relay RLY1 switches the connection state, the instantaneous voltage of the AC power 100 will be less than the second preset voltage, thereby reducing the arcing phenomenon during the relay switching, thereby improving the safety of the smart socket while increasing the service life of the relay.
[0095] Furthermore, when it is necessary to stop supplying power to the load 300, the control module 13 controls the relay RLY1 to switch its connection state based on the received control signal. At this time, the resistors R7 and R8 detect the voltage signal at the discharge port 14 of the relay RLY1 and determine whether the relay RLY1 is switching normally based on the drive voltage corresponding to the drive signal. If the comparator U1B outputs a high-level signal, a fault signal is output, and the relay RLY2 is controlled to switch its connection state to cut off the output of the mains power 100. If the comparator U1B outputs a low-level signal, it is considered that the relay RLY1 is not faulty.
[0096] The present invention provides a relay drive circuit, comprising a detection module, a trigger module, a control module, and a relay RLY1; the detection module is connected to the trigger module, the detection module is further configured to connect to the mains power supply, the trigger module is connected to the control module, the control module is connected to the coil end of the relay RLY1, the common end of the relay RLY1 is connected to the mains power supply, and the connection ends of the relay RLY1 are respectively connected to a load or a discharge port. The trigger module is further configured to receive a drive signal; the detection module is configured to detect the instantaneous voltage of the mains power supply and output a first signal to the trigger module when the instantaneous voltage is less than a first preset voltage. The trigger module is configured to output a corresponding control signal to the control module based on the drive signal upon receiving the first signal, so that the control module controls the relay RLY1 to switch its connection state after receiving the control signal, so that the relay RLY1 completes the switching action within the range where the instantaneous voltage is less than a second preset voltage, thereby ensuring that the relay RLY1 switches its connection state within a lower voltage range, thereby avoiding arcing and improving the safety of the smart socket. The second preset voltage is less than the first preset voltage.
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the present invention as described above. For the sake of simplicity, they are not provided in detail. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the above embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of this application.
Claims
1. A relay drive circuit, characterized in that: The relay drive circuit includes a detection module, a trigger module, a control module and a relay RLY1; The detection module is connected to the trigger module, the detection module is also used to connect to the mains, the trigger module is connected to the control module, the control module is connected to the coil end of the relay RLY1, the common end of the relay RLY1 is connected to the mains, the connection ends of the relay RLY1 are respectively connected to the load or the discharge port, and the trigger module is also used to receive a drive signal; The detection module is used to detect the instantaneous voltage of the mains power and output a first signal to the trigger module when the instantaneous voltage is less than a first preset voltage; The trigger module is used to output a corresponding control signal to the control module according to the drive signal at the moment of receiving the first signal, so that the control module controls the relay RLY1 to switch the connection state after receiving the control signal, so that the relay RLY1 completes the switching action when the instantaneous voltage is less than a second preset voltage, wherein the second preset voltage is less than the first preset voltage.
2. The relay drive circuit according to claim 1, wherein: The detection module includes a voltage dividing unit and a comparison unit; The voltage dividing unit is connected to the mains power and the comparison unit respectively, the comparison unit is connected to the trigger module, and the comparison unit is further used to receive a reference voltage; The voltage dividing unit is used to collect the instantaneous voltage of the mains to divide the instantaneous voltage, and output a first voltage to the comparison unit when the instantaneous voltage is less than the first preset voltage; as well as When the instantaneous voltage is greater than the first preset voltage, outputting a second voltage to the comparison unit; The comparison unit is configured to output a first signal to the trigger module according to the first voltage and the reference voltage after receiving the first voltage; as well as When the second voltage is received, a second signal is output to the trigger module according to the second voltage and the reference voltage.
3. The relay drive circuit according to claim 2, wherein: The voltage dividing unit includes a resistor R1 and a resistor R2; The resistor R1 is connected to the mains power supply and the comparison unit respectively. The resistor R1 is also connected in series with the resistor R2. The resistor R2 is also grounded.
4. The relay drive circuit according to claim 2, wherein: The comparison unit includes a comparator U1A; The first input terminal of the comparator U1A is used to receive a reference voltage, the second input terminal of the comparator U1A is connected to the voltage divider unit, and the output terminal of the comparator U1A is connected to the trigger module.
5. The relay driving circuit according to claim 4, characterized in that: The comparison unit further includes a pull-up resistor R3; The pull-up resistor R3 is connected to the output terminal of the comparator U1A, and the pull-up resistor R3 is also connected to the first power supply.
6. The relay driving circuit according to claim 2, characterized in that: The trigger module includes a trigger U1 and a pull-up resistor R4; The clock input terminal of the trigger U1 is connected to the detection module, the clear data terminal of the trigger U1 is connected to the second power supply through the pull-up resistor R4, the signal input terminal of the trigger U1 is used to receive the drive signal, and the output terminal of the trigger U1 is connected to the control module.
7. The relay drive circuit according to claim 6, characterized in that: The trigger U1 is used to output a corresponding control signal to the control module according to the driving signal at the moment the clock input terminal receives the first signal, so as to control the relay RLY1 to switch the connection state when the instantaneous voltage is less than the second preset voltage; as well as After the clock input terminal receives the first signal or the second signal, the control signal is continuously outputted to maintain the relay RLY1 in the current connection state.
8. The relay driving circuit according to claim 1, wherein: The control module includes a resistor R5, a resistor R6 and a switch tube Q1; The control end of the switch tube Q1 is connected to the trigger module through the resistor R5. The control end of the switch tube Q1 is also connected to the second end of the switch tube Q1 through the resistor R6. The first end of the switch tube Q1 is connected to the coil end of the relay RLY1, and the second end of the switch tube Q1 is used for grounding.
9. The relay drive circuit according to any one of claims 1 to 8, characterized in that: The relay drive circuit also includes a fault detection module; The fault detection module is connected to the discharge port, and the fault detection module is further used to receive the driving signal; The fault detection module is used to detect the output voltage of the discharge port and output a fault signal when the output voltage is lower than the driving voltage corresponding to the driving signal.
10. A smart socket, characterized in that: The smart socket includes the relay drive circuit according to any one of claims 1 to 9.