Relay turn-off drive circuit, control method, and static transfer switch
By setting a second resistor in the relay coil freewheeling path and dual voltage output of the power supply unit, the problems of fast STS switching and electrical isolation are solved, achieving high-speed reset of relay contacts and low power consumption, thus improving the reliability and safety of the system.
Patent Information
- Application Number
- PCT/CN2026/091832
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-12
- Filing Date
- 2026-04-21
- Publication Date
- 2026-11-19
AI Technical Summary
Traditional static transfer switches (STS) suffer from long mechanical travel and long disconnection time when fast switching is required, and thyristor solutions have drawbacks such as large on-state voltage drop, severe heat generation, and lack of physical isolation.
By setting a second resistor between the relay coil freewheeling path and the control terminal of the first switching transistor, the freewheeling current is injected in reverse into the control terminal of the first switching transistor to accelerate the extraction of charge from its base region. Combined with the pull-in and holding voltage provided by the power supply unit, high-speed reset of the relay contacts is achieved.
It achieves high-speed reset of relay contacts, reduces coil power consumption and temperature rise, improves the electromagnetic compatibility and safety of the system, and meets the requirements of rapid switching and electrical isolation.
Smart Images

Figure CN2026091832_19112026_PF_FP_ABST
Abstract
Description
A relay turn-off drive circuit, control method, and static changeover switch Technical Field
[0001] This application relates to the field of power electronic conversion technology, and in particular to a relay turn-off drive circuit, control method, and static transfer switch. Background Technology
[0002] Static transfer switches (STSs) are widely used in energy storage inverter systems, uninterruptible power supplies (UPS), and critical load power supply systems to quickly switch between primary power sources (such as the grid) and backup power sources (such as energy storage systems) to ensure the continuity and reliability of power supply to the load. When the primary power source experiences voltage drops, frequency anomalies, or power outages, the STS must switch the load to the backup power source in a very short time to avoid power interruption.
[0003] Traditional STSs primarily use mechanical automatic transfer switches (ATS) or thyristors (SCRs) as the switching actuators. While ATSs, relying on mechanical contacts, offer advantages such as low conduction losses and long lifespan, their long mechanical travel and long disconnection time make them unsuitable for rapid switching requirements. Thyristors, as semiconductor switches, offer fast switching speeds, but suffer from large on-state voltage drops and significant heat generation. Furthermore, they lack physical isolation capabilities, and damage to them can lead to shoot-through faults, failing to meet safety standards. Technical issues
[0004] To address the aforementioned issues, this application provides a relay turn-off drive circuit, control method, and static changeover switch. By setting a second resistor between the relay coil freewheeling path and the control terminal of the first switching transistor, when the second switching transistor is turned off, the coil freewheeling current can be injected in reverse into the control terminal of the first switching transistor, accelerating the extraction of charge from its base region. This reduces the turn-off time of the first switching transistor, cuts off the power supply to the relay coil, and achieves high-speed reset of the relay contacts. Technical solutions
[0005] The first technical solution adopted in this application is: providing a relay turn-off driving circuit for driving a first relay, the first relay including a coil; comprising:
[0006] A control unit for outputting a control signal and a drive signal;
[0007] A power supply unit, connected to the control unit, is used to receive the control signal output by the control unit and adjust the voltage value output to the first switching transistor based on the control signal;
[0008] A first switching transistor has a first terminal, a control terminal, and a third terminal. The first terminal receives the voltage output by the power supply unit, and the third terminal is connected to one end of the first relay.
[0009] A second switching transistor has a control terminal and a first terminal, wherein the control terminal is connected to the control unit to receive the drive signal;
[0010] A first resistor is connected in series between the power supply unit and the control terminal of the first switching transistor; and
[0011] A second resistor is connected between the control terminal of the first switching transistor and the first terminal of the second switching transistor; the other end of the first relay is connected to the side of the second resistor closest to the second switching transistor.
[0012] In response to the drive signal output by the control unit switching from an active level to an inactive level, the second switch is turned off, and the second resistor conducts the freewheeling current generated by the first coil, so that the freewheeling current flows through the control terminal of the first switch as a reverse extraction current, thereby reducing the turn-off time of the first switch.
[0013] Furthermore, the power supply unit receives the control signal from the control unit and selectively outputs a first voltage or a second voltage; the first voltage is the pull-in voltage of the first relay, used to drive the first relay to pull in; the second voltage is the holding voltage of the first relay, used to maintain the first relay in operation, and the second voltage is lower than the first voltage.
[0014] Furthermore, it also includes a first diode, the positive terminal of which is connected to the third terminal of the first switching transistor, and the negative terminal of which is connected to the first terminal of the first switching transistor.
[0015] Furthermore, it also includes a capacitor, one end of which is connected to the control terminal of the first switching transistor, and the other end of which is connected to the power supply unit.
[0016] Furthermore, it also includes a TVS diode, which is connected in parallel with the coil of the first relay.
[0017] Furthermore, it also includes a third resistor, through which the control unit is connected to the control terminal of the second switching transistor.
[0018] Furthermore, it also includes a fourth resistor, one end of which is connected to the node between the third resistor and the control terminal of the second switch, and the other end of which is connected to the third terminal of the second switch.
[0019] Furthermore, the power supply unit includes a third switching transistor, a fifth resistor, a sixth resistor, a second diode, a third diode, a fourth diode, and a second relay;
[0020] The control unit is connected to the control terminal of the third switch via the fifth resistor; the third terminal of the third switch is grounded; one end of the sixth resistor is connected to the side of the fifth resistor closest to the third switch; the other end of the sixth resistor is connected to the third terminal of the third switch.
[0021] The first terminal of the third switching transistor is connected to one end of the coil of the second relay; the other end of the coil of the second relay is connected to the first power supply; the positive terminal of the second diode is connected to the first terminal of the third switching transistor, and the negative terminal of the second diode is connected to the other end of the coil of the second relay.
[0022] The positive terminal of the third diode is connected to the first power supply, and the negative terminal of the third diode is connected to the moving contact of the second relay; the positive terminal of the fourth diode is connected to the second power supply, and the negative terminal of the fourth diode is connected to the output terminal of the power supply unit; the output terminal of the power supply unit is connected to the normally open contact of the second relay.
[0023] Furthermore, the first power source is used to provide the first voltage, and the second power source is used to provide the second voltage.
[0024] The second technical solution adopted in this application is: a control method for a relay turn-off drive circuit based on any of the foregoing claims is provided, comprising:
[0025] The control unit outputs a valid level drive signal to the control terminal of the second switch transistor to turn on the second switch transistor; the control unit also outputs a high level signal to the power supply unit to provide a first voltage, which is applied to the coil of the first relay transistor to make the first relay energize.
[0026] After the high-level signal is maintained for a preset time, it switches to a low level. In response to the low-level signal, the power supply unit switches the output voltage from the first voltage to the second voltage, keeping the first relay in the energized state.
[0027] When it is necessary to turn off, the control unit switches the drive signal from an active level to an inactive level, causing the second switch to turn off; the freewheeling current of the first relay coil flows into the control terminal of the first switch through the second resistor, causing the first switch to turn off faster, thereby cutting off the current path of the first relay coil.
[0028] Furthermore, after the second switch is turned on, the control terminal voltage of the first switch is determined by the voltage output by the power supply unit through the voltage division of the first resistor and the second resistor.
[0029] Furthermore, after the first relay is engaged and before the drive signal is switched to an invalid level, the power supply unit switches the output voltage from the first voltage to the second voltage.
[0030] The third technical solution adopted in this application is: providing a static changeover switch, including,
[0031] The power detection module is used to monitor the voltage, frequency, and phase parameters of the main power supply and the backup power supply in real time.
[0032] A control logic unit, connected to the power detection module, is used to determine whether power switching is required based on a preset threshold and to generate a switching control signal.
[0033] And a relay shutdown drive circuit as described in any of the preceding items, connected to the control logic unit, for receiving the switching control signal and performing fast shutdown to realize the switching of the load between the main power supply and the backup power supply.
[0034] Furthermore, the preset thresholds in the control logic unit include voltage drop thresholds and / or frequency deviation thresholds.
[0035] Furthermore, the control logic unit supports priority settings, including charging and discharging priority in grid-connected mode and load priority in off-grid mode. Beneficial effects
[0036] Due to the adoption of the above technical solution, this application has at least one of the following beneficial effects compared with the prior art:
[0037] 1. By setting a second resistor between the relay coil freewheeling path and the control terminal of the first switching transistor, when the second switching transistor is turned off, the coil freewheeling current can be injected in reverse into the control terminal of the first switching transistor, accelerating the extraction of its base region charge, thereby reducing the turn-off time of the first switching transistor, cutting off the power supply to the relay coil, and realizing high-speed reset of the relay contacts.
[0038] 2. The power supply unit provides dual voltage outputs: pull-in voltage and holding voltage. When the relay starts, it uses high voltage to ensure reliable pull-in, and after pull-in, it switches to low voltage to maintain the relay, which significantly reduces coil power consumption and temperature rise, and extends the relay life.
[0039] 3. By setting the first diode, TVS diode and base capacitor, the switching transistor is effectively protected from back EMF and voltage spikes, preventing relay malfunction and improving the system's electromagnetic compatibility.
[0040] 4. Using relays as physical switches provides clear mechanical disconnect contacts, meeting safety regulations for electrical isolation and overcoming the lack of physical isolation inherent in thyristor solutions. Attached Figure Description
[0041] Figure 1 is a circuit diagram of a relay turn-off drive circuit provided in an embodiment of this application;
[0042] Figure 2 is a schematic diagram of the current flow when the control unit outputs a drive signal at an effective level in Figure 1.
[0043] Figure 3 is a schematic diagram of the current flow when the control unit outputs an invalid drive signal in Figure 1.
[0044] Figure 4 is a circuit diagram of a power supply unit provided in an embodiment of this application;
[0045] Figure 5 is a schematic diagram of the current flow direction forming the discharge circuit in Figure 1;
[0046] Figure 6 is a flowchart illustrating a control method provided in an embodiment of this application;
[0047] Figure 7 is a schematic diagram of the frame of a static changeover switch provided in an embodiment of this application. Embodiments of the present invention
[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, it should be noted that, for ease of description, only the parts relevant to this application are shown in the accompanying drawings, not all structures. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0049] The terms "first," "second," etc., used in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0050] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0051] As shown in Figure 1, Figure 1 is a circuit diagram of a relay turn-off driving circuit provided in an embodiment of this application, which is used to drive a first relay. The first relay includes a coil. The relay turn-off driving circuit includes a power supply unit U0, a control unit, a first resistor R1, a second resistor R2, a first switch Q1, and a second switch Q2.
[0052] The control unit is connected to the power supply unit U0; specifically, the control output terminal of the control unit is connected to the control input terminal of the power supply unit to send control signals to the power supply unit; the power supply unit adjusts the power supply status based on the received control signals.
[0053] The power supply unit U0 is connected to the control terminal of the first switch Q1 through the first resistor R1; the first terminal of the first switch Q1 is connected to the power supply unit; the control terminal of the first switch Q1 is connected to the first terminal of the second switch Q2 through the second resistor R2; the third terminal of the first switch Q1 is connected to one end of the coil of the first relay KM1; and the other end of the coil of the first relay KM1 is connected to the first terminal of the second switch Q2.
[0054] The control terminal of the second switch Q2 is connected to the control unit to receive drive signals; the third terminal of the second switch Q2 is grounded.
[0055] In this embodiment, the first switch Q1 is a PNP transistor, and the second switch Q2 is an NPN transistor. Based on the first switch Q1 and the second switch Q2, the switching of the high-voltage circuit can be controlled by a low-voltage signal, while also possessing good current amplification capability. It should be clarified that this application does not limit the first and second switches to transistors; in other embodiments, the first and second switches can be replaced by MOSFETs or other electronic components, without any limitation.
[0056] It should be noted that in this embodiment, the first terminal of the first switch Q1 is the emitter of a PNP transistor, the control terminal is the base, and the third terminal is the collector; the first terminal of the second switch Q2 is the collector of an NPN transistor, the control terminal is the base, and the third terminal is the emitter.
[0057] When the drive signal of the control unit becomes invalid, the second switch Q2 is turned off, and the freewheeling current of the coil of the first relay KM1 flows into the control terminal of the first switch Q1 through the second resistor R2, thereby reducing the turn-off time of the first switch Q1. The following describes in detail the specific principle of how the relay turn-off drive circuit of this embodiment uses the freewheeling current to accelerate the turn-off of the first switch Q1:
[0058] As shown in Figure 2, which is a schematic diagram of the current flow when the drive signal output by the control unit in Figure 1 is at an effective level, the second switch Q2 is turned on, providing a path to ground for the coil of the first relay KM1. At this time, the voltage output by the power supply unit is applied to the coil of the first relay KM1 through the first switch Q1, energizing the coil and causing the first relay KM1 to engage.
[0059] As shown in Figure 3, which is a schematic diagram of the current flow when the drive signal output by the control unit in Figure 1 is at an invalid level, the control unit switches the drive signal to an invalid level when it is necessary to turn off the first relay KM1. The second switch Q2 is immediately cut off, cutting off the original DC path of the coil. However, since the current in the inductor cannot change abruptly, the coil of the first relay KM1 will generate a reverse induced electromotive force, forming a freewheeling current.
[0060] A portion of the freewheeling current flows out from the coil's output terminal, through the second resistor R2, and into the control terminal of the first switching transistor Q1. Simultaneously, the output voltage of the power supply unit also injects current into the control terminal of the first switching transistor Q1 through the first resistor R1. The combined effect of these two currents rapidly raises the base voltage of the first switching transistor Q1. This rapid rise in base voltage causes the emitter-junction voltage of the first switching transistor Q1 to quickly decrease below the cutoff threshold, thus accelerating the turn-off of the first switching transistor Q1. The turn-off of the first switching transistor Q1 completely cuts off any potential power supply path to the coil of the first relay KM1, allowing the coil energy to be quickly released through other discharge circuits, ultimately achieving rapid switching of the relay contacts.
[0061] It should be noted that in this embodiment, the effective level is a high-level signal and the invalid level is a low-level signal; in other embodiments, the effective level is a low-level signal and the invalid level is a high-level signal, and no limitation is made in this regard.
[0062] Compared to the traditional turn-off method that relies solely on the supply voltage to slowly raise the base voltage through a pull-up resistor, this embodiment utilizes the energy of the freewheeling current to actively accelerate the rise of the base voltage, significantly shortening the turn-off time of the first switching transistor Q1, and thus shortening the release time of the relay.
[0063] The power supply unit receives the control signal from the control unit and selectively outputs a first voltage or a second voltage; the first voltage is the pull-in voltage of the first relay KM1, used to drive the first relay KM1 to pull in; the second voltage is the holding voltage of the first relay KM1, used to maintain the first relay KM1 pulling in, and the second voltage is lower than the first voltage.
[0064] The power supply unit has a voltage selection output function; specifically, the control input terminal of the power supply unit is connected to the control output terminal of the control unit to receive control signals issued by the control unit; the power supply unit can respond to the control signal and selectively output a first voltage or a second voltage at its output terminal.
[0065] The amplitude of the first voltage is relatively high. The setting of the first voltage depends on the pull-in voltage parameter of the first relay KM1. Different types of relays have different pull-in voltage requirements. The setting of the first voltage should ensure that even when there are fluctuations in the power supply voltage, it can still provide sufficient pull-in current to the coil of the first relay KM1, so that the relay can reliably switch from the released state to the pulled-in state and complete the contact action.
[0066] The amplitude of the second voltage is relatively low. The setting of the second voltage depends on the holding voltage parameter of the first relay KM1. The holding voltage is the minimum voltage required to keep the armature of the relay from releasing after it is energized. The setting of the second voltage should be higher than the lower limit of the holding voltage to ensure that the relay will not release accidentally due to voltage fluctuations. At the same time, the second voltage should be as low as possible to reduce the holding power consumption and heat generation of the coil.
[0067] In this embodiment, the second voltage is lower than the first voltage. This high-voltage start-up and low-voltage maintenance power supply strategy has the following technical effects: at the moment the relay is energized, the higher first voltage can provide a sufficiently large inrush current, enabling the armature to quickly engage, reducing contact bounce, and improving engagement reliability; during the steady-state operation after the relay is energized, switching to the lower second voltage can significantly reduce the copper loss of the coil, reduce heat generation, extend the relay life, and at the same time reduce the standby power consumption of the entire system.
[0068] In this embodiment, the first voltage is 12V and the second voltage is 6V; in other embodiments, the values of the first voltage and the second voltage can be selected separately, and no limitation is made in this regard.
[0069] The control sequence of the control unit for the power supply unit is as follows: Simultaneously with issuing the relay activation command (i.e., the drive signal is at an active level), the control unit sends a first control signal to the power supply unit, causing the power supply unit to output a first voltage. After a preset delay, the control unit switches the first control signal to a second control signal, causing the power supply unit to switch its output voltage from the first voltage to the second voltage. Thereafter, as long as the relay remains activated, the power supply unit continuously outputs the second voltage.
[0070] The delay time can be matched with a fixed delay time based on different types of relays; in other embodiments, the control unit can also obtain the working status of the relay in real time and adjust the size of the delay time; for example, for relays that have been used for a long time, the delay time can be appropriately extended to ensure that the relay is stably engaged.
[0071] As shown in Figure 4, Figure 4 is a circuit diagram of a power supply unit provided in an embodiment of this application; the power supply unit includes a third switch Q3, a fifth resistor R5, a sixth resistor R6, a second diode D2, a third diode D3, a fourth diode D4, and a second relay KM2;
[0072] The control unit is connected to the control terminal of the third switch Q3 via the fifth resistor R5; that is, the control output terminal of the control unit is connected to the control terminal of the third switch Q3 via the fifth resistor R5. The fifth resistor R5 acts as a current-limiting resistor, used to limit the current at the control terminal of the third switch Q3, which is the base terminal, thus limiting the base current of the third switch Q3.
[0073] The third terminal of the third switch Q3, i.e., the emitter of the third switch Q3, is grounded; one end of the sixth resistor R6 is connected to the side of the fifth resistor R5 closest to the third switch Q3; the other end of the sixth resistor R6 is connected to the third terminal of the third switch Q3; the sixth resistor R6 acts as a pull-down resistor to ensure that the third switch Q3 is reliably turned off when the control signal is floating.
[0074] The first terminal of the third switch Q3, i.e., the collector of the third switch Q3, is connected to one end of the coil of the second relay KM2; the other end of the coil of the second relay KM2 is connected to the first power supply U1; the positive terminal of the second diode D2 is connected to the first terminal of the third switch Q3, and the negative terminal of the second diode D2 is connected to the other end of the coil of the second relay KM2; the second diode D2 is the freewheeling diode of the second relay KM2. When the third switch Q3 is turned off, the coil of the second relay KM2 will generate a reverse induced electromotive force. The second diode D2 provides a freewheeling path for this induced electromotive force, protecting the third switch Q3 from reverse breakdown.
[0075] The positive terminal of the third diode D3 is connected to the first power supply U1, and the negative terminal of the third diode D3 is connected to the moving contact of the second relay KM2. The function of the third diode D3 is to conduct in one direction, preventing current from flowing back into the first power supply U1 from the output terminal of the power supply unit.
[0076] The positive terminal of the fourth diode D4 is connected to the second power supply U2, and the negative terminal of the fourth diode D4 is connected to the output terminal of the power supply unit. The function of the fourth diode D4 is also unidirectional conduction, preventing current from flowing back from the output terminal of the power supply unit into the second power supply U2. The output terminal of the power supply unit is connected to the normally open contact of the second relay KM2. The normally closed contact of the second relay KM2 can be left floating or connected to other circuits as needed.
[0077] It should be noted that in this embodiment, the third switch Q3 is preferably an NPN transistor, but it can also be replaced by an NMOS transistor or other types of switching devices, as long as the controlled switching function can be achieved.
[0078] The first power supply is used to provide the first voltage, and the second power supply is used to provide the second voltage. The first power supply and the second power supply can be two completely independent power supply modules, or they can be two different output ports of the same power supply module. There are no restrictions on this.
[0079] The working principle of the power supply unit in this embodiment is described in detail below:
[0080] When the control unit requires the power supply unit to output the first voltage, the control output terminal of the control unit outputs the first control signal; the first control signal is applied to the base of the third switching transistor Q3 after being current-limited by the fifth resistor R5, and the third switching transistor Q3 is turned on. The coil of the second relay KM2 is energized, and the normally open contact closes.
[0081] At this time, the first power supply U1 flows from the normally open contact of the second relay KM2 to the output terminal of the power supply unit after passing through the third diode D3, and the output voltage of the power supply unit is 12V.
[0082] When the control unit requires the power supply unit to output a second voltage, the first control output terminal of the control unit outputs a second control signal, pulling down the base voltage of the third switching transistor Q3. The third switching transistor Q3 is then turned off, and the coil of the second relay KM2 is de-energized. At this time, the path between the first power supply U1 and the output terminal is cut off. The second power supply U2 flows to the output terminal of the power supply unit through the fourth diode, and the output voltage of the power supply unit is 6V.
[0083] In this embodiment, the first control signal is a high-level signal and the second control signal is a low-level signal; in other embodiments, the first control signal and the second control signal may be set differently, and no limitation is made thereto.
[0084] Through the above circuit, the power supply unit can reliably switch between the first voltage and the second voltage according to the instructions of the control unit. The third and fourth diodes provide voltage isolation, ensuring that the two power supplies do not interfere with each other and improving power supply stability.
[0085] It should be noted that although in this embodiment both the control signal and the drive signal are issued by the control unit, and the first control signal and its effective level are both high, while the second control signal and its ineffective level are both low, the drive signal and the control signal are essentially unrelated. That is, when the drive signal is low, the control signal can be either high or low.
[0086] The relay turn-off drive circuit also includes a first diode D1. The positive terminal of the first diode D1 is connected to the third terminal of the first switching transistor Q1, and the negative terminal of the first diode D1 is connected to the first terminal of the first switching transistor Q1. That is, the first diode D1 is connected in parallel between the collector and emitter of the first switching transistor Q1, and its conduction direction is from the collector to the emitter.
[0087] The main function of the first diode D1 is to protect the first switching transistor Q1 from overvoltage reverse breakdown. Its working principle is as follows:
[0088] When the coil of the first relay KM1 is normally turned on, the collector potential of the first switching transistor Q1 is lower than the emitter potential. At this time, the first diode D1 is in reverse bias and does not conduct, which does not affect the normal operation of the circuit.
[0089] When the second switch Q2 is turned off and the coil of the first relay KM1 generates a reverse induced electromotive force, the potential at the coil input terminal, i.e., the end connected to the collector of the first switch Q1, will momentarily become negative. This means the collector potential of the first switch Q1 may be pulled down below ground potential, while the emitter potential remains positive. At this time, the collector junction of the first switch Q1 experiences a reverse voltage. Without protective measures, this reverse voltage may exceed the collector-emitter reverse breakdown voltage of the first switch Q1, causing damage to the first switch Q1.
[0090] The presence of the first diode D1 provides a low-impedance bypass path for the reverse current. When the collector potential is lower than the emitter potential by more than the forward voltage drop of the diode, the first diode D1 conducts, clamping the reverse voltage near the forward voltage drop, thereby limiting the collector-emitter voltage of the first switching transistor Q1 within a safe range and effectively preventing reverse breakdown.
[0091] The relay turn-off drive circuit also includes a capacitor C1. One end of the capacitor C1 is connected to the control terminal of the first switching transistor Q1, and the other end of the capacitor C1 is connected to the power supply unit; that is, the capacitor C1 is connected in parallel between the base of the first switching transistor Q1 and the output terminal of the power supply unit.
[0092] During the steady-state process where the first switch Q1 is turned on and the first relay KM1 remains energized, the control terminal voltage of the first switch Q1 is determined by the voltage division of the first resistor R1 and the second resistor R2. This voltage node may be affected by power supply unit ripple, spatial electromagnetic interference, or coupling interference from other signal lines on the circuit board. Without capacitor C1, the aforementioned interference signals may cause momentary fluctuations in the control terminal voltage of the first switch Q1. When the fluctuation amplitude is large enough, it may cause the first switch Q1 to briefly enter the cutoff region, resulting in an interruption of the coil current of the first relay KM1 and unexpected contact bounce.
[0093] Capacitor C1, together with the first resistor R1 and the second resistor R2, forms a low-pass filter to bypass high-frequency interference signals, thereby stabilizing the control terminal voltage of the first switching transistor Q1 and preventing the first relay KM1 from being accidentally disconnected.
[0094] During rapid turn-off, the control terminal voltage of the first switch Q1 is rapidly increased by the freewheeling current and the supply voltage through the resistor. This increase may cause voltage overshoot. If the control terminal voltage is increased to exceed the reverse breakdown voltage of the emitter junction of the first switch Q1, it may cause reverse breakdown of the base-emitter junction of the first switch Q1. At this time, capacitor C1 acts as a buffer, absorbing part of the spike charge, limiting the rise rate of the control terminal voltage, preventing the voltage overshoot from exceeding the rated value, and thus protecting the first switch Q1.
[0095] The relay turn-off drive circuit also includes a TVS diode, which is connected in parallel with the coil of the first relay; that is, one end of the TVS diode is connected to the input terminal of the coil of the first relay KM1, and the other end is connected to the output terminal of the coil of the first relay KM1.
[0096] As shown in Figure 5, Figure 5 is a schematic diagram of the current flow direction that forms the discharge circuit in Figure 1.
[0097] In this embodiment, the main function of the TVS diode is to provide an efficient energy discharge circuit for the coil of the first relay KM1.
[0098] When the second switch Q2 and the first switch Q1 are both turned off, the magnetic energy stored in the coil of the first relay KM1 needs to be released in the form of current. If a conventional freewheeling diode is used, it will clamp the reverse voltage across the coil at a lower level. With a fixed inductance L, the lower the clamping voltage V, the smaller the current decay rate, the slower the current decreases, and the longer the relay release time.
[0099] The breakdown voltage of the TVS diode is designed to be relatively high. When a reverse induced electromotive force is generated across the coil and reaches the breakdown voltage of the TVS diode, the TVS diode quickly turns on, clamping the voltage across the coil at a stable value near the breakdown voltage. This reverse voltage significantly increases the current decay rate, allowing the coil current to drop to zero more quickly. This rapid current decay means that the magnetic energy stored in the coil can be dissipated as heat through the TVS diode in a shorter time, enabling the armature of the first relay KM1 to reset more quickly and achieve rapid relay shutdown.
[0100] The relay turn-off drive circuit also includes a third resistor and a fourth resistor. The control unit is connected to the control terminal of the second switch Q2 through the third resistor R3; that is, the drive signal output by the control unit is applied to the base of the second switch Q2 after passing through the third resistor R3.
[0101] The third resistor R3 in the circuit limits current. The base-emitter junction of the second switching transistor Q2 is a PN junction. When the base-emitter voltage exceeds the turn-on threshold, the base current will increase rapidly. Without a current-limiting resistor, the high-level signal output from the control unit will be directly applied to the base, resulting in excessive base current. Excessive base current may cause the following problems:
[0102] First, it may exceed the maximum rated base current of the second switch Q2, causing damage to the second switch Q2;
[0103] Second, it may exceed the maximum output current capability of the control unit's I / O port, leading to damage or malfunction of the control unit.
[0104] Third, it may cause the second switch Q2 to enter an oversaturated state, increasing its turn-off delay time.
[0105] One end of the fourth resistor R4 is connected to the node between the third resistor R3 and the control terminal of the second switch Q2, and the other end of the fourth resistor R4 is connected to the third terminal of the second switch Q2.
[0106] The fourth resistor R4 acts as a pull-down resistor in the circuit, ensuring that the second switch Q2 is reliably cut off when the control signal is missing or uncertain.
[0107] In the following cases, without a pull-down resistor, the base of the second switch Q2 may be in an uncertain floating state:
[0108] The control unit I / O ports have not yet completed initialization during the initial stage of system power-on;
[0109] The control unit I / O port is configured as a high-impedance input.
[0110] The connection between the control unit and the control circuit is interfered with or has poor contact; the control unit experiences an abnormal reset or crashes.
[0111] When the base of the second switch Q2 is in a floating state, the base voltage is easily affected by the surrounding circuit and fluctuates. If the base voltage is coupled to a level higher than the conduction threshold, the second switch Q2 may be mis-turned, causing the first relay KM1 to be accidentally energized.
[0112] The fourth resistor R4 provides a fixed path from the base to ground, stably pulling the base voltage down to ground potential. Even if the control signal line is floating or subject to weak interference, the base voltage will be maintained near ground potential by the fourth resistor R4, far below the turn-on threshold of the second switch Q2, thereby ensuring that the second switch Q2 is reliably turned off.
[0113] This application also provides a control method for a relay turn-off drive circuit as described in the above embodiments, as shown in FIG6. FIG6 is a flowchart illustrating a control method provided in an embodiment of this application, including:
[0114] The control unit outputs a valid level drive signal to the control terminal of the second switch to turn on the second switch; the control unit also outputs a high level signal to the power supply unit to enable the power supply unit to provide a first voltage, which is applied to the coil of the first relay through the first switch to make the first relay energize.
[0115] After the high-level signal is maintained for a preset time, it switches to a low level. In response to the low-level signal, the power supply unit switches the output voltage from the first voltage to the second voltage, keeping the first relay in the energized state.
[0116] When shutdown is required, the control unit switches the drive signal from an active level to an inactive level, causing the second switch to turn off; the freewheeling current of the first relay coil flows into the control terminal of the first switch through the second resistor, causing the first switch to turn off more quickly, thereby cutting off the current path of the first relay coil.
[0117] After the second switch is turned on, the voltage at the control terminal of the first switch is determined by the voltage output by the power supply unit through the voltage division of the first resistor and the second resistor.
[0118] During the pull-in and hold phases, the second switch is in the on state. At this time, the collector-emitter voltage drop of the second switch is very small, and the potential of the first terminal of the second switch, i.e., the collector, can be approximated as ground potential.
[0119] Under these conditions, the output voltage of the power supply unit is applied to the control terminal of the first switching transistor through a voltage divider network formed by the first resistor R1 and the second resistor R2. The control terminal voltage of the first switching transistor... It is determined by the following partial pressure formula:
[0120]
[0121] in, This refers to the output voltage of the power supply unit.
[0122] The first terminal of the first switching transistor is the emitter voltage. Equal to the output voltage of the power supply unit Therefore, the emitter junction voltage of the first switching transistor... for:
[0123]
[0124] The above formula gives the theoretical voltage division between the control terminal voltage and the emitter junction voltage when the second switch is turned on but the first switch is not yet turned on. This voltage division relationship determines whether the first switch can enter the conducting state.
[0125] It should be noted that the above formula describes the static voltage relationship between the control terminal and emitter of the first switch when it is in the off state. When the first switch is turned on, its emitter junction voltage... The transistor will be clamped within a range of approximately 0.6V to 0.7V. This clamping value is determined by the physical characteristics of the transistor's PN junction, rather than by the resistor divider formula. In this case, the first and second resistors provide a suitable base bias current to maintain the first switching transistor in the on-state.
[0126] The core significance of the voltage divider formula lies in revealing the proportional relationship between the control terminal voltage of the first switching transistor and the supply voltage. It shows that before the first switching transistor is turned on, its emitter-junction voltage is directly proportional to the supply voltage. This means that when the power supply unit outputs a higher first voltage, the first switching transistor obtains a larger emitter-junction voltage and a larger base current, thus enabling it to quickly enter saturation and provide sufficient pull-in current for the first relay. When the power supply unit outputs a lower second voltage, the base current of the first switching transistor decreases accordingly, but it is still sufficient to maintain its conduction state, keeping the first relay engaged.
[0127] By appropriately selecting the ratio of the first resistor to the second resistor, the first switching transistor can operate normally under different supply voltages. Specifically, this ratio should meet the following two conditions:
[0128] First, when the supply voltage is the first voltage, the base current of the first switching transistor Q1 should be large enough to allow it to enter the saturation region and provide a drive current greater than the pull-in current for the first relay.
[0129] Second, when the supply voltage is the second voltage, the base current of the first switching transistor should be sufficient to keep it in the on state, providing the first relay with a drive current greater than the holding current but less than the pull-in current.
[0130] After the first relay is energized and before the drive signal switches to an invalid level, the power supply unit switches the output voltage from the first voltage to the second voltage.
[0131] The operation of the first relay is divided into three stages in chronological order: the pull-in stage, the holding stage, and the turn-off stage. The switching of the power supply unit's output voltage occurs after the end of the pull-in stage and before the start of the turn-off stage, i.e., at the beginning of the holding stage.
[0132] Specifically, the control unit first controls the power supply unit to output a first voltage and outputs a valid level drive signal to the second switching transistor, causing the first relay to start engaging. After a period of time sufficient to ensure that the first relay K1 is fully engaged (this time can be determined according to the engagement time parameter in the relay datasheet, with a certain margin), the first relay completes engagement, and its contacts are stably closed. At this point, the engagement phase ends.
[0133] After the engagement phase ends, the control unit controls the power supply unit to switch the output voltage from the first voltage to the second voltage; after the switch is completed, the power supply unit continues to output the second voltage, so that the first relay remains in the engaged state, i.e., the holding phase.
[0134] During the hold phase, the drive signal remains at an active level, and the second switch remains on. When it is necessary to turn off the first relay, the control unit switches the drive signal to an inactive level, entering the turn-off phase.
[0135] Limiting the output voltage switching time of the power supply unit to after the first relay is energized and before the drive signal switches to an invalid level has the following technical effects.
[0136] First: Ensure reliable engagement. If the voltage is switched from the first voltage to the second voltage before the first relay has finished engaging, the lower second voltage may not be able to provide sufficient engagement current, resulting in incomplete engagement of the first relay, contact jitter, or even engagement failure.
[0137] Second: It facilitates rapid turn-off; if the voltage is switched from the first voltage to the second voltage only after the drive signal is switched to an invalid level, the power supply unit outputs a higher first voltage during the turn-off process, the coil stores more energy, and more energy needs to be released during turn-off, which will prolong the turn-off time.
[0138] Third: Reduce power consumption. Limit the duration of the first voltage to the shortest necessary range, that is, only cover the pull-in process, and power the rest of the time with a lower second voltage, thereby minimizing the power consumption and heat generation of the coil.
[0139] This application also provides a static changeover switch, as shown in Figure 7. Figure 7 is a schematic diagram of the framework of a static changeover switch provided in an embodiment of this application, including:
[0140] The power detection module is used to monitor the voltage, frequency, and phase parameters of the main power supply and the backup power supply in real time.
[0141] The control logic unit, connected to the power detection module, is used to determine whether power switching is required based on a preset threshold and to generate a switching control signal.
[0142] And a relay shutdown drive circuit as described in any of the above embodiments, connected to the control logic unit, for receiving switching control signals and performing fast shutdown to realize the switching of the load between the main power supply and the backup power supply.
[0143] The preset thresholds in the control logic unit include voltage drop thresholds and / or frequency deviation thresholds; that is, the control logic unit can use any of the following judgment logics to determine power supply faults:
[0144] The system uses only the voltage drop threshold for judgment. When the voltage drops below the voltage drop threshold, it is judged as a power supply fault; this judgment logic is suitable for loads that are sensitive to voltage but not to frequency.
[0145] The system uses only a frequency deviation threshold for judgment. When the frequency exceeds the frequency deviation threshold, it is judged as a power supply fault; this judgment logic is suitable for loads that are sensitive to frequency but not to voltage, such as motor loads.
[0146] Simultaneously, voltage sag threshold and frequency deviation threshold are used for judgment. When the voltage is lower than the voltage sag threshold or the frequency exceeds the frequency deviation threshold, it is judged as a power supply fault; this can cover a wider range of power supply fault types and improve the robustness of the system.
[0147] In energy storage systems, static transfer switches are not just simple power switching devices; they also need to participate in energy management strategies to coordinate the energy flow between the grid, energy storage batteries, photovoltaic power generation, and loads. The control logic unit supports priority settings, including charging and discharging priorities in grid-connected mode and load-carrying priorities in off-grid mode.
[0148] Grid-connected mode refers to the operating mode where the energy storage system is connected to the power grid and can exchange energy bidirectionally. In grid-connected mode, the system can optimize the battery charging and discharging strategy based on factors such as electricity price, electricity demand, and photovoltaic output. Charging and discharging priorities determine which needs the system prioritizes under various conditions; configurable charging and discharging priorities include, but are not limited to:
[0149] Photovoltaic priority mode: Prioritize the use of photovoltaic power generation to charge batteries or supply power to loads, and sell excess electricity to the grid; this mode is suitable for regions with abundant photovoltaic resources and high grid-connected electricity prices.
[0150] Battery priority mode: Prioritizes the use of battery-stored electrical energy to power the load, with the power grid as a supplement; this mode is suitable for areas with large differences in peak and off-peak electricity prices, allowing the battery to be charged during off-peak hours and discharged during peak hours, thus achieving peak-valley arbitrage.
[0151] Grid priority mode: Prioritize grid power supply, with batteries serving as backup power; this mode is suitable for areas with stable grids and low electricity prices, where batteries are mainly used for emergency backup power.
[0152] Anti-reverse flow priority mode: Prioritize the use of photovoltaic power generation and battery discharge for local loads, and minimize or avoid power feeding to the grid; this mode is suitable for areas where reverse flow to the grid is not allowed.
[0153] Off-grid mode refers to the operating mode where the energy storage system is disconnected from the power grid and independently supplies power to the load. In off-grid mode, the system cannot obtain power from the grid and needs to rely on batteries and photovoltaic power generation to maintain load power. Load priority determines which loads the system prioritizes to supply power to when energy is insufficient; configurable load priorities include, but are not limited to:
[0154] Critical load priority mode: Prioritizes power supply to critical loads and can cut off non-critical loads.
[0155] Generator priority mode: When the battery power is low, the generator (backup power) is started first to carry the load, while charging the battery at the same time.
[0156] Economic mode: Extend battery life as much as possible while ensuring power supply to the basic load; this mode may appropriately reduce the power supply voltage or frequency of non-critical loads to achieve energy saving.
[0157] Photovoltaic priority mode: In off-grid mode, photovoltaic power generation is prioritized to supply power to the load and charge the battery, minimizing battery consumption.
[0158] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0159] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0160] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
Claims
1. A relay turn-off drive circuit for driving a first relay, said first relay comprising a coil; characterized by, include: A control unit for outputting a control signal and a drive signal; A power supply unit, connected to the control unit, is used to receive the control signal output by the control unit and adjust the voltage value output to the first switching transistor based on the control signal; A first switching transistor has a first terminal, a control terminal, and a third terminal. The first terminal receives the voltage output by the power supply unit, and the third terminal is connected to one end of the first relay. A second switching transistor has a control terminal and a first terminal, wherein the control terminal is connected to the control unit to receive the drive signal; A first resistor is connected in series between the power supply unit and the control terminal of the first switching transistor; and A second resistor is connected between the control terminal of the first switching transistor and the first terminal of the second switching transistor; the other end of the first relay is connected to the side of the second resistor closest to the second switching transistor. In response to the drive signal output by the control unit switching from an active level to an inactive level, the second switch is turned off, and the second resistor conducts the freewheeling current generated by the first coil, so that the freewheeling current flows through the control terminal of the first switch as a reverse extraction current, thereby reducing the turn-off time of the first switch.
2. The relay turn-off driving circuit according to claim 1, characterized by The power supply unit receives the control signal from the control unit and selectively outputs a first voltage or a second voltage; the first voltage is the pull-in voltage of the first relay, used to drive the first relay to pull in; the second voltage is the holding voltage of the first relay, used to maintain the first relay in operation, and the second voltage is lower than the first voltage.
3. The relay turn-off drive circuit according to claim 1, characterized in that, It also includes a first diode, the positive terminal of which is connected to the third terminal of the first switching transistor, and the negative terminal of which is connected to the first terminal of the first switching transistor.
4. The relay turn-off drive circuit according to claim 1, characterized in that, It also includes a capacitor, one end of which is connected to the control terminal of the first switching transistor, and the other end of which is connected to the power supply unit.
5. The relay turn-off drive circuit according to claim 1, characterized in that, It also includes a TVS diode, which is connected in parallel with the coil of the first relay.
6. The relay turn-off drive circuit according to claim 1, characterized in that, It also includes a third resistor, through which the control unit is connected to the control terminal of the second switching transistor.
7. The relay turn-off drive circuit according to claim 6, characterized in that, It also includes a fourth resistor, one end of which is connected to the node between the third resistor and the control terminal of the second switch, and the other end of which is connected to the third terminal of the second switch.
8. The relay turn-off drive circuit according to claim 2, characterized in that, The power supply unit includes a third switching transistor, a fifth resistor, a sixth resistor, a second diode, a third diode, a fourth diode, and a second relay; The control unit is connected to the control terminal of the third switch via the fifth resistor; the third terminal of the third switch is grounded; one end of the sixth resistor is connected to the side of the fifth resistor closest to the third switch; the other end of the sixth resistor is connected to the third terminal of the third switch. The first terminal of the third switching transistor is connected to one end of the coil of the second relay; the other end of the coil of the second relay is connected to the first power supply; the positive terminal of the second diode is connected to the first terminal of the third switching transistor, and the negative terminal of the second diode is connected to the other end of the coil of the second relay. The positive terminal of the third diode is connected to the first power supply, and the negative terminal of the third diode is connected to the moving contact of the second relay; the positive terminal of the fourth diode is connected to the second power supply, and the negative terminal of the fourth diode is connected to the output terminal of the power supply unit; the output terminal of the power supply unit is connected to the normally open contact of the second relay.
9. The relay turn-off drive circuit according to claim 8, characterized in that, The first power source is used to provide the first voltage, and the second power source is used to provide the second voltage.
10. A control method based on the relay turn-off drive circuit according to any one of claims 1 to 9, characterized in that, include: The control unit outputs a valid level drive signal to the control terminal of the second switch transistor to turn on the second switch transistor; the control unit also outputs a high level signal to the power supply unit to provide a first voltage, which is applied to the coil of the first relay transistor to make the first relay energize. After the high-level signal is maintained for a preset time, it switches to a low level. In response to the low-level signal, the power supply unit switches the output voltage from the first voltage to the second voltage, keeping the first relay in the energized state. When it is necessary to turn off, the control unit switches the drive signal from an active level to an inactive level, causing the second switch to turn off; the freewheeling current of the first relay coil flows into the control terminal of the first switch through the second resistor, causing the first switch to turn off faster, thereby cutting off the current path of the first relay coil.
11. The control method according to claim 10, characterized in that, After the second switch is turned on, the voltage at the control terminal of the first switch is determined by the voltage output by the power supply unit through the voltage divider between the first resistor and the second resistor.
12. The control method according to claim 10, characterized in that, After the first relay is engaged and before the drive signal is switched to an invalid level, the power supply unit switches the output voltage from the first voltage to the second voltage.
13. A static changeover switch, characterized in that, include, The power detection module is used to monitor the voltage, frequency, and phase parameters of the main power supply and the backup power supply in real time. A control logic unit, connected to the power detection module, is used to determine whether power switching is required based on a preset threshold and to generate a switching control signal. And a relay shutdown drive circuit as described in any one of claims 1 to 9, connected to the control logic unit, for receiving the switching control signal and performing fast shutdown to realize the switching of load between the main power supply and the backup power supply.
14. The static changeover switch according to claim 13, characterized in that, The preset thresholds in the control logic unit include voltage drop thresholds and / or frequency deviation thresholds.
15. The static changeover switch according to claim 13, characterized in that, The control logic unit supports priority settings, including charging and discharging priority in grid-connected mode and load priority in off-grid mode.
