Relay control circuit, method, electrical equipment and computer-readable storage medium

By introducing a controller into the relay control circuit to monitor the switch tube voltage and control its on-off state, the relay's closing and opening process is optimized, solving the problem of excessive power consumption in the relay control circuit and achieving energy saving and heat reduction effects.

CN114914123BActive Publication Date: 2025-10-03GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210442007.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-10-03
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

The power consumption of existing relay control circuits is too high, resulting in energy consumption and heat generation problems that are not effectively solved.

Method used

By introducing a controller into the relay control circuit, monitoring the voltage value of the switch tube and controlling its on-off state, the switch tube is intermittently turned on or off. Combined with resistance and single-phase conduction elements, the relay's closing and opening process is optimized.

Benefits of technology

The power consumption of the switch tube and the relay coil is reduced while ensuring that the relay remains in the energized state, thereby achieving the purpose of energy saving and reducing heat.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114914123B_ABST
    Figure CN114914123B_ABST
Patent Text Reader

Abstract

The present invention discloses a relay control circuit, method, electrical equipment, and computer-readable storage medium. The relay control circuit includes: a switch tube, a first pole of which is connected to a first terminal of a controller, a second pole of which is connected to a first end of a relay coil, a third pole of which is grounded, and a second end of the relay coil is connected to a voltage source; and a controller, a second terminal of which is connected between the second pole of the switch tube and the first end of the relay coil, for controlling the on / off state of the switch tube according to the voltage value of the second pole of the switch tube. The present invention can achieve intermittent on / off control of the switch while ensuring that the control relay always remains in an engaged state, thereby reducing the driving power of the switch tube and the power consumed by the relay coil, thereby reducing the total power of the relay control circuit and achieving the purpose of energy saving and heat reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and in particular to a relay control circuit, method, electrical equipment and computer-readable storage medium. Background Art

[0002] Integrated circuits have permeated every corner of society and experienced rapid growth. Since the 1990s, with the advancement of integrated circuits, power consumption has become a key consideration in large-scale integrated circuit design. Increased power consumption can lead to multiple problems. First, it increases energy costs. Second, circuit overheating can cause system instability.

[0003] With the rapid development of integrated circuits, various electrical devices equipped with relays have also developed rapidly. Problems such as energy consumption and heat generation caused by excessive power consumption of relay control circuits have become increasingly prominent and are receiving more and more attention.

[0004] Currently, no effective solution has been proposed to the problem of excessive power consumption of relay control circuits in the prior art. Summary of the Invention

[0005] Embodiments of the present invention provide a relay control circuit, method, electrical device, and computer-readable storage medium to solve the problem of excessive power consumption of relay control circuits in the prior art.

[0006] To solve the above technical problems, the present invention provides a relay control circuit, wherein the relay control circuit includes:

[0007] A switch tube, a first pole of which is connected to the first terminal of the controller, a second pole of which is connected to the first end of the relay coil, a third pole of which is grounded, and a second end of the relay coil is connected to the voltage source;

[0008] The controller has a second terminal connected between the second pole of the switch tube and the first end of the relay coil, and is used to control the on / off state of the switch tube according to the voltage value of the second pole of the switch tube.

[0009] Furthermore, the controller is specifically configured to:

[0010] Implementing monitoring of the voltage value of the second electrode of the switching tube;

[0011] When the voltage value of the second electrode of the switch tube rises above the first voltage threshold, controlling the switch tube to be turned on;

[0012] When the voltage value of the second electrode of the switch tube drops below the second voltage threshold, controlling the switch tube to turn off;

[0013] When the voltage value of the second electrode of the switch tube is between the second voltage threshold and the first voltage threshold, controlling the switch tube to maintain the current on-off state;

[0014] The second voltage threshold is smaller than the first voltage threshold.

[0015] Furthermore, the relay control circuit further includes:

[0016] A first resistor is provided between the first terminal of the controller and the first electrode of the switch tube;

[0017] The second resistor is arranged between the connection point between the second pole of the switch tube and the first end of the relay coil and the second terminal of the controller.

