Relay control method and related product

By introducing a control module and a current output module into the relay control circuit, adjusting the output voltage to reduce the current of the relay coil, the problems of high energy consumption and electromagnetic interference of the power battery relay are solved, and the effects of low power consumption and low EMI are achieved.

CN119764114APending Publication Date: 2025-04-04BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049016.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing power battery relays have high working energy consumption, and severe electromagnetic interference will be caused when the coil is on and off through the PWM control coil.

Method used

By introducing a control module and a current output module into the relay control circuit, the control module adjusts the output voltage to make the semiconductor switch work in the amplified state, reduces the current of the relay coil, and maintains a minimum current in the suction state to reduce power consumption.

Benefits of technology

It effectively reduces the power consumption after relay is absorbed and avoids the generation of electromagnetic interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119764114A_ABST
    Figure CN119764114A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a relay control method and related products, the relay control method is applied to a relay control circuit, and the relay control circuit comprises a control module and a current output module; when the relay needs to be controlled to be maintained in a pull-in state, the control module controls the voltage of the output end of the control module to be smaller than a first threshold value and larger than or equal to a second threshold value, so that a semiconductor switch of the current output module works in an amplification state. And the current of the coil of the relay is smaller than the pull-in current of the coil and is greater than or equal to the pull-in keeping minimum current of the coil. The relay control circuit provided by the embodiment of the invention can effectively reduce the power consumption after the relay is actuated and does not bring about electromagnetic interference at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic circuit technology, and in particular to a relay control method and related products. Background Art

[0002] At present, the relays of power batteries are all electromagnetic relays. At the moment when the relay is energized, the current required by the relay coil is relatively large. After the relay is energized, the current required for the relay to maintain the energized state is relatively small. In order to reduce the working energy consumption of the relay, the power supply of the relay coil is generally output in the form of pulse width modulation (PWM). However, in the form of PWM output, it is necessary to frequently control the circuit switch to control the on and off of the power supply of the relay coil, which brings serious electromagnetic interference (EMI). Summary of the invention

[0003] The embodiments of the present application provide a relay control method and related products, which effectively reduce the power consumption of the relay coil after it is energized without causing electromagnetic interference.

[0004] A first aspect of an embodiment of the present application provides a relay control method, the method being applied to a relay control circuit, the relay control circuit comprising a control module and a current output module; the method comprising:

[0005] When it is necessary to control the relay to maintain in the energized state, the control module controls the voltage at the output end of the control module to be less than a first threshold value and greater than or equal to a second threshold value, so that the semiconductor switch of the current output module operates in an amplification state, so that the current of the coil of the relay is less than the energizing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to keep it energized.

[0006] Optionally, when it is necessary to control the relay to switch from the disconnected state to the engaged state, the control module controls the voltage at the output end of the control module to be greater than or equal to the first threshold value, so that the semiconductor switch of the current output module operates in a saturation state, so that the current of the coil of the relay is equal to the engagement current of the coil.

[0007] Optionally, the control module includes a controller and a voltage control module, the output end of the controller is connected to the voltage control module, and the output end of the voltage control module is connected to the first input end of the current output module;

[0008] The control module controls the voltage of the output terminal of the control module to be greater than or equal to a first threshold, including:

[0009] The controller adjusts the control signal output by the control module to control the voltage at the output end of the voltage control module to be greater than or equal to a first threshold;

[0010] The control module controls the voltage of the output terminal of the control module to be less than the first threshold and greater than or equal to the second threshold, including:

[0011] The controller adjusts the control signal output by the control module to control the voltage at the output terminal of the voltage control module to be less than the first threshold and greater than or equal to the second threshold.

[0012] Optionally, the control module controls the voltage of the output terminal of the control module to be less than the first threshold and greater than or equal to a second threshold, including:

[0013] When the control module controls the voltage of the output end of the control module to be greater than a first threshold for a duration greater than a set duration, the control module controls the voltage of the output end of the control module to be less than the first threshold and greater than or equal to a second threshold.

[0014] Optionally, the output end of the control module is suitable for connecting to the first input end of the current output module, the power supply is connected to the first end of the coil of the relay, the second end of the coil is connected to the first output end of the current output module, and the second output end of the current output module is grounded.

[0015] Optionally, the current output module includes the semiconductor switch and a first resistor; the first end of the semiconductor switch is connected to the second end of the coil, the second end of the semiconductor switch is connected to the first end of the first resistor, the first end of the first resistor is suitable for connecting to the second input end of the current output module, and the second end of the first resistor is grounded.

[0016] Optionally, the first threshold is set to Vcc*R1 / (R load +R1), wherein Vcc is the voltage provided by the power supply, R1 is the resistance value of the first resistor, R load is the resistance of the coil of the relay.

[0017] Optionally, the second threshold is set to Imin*R1, where Imin is the minimum current for the coil to remain energized, and R1 is the resistance value of the first resistor.

[0018] Optionally, the current output module further includes an operational amplifier;

[0019] The output end of the control module is connected to the non-inverting input end of the operational amplifier, the first end of the first resistor is suitable for connecting to the inverting input end of the operational amplifier, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier.