[0018] Furthermore, the relay control circuit further includes:

[0019] A single-phase conducting element, wherein the anode is connected between the second pole of the switch tube and the first end of the relay coil, and the cathode is connected to the second end of the relay coil.

[0020] The present invention also provides an electrical device, comprising a relay and the relay control circuit.

[0021] The present invention also provides a relay control method, which is applied to the above-mentioned relay control circuit, and the method comprises:

[0022] Obtaining a voltage value between the second pole of the switch tube and the first end of the relay coil; wherein the first pole of the switch tube is connected to the first terminal of the controller, the second pole is connected to the first end of the relay coil, the third pole is grounded, and the second end of the relay coil is connected to the voltage source;

[0023] The on / off state of the switch tube is controlled according to the voltage value of the second electrode of the switch tube.

[0024] Furthermore, controlling the on / off state of the switch tube according to the voltage value of the second electrode of the switch tube includes:

[0025] Implementing monitoring of the voltage value of the second electrode of the switching tube;

[0026] If the voltage value of the second electrode of the switch tube increases to above the first voltage threshold, controlling the switch tube to be turned on;

[0027] If the voltage value of the second electrode of the switch tube drops below the second voltage threshold, controlling the switch tube to turn off;

[0028] If the voltage value of the second electrode of the switch tube is between the second voltage threshold and the first voltage threshold, controlling the switch tube to maintain the current on-off state;

[0029] The second voltage threshold is smaller than the first voltage threshold.

[0030] Furthermore, the first voltage threshold is determined by the following formula:

[0031] VAD1=VDD-Vmin;

[0032] Wherein, VAD1 is the first voltage threshold, VDD is the voltage value provided by the voltage source, and Vmin is the minimum voltage value required to maintain the relay closed.

[0033] Furthermore, the second voltage threshold is determined by the following formula:

[0034] VAD2=VDD-Vmax;

[0035] Wherein, VAD2 is the second voltage threshold, VDD is the voltage value provided by the voltage source, and Vmax is the maximum operating voltage value of the relay coil.

[0036] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the program implements the above-mentioned relay control method when executed by a processor.

[0037] By applying the technical solution of the present invention, a controller is added to the existing structure in which a switch tube is connected to one end of a relay coil and the relay is closed or disconnected by turning the switch tube on or off. One terminal of the controller is connected to the connection between the switch tube and the relay coil. The controller controls the on and off state of the switch tube according to the voltage value of the second pole of the switch tube. This can achieve intermittent on and off control of the switch while ensuring that the control relay always remains in the closed state, thereby reducing the driving power of the switch tube and the power consumed by the relay coil, thereby reducing the total power of the relay control circuit, and achieving the purpose of energy saving and reducing heat. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a structural diagram of a relay control circuit according to an embodiment of the present invention;

[0039] Figure 2 The voltage waveform diagram of the controller MCU output and the voltage waveform Vout of the second contact of the relay in the existing control scheme;

[0040] Figure 3 A waveform diagram of the voltage output by the controller MCU and a waveform diagram of the voltage across the relay according to an embodiment of the present invention;

[0041] Figure 4 4 is a flow chart of a relay control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] To make the objectives, technical solutions, and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings. It is apparent that the embodiments described are only some, not all, of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort are intended to fall within the scope of protection of the present invention.

[0043] The terms used in the embodiments of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The singular forms "a," "an," "the," and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, and unless the context clearly indicates otherwise, "a plurality" generally includes at least two.

[0044] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0045] It should be understood that although the terms "first," "second," etc. may be used to describe voltage thresholds in embodiments of the present invention, these voltage thresholds should not be limited to these terms. These terms are merely used to distinguish different voltage thresholds. For example, without departing from the scope of embodiments of the present invention, the first voltage threshold may also be referred to as the second voltage threshold, and similarly, the second voltage threshold may also be referred to as the first voltage threshold.

[0046] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.

[0047] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or device. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or device comprising the element.

[0048] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0049] Example 1