[0020] A second aspect of an embodiment of the present application provides a relay control circuit, including a control module and a current output module;

[0021] The control module is used to control the voltage at the output end of the control module to be less than the first threshold and greater than or equal to the second threshold when it is necessary to control the relay to maintain a closed state, so that the semiconductor switch of the current output module operates in an amplified state, so that the current of the coil of the relay is less than the closing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to keep it closed.

[0022] Optionally, the control module is also used to control the voltage at the output end of the control module to be greater than or equal to a first threshold when it is necessary to control the relay to switch from an open state to an engaged state, so that the semiconductor switch of the current output module operates in a saturation state, so that the current of the coil of the relay is equal to the engagement current of the coil.

[0023] Optionally, the output end of the control module is suitable for connecting to the first input end of the current output module, the power supply is connected to the first end of the coil of the relay, the second end of the coil is connected to the first output end of the current output module, and the second output end of the current output module is grounded.

[0024] Optionally, the current output module includes the semiconductor switch and a first resistor; the first end of the semiconductor switch is connected to the second end of the coil, the second end of the semiconductor switch is connected to the first end of the first resistor, the first end of the first resistor is suitable for connecting to the second input end of the current output module, and the second end of the first resistor is grounded.

[0025] Optionally, the current output module further includes an operational amplifier;

[0026] The output end of the control module is connected to the non-inverting input end of the operational amplifier, the first end of the first resistor is suitable for connecting to the inverting input end of the operational amplifier, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier.

[0027] Optionally, the current output module also includes a second resistor, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier, including: the output end of the operational amplifier is connected to the first end of the second resistor, and the second end of the second resistor is connected to the third end of the semiconductor switch.

[0028] Optionally, the current output module also includes a third resistor, and the first end of the first resistor is suitable for connecting to the inverting input terminal of the operational amplifier, including: the first end of the first resistor is connected to the first end of the third resistor, and the second end of the third resistor is connected to the inverting input terminal of the operational amplifier.

[0029] Optionally, the current output module further includes a fourth resistor, and the output end of the control module is suitable for connecting to the first input end of the current output module, including:

[0030] The output end of the control module is connected to the first end of the fourth resistor, and the second end of the fourth resistor is connected to the non-inverting input end of the operational amplifier.

[0031] Optionally, the semiconductor switch includes a triode or a field effect transistor.

[0032] A third aspect of the embodiments of the present application provides a charging control circuit, comprising the relay control circuit, a relay and a battery as described in any one of the second aspects of the embodiments of the present application, wherein the relay control circuit is used to control the current of the coil of the relay to control the on and off of the relay, and the relay control circuit is used to control the on and off of the relay to control whether to charge the battery.

[0033] A fourth aspect of the embodiments of the present application provides an electrical device, comprising the charging control circuit described in the third aspect of the embodiments of the present application.

[0034] The fifth aspect of an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.

[0035] The sixth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.

[0036] The seventh aspect of the embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product can be a software installation package.

[0037] The relay control method of the embodiment of the present application is applied to a relay control circuit, and the relay control circuit includes a control module and a current output module; when the relay needs to be controlled to maintain in the energized state, the control module controls the voltage of the output end of the control module to be less than the first threshold value and greater than or equal to the second threshold value, so that the semiconductor switch of the current output module works in the amplified state, so that the current of the coil of the relay is less than the energized current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to maintain energization. In the embodiment of the present application, when the relay needs to be controlled to maintain in the energized state, the control module controls the voltage of the output end of the control module to control the semiconductor switch of the current output module to work in the amplified state, thereby effectively reducing the current of the coil of the relay, thereby reducing the power consumption of the relay after energization, and compared with controlling the on and off of the coil in the form of PWM to control the current of the coil, it can effectively reduce the power consumption of the relay after energization without causing electromagnetic interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0039] Figure 1 is a structural schematic diagram of a relay control circuit provided in an embodiment of the present application;

[0040] Figure 2 is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application;

[0041] Figure 3 is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application;

[0042] Figure 4 is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application;

[0043] Figure 5 is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application;

[0044] Figure 6 The embodiment of the present application provides a method for generating a voltage when the voltage at the in-phase input terminal of the operational amplifier is greater than Vcc*R1 / (R load +R1) circuit status diagram;

[0045] Figure 7The embodiment of the present application provides a method for generating a voltage when the voltage at the in-phase input terminal of the operational amplifier is less than Vcc*R1 / (R load +R1) circuit status diagram;

[0046] Figure 8 It is a flow chart of a control method of a relay provided in an embodiment of the present application;

[0047] Fig. 9 is a flow chart of another relay control method provided in an embodiment of the present application;

[0048] Fig.10 is a flow chart of another relay control method provided in an embodiment of the present application;

[0049] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0051] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, products or devices.

[0052] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0053] See also Figure 1 , Figure 1 Schematic diagram of a relay control circuit provided in an embodiment of the present application. Figure 1As shown, the relay control circuit may include a control module 10 and a current output module 20;

[0054] The control module 10 is also used to control the voltage at the output end of the control module 10 to be less than a first threshold and greater than or equal to a second threshold when it is necessary to control the relay K1 to maintain in the energized state, so that the semiconductor switch Q1 of the current output module 20 operates in an amplified state, so that the current of the coil L1 of the relay K1 is less than the energizing current of the coil L1 and the current of the coil L1 is greater than or equal to the minimum current of the coil L1 to keep it energized.

[0055] In an embodiment of the present application, when it is necessary to control the relay to maintain a closed state, the control module controls the voltage at the output end of the control module to control the semiconductor switch of the current output module to operate in an amplified state, thereby effectively reducing the current of the relay coil, thereby reducing the power consumption after the relay is closed. Compared with controlling the on and off of the coil in the form of PWM to control the current of the coil, it can effectively reduce the power consumption after the relay is closed without causing electromagnetic interference.

[0056] Optionally, the control module 10 is also used to control the voltage at the output end of the control module 10 to be greater than a first threshold when it is necessary to control the relay K1 to switch from the disconnected state to the engaged state, so that the semiconductor switch Q1 of the current output module 20 operates in a saturation state, so that the current of the coil L1 of the relay K1 is equal to the engagement current of the coil L1.

[0057] The working principle of relay K1 is as follows: a magnetic field is generated through the coil L1 of relay K1, which attracts the iron core with opposite polarity, thereby causing the contacts to move. Specifically, when no current flows through the coil L1, the electromagnet has no magnetism and the contacts are in the initial state (for example, the disconnected state). Once the coil L1 is energized, a magnetic field is generated, which attracts the iron core and drives the contacts to move (for example, switching from the disconnected state to the attracted state). When the current in the coil L1 disappears, the magnetic field disappears and the contacts return to their initial state. In this way, the state of relay K1 can be controlled by closing and opening the contacts.

[0058] The first threshold and the second threshold can be set in advance. The first threshold is greater than the second threshold.

[0059] When the voltage at the output end of the control module 10 is greater than the first threshold, the semiconductor switch Q1 operates in a saturation state, so that the current of the coil L1 is equal to the pull-in current of the coil L1.

[0060] Optional, such as Figure 1As shown, the output end of the control module 10 is suitable for connecting to the first input end of the current output module 20, the power supply 30 is connected to the first end of the coil L1 of the relay K1, the second end of the coil L1 is connected to the first output end of the current output module 20, and the second output end of the current output module 20 is grounded. Wherein, Vcc is the voltage provided by the power supply 30.

[0061] See also Figure 2 , Figure 2 It is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application. Figure 2 is Figure 1 Based on Figure 2 As shown, the current output module 20 includes a semiconductor switch Q1 and a first resistor R1; the second end of the coil L1 is connected to the first end of the semiconductor switch Q1, the second end of the semiconductor switch Q1 is connected to the first end of the first resistor R1, the first end of the first resistor R1 is suitable for connecting to the second input end of the current output module 20, and the second end of the first resistor R1 is grounded.

[0062] In the embodiment of the present application, suitable for connection may include: any one of direct connection and indirect connection. Figure 1 The suitable connection takes a direct connection as an example.

[0063] Optionally, the first threshold is set to Vcc*R1 / (R load +R1), wherein Vcc is the voltage provided by the power supply 30, R1 is the resistance value of the first resistor, R load is the resistance of the coil of the relay.

[0064] Optionally, the second threshold is set to Imin*R1, where Imin is the minimum current for the coil to remain energized, and R1 is the resistance value of the first resistor.

[0065] For example, if the voltage provided by the power supply 30 is Vcc, the resistance of the coil L1 of the relay K1 is R load , the resistance of the first resistor R1 is R1. When the semiconductor switch Q1 works in a saturated state, the current of the coil L1 is the saturation current of the semiconductor switch Q1. At this time, the current of the coil L1 is: Vcc / (R load +R1), wherein the first threshold can be set to Vcc*R1 / (R load+R1). When the semiconductor switch Q1 works in the amplification state, the current of the coil L1 is positively correlated with the voltage of the output end of the control module 10. At this time, the current of the coil L1 is: Vin / R1, where Vin is the voltage of the output end of the control module 10. At this time, the voltage across the first resistor R1 can be fed back to the second input end of the current output module 20. The current output module 20 can adjust the voltage across the first resistor R1 according to the voltage of the output end of the control module 10, thereby adjusting the current flowing through the first resistor R1, and further adjusting the current of the coil L1.

[0066] The minimum current of the coil L1 to be kept energized is an inherent parameter of the relay K1 and can be determined according to the minimum current of the coil L1 to be kept energized as defined in the product specification of the relay K1. The second threshold value can be set to Imin*R1, where Imin is the minimum current of the coil L1 to be kept energized.

[0067] Optionally, the semiconductor switch Q1 includes a triode or a field effect transistor.

[0068] The transistor may include an NPN transistor or a PNP transistor.