[0050] This embodiment provides a relay control circuit. Figure 1 FIG. 1 is a structural diagram of a relay control circuit according to an embodiment of the present invention. Figure 1 As shown, the relay control circuit includes:

[0051] The switch tube Q1 has a first electrode (base) connected to the first terminal MCU_I / O of the controller MCU, a second electrode (collector) connected to the first end of the relay coil T, and a third electrode (emitter) connected to ground. The second end of the relay coil T is connected to a voltage source. The controlled relay also includes at least a first contact IN and a second contact OUT, which are connected to the circuit of the electrical device.

[0052] The controller MCU has a second terminal MCU_AD connected between the second pole of the switch tube Q1 and the first end of the relay coil, and is used to control the on-off state of the switch tube according to the voltage value VAD of the second pole of the switch tube Q1. The voltage value VAD of the second pole of the above-mentioned switch tube Q1 is equal to the voltage value VDD provided by the above-mentioned voltage source minus the voltage across the relay coil T.

[0053] In a specific implementation, when the switch Q1 is turned on, the voltage across the relay coil T will slowly rise until it reaches a set value Vmax, and then the switch tube Q1 is controlled to be turned off. After the switch tube Q1 is turned off, the voltage across the relay coil T will slowly drop until it drops to a set value Vmin, and then the switch tube Q1 is controlled to be turned on. The voltage across the two ends of the relay coil T will slowly rise from Vmin again until it reaches Vmax, and then the switch tube Q1 is controlled to be turned off again. This cycle repeats, and the switch will be intermittently turned on or off according to a certain period.

[0054] Figure 2 The voltage waveform diagram of the controller MCU output and the voltage waveform of the second contact of the relay Vout in the existing control scheme are as follows: Figure 2As shown, in the existing control scheme, the controller MCU outputs a fixed high level through the first terminal MCU_I / O, the switch tube Q1 always remains in the on state, the relay coil T is always energized, the relay is energized, the first contact IN and the second contact OUT are conductive, and the output voltage Vout of the second contact OUT remains unchanged. The driving power consumption of this relay control circuit is: Pq = VCC * I1, where VCC is the driving voltage output by the controller MCU, and I1 is the driving current output by the first terminal MCU_I / O; the power consumed by the relay coil Px = (VDD) 2 / R, where R is the DC impedance of the relay coil T, VDD is the voltage value provided by the aforementioned voltage source, and the voltage drop between the collector and emitter after the switch tube is turned on is ignored. Therefore, the total power consumption required by the relay controller circuit is: Ptotal = Pq + Px.

[0055] Figure 3 : is a voltage waveform diagram output by the controller MCU according to an embodiment of the present invention and a waveform diagram of the voltage at both ends of the relay, such as Figure 3 As shown, in this embodiment, since it is necessary to control the switch tube Q1 to be intermittently turned on, the controller MCU outputs a PWM signal with a certain duty cycle through the first terminal MCU_I / O. The on time of the switch tube is Ton, and the off time is Toff. The sum of Ton and Toff constitutes a period T. Therefore, the switch tube driving power Pq1=VCC*I1*[Ton / (Ton+Toff)]. Since Ton and Toff are the on time and off time of the switch tube, respectively, and both are greater than zero, Ton / (Ton+Toff)<1, so Pq1<Pq, and the driving power consumption of the switch tube is reduced. In addition, in this embodiment, since the switch tube requires power when it is turned on, after the switch tube is turned off, the relay coil T is used for continuous current flow, and no power is consumed. The power consumed by the relay coil T is the square of the average voltage in one period multiplied by the resistance and the coil on time. Therefore, the power consumed by the relay coil T is Px1={[(Vmin+Vmax) / 2] 2 = / R}*Ton / (Ton+Toff). Since the sum of the voltage VAD of the second electrode of the switch tube Q1 and the voltage across the relay coil T is equal to the voltage VDD provided by the voltage source, it can be concluded that Vmin=VDD-VAD1, Vmax=VDD-VAD2, where VAD1 is the maximum voltage value that the second electrode of the switch tube Q1 can reach (i.e., the first voltage threshold below), Vmin is the minimum voltage value required to maintain the contact of the relay K, VAD2 is the minimum voltage value that the second electrode of the switch tube Q1 can reach (i.e., the second voltage threshold below), and Vmax is the maximum operating voltage value of the relay coil T. Px1={[(VDD-VAD1+VDD-VAD2) / 2] 2 / R}*Ton / (Ton+Toff); after sorting, we get Px1=[VDD-(VAD1+VAD2) / 2] 2 / R, since VAD1 and VAD2 are both voltage values, and the voltage values ​​are always non-zero during the above control process, the two values ​​are both positive. Therefore, [VDD-(VAD1+VAD2) / 2] 2 Less than VDD 2 , [VDD-(VAD1+VAD2) / 2] 2 / R is less than (VDD) 2 / R. At the same time, since Ton and Toff are the on-time and off-time of the switch tube respectively, both are greater than zero, therefore, Ton / (Ton+Toff)<1, therefore, Px1<Px, so the total power: Ptotal=Pq1+Px1<(Pq+Px), achieving the purpose of reducing power consumption.