[0069] The field effect transistor may include a metal-oxide-semiconductor field-effect transistor (MOSFET), which may be referred to as a MOS transistor for short. The MOS transistor may include a P-type MOS transistor (referred to as NMOS transistor) or an N-type MOS transistor (referred to as PMOS transistor).

[0070] Figure 2 The semiconductor switch Q1 in the embodiment is an NPN transistor as an example. The first end of the semiconductor switch Q1 is the collector of the NPN transistor, and the second end of the semiconductor switch Q1 is the emitter of the NPN transistor.

[0071] In the embodiment of the present application, the connection may be an electrical connection.

[0072] In the embodiment of the present application, the control module 10 controls the state of the semiconductor switch Q1 by controlling the voltage at the output end of the control module 10, thereby effectively controlling the current of the coil L1. Compared with controlling the on and off of the coil L1 in the form of PWM to control the current of the coil L1, it can effectively control the current of the coil L1 of the relay K1 without causing electromagnetic interference.

[0073] See also Figure 3 , Figure 3 It is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application. Figure 3 is Figure 2 Based on Figure 3 As shown, the current output module 20 also includes an operational amplifier U1;

[0074] The output end of the control module 10 is connected to the non-inverting input end of the operational amplifier U1, the first end of the first resistor R1 is suitable for connecting to the inverting input end of the operational amplifier U1, and the third end of the semiconductor switch Q1 is suitable for connecting to the output end of the operational amplifier U1.

[0075] Figure 3 The suitable connection takes a direct connection as an example.

[0076] When the voltage at the non-inverting input of the operational amplifier U1 is greater than Vcc*R1 / (R load +R1), the output voltage of the operational amplifier U1 increases and eventually reaches the maximum output value. Since the semiconductor switch Q1 works in a saturated state, the current flowing through the first resistor R1 is the saturation current of the semiconductor switch Q1, the current flowing through the first resistor R1 remains unchanged, and the voltage at the inverting input terminal of the operational amplifier U1 remains unchanged. At this time, the loop always maintains a saturated current output.

[0077] When the voltage at the non-inverting input of the operational amplifier U1 is less than Vcc*R1 / (R load +R1), when the voltage at the non-inverting input terminal of the operational amplifier U1 decreases, the output voltage of the operational amplifier U1 decreases, the current of the semiconductor switch Q1 decreases (the current flowing through the first resistor R1 decreases), the feedback voltage at the inverting input terminal of the operational amplifier U1 decreases and eventually equals the voltage at the non-inverting input terminal, and the circuit reaches a balanced state. When the voltage at the non-inverting input terminal increases, the output voltage of the operational amplifier U1 increases, the current of the semiconductor switch Q1 increases (the current flowing through the first resistor R1 increases), the feedback voltage at the inverting input terminal of the operational amplifier U1 increases and eventually equals the voltage at the non-inverting input terminal, and the circuit reaches a balanced state. In this state, the current of the semiconductor switch Q1 is I=Vin / R1, where Vin is the voltage at the non-inverting input terminal of the operational amplifier U1.

[0078] See also Figure 4 , Figure 4 It is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application. Figure 4 is Figure 3 Based on Figure 4 As shown, the current output module 20 also includes a second resistor R2, and the third end of the semiconductor switch Q1 is suitable for connecting to the output end of the operational amplifier U1, including: the output end of the operational amplifier U1 is connected to the first end of the second resistor R2, and the second end of the second resistor R2 is connected to the third end of the semiconductor switch Q1.

[0079] Figure 4 The semiconductor switch Q1 takes an NPN transistor as an example, the first end of the semiconductor switch Q1 is the collector of the NPN transistor, the second end of the semiconductor switch Q1 is the emitter of the NPN transistor, and the third end of the semiconductor switch Q1 is the base of the NPN transistor.

[0080] In the embodiment of the present application, the second resistor R2 can be used as a current limiting resistor to limit the current at the output end of the operational amplifier U1, protect the semiconductor switch Q1 from being affected by excessive current, and improve the safety of the operation of the semiconductor switch Q1.

[0081] Optional, such as Figure 4 As shown, the current output module 20 also includes a third resistor R3, and the first end of the first resistor R1 is suitable for connecting to the inverting input terminal of the operational amplifier U1, including: the first end of the first resistor R1 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is connected to the inverting input terminal of the operational amplifier U1.

[0082] In the embodiment of the present application, the third resistor R3 can be used as a current limiting resistor to limit the current at the inverting input terminal of the operational amplifier U1, thereby protecting the operational amplifier U1 from excessive current and improving the safety of the operation of the operational amplifier U1.

[0083] Optional, such as Figure 4 As shown, the current output module 20 further includes a fourth resistor R4, and the output end of the control module 10 is suitable for connecting to the first input end of the current output module 20, including:

[0084] The output end of the control module 10 is connected to the first end of the fourth resistor R4 , and the second end of the fourth resistor R4 is connected to the non-inverting input end of the operational amplifier U1 .

[0085] In the embodiment of the present application, the fourth resistor R4 can be used as a current limiting resistor to limit the current at the in-phase input terminal of the operational amplifier U1, thereby protecting the operational amplifier U1 from the influence of excessive current and improving the safety of the operation of the operational amplifier U1.

[0086] See also Figure 5 , Figure 5 It is a structural schematic diagram of another relay control circuit provided in an embodiment of the present application. Figure 5 is Figure 4 Based on Figure 5 As shown, the control module 10 includes a controller and a voltage control module, the output end of the controller is connected to the voltage control module, and the output end of the voltage control module is connected to the non-inverting input end of the operational amplifier U1;

[0087] The control module 10 controls the voltage at the output end of the control module 10 to be greater than a first threshold, including:

[0088] The controller adjusts the control signal output by the control module 10 to control the voltage at the output end of the voltage control module to be greater than a first threshold;

[0089] The control module 10 controls the voltage at the output end of the control module 10 to be less than the first threshold and greater than or equal to the second threshold, including:

[0090] The controller adjusts the control signal output by the control module 10 to control the voltage at the output end of the voltage control module to be less than the first threshold and greater than or equal to the second threshold.

[0091] In the embodiment of the present application, the controller can send a control signal to the voltage control module, and the voltage control module can generate an analog voltage signal according to the control signal, thereby controlling the voltage at the output end of the voltage control module.

[0092] The control signal may be a digital signal or a PWM signal.

[0093] Exemplarily, the controller may be an MCU, and the voltage control module may be a PWM signal to analog signal converter (PWM to analog converter, PAC) or a digital to analog converter (digital to analog converter, DAC).

[0094] When the voltage control module is a PAC, the MCU can output a PWM signal, and the PAC can convert the PWM signal into an analog voltage signal and output it to the non-inverting input terminal of the operational amplifier U1. For example, the PAC can determine the amplitude of the output analog voltage signal according to the duty cycle of the PWM signal.

[0095] When the voltage control module is a DAC, the MCU can output a digital signal, and the PAC can convert the digital signal into an analog voltage signal and output it to the non-inverting input terminal of the operational amplifier U1.

[0096] Combine the following Figure 5 , explaining in detail how it works.

[0097] If the controller is an MCU, the semiconductor switch Q1 is an NPN transistor, the voltage provided by the power supply 30 is Vcc, and the resistance of the coil L1 of the relay K1 is R load , the resistance of the first resistor R1 is R1. When the semiconductor switch Q1 works in saturation state, the saturation output current I 饱和 =Vcc / (R load+R1), the maximum voltage of the first resistor R1 is V R1 =Vcc*R1 / (R load +R1).

[0098] See also Figure 6 , Figure 6 The embodiment of the present application provides a method for generating a voltage when the voltage at the in-phase input terminal of the operational amplifier is greater than Vcc*R1 / (R load +R1) circuit status diagram. Figure 6 As shown in the figure, when the voltage Vin of the non-inverting input terminal of the operational amplifier U1 is greater than Vcc*R1 / (R load +R1), the output voltage V out The current flowing through the first resistor R1 is the saturation current of the semiconductor switch Q1, and the current I flowing through the first resistor R1 is the saturation current of the semiconductor switch Q1. R1 remains unchanged, the voltage V of the first resistor R1 R1 The voltage Vn of the inverting input terminal of the operational amplifier U1 is equal to the voltage V R1 , that is, Vn=Vcc*R1 / (R load +R1), the voltage Vn at the inverting input terminal of the operational amplifier U1 remains unchanged, and the loop always maintains a saturated current output.