[0056] In this embodiment, based on the existing structure in which a switch tube is connected to one end of the relay coil T and the relay K is controlled to be closed or disconnected by turning off or on the switch tube Q1, a controller MCU is added. One terminal of the controller MCU is connected to the connection between the switch tube Q1 and the relay coil T. The controller MCU controls the on and off state of the switch tube according to the voltage value VAD of the second pole of the switch tube. It can achieve the intermittent on and off control of the switch while ensuring that the control relay always remains in the closed state, thereby reducing the driving power of the switch tube and the power consumed by the relay coil T, thereby reducing the total power of the relay control circuit, and achieving the purpose of energy saving and reducing heat.

[0057] Example 2

[0058] In order to accurately control the timing of switch on or off so as to minimize the power consumption of the relay control circuit, in a specific implementation, the controller MCU is specifically used to: monitor the voltage value VAD of the second pole of the above-mentioned switch tube in real time; when the voltage value VAD of the second pole of the switch tube Q1 rises above the first voltage threshold, control the switch tube Q1 to turn on; when the voltage value VAD of the second pole of the switch tube Q1 drops below the second voltage threshold, control the switch tube Q1 to turn off; when the voltage value VAD of the second pole of the switch tube Q1 is between the second voltage threshold and the first voltage threshold, control the switch tube Q1 to maintain the current on-off state, that is, if the switch tube Q1 is on, it continues to be on, and if the switch tube is off, it continues to be off.

[0059] The above-mentioned second voltage threshold is lower than the first voltage threshold. In specific implementation, in order to ensure that the controlled relay K always remains in the energized state and at the same time, the voltage across it does not exceed its maximum operating voltage value, the first voltage threshold is determined by the following formula: VAD1=VDD-Vmin; wherein, VAD1 is the first voltage threshold, VDD is the voltage value provided by the above-mentioned voltage source, and Vmin is the minimum voltage value required to maintain the energization of the relay K; the second voltage threshold is determined by the following formula: VAD2=VDD-Vmax; wherein, VAD2 is the second voltage threshold, VDD is the voltage value provided by the above-mentioned voltage source, and Vmax is the maximum operating voltage value of the relay coil T.

[0060] In order to achieve the pressure division effect, as mentioned above Figure 1 As shown in , the above-mentioned relay control circuit also includes: a first resistor R1, which is arranged between the first terminal MCU_I / O of the controller MCU and the first pole of the switch tube Q1; a second resistor R2, which is arranged between the connection point between the second pole of the switch tube Q1 and the first end of the relay coil T and the second terminal MCU_AD of the controller.

[0061] In order to prevent the current from flowing in reverse, the above-mentioned relay control circuit also includes: a single-phase conduction element D1, which can be specifically a diode, whose anode is connected between the second pole of the switch tube Q1 and the first end of the relay coil T, and whose cathode is connected to the second end of the relay coil T.

[0062] Example 3