[0099] See also Figure 7 , Figure 7 The embodiment of the present application provides a method for generating a voltage when the voltage at the in-phase input terminal of the operational amplifier is less than Vcc*R1 / (R load +R1) circuit status diagram. Figure 7 As shown in the figure, when the voltage Vin of the non-inverting input terminal of the operational amplifier U1 is less than Vcc*R1 / (R load +R1), when the voltage Vin at the in-phase input terminal of the operational amplifier U1 decreases, the output voltage V out becomes smaller, the emitter current of the semiconductor switch Q1 (NPN transistor) decreases (the current I flowing through the first resistor R1 R1 The voltage Vn of the inverting input terminal of the operational amplifier U1 decreases and eventually becomes equal to the voltage Vin of the non-inverting input terminal, and the circuit reaches a balanced state. When the voltage of the non-inverting input terminal increases, the output voltage V out becomes larger, the emitter current of the semiconductor switch Q1 (NPN transistor) becomes larger (the current I flowing through the first resistor R1 R1The feedback voltage at the inverting input of the operational amplifier U1 increases and eventually equals the voltage at the non-inverting input, and the circuit reaches a balanced state. In this state, the current of the semiconductor switch Q1 is I=Vin / R1, where Vin is the voltage at the non-inverting input of the operational amplifier U1.

[0100] From the above, we can see that the relationship between the loop output current and the voltage Vin of the non-inverting input terminal of the operational amplifier U1 is:

[0101] ①Vin>Vcc*R1 / (R load +R1), I=Vcc / (R load +R1);

[0102] ②Vin<Vcc*R1 / (R load +R1), I=Vin / R1;

[0103] By controlling the voltage at the in-phase input terminal of the operational amplifier U1, the current of the coil L1 of the relay K1 can be kept between 0 and Vcc / (R load +R1) can not only ensure the normal closure of relay K1, but also reduce the working current and power consumption after closure.

[0104] The voltage control module can set the target analog value of the output (the voltage control module includes but is not limited to PAC, DAC, etc.), and the output DC voltage is used as the input voltage Vin of the current output module 20. Since the input voltage of the current output module 20 exceeds Vcc*R1 / (R load +R1), so when relay K1 is closed, the output voltage of the adjustable voltage control module is Vcc*R1 / (R load +R1) to ensure that relay K1 can be normally attracted. After relay K1 is closed, adjust the output voltage of the voltage control module to Vcc*R1 / (R load +R1), the working current of relay K1 changes linearly with the voltage I=Vin / R1. MCU can adjust the output voltage of the voltage control module to linearly adjust the working current of coil L1. The control strategy can set the output voltage analog lower limit value of the voltage control module Vin=I min *R1, where I min is the minimum current of coil L1 to keep it energized (I min Implementation methods include but are not limited to product calibration / theoretical calculation / high and low temperature test data, etc.), according to I min Calculate the output voltage of the voltage control module to control the energy saving of relay K1.

[0105] The control process of relay K1 closing is as follows: When the circuit is working in saturation state, the voltage V of the first resistor R1 R1=Vcc*R1 / (R load +R1), set the output voltage of the voltage control module to Vcc*R1 / (R load +R1) or above.

[0106] According to the setting of the minimum current I of the coil L1 of the relay K1 to keep it energized min , set the relay K1 to be energized, and maintain the output voltage value of the voltage control module equal to I min *R1.

[0107] Optionally, when the control module 10 controls the voltage at the output end of the control module 10 to be greater than a first threshold for a duration greater than a set duration, the control module 10 controls the voltage at the output end of the control module 10 to be less than the first threshold and greater than or equal to a second threshold.

[0108] In the embodiment of the present application, when the duration of the voltage at the output end of the control module 10 being greater than the first threshold is greater than the set duration, the control module 10 controls the voltage at the output end of the control module 10 to be less than the first threshold and greater than or equal to the second threshold, thereby reducing the power consumption of the relay K1 in the energized state.

[0109] The set duration can be set in advance. Exemplarily, the set duration can be set to a duration greater than 0.1 seconds. For example, the set duration can be set to 1 second.

[0110] Based on the above Figures 1 to 5 Any relay control circuit in the present application provides a relay control method. Figure 8 , Figure 8 is a flow chart of a relay control method provided in an embodiment of the present application. Figure 8 As shown, the method may include the following steps.

[0111] 801. When it is necessary to control the relay to maintain the energized state, the control module controls the voltage at the output end of the control module to be less than a first threshold value and greater than or equal to a second threshold value, so that the semiconductor switch of the current output module works in an amplification state, so that the current of the coil of the relay is less than the energizing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to maintain energization.

[0112] In an embodiment of the present application, when it is necessary to control the relay to maintain a closed state, the control module controls the voltage at the output end of the control module to control the semiconductor switch of the current output module to operate in an amplified state, thereby effectively reducing the current of the relay coil, thereby reducing the power consumption after the relay is closed. Compared with controlling the on and off of the coil in the form of PWM to control the current of the coil, it can effectively reduce the power consumption after the relay is closed without causing electromagnetic interference.

[0113] See also Fig. 9 , Fig. 9 FIG. 1 is a flow chart of another relay control method provided in an embodiment of the present application. Fig. 9 As shown, the method may include the following steps.

[0114] 901. When it is necessary to control the relay to switch from the disconnected state to the engaged state, the control module controls the voltage at the output end of the control module to be greater than or equal to the first threshold value, so that the semiconductor switch of the current output module operates in a saturation state, so that the current of the coil of the relay is equal to the engagement current of the coil.

[0115] 902. When it is necessary to control the relay to maintain the energized state, the control module controls the voltage at the output end of the control module to be less than the first threshold value and greater than or equal to the second threshold value, so that the semiconductor switch of the current output module works in the amplification state, so that the current of the coil of the relay is less than the energizing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to maintain energization.

[0116] The specific implementation of step 902 may refer to the above step 801 and will not be described again here.

[0117] In the embodiment of the present application, the control module controls the state of the semiconductor switch by controlling the voltage at the output end of the control module, thereby effectively controlling the current of the coil. Compared with controlling the on and off of the coil in the form of PWM to control the current of the coil, it can effectively control the current of the coil of the relay without causing electromagnetic interference.

[0118] Optional, based on Figure 5 The relay control circuit, in step 901, the control module controls the voltage at the output end of the control module to be greater than or equal to the first threshold, which may specifically include the following steps:

[0119] The controller adjusts the control signal output by the control module to control the voltage at the output end of the voltage control module to be greater than or equal to a first threshold;

[0120] In step 902, the control module controls the voltage at the output end of the control module to be less than a first threshold and greater than or equal to a second threshold, which may specifically include the following steps:

[0121] The controller adjusts the control signal output by the control module to control the voltage at the output terminal of the voltage control module to be less than a first threshold and greater than or equal to a second threshold.

[0122] In the embodiment of the present application, the controller can send a control signal to the voltage control module, and the voltage control module can generate an analog voltage signal according to the control signal, thereby controlling the voltage at the output end of the voltage control module.

[0123] The control signal may be a digital signal or a PWM signal.

[0124] See also Fig.10 , Fig.10 FIG. 1 is a flow chart of another relay control method provided in an embodiment of the present application. Fig.10 As shown, the method may include the following steps.

[0125] 1001. When it is necessary to control the relay to switch from the disconnected state to the attracted state, the control module controls the voltage at the output end of the control module to be greater than a first threshold, and the duration for which the voltage at the output end of the control module is greater than the first threshold is greater than a set duration.

[0126] 1002. When the voltage at the output end of the control module is greater than the first threshold for a duration greater than a set duration, the control module controls the voltage at the output end of the control module to be less than the first threshold and greater than or equal to the second threshold, thereby controlling the relay to maintain in the energized state.

[0127] In the embodiment of the present application, the first threshold value can be Vcc*R1 / (R load +R1). The second threshold value can be I min *R1,I min It is the minimum current of coil L1 to keep it energized.

[0128] Exemplarily, the control logic of the relay K1 is as follows: when the relay K1 switches from the disconnected state to the closed state, the output voltage of the voltage control module is adjusted to Vcc*R1 / (R load +R1) for 1 second to ensure that relay K1 can be normally energized. After relay K1 is energized, adjust the voltage control module to output voltage equal to I min *R1, the minimum current required to maintain the closure of relay K1, thereby reducing the power consumption after relay K1 is closed.

[0129] The embodiment of the present application also provides a charging control circuit, which includes a relay control circuit, a relay K1 and a battery. The relay control circuit is used to control the current of the coil L1 of the relay K1 to control the on-off of the relay K1, and the relay control circuit is used to control the on-off of the relay K1 to control whether to charge the battery. The battery can be a power battery on an electrical device or a storage battery.

[0130] The embodiment of the present application also provides an electric device, including the above-mentioned charging control circuit. The charging control circuit can be applied to the electric device. The electric device can be a device driven by electric energy. For example, the electric device can include any one of a vehicle, an aircraft, a ship, and an energy storage cabinet.

[0131] See also Fig.11 , Fig.11 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.11 As shown, the electronic device 1100 includes a processor 1101 and a memory 1102, and the processor 1101 and the memory 1102 can be connected to each other via a communication bus 1103. The communication bus 1103 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or a controller area network (CAN) bus. The communication bus 1103 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 The memory 1102 is used to store computer programs. The computer programs include program instructions. The processor 1101 is configured to call the program instructions. The program includes instructions for executing Figure 8 to Figure 10 Some or all of the steps in the method included.

[0132] The processor 1101 may be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program. Specifically, the processor 1101 may be a control module in a relay control circuit.

[0133] The memory 1102 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may also be integrated with the processor.

[0134] In addition, the electronic device 1100 may also include common components such as a communication interface (eg, a USB interface, a microphone interface, etc.), an antenna, etc., which will not be described in detail here.

[0135] In an embodiment of the present application, when it is necessary to control the relay to maintain a closed state, the control module controls the voltage at the output end of the control module to control the semiconductor switch of the current output module to operate in an amplified state, thereby effectively reducing the current of the relay coil, thereby reducing the power consumption after the relay is closed. Compared with controlling the on and off of the coil in the form of PWM to control the current of the coil, it can effectively reduce the power consumption after the relay is closed without causing electromagnetic interference.

[0136] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any relay control method recorded in the above method embodiments.

[0137] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0138] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.

[0142] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0143] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0144] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed relay control method and related products can be implemented in other ways. For example, the relay control circuit embodiments described above are only schematic, and for example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

Claims

1. A relay control method, characterized in that: The method is applied to a relay control circuit, wherein the relay control circuit comprises a control module and a current output module; the method comprises: When it is necessary to control the relay to maintain in the energized state, the control module controls the voltage at the output end of the control module to be less than a first threshold value and greater than or equal to a second threshold value, so that the semiconductor switch of the current output module operates in an amplification state, so that the current of the coil of the relay is less than the energizing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to keep it energized.

2. The method according to claim 1, characterized in that The method further comprises: When it is necessary to control the relay to switch from the disconnected state to the attracted state, the control module controls the voltage at the output end of the control module to be greater than or equal to the first threshold value, so that the semiconductor switch of the current output module operates in a saturation state, so that the current of the coil of the relay is equal to the attraction current of the coil.

3. The method according to claim 1 or 2, characterized in that: The control module includes a controller and a voltage control module, the output end of the controller is connected to the voltage control module, and the output end of the voltage control module is connected to the first input end of the current output module; The control module controls the voltage of the output terminal of the control module to be greater than or equal to a first threshold, including: The controller adjusts the control signal output by the control module to control the voltage at the output end of the voltage control module to be greater than or equal to a first threshold; The control module controls the voltage of the output terminal of the control module to be less than the first threshold and greater than or equal to the second threshold, including: The controller adjusts the control signal output by the control module to control the voltage at the output terminal of the voltage control module to be less than the first threshold and greater than or equal to the second threshold.