[0063] This embodiment provides an electrical device, including a relay and the above-mentioned relay control circuit, which is used to control the switch to be intermittently turned on and off while ensuring that the control relay always remains in the energized state, thereby reducing the driving power of the switch tube and the power consumed by the relay coil, thereby reducing the total power of the relay control circuit, and achieving the purpose of energy saving and reducing heat.

[0064] Example 4

[0065] This embodiment provides a relay control method, which is applied to the above relay control circuit. Figure 4 Flowchart of a relay control method according to an embodiment of the present invention. Figure 4 As shown, the method includes:

[0066] S101, obtaining the voltage value of the second electrode of the switch tube.

[0067] The first pole of the switch tube is connected to the first terminal of the controller, the second pole is connected to the first end of the relay coil, the third pole is grounded, and the second end of the relay coil is connected to the voltage source.

[0068] S102, controlling the on / off state of the switch tube according to the voltage value of the second electrode of the switch tube.

[0069] In a specific implementation, when the switch Q1 is turned on, the voltage across the relay coil will slowly rise until it reaches a set value Vmax, and then the switch tube Q1 is controlled to be turned off. After the switch tube Q1 is turned off, the voltage across the relay coil will slowly drop until it drops to a set value Vmin, and then the switch tube Q1 is controlled to be turned on. The voltage across the relay coil will slowly rise from Vmin again until it reaches Vmax, and then the switch tube Q1 is controlled to be turned off again. This cycle repeats, and the switch will be intermittently turned on or off according to a certain period.

[0070] As mentioned above Figure 2 As shown, in the existing control scheme, the controller MCU outputs a fixed high level through the first terminal MCU_I / O, the switch tube Q1 always remains in the on state, the relay coil is always energized, the relay is energized, the first contact IN and the second contact OUT are conductive, and the output voltage Vout of the second contact OUT remains unchanged. The driving power consumption of this relay control circuit is: Pq = VCC * I1, where VCC is the driving voltage output by the controller MCU, and I1 is the driving current output by the first terminal MCU_I / O; the power consumed by the relay coil Px = (VDD) 2 / R, where R is the DC impedance of the relay coil. Ignoring the voltage drop between the collector and emitter after the switch is turned on, the total power consumption required by the relay controller circuit is: Ptotal = Pq + Px.

[0071] As mentioned above Figure 3 As shown, in this embodiment, since it is necessary to control the switch tube Q1 to be intermittently turned on, the controller MCU outputs a PWM signal with a certain duty cycle through the first terminal MCU_I / O. The on time of the switch tube is Ton, and the off time is Toff. Therefore, the switch tube driving power Pq1=VCC*I1*[Ton / (Ton+Toff)]. Since Ton and Toff are the on time and off time of the switch tube, respectively, and both are greater than zero, Ton / (Ton+Toff)<1, so Pq1<Pq, and the driving power consumption of the switch tube is reduced. In addition, in this embodiment, since power is required when the switch tube is turned on, after the switch tube is turned off, the relay coil is used for continuous current flow, and no power consumption is required. Therefore, the power consumed by the relay coil is Px1={[(Vmin+Vmax) / 2] 2= / R}*Ton / (Ton+Toff). Since the sum of the voltage value VAD of the second pole of the switch tube and the voltage across the relay coil is equal to the voltage value VDD provided by the voltage source, it can be concluded that Vmin=VDD-VAD1, Vmax=VDD-VAD2, where VAD1 is the maximum voltage value that the second pole of the switch tube can reach (i.e., the first voltage threshold below), Vmin is the minimum voltage value required to maintain the contact of relay K, VAD2 is the minimum voltage value that the second pole of the switch tube can reach (i.e., the second voltage threshold below), and Vmax is the maximum operating voltage value of the relay coil T. Px1={[(VDD-VAD1+VDD-VAD2) / 2] 2 / R}*Ton / (Ton+Toff); after sorting, we get Px1=[VDD-(VAD1+VAD2) / 2] 2 / R, since VAD1 and VAD2 are both voltage values, and the voltage values ​​are always non-zero during the above control process, the two values ​​are both positive. Therefore, [VDD-(VAD1+VAD2) / 2] 2 Less than VDD 2 , [VDD-(VAD1+VAD2) / 2] 2 / R is less than (VDD) 2 / R. At the same time, since Ton and Toff are the on-time and off-time of the switch tube respectively, both are greater than zero, therefore, Ton / (Ton+Toff)<1, therefore, Px1<Px, so the total power: Ptotal=Pq1+Px1<(Pq+Px), achieving the purpose of reducing power consumption.