4. The method according to claim 1 or 2, characterized in that: The control module controls the voltage of the output terminal of the control module to be less than the first threshold and greater than or equal to the second threshold, including: When the control module controls the voltage of the output end of the control module to be greater than a first threshold for a duration greater than a set duration, the control module controls the voltage of the output end of the control module to be less than the first threshold and greater than or equal to a second threshold.

5. The method according to any one of claims 1 to 4, characterized in that: The output end of the control module is suitable for connecting to the first input end of the current output module, the power supply is connected to the first end of the coil of the relay, the second end of the coil is connected to the first output end of the current output module, and the second output end of the current output module is grounded.

6. The method according to claim 5, characterized in that The current output module includes the semiconductor switch and a first resistor; the first end of the semiconductor switch is connected to the second end of the coil, the second end of the semiconductor switch is connected to the first end of the first resistor, the first end of the first resistor is suitable for connecting to the second input end of the current output module, and the second end of the first resistor is grounded.

7. The method according to claim 6, characterized in that The first threshold is set to Vcc*R1 / (R load +R1), wherein Vcc is the voltage provided by the power supply, R1 is the resistance value of the first resistor, R load is the resistance of the coil of the relay.

8. The method according to claim 6, characterized in that The second threshold is set to Imin*R1, where Imin is the minimum current of the coil to keep it energized, and R1 is the resistance value of the first resistor.

9. The method according to claim 6, characterized in that The current output module also includes an operational amplifier; The output end of the control module is connected to the non-inverting input end of the operational amplifier, the first end of the first resistor is suitable for connecting to the inverting input end of the operational amplifier, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier.

10. A relay control circuit, characterized in that: It includes a control module and a current output module; The control module is used to control the voltage at the output end of the control module to be less than the first threshold and greater than or equal to the second threshold when it is necessary to control the relay to maintain a closed state, so that the semiconductor switch of the current output module operates in an amplified state, so that the current of the coil of the relay is less than the closing current of the coil and the current of the coil is greater than or equal to the minimum current of the coil to keep it closed.

11. The circuit according to claim 10, characterized in that The control module is also used to control the voltage at the output end of the control module to be greater than or equal to a first threshold when it is necessary to control the relay to switch from an open state to an engaged state, so that the semiconductor switch of the current output module operates in a saturation state, so that the current of the coil of the relay is equal to the engagement current of the coil.

12. The circuit according to claim 10 or 11, characterized in that The output end of the control module is suitable for connecting to the first input end of the current output module, the power supply is connected to the first end of the coil of the relay, the second end of the coil is connected to the first output end of the current output module, and the second output end of the current output module is grounded.

13. The circuit according to claim 12, characterized in that The current output module includes the semiconductor switch and a first resistor; the first end of the semiconductor switch is connected to the second end of the coil, the second end of the semiconductor switch is connected to the first end of the first resistor, the first end of the first resistor is suitable for connecting to the second input end of the current output module, and the second end of the first resistor is grounded.

14. The circuit according to claim 13, characterized in that The current output module also includes an operational amplifier; The output end of the control module is connected to the non-inverting input end of the operational amplifier, the first end of the first resistor is suitable for connecting to the inverting input end of the operational amplifier, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier.

15. The circuit according to claim 14, characterized in that The current output module also includes a second resistor, and the third end of the semiconductor switch is suitable for connecting to the output end of the operational amplifier, including: the output end of the operational amplifier is connected to the first end of the second resistor, and the second end of the second resistor is connected to the third end of the semiconductor switch.

16. The circuit according to claim 15, characterized in that The current output module also includes a third resistor, and the first end of the first resistor is suitable for connecting to the inverting input terminal of the operational amplifier, including: the first end of the first resistor is connected to the first end of the third resistor, and the second end of the third resistor is connected to the inverting input terminal of the operational amplifier.

17. The circuit according to claim 14, characterized in that The current output module further includes a fourth resistor, and the output end of the control module is suitable for connecting to the first input end of the current output module, including: The output end of the control module is connected to the first end of the fourth resistor, and the second end of the fourth resistor is connected to the non-inverting input end of the operational amplifier.

18. A charging control circuit, characterized in that: It comprises a relay control circuit, a relay and a battery as described in any one of claims 10 to 17, wherein the relay control circuit is used to control the current of the coil of the relay to control the on and off of the relay, and the relay control circuit is used to control the on and off of the relay to control whether to charge the battery.

19. An electrical device, characterized in that: Comprising the charging control circuit as claimed in claim 18.

20. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 9.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 9.

22. A computer program product, characterized in that The computer program product comprises a computer program, and the computer program is operable to cause a computer to execute the method according to any one of claims 1 to 9.