[0072] In this embodiment, by obtaining the voltage value between the switch tube and the first end of the relay coil, and controlling the on-off state of the switch tube according to the voltage value of the second pole of the switch tube, it is possible to control the switch to be intermittently turned on and off while ensuring that the control relay always remains in the energized state, thereby reducing the driving power of the switch tube and the power consumed by the relay coil, thereby reducing the total power of the relay control circuit, and achieving the purpose of energy saving and reducing heat.

[0073] Example 5

[0074] In order to accurately control the timing of the switch being turned on or off, so as to minimize the power consumption of the relay control circuit, the on-off state of the switch tube is controlled according to the voltage value of the second electrode of the switch tube, specifically including:

[0075] The voltage value of the second pole of the switching tube is monitored; if the voltage value of the second pole of the switching tube rises above a first voltage threshold, the switching tube is controlled to be turned on; if the voltage value of the second pole of the switching tube drops below a second voltage threshold, the switching tube is controlled to be turned off; if the voltage value of the second pole of the switching tube is between the second voltage threshold and the first voltage threshold, the switching tube is controlled to maintain the current on-off state; wherein the second voltage threshold is less than the first voltage threshold.

[0076] To ensure the controlled relay remains closed and the voltage across it does not exceed its maximum operating voltage, the first voltage threshold is determined by the following formula: VAD1 = VDD - Vmin, where VAD1 is the first voltage threshold, VDD is the voltage provided by the voltage source, and Vmin is the minimum voltage required to maintain the relay closed. The second voltage threshold is determined by the following formula: VAD2 = VDD - Vmax, where VAD2 is the second voltage threshold, VDD is the voltage provided by the voltage source, and Vmax is the maximum operating voltage of the relay coil.

[0077] In the specific implementation process, the above relay control method specifically includes the following steps:

[0078] Step 1: monitor the collector voltage VAD of the switch tube in real time through the second terminal MCU_AD of the controller MCU.

[0079] Step 2: When the collector voltage of the switch tube is monitored to be VAD=VDD-Vmin, the switch tube is controlled to be turned on, so that the voltage across the relay coil rises slowly.

[0080] Step 3: When the collector voltage of the switch tube is monitored to be VAD=VDD-Vmax, the switch tube is controlled to be turned off, and the relay inductor coil continues to flow to ensure that the relay is attracted.

[0081] Step 4: Repeat the above steps.

[0082] In the existing control scheme, the controller MCU outputs a fixed high level through the first terminal MCU_I / O, the switch tube Q1 always remains in the on state, the relay coil is always energized, the relay is attracted, the first contact IN and the second contact OUT are conductive, and the output voltage Vout of the second contact OUT remains unchanged. The driving power consumption of this relay control circuit is: Pq = VCC * I1, where VCC is the driving voltage output by the controller MCU and I1 is the driving current output by the first terminal MCU_I / O; the power consumed by the relay coil Px = (VDD) 2 / R, where R is the DC impedance of the relay coil. Ignoring the voltage drop between the collector and emitter after the switch is turned on, the total power consumption required by the relay controller circuit is: Ptotal = Pq + Px.

[0083] In this embodiment, since the switch tube Q1 needs to be controlled to be intermittently turned on, the controller MCU outputs a PWM signal with a certain duty cycle through the first terminal MCU_I / O. The on-time of the switch tube is Ton, and the off-time is Toff. Therefore, the switch tube driving power Pq1=VCC*I1*[Ton / (Ton+Toff)], Ton / (Ton+Toff)<1, therefore, Pq1<Pq, and the driving power consumption of the switch tube is reduced. In addition, in this embodiment, since the switch tube requires power when it is turned on, after the switch tube is turned off, the relay coil is used for continuous current flow, and no power consumption is required. Therefore, the power consumed by the relay coil is Px1={[(Vmin+Vmax) / 2] 2 / R}*Ton / (Ton+Toff), obviously, Px1<Px, so the total power: Ptotal=Pq1+Px1<(Pq+Px), achieving the purpose of reducing power consumption.

[0084] In summary, the relay control method of this embodiment can achieve low power consumption and low heat dissipation of the relay control circuit.

[0085] Example 6

[0086] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the relay control method in the above embodiment is implemented.

[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and 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 modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0088] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0089] 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. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A relay control circuit, characterized in that: The relay control circuit comprises: A switch tube, a first pole of which is connected to the first terminal of the controller, a second pole of which is connected to the first end of the relay coil, a third pole of which is grounded, and a second end of the relay coil is connected to the voltage source; The controller has a second terminal connected between the second pole of the switch tube and the first end of the relay coil, and is used to control the on / off state of the switch tube according to the voltage value of the second pole of the switch tube; The controller is specifically used to: monitor the voltage value of the second pole of the switch tube in real time; control the switch tube to turn on when the voltage value of the second pole of the switch tube rises above a first voltage threshold; control the switch tube to turn off when the voltage value of the second pole of the switch tube drops below a second voltage threshold; and control the switch tube to maintain the current on-off state when the voltage value of the second pole of the switch tube is between the second voltage threshold and the first voltage threshold; wherein the second voltage threshold is less than the first voltage threshold.

2. The circuit according to claim 1, wherein: The relay control circuit further includes: A first resistor is provided between the first terminal of the controller and the first electrode of the switch tube; The second resistor is arranged between the connection point between the second pole of the switch tube and the first end of the relay coil and the second terminal of the controller.

3. The circuit according to claim 1, wherein: The relay control circuit further includes: A single-phase conducting element, wherein the anode is connected between the second pole of the switch tube and the first end of the relay coil, and the cathode is connected to the second end of the relay coil.

4. An electrical device, comprising a relay, characterized in that: It also includes the relay control circuit according to any one of claims 1 to 3.

5. A relay control method, applied to the relay control circuit according to any one of claims 1 to 3, characterized in that: The method comprises: Obtaining a voltage value between the second pole of the switch tube and the first end of the relay coil; wherein the first pole of the switch tube is connected to the first terminal of the controller, the second pole is connected to the first end of the relay coil, the third pole is grounded, and the second end of the relay coil is connected to the voltage source; The on / off state of the switch tube is controlled according to the voltage value of the second pole of the switch tube; the method includes: real-time monitoring of the voltage value of the second pole of the switch tube; if the voltage value of the second pole of the switch tube rises above the first voltage threshold, the switch tube is controlled to be turned on; if the voltage value of the second pole of the switch tube drops below the second voltage threshold, the switch tube is controlled to be turned off; if the voltage value of the second pole of the switch tube is between the second voltage threshold and the first voltage threshold, the switch tube is controlled to maintain the current on / off state; wherein, the second voltage threshold is less than the first voltage threshold.

6. The method according to claim 5, characterized in that The first voltage threshold is determined by the following formula: VAD1=VDD-Vmin; Wherein, VAD1 is the first voltage threshold, VDD is the voltage value provided by the voltage source, and Vmin is the minimum voltage value required to maintain the relay closed.

7. The method according to claim 5, characterized in that The second voltage threshold is determined by the following formula: VAD2=VDD-Vmax; Wherein, VAD2 is the second voltage threshold, VDD is the voltage value provided by the voltage source, and Vmax is the maximum operating voltage value of the relay coil.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 5 to 7 is implemented.

Citation Information

Patent Citations

  • Drive power circuit and driving method of low-energy-consumption relay

    CN102624223A

  • Relay drive circuit and air conditioner

    CN207883612U