A relay drive circuit and a charging device
By combining the first drive module, the second drive module, and the clamping module, reliable switching on and off of the magnetic latching relay is achieved, solving the problems of complex circuit topology and low reliability in the prior art, and improving circuit adaptability and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAN LINCHR NEW ENERGY TECH CO LTD
- Filing Date
- 2025-12-15
- Publication Date
- 2026-06-30
AI Technical Summary
Existing magnetic latching relay drive circuits suffer from complex circuit topologies, high hardware costs, low reliability, and difficulty in adapting to complex operating conditions. In particular, they struggle to meet compatibility, stability, and economic requirements in diverse application scenarios.
The combination of a first drive module, a second drive module, and a clamping module is used to be compatible with preset positive and negative voltage signals. The signals are converted into positive and negative pulses with controllable pulse time through a charging circuit and a comparison unit, so as to realize the reliable opening and closing of the magnetic latching relay.
It effectively reduces coil loss and module power consumption, improves circuit adaptability and reliability, simplifies circuit structure, reduces hardware costs, and improves driving accuracy.
Smart Images

Figure CN121662664B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of relay driving, and more specifically, to a relay driving circuit and a charging device. Background Technology
[0002] As a power electronic component that relies on a permanent magnet to maintain the contact state, the core driving requirement of a magnetic latching relay is a pulse signal. A positive pulse closes the contacts, and a negative pulse opens them. Once the contacts are stable, no continuous power supply is needed. Applying a voltage signal for an extended period can lead to excessive coil losses, overheating, and burnout, resulting in equipment failure and additional losses. Therefore, the drive circuit of a magnetic latching relay must have the ability to precisely control the drive duration. Especially when the drive signal is provided by an external functional circuit, the drive time must be strictly limited to not exceed the coil's tolerance threshold to avoid the risk of abnormal drive caused by external circuit logic errors or component damage.
[0003] Existing magnetic latching relay driving schemes mainly rely on externally supplied positive or negative voltage levels. The RC parameters of the resistors and capacitors in the driving circuit, along with the driving switch, generate a pulse signal to drive the relay. However, this scheme requires three connection lines: positive voltage, negative voltage, and common terminal. The circuit topology is complex, and it depends on additional power devices such as transistors. This not only increases hardware costs but also reduces the overall reliability of the circuit due to the collaborative work of multiple components, making it difficult to meet the stable operation requirements under complex working conditions. It also suffers from problems such as limited functionality, insufficient adaptability, or an imbalance between cost and reliability, making it difficult to meet the comprehensive requirements of drive circuit compatibility, stability, and economy in diverse application scenarios. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of the prior art by providing a relay drive circuit and a charging device. This allows the connection of a first drive module, a second drive module, and a corresponding clamping module to accommodate inputs of preset positive and preset negative voltage signals, converting them into positive and negative pulses with controllable pulse duration to achieve reliable switching on and off of the magnetic latching relay. This effectively reduces coil losses and module power consumption, and improves circuit adaptability and reliability.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0006] In a first aspect, embodiments of this application provide a relay driving circuit, the relay driving circuit including: a first driving module, a second driving module, a first clamping module, and a second clamping module;
[0007] The first clamping module includes a first diode, the cathode of which is used to receive a preset positive voltage signal; the second clamping module includes a second diode, the cathode of which is used to receive a preset negative voltage signal; the anodes of the first diode and the anodes of the second diode are connected.
[0008] The first driving module includes a first charging circuit and a first comparison unit. One end of the first charging circuit is connected to the cathode of the first diode, and the other end of the first charging circuit is connected to the anode of the first diode. The output terminal of the first charging circuit is connected to the input terminal of the first comparison unit. The output terminal of the first comparison unit is the output terminal of the first driving module. The positive power supply terminal of the first comparison unit is connected to the cathode of the first diode, and the negative power supply terminal of the first comparison unit is connected to the anode of the first diode.
[0009] The second driving module includes a second charging circuit and a second comparison unit. One end of the second charging circuit is connected to the cathode of the second diode, and the other end of the second charging circuit is connected to the anode of the second diode. The output terminal of the second charging circuit is connected to the input terminal of the second comparison unit. The output terminal of the second comparison unit is the output terminal of the second driving module. The positive power supply terminal of the second comparison unit is connected to the cathode of the second diode, and the negative power supply terminal of the second comparison unit is connected to the anode of the second diode.
[0010] The output terminals of the first drive module and the second drive module are respectively connected to two terminals on the coil of the relay to be controlled.
[0011] In an optional embodiment, the first charging circuit includes two first charging sub-circuits; the second charging circuit includes two second charging sub-circuits.
[0012] One end of each of the two first charging sub-circuits is connected to the cathode of the first diode, and the other end of each of the two first charging sub-circuits is connected to the anode of the first diode; the output terminals of the two first charging sub-circuits are connected to the input terminal of the first comparator unit.
[0013] One end of each of the two second charging sub-circuits is connected to the cathode of the second diode, and the other end of each of the two second charging sub-circuits is connected to the anode of the second diode; the output of each of the two second charging sub-circuits is connected to the input of the second comparator unit.
[0014] In an optional embodiment, the first charging sub-circuit includes: a first resistor and a first capacitor; the second charging sub-circuit includes: a second resistor and a second capacitor;
[0015] One end of the first resistor is one end of the first charging sub-circuit, and the other end of the first resistor is connected to one end of the first capacitor, serving as the output terminal of the first charging sub-circuit. The other end of the first capacitor is the other end of the first charging sub-circuit.
[0016] One end of the second resistor is one end of the second charging sub-circuit, and the other end of the second resistor is connected to one end of the second capacitor as the output terminal of the second charging sub-circuit. The other end of the second capacitor is the other end of the second charging sub-circuit.
[0017] In an optional implementation, the first comparison unit includes: a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit includes: a second resistor voltage divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter.
[0018] One end of the first resistor voltage divider module is connected to the cathode of the first diode, and the other end of the first resistor voltage divider module is connected to the anode of the first diode; the positive input of the first comparator is connected to the output of one of the first charging sub-circuits, and the negative input of the first comparator is connected to the first voltage divider point of the first resistor voltage divider module; the output of the first comparator is connected to the first input of the first SR flip-flop; the negative input of the second comparator is connected to the output of another of the first charging sub-circuits, and the positive input of the second comparator is connected to the second voltage divider point of the first resistor voltage divider module; the output of the second comparator is connected to the second input of the first SR flip-flop; the output of the first SR flip-flop is connected to one end of the first inverter, and the other end of the first inverter is the output of the first comparator unit;
[0019] One end of the second resistor voltage divider module is connected to the cathode of the second diode, and the other end of the second resistor voltage divider module is connected to the anode of the second diode; the positive input of the third comparator is connected to the output of one of the second charging sub-circuits, and the negative input of the third comparator is connected to the first voltage divider point of the second resistor voltage divider module; the output of the third comparator is connected to the first input of the second SR flip-flop; the negative input of the fourth comparator is connected to the output of another of the second charging sub-circuits, and the positive input of the fourth comparator is connected to the second voltage divider point of the second resistor voltage divider module; the output of the fourth comparator is connected to the second input of the second SR flip-flop; the output of the second SR flip-flop is connected to one end of the second inverter, and the other end of the second inverter is the output of the second comparator unit.
[0020] In an optional embodiment, the first charging circuit includes a third charging electronic circuit; the second charging circuit includes a fourth charging electronic circuit.
[0021] One end of the third charging electronic circuit is connected to the cathode of the first diode, and the other end of the third charging electronic circuit is connected to the anode of the first diode; the output terminal of the third charging electronic circuit is connected to the input terminal of the first comparator unit.
[0022] One end of the fourth charging electronic circuit is connected to the cathode of the second diode, and the other end of the fourth charging electronic circuit is connected to the anode of the second diode; the output terminal of the fourth charging electronic circuit is connected to the input terminal of the second comparator unit.
[0023] In an optional embodiment, the third charging electronic circuit includes a third resistor and a third capacitor; the fourth charging electronic circuit includes a fourth resistor and a fourth capacitor.
[0024] One end of the third capacitor is one end of the third charging electronic circuit, and the other end of the third capacitor is connected to one end of the third resistor, serving as the output terminal of the third charging electronic circuit. The other end of the third resistor is the other end of the third charging electronic circuit.
[0025] One end of the fourth capacitor is one end of the fourth charging electronic circuit, and the other end of the fourth capacitor is connected to one end of the fourth resistor, serving as the output terminal of the fourth charging electronic circuit. The other end of the fourth resistor is the other end of the fourth charging electronic circuit.
[0026] In an optional implementation, the first comparison unit includes a fifth comparator; the second comparison unit includes a sixth comparator.
[0027] The input terminal of the fifth comparator is the input terminal of the first comparison unit and is connected to the output terminal of the third charging electronic circuit. The output terminal of the fifth comparator is the output terminal of the first comparison unit.
[0028] The input terminal of the sixth comparator is the input terminal of the second comparator unit and is connected to the output terminal of the fourth charging electronic circuit. The output terminal of the sixth comparator is the output terminal of the second comparator unit.
[0029] In an optional implementation, the first comparison unit includes: a first driver chip, the first driver chip including: a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit includes: a second driver chip, the second driver chip including: a second resistor voltage divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter.
[0030] In an optional implementation, the first comparison unit includes a third driver chip, the third driver chip including the fifth comparator; the second comparison unit includes a fourth driver chip, the fourth driver chip including the sixth comparator.
[0031] Secondly, embodiments of this application provide a charging device, the charging device comprising: a coil of a relay to be controlled and a relay driving circuit as described in any of the first aspects above; the output terminal of the relay driving circuit is connected to the terminal on the coil of the relay to be controlled.
[0032] The beneficial effects of this application are:
[0033] This application provides a relay driving circuit and a charging device. The relay driving circuit includes: a first driving module, a second driving module, a first clamping module, and a second clamping module. The first clamping module includes a first diode, the cathode of which is used to receive a preset positive voltage signal. The second clamping module includes a second diode, the cathode of which is used to receive a preset negative voltage signal. The anodes of the first and second diodes are connected. The first driving module includes a first charging circuit and a first comparison unit. One end of the first charging circuit is connected to the cathode of the first diode, and the other end of the first charging circuit is connected to the anode of the first diode. The output terminal of the first charging circuit is connected to the input terminal of the first comparison unit, and the output terminal of the first comparison unit is the first... The output of the first driving module is connected to the cathode of the first diode via the positive power supply terminal of the first comparator unit, and the anode of the first diode via the negative power supply terminal of the first comparator unit. The second driving module includes a second charging circuit and a second comparator unit. One end of the second charging circuit is connected to the cathode of the second diode, and the other end is connected to the anode of the second diode. The output of the second charging circuit is connected to the input of the second comparator unit. The output of the second comparator unit is the output of the second driving module. The positive power supply terminal of the second comparator unit is connected to the cathode of the second diode, and the negative power supply terminal is connected to the anode of the second diode. The outputs of the first and second driving modules are respectively connected to two terminals on the coil of the relay to be controlled. This relay driving circuit, through the connection of the first and second driving modules with the corresponding clamping modules, is compatible with inputs of preset positive and negative voltage signals, converting them into positive and negative pulses with controllable pulse duration to achieve reliable switching on and off of the magnetic latching relay, effectively reducing coil loss and module power consumption, and improving circuit adaptability and reliability. Attached Figure Description
[0034] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 One of the schematic diagrams of a relay driving circuit provided in the embodiments of this application;
[0036] Figure 2 A second schematic diagram of a relay driving circuit provided in an embodiment of this application;
[0037] Figure 3 A third schematic diagram of a relay driving circuit provided in an embodiment of this application;
[0038] Figure 4 A fourth schematic diagram of a relay driving circuit provided in an embodiment of this application;
[0039] Figure 5 Fifth schematic diagram of a relay driving circuit provided in the embodiments of this application;
[0040] Figure 6 This is a schematic diagram of a charging module provided in an embodiment of this application.
[0041] Key component symbols: 100 - Relay drive circuit; 110 - First drive module; 120 - Second drive module; 130 - First clamping module; 140 - Second clamping module; 111 - First charging circuit; 112 - First comparison unit; 121 - Second charging circuit; 122 - Second comparison unit; 200 - Coil of the relay to be controlled; 300 - Charging device; D1 - First diode; D2 - Second diode. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0043] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0044] In the description of this application, it should be noted that if the terms "upper", "lower", etc. appear to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship that the product of this application is usually placed in, it is only for the convenience of describing this application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0045] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0046] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.
[0047] The following examples, in conjunction with the accompanying drawings, provide specific illustrations of the relay drive circuit provided in this application.
[0048] Figure 1 This is one of the schematic diagrams of a relay driving circuit provided in an embodiment of this application; as shown... Figure 1 As shown, the relay drive circuit 100 includes: a first drive module 110, a second drive module 120, a first clamping module 130, and a second clamping module 140.
[0049] The first clamping module 130 includes a first diode D1, the cathode of which is used to receive a preset positive voltage signal. The second clamping module 140 includes a second diode D2, the cathode of which is used to receive a preset negative voltage signal. The anodes of the first diode D1 and the second diode D2 are connected together.
[0050] The first driving module 110 includes a first charging circuit 111 and a first comparison unit 112. One end of the first charging circuit 111 is connected to the cathode of the first diode D1, and the other end of the first charging circuit 111 is connected to the anode of the first diode D1. The output terminal of the first charging circuit 111 is connected to the input terminal of the first comparison unit 112. The output terminal of the first comparison unit 112 is the output terminal of the first driving module 110. The positive power supply terminal of the first comparison unit 112 is connected to the cathode of the first diode D1, and the negative power supply terminal of the first comparison unit 112 is connected to the anode of the first diode D1.
[0051] The second driving module 120 includes a second charging circuit 121 and a second comparison unit 122. One end of the second charging circuit 121 is connected to the cathode of the second diode D2, and the other end of the second charging circuit 121 is connected to the anode of the second diode D2. The output terminal of the second charging circuit 121 is connected to the input terminal of the second comparison unit 122. The output terminal of the second comparison unit 122 is the output terminal of the second driving module 120. The positive power supply terminal of the second comparison unit 122 is connected to the cathode of the second diode D2, and the negative power supply terminal of the second comparison unit 122 is connected to the anode of the second diode D2.
[0052] The output terminals of the first drive module 110 and the second drive module 120 are respectively connected to two terminals on the coil 200 of the relay to be controlled.
[0053] In this embodiment, the preset positive voltage signal and the preset negative voltage signal are input by the external system monitoring module according to the driving requirements. The preset positive voltage signal is a +12V voltage signal, and the preset negative voltage signal is a -12V voltage signal. When the driving requirement is to engage the relay, the monitoring module outputs a +12V voltage signal to control the relay coil to remain engaged through the relay driving circuit 100. When the driving requirement is to reduce power consumption, the monitoring module outputs a -12V voltage signal to control the relay coil to remain disengaged through the relay driving circuit 100.
[0054] The first clamping module 130 and the second clamping module 140 are modules with unidirectional conduction function. The first clamping module 130 includes a first diode D1, and the second clamping module 140 includes a second diode D2. The cathode of the first diode D1 is used to receive a preset positive voltage signal, and the cathode of the second diode D2 is used to receive a preset negative voltage signal. The anodes of the first diode D1 and the anodes of the second diode D2 are connected.
[0055] The first driving module 110 includes a first charging circuit 111 and a first comparison unit 112, and the second driving module 120 includes a second charging circuit 121 and a second comparison unit 122. Specifically, the cathode of the first diode D1 is connected to the positive power supply terminal of the first comparison unit 112 and also to one end of the first charging circuit 111; the anode of the first diode D1 is connected to the negative power supply terminal of the first comparison unit 112 and also to the other end of the first charging circuit 111. The cathode of the second diode D2 is connected to the positive power supply terminal of the second comparison unit 122 and also to one end of the second charging circuit 121; the anode of the second diode D2 is connected to the negative power supply terminal of the second comparison unit 122 and also to the other end of the second charging circuit 121.
[0056] When the monitoring module outputs a +12V voltage signal, the first diode D1 is in the off state, and the first drive module 110 works normally. When the second diode D2 is in the on state, the second drive module 120 does not work. The first charging circuit 111 charges the first comparison unit 112 in the first drive module 110. The first comparison unit 112 in the first drive module 110 outputs a high level to one terminal on the coil of the relay according to the +12V voltage signal, so as to control the coil of the relay to be energized and maintain the energized state.
[0057] When the monitoring module outputs a -12V voltage signal, the first diode D1 is in the conducting state, so the first drive module 110 does not work, while the second diode D2 is in the cut-off state, so the second drive module 120 works normally. The second charging circuit 121 charges the second comparison unit 122 in the second drive module 120. Then, the second comparison unit 122 in the second drive module 120 outputs a high level to the other terminal on the relay coil according to the -12V voltage signal, so as to control the relay coil to open and remain in the open state.
[0058] In summary, this application provides a relay driving circuit, which includes: a first driving module, a second driving module, a first clamping module, and a second clamping module; the first clamping module includes a first diode, the cathode of which is used to receive a preset positive voltage signal; the second clamping module includes a second diode, the cathode of which is used to receive a preset negative voltage signal; the anodes of the first and second diodes are connected; the first driving module includes a first charging circuit and a first comparison unit; one end of the first charging circuit is connected to the cathode of the first diode, the other end of the first charging circuit is connected to the anode of the first diode, and the output terminal of the first charging circuit is connected to the input terminal of the first comparison unit; the output terminal of the first comparison unit is the first... The output of the first driving module is connected to the cathode of the first diode via the positive power supply terminal of the first comparator unit, and the anode of the first diode via the negative power supply terminal of the first comparator unit. The second driving module includes a second charging circuit and a second comparator unit. One end of the second charging circuit is connected to the cathode of the second diode, and the other end is connected to the anode of the second diode. The output of the second charging circuit is connected to the input of the second comparator unit. The output of the second comparator unit is the output of the second driving module. The positive power supply terminal of the second comparator unit is connected to the cathode of the second diode, and the negative power supply terminal is connected to the anode of the second diode. The outputs of the first and second driving modules are respectively connected to two terminals on the coil of the relay to be controlled. This relay driving circuit, through the connection of the first and second driving modules with the corresponding clamping modules, is compatible with inputs of preset positive and negative voltage signals, converting them into positive and negative pulses with controllable pulse duration to achieve reliable switching on and off of the magnetic latching relay, effectively reducing coil loss and module power consumption, and improving circuit adaptability and reliability.
[0059] This application also provides another possible implementation of the relay drive circuit. Figure 2 This is a second schematic diagram of a relay driving circuit provided in an embodiment of this application; as shown... Figure 2 As shown, the first charging circuit 111 includes two first charging electronic circuits; the second charging circuit 121 includes two second charging electronic circuits.
[0060] One end of each of the two first charging electronic circuits is connected to the cathode of the first diode D1, and the other end of each of the two first charging electronic circuits is connected to the anode of the first diode D1; the output of each of the two first charging electronic circuits is connected to the input of the first comparator unit 112.
[0061] One end of each of the two second charging electronic circuits is connected to the cathode of the second diode D2, and the other end of each of the two second charging electronic circuits is connected to the anode of the second diode D2; the output of each of the two second charging electronic circuits is connected to the input of the second comparator unit 122.
[0062] In this embodiment, two first charging electronic circuits are connected in parallel, with one end connected to the cathode of the first diode D1 and the other end connected to the anode of the first diode D1 corresponding to the clamping module. Two second charging electronic circuits are also connected in parallel, with one end connected to the cathode of the second diode D2 and the other end connected to the anode of the second diode D2 corresponding to the clamping module.
[0063] Optionally, the first charging electronic circuit includes a first resistor and a first capacitor; the second charging electronic circuit includes a second resistor and a second capacitor.
[0064] One end of the first resistor is one end of the first charging electronic circuit, and the other end of the first resistor is connected to one end of the first capacitor, serving as the output terminal of the first charging electronic circuit. The other end of the first capacitor is the other end of the first charging electronic circuit.
[0065] One end of the second resistor is one end of the second charging electronic circuit, and the other end of the second resistor is connected to one end of the second capacitor, serving as the output terminal of the second charging electronic circuit. The other end of the second capacitor is the other end of the second charging electronic circuit.
[0066] Continue to refer to Figure 2 In the first charging circuit 111, the first resistor in one first charging sub-circuit is resistor R1, and the first capacitor is capacitor C1; in the other first charging sub-circuit, the first resistor is resistor R2, and the first capacitor is capacitor C2. In the second charging circuit 121, the second resistor in one second charging sub-circuit is resistor R3, and the second capacitor is capacitor C3; in the other second charging sub-circuit, the second resistor is resistor R4, and the second capacitor is capacitor C4.
[0067] As can be seen, in the first charging circuit 111, one end of resistors R1 and R2 is connected to the cathode of the first diode D1, and the other end of capacitors C1 and C2 is connected to the anode of the first diode D1. The connection point of resistor R1 and capacitor C1 serves as the output terminal of one first charging sub-circuit, and the connection point of resistor R2 and capacitor C2 serves as the output terminal of another first charging sub-circuit. Similarly, in the second charging circuit 121, one end of resistors R3 and R4 is connected to the cathode of the second diode D2, and the other end of capacitors C3 and C4 is connected to the anode of the second diode D2. The connection point of resistor R3 and capacitor C3 serves as the output terminal of one second charging sub-circuit, and the connection point of resistor R3 and capacitor C4 serves as the output terminal of another second charging sub-circuit.
[0068] Optionally, the first comparison unit 112 includes: a first resistor divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit 122 includes: a second resistor divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter.
[0069] One end of the first resistor voltage divider module is connected to the cathode of the first diode D1, and the other end of the first resistor voltage divider module is connected to the anode of the first diode D1; the positive input of the first comparator is connected to the output of a first charging sub-circuit, and the inverting input of the first comparator is connected to the first voltage divider point of the first resistor voltage divider module; the output of the first comparator is connected to the first input of the first SR flip-flop; the negative input of the second comparator is connected to the output of another first charging sub-circuit, and the positive input of the second comparator is connected to the second voltage divider point of the first resistor voltage divider module; the output of the second comparator is connected to the second input of the first SR flip-flop; the output of the first SR flip-flop is connected to one end of the first inverter, and the other end of the first inverter is the output of the first comparator unit 112.
[0070] One end of the second resistor voltage divider module is connected to the cathode of the second diode D2, and the other end of the second resistor voltage divider module is connected to the anode of the second diode D2; the positive input of the third comparator is connected to the output of a second charging electronic circuit, and the inverting input of the third comparator is connected to the first voltage divider point of the second resistor voltage divider module; the output of the third comparator is connected to the first input of the second SR flip-flop; the negative input of the fourth comparator is connected to the output of another second charging electronic circuit, and the positive input of the fourth comparator is connected to the second voltage divider point of the second resistor voltage divider module; the output of the fourth comparator is connected to the second input of the second SR flip-flop; the output of the second SR flip-flop is connected to one end of the second inverter, and the other end of the second inverter is the output of the second comparator unit 122.
[0071] The SR trigger is a set / reset trigger; please refer to [link / reference]. Figure 2 Taking the first comparison unit 112 as an example, the first resistor voltage divider module includes: resistors Rs1, Rs2 and Rs3, the first comparator is comparator G1, the second comparator is comparator G2, the first SR flip-flop is SR flip-flop G3, and the first inverter is inverter G4. One end of resistor Rs1 is one end of the first resistor voltage divider module, which is used to connect to the cathode of the first diode D1. Resistors Rs1, Rs2 and Rs3 are connected in series. The other end of resistor Rs3 is the other end of the first resistor voltage divider module, which is used to connect to the anode of the first diode D1.
[0072] The positive input of comparator G1 is connected to the output of a first charging electronic circuit, i.e., the connection point of resistor R2 and capacitor C2. The inverting input of comparator G1 is connected to the first voltage divider point of the first resistor voltage divider module, i.e., the connection point of resistors Rs1 and Rs2. The output of comparator G1 is connected to the first input R of the first SR flip-flop G3. The negative input of comparator G2 is connected to the output of another first charging electronic circuit, i.e., the connection point of resistor R1 and capacitor C1. The positive input of comparator G2 is connected to the second voltage divider point of the first resistor voltage divider module, i.e., the connection point of resistors Rs2 and Rs3. The output of comparator G2 is connected to the second input S of the SR flip-flop G3. The output of the SR flip-flop G3 is connected to one end of inverter G4, and the other end of inverter G4 is the output of the first comparison unit 112.
[0073] Similarly, taking the second comparison unit 122 as an example, the second resistor voltage divider module includes: resistors Rs4, Rs5 and Rs6, the third comparator is comparator G6, the fourth comparator is comparator G5, the second SR flip-flop is SR flip-flop G7, and the second inverter is inverter G8. One end of resistor Rs4 is one end of the second resistor voltage divider module, which is used to connect to the cathode of the second diode D2. Resistors Rs4, Rs5 and Rs6 are connected in series. The other end of resistor Rs6 is the other end of the second resistor voltage divider module, which is used to connect to the anode of the second diode D2.
[0074] The positive input of comparator G6 is connected to the output of a second charging electronic circuit, i.e., the connection point of resistor R4 and capacitor C4. The inverting input of comparator G6 is connected to the first voltage divider point of the second resistor voltage divider module, i.e., the connection point of resistors Rs5 and Rs6. The output of comparator G6 is connected to the first input R of the second SR flip-flop G7. The negative input of comparator G5 is connected to the output of another second charging electronic circuit, i.e., the connection point of resistor R3 and capacitor C3. The positive input of comparator G5 is connected to the second voltage divider point of the second resistor voltage divider module, i.e., the connection point of resistors Rs4 and Rs5. The output of comparator G5 is connected to the second input S of the SR flip-flop G7. The output of the SR flip-flop G7 is connected to one end of inverter G8, and the other end of inverter G8 is the output of the second comparison unit 122.
[0075] Specifically, the working principle of the drive module is as follows: When the first drive module 110 is working, after voltage division by the three equal resistors Rs1, Rs2, and Rs3 of the first resistor divider module, the positive input terminal of comparator G2 is connected to the Vcc / 3 level, and the negative input terminal of comparator G1 is connected to the junction of resistor R1 and capacitor C1 and connected to the Vcc*2 / 3 level. When the input preset positive voltage signal is +12V, the first comparator unit 112 can work normally, and the second comparator unit 122 stops working. The input preset positive voltage signal will charge capacitor C1 through resistor R1. Initially, the voltage on capacitor C1 is less than the voltage at the positive input terminal of comparator G2, causing comparator G2 to output a high level, and causing the output terminal of SR flip-flop G3 to output a high level. Through inverter G4, the driving capability is increased. At this time, the first comparator unit 112 will output a +12V voltage to load the two ends of the relay coil, so that the relay can be energized. At the same time, resistor R2 will also charge capacitor C2. When the voltage on capacitor C2 exceeds the voltage at the negative input terminal of comparator G1, the output terminal of the first comparator unit 112 will output a low level. At this time, the voltage on the relay coil is 0V, so as to keep the relay coil in the energized state.
[0076] Similarly, if the preset positive voltage signal is -12V, the second comparator unit can operate normally, the first comparator unit 112 stops working, and the output of the first comparator unit 112 outputs a low level. The input preset positive voltage signal charges the capacitor C3 through the resistor R3. Initially, the voltage on the capacitor C3 is less than the voltage at the positive input of the comparator G5, causing the comparator G5 to output a high level, and causing the output of the SR flip-flop G7 to output a high level. This, through the inverter G4, increases the driving capability. At this time, the second comparator unit 122 will output a -12V voltage to load the two ends of the relay coil, allowing the relay to open. At the same time, the resistor R4 will also charge the capacitor C4. When the voltage on the capacitor C4 exceeds the voltage at the negative input of the comparator G6, the output of the second comparator unit 122 will output a low level. At this time, the voltage on the relay coil is 0V, keeping the relay coil in the open state.
[0077] Figure 3 This is a third schematic diagram of a relay driving circuit provided in an embodiment of this application, as shown below. Figure 3 As shown, the first comparison unit 112 includes: a first driver chip, which includes: a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit 122 includes: a second driver chip, which includes: a second resistor voltage divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter.
[0078] In this embodiment, both the first driver chip and the second driver chip are 555 integrated chips. The relay driver circuit 100 constructed using the 555 integrated chip can be compatible with both DC level input and pulse input, and its output can drive a magnetic latching relay.
[0079] Taking the first driving module 110 as an example, pin 2 of the first driving chip is connected to the output terminal of a first charging sub-circuit, i.e., the connection point of resistor R1 and capacitor C1. Pin 6 of the first driving chip is connected to the output terminal of another first charging sub-circuit, i.e., the connection point of resistor R2 and capacitor C2. In addition, pin 5 of the first driving chip is also connected to capacitor C5, and pin 7 of the first driving chip is also connected to the output terminal of an external charging module, which includes resistor R5 and capacitor C6. Similarly, taking the second driving module 120 as an example, pin 2 of the second driving chip is connected to the output terminal of a second charging sub-circuit, i.e., the connection point of resistor R3 and capacitor C3. Pin 6 of the second driving chip is connected to the output terminal of another second charging sub-circuit, i.e., the connection point of resistor R4 and capacitor C4. In addition, pin 5 of the second driving chip is also connected to capacitor C7, and pin 7 of the second driving chip is also connected to the output terminal of an external charging module, which includes resistor R6 and capacitor C8.
[0080] In the method provided in this application embodiment, two first charging sub-circuits containing a first resistor and a first capacitor work in conjunction with a first comparison unit 112, and two second charging sub-circuits containing a second resistor and a second capacitor work in conjunction with a second comparison unit 122. The first comparison unit 112 integrates a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter. The second comparison unit 122 integrates a second resistor voltage divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter. This not only maintains the simplicity of the driving circuit structure but also accurately converts positive and negative levels into positive and negative pulses with controllable pulse time, enabling reliable on / off switching of the magnetic latching relay. Its external dual-wire input requires no special logic requirements, and by adjusting the charging circuit parameters or the voltage divider point of the resistor voltage divider module, it can flexibly adapt to the power supply and accurately control the pulse off time, further improving the circuit's adaptability and control accuracy.
[0081] This application also provides another possible implementation of the relay drive circuit. Figure 4 This is a fourth schematic diagram of a relay driving circuit provided in an embodiment of this application; as shown... Figure 4 As shown, the first charging circuit 111 includes a third charging electronic circuit; the second charging circuit 121 includes a fourth charging electronic circuit.
[0082] One end of a third charging electronic circuit is connected to the cathode of the first diode D1, and the other end of the third charging electronic circuit is connected to the anode of the first diode D1; the output of the third charging electronic circuit is connected to the input of the first comparator unit 112.
[0083] One end of the fourth charging electronic circuit is connected to the cathode of the second diode D2, and the other end of the fourth charging electronic circuit is connected to the anode of the second diode D2; the output end of the fourth charging electronic circuit is connected to the input end of the second comparator unit 122.
[0084] In this embodiment, one end of a third charging electronic circuit is connected to the cathode of the first diode D1, and the other end is connected to the anode of the first diode D1. One end of a fourth charging electronic circuit is connected to the cathode of the second diode D2, and the other end is connected to the anode of the second diode D2.
[0085] Optionally, the third charging electronic circuit includes a third resistor and a third capacitor; the fourth charging electronic circuit includes a fourth resistor and a fourth capacitor.
[0086] One end of the third capacitor is one end of the third charging electronic circuit, and the other end of the third capacitor is connected to one end of the third resistor, serving as the output terminal of the third charging electronic circuit. The other end of the third resistor is the other end of the third charging electronic circuit.
[0087] One end of the fourth capacitor is one end of the fourth charging electronic circuit, and the other end of the fourth capacitor is connected to one end of the fourth resistor, serving as the output terminal of the fourth charging electronic circuit. The other end of the fourth resistor is the other end of the fourth charging electronic circuit.
[0088] Continue to refer to Figure 4 The third resistor in the third charging electronic circuit is resistor R7, and the third capacitor is capacitor C9. The fourth resistor in the fourth charging electronic circuit is resistor R8, and the fourth capacitor is capacitor C10.
[0089] As can be seen, in the third charging electronic circuit, one end of resistor R7 is connected to the anode of the first diode D1, and the other end of capacitor C9 is connected to the cathode of the first diode D1. The connection point of resistor R7 and capacitor C9 serves as the output terminal of the third charging electronic circuit. Similarly, in the fourth charging electronic circuit, one end of resistor R8 is connected to the anode of the second diode D2, and the other end of capacitor C10 is connected to the cathode of the second diode D2. The connection point of resistor R8 and capacitor C10 serves as the output terminal of the fourth charging electronic circuit.
[0090] Optionally, the first comparison unit 112 includes a fifth comparator; the second comparison unit 122 includes a sixth comparator.
[0091] The input terminal of the fifth comparator is the input terminal of the first comparator unit 112, and is connected to the output terminal of the third charging electronic circuit. The output terminal of the fifth comparator is the output terminal of the first comparator unit 112.
[0092] The input terminal of the sixth comparator is the input terminal of the second comparator unit 122, which is connected to the output terminal of the fourth charging electronic circuit. The output terminal of the sixth comparator is the output terminal of the second comparator unit 122.
[0093] Taking the first driving module 110 as an example, the fifth comparator of the first comparison unit 112 is comparator G9; taking the second driving module 120 as an example, the sixth comparator of the second comparison unit 122 is comparator G10. (Continue to refer to...) Figure 4 The positive input of comparator G9 is connected to the output of the third charging electronic circuit, which is the connection point of resistor R7 and capacitor C9. The negative input of comparator G9 is used to receive the first threshold value. The output of comparator G9 is the output of the first comparison unit 112. The positive input of comparator G10 is connected to the output of the fourth charging electronic circuit, which is the connection point of resistor R8 and capacitor C10. The negative input of comparator G10 is used to receive the second threshold value. The output of comparator G10 is the output of the second comparison unit 122.
[0094] Specifically, the first and second threshold values are internal threshold values of comparator G9 and comparator G10. When the voltage value supplied to the positive input terminal of comparator G9 or comparator G10 is greater than the threshold value, comparator G9 or comparator G10 will output a high level; otherwise, it will output a low level.
[0095] The driving module works as follows: when a +12V voltage signal is input, the first comparison unit 112 is activated, while the second comparison unit 122 is deactivated. The positive input terminal of comparator G9 is connected to the junction of resistor R7 and capacitor C9, and the input is high. When the input exceeds the first threshold value of comparator G9, the output terminal of comparator G9 outputs a high level, generating a +12V voltage signal across the relay, which allows the relay to be energized. When the voltage received at the positive input terminal of comparator G9 is lower than the first threshold value, the output terminal of comparator G9 outputs a low level, and the voltage across the relay is 0V, thus keeping the relay coil in an energized state.
[0096] Similarly, when a -12V voltage signal is input, the second comparison unit 122 operates, and the first comparison unit 112 is clamped to 0V. At this time, the positive input terminal of comparator G10 is connected to the junction of resistor R8 and capacitor C10, and the input is high level, exceeding the second threshold value of comparator G10 itself. The output terminal of comparator G10 outputs a high level, generating a -12V voltage signal across the relay, allowing the relay to disconnect. When the voltage received at the positive input terminal of comparator G10 is lower than the second threshold value, the output terminal of comparator G10 outputs a low level, and the voltage across the relay is 0V, keeping the relay coil in the open state.
[0097] Figure 5 This is the fifth schematic diagram of a relay driving circuit provided in the embodiments of this application, as shown below. Figure 5 As shown, the first comparison unit 112 includes a third driver chip, and the third driver chip includes a fifth comparator; the second comparison unit 122 includes a fourth driver chip, and the fourth driver chip includes a sixth comparator.
[0098] In this embodiment, both the third and fourth driver chips are dual-channel driver chips. Taking the first driver module 110 as an example, pin 2 of the third driver chip is connected to the output terminal of the third charging electronic circuit, i.e., the connection point of resistor R7 and capacitor C9, and pin 6 of the third driver chip is connected to decoupling capacitor C11. Similarly, taking the second driver module 120 as an example, pin 4 of the fourth driver chip is connected to the output terminal of the fourth charging electronic circuit, i.e., the connection point of resistor R8 and capacitor C10, and pin 6 of the fourth driver chip is connected to decoupling capacitor C12.
[0099] Specifically, the driving module works as follows: when a +12V voltage signal is input, the third driving chip operates while the fourth driving chip does not. At this time, both OUTA and OUTB of the third driving chip are pulled low to 0V. Pin 2 (INA) of the third driving chip is high, exceeding its first threshold. Therefore, the OUTA output of the third driving chip is high, generating a +12V voltage signal across the relay, causing the relay to engage. As the voltage across capacitor C9 increases, the voltage across resistor R7 decreases. When this input voltage falls below the first threshold, the OUTA signal outputs a low level, and the voltage across the relay is 0V, maintaining the relay coil in an engaged state.
[0100] Similarly, when a -12V voltage signal is input, the fourth driver chip operates, and the third driver chip is clamped to 0V. At this time, the INB input of pin 4 of the fourth driver chip is high, exceeding the second threshold value of the fourth driver chip itself. The OUTB output of this fourth driver chip is high, generating a -12V voltage signal across the relay, allowing the relay to disconnect. As the voltage across capacitor C10 rises, the voltage across resistor R8 drops. When this input voltage is lower than the second threshold value, the OUTB signal outputs a low level, and the voltage across the relay is 0V, keeping the relay coil in the open state.
[0101] This application also provides a schematic diagram of a charging device. Figure 6 This is a schematic diagram of a charging device provided in an embodiment of this application, such as... Figure 6 As shown, the charging device 300 includes: a coil 200 of a relay to be controlled and a relay driving circuit 100; the output terminal of the relay driving circuit 100 is connected to the terminal on the coil 200 of the relay to be controlled. The relay driving circuit 100 controls the coil of the relay to open or close according to the received preset voltage signal, which will not be described in detail here.
[0102] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A relay drive circuit, characterized by comprising: The relay driving circuit includes: a first driving module, a second driving module, a first clamping module, and a second clamping module; The first clamping module includes a first diode, the cathode of which is used to receive a preset positive voltage signal; the second clamping module includes a second diode, the cathode of which is used to receive a preset negative voltage signal; the anodes of the first diode and the anodes of the second diode are connected. The first driving module includes a first charging circuit and a first comparison unit. One end of the first charging circuit is connected to the cathode of the first diode, and the other end of the first charging circuit is connected to the anode of the first diode. The output terminal of the first charging circuit is connected to the input terminal of the first comparison unit. The output terminal of the first comparison unit is the output terminal of the first driving module. The positive power supply terminal of the first comparison unit is connected to the cathode of the first diode, and the negative power supply terminal of the first comparison unit is connected to the anode of the first diode. The second driving module includes a second charging circuit and a second comparison unit. One end of the second charging circuit is connected to the cathode of the second diode, and the other end of the second charging circuit is connected to the anode of the second diode. The output terminal of the second charging circuit is connected to the input terminal of the second comparison unit. The output terminal of the second comparison unit is the output terminal of the second driving module. The positive power supply terminal of the second comparison unit is connected to the cathode of the second diode, and the negative power supply terminal of the second comparison unit is connected to the anode of the second diode. The output terminals of the first drive module and the second drive module are respectively connected to two terminals on the coil of the relay to be controlled.
2. The circuit of claim 1, wherein, The first charging circuit includes two first charging sub-circuits; the second charging circuit includes two second charging sub-circuits. One end of each of the two first charging sub-circuits is connected to the cathode of the first diode, and the other end of each of the two first charging sub-circuits is connected to the anode of the first diode; the output terminals of the two first charging sub-circuits are connected to the input terminal of the first comparator unit. One end of each of the two second charging sub-circuits is connected to the cathode of the second diode, and the other end of each of the two second charging sub-circuits is connected to the anode of the second diode; the output of each of the two second charging sub-circuits is connected to the input of the second comparator unit.
3. The circuit according to claim 2, characterized in that, The first charging sub-circuit includes: a first resistor and a first capacitor; the second charging sub-circuit includes: a second resistor and a second capacitor; One end of the first resistor is one end of the first charging sub-circuit, and the other end of the first resistor is connected to one end of the first capacitor, serving as the output terminal of the first charging sub-circuit. The other end of the first capacitor is the other end of the first charging sub-circuit. One end of the second resistor is one end of the second charging sub-circuit, and the other end of the second resistor is connected to one end of the second capacitor as the output terminal of the second charging sub-circuit. The other end of the second capacitor is the other end of the second charging sub-circuit.
4. The circuit according to claim 3, characterized in that, The first comparison unit includes: a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit includes: a second resistor voltage divider module, a third comparator, a fourth comparator, a second SR flip-flop, and a second inverter. One end of the first resistor voltage divider module is connected to the cathode of the first diode, and the other end of the first resistor voltage divider module is connected to the anode of the first diode; the positive input of the first comparator is connected to the output of one of the first charging sub-circuits, and the negative input of the first comparator is connected to the first voltage divider point of the first resistor voltage divider module; the output of the first comparator is connected to the first input of the first SR flip-flop; the negative input of the second comparator is connected to the output of another of the first charging sub-circuits, and the positive input of the second comparator is connected to the second voltage divider point of the first resistor voltage divider module; the output of the second comparator is connected to the second input of the first SR flip-flop; the output of the first SR flip-flop is connected to one end of the first inverter, and the other end of the first inverter is the output of the first comparator unit; One end of the second resistor voltage divider module is connected to the cathode of the second diode, and the other end of the second resistor voltage divider module is connected to the anode of the second diode; the positive input of the third comparator is connected to the output of one of the second charging sub-circuits, and the negative input of the third comparator is connected to the first voltage divider point of the second resistor voltage divider module; the output of the third comparator is connected to the first input of the second SR flip-flop; the negative input of the fourth comparator is connected to the output of another of the second charging sub-circuits, and the positive input of the fourth comparator is connected to the second voltage divider point of the second resistor voltage divider module; the output of the fourth comparator is connected to the second input of the second SR flip-flop; the output of the second SR flip-flop is connected to one end of the second inverter, and the other end of the second inverter is the output of the second comparator unit.
5. The circuit according to claim 1, characterized in that, The first charging circuit includes a third charging electronic circuit; the second charging circuit includes a fourth charging electronic circuit. One end of the third charging electronic circuit is connected to the cathode of the first diode, and the other end of the third charging electronic circuit is connected to the anode of the first diode; the output terminal of the third charging electronic circuit is connected to the input terminal of the first comparator unit. One end of the fourth charging electronic circuit is connected to the cathode of the second diode, and the other end of the fourth charging electronic circuit is connected to the anode of the second diode; the output terminal of the fourth charging electronic circuit is connected to the input terminal of the second comparator unit.
6. The circuit according to claim 5, characterized in that, The third charging electronic circuit includes: a third resistor and a third capacitor; the fourth charging electronic circuit includes: a fourth resistor and a fourth capacitor; One end of the third capacitor is one end of the third charging electronic circuit, and the other end of the third capacitor is connected to one end of the third resistor, serving as the output terminal of the third charging electronic circuit. The other end of the third resistor is the other end of the third charging electronic circuit. One end of the fourth capacitor is one end of the fourth charging electronic circuit, and the other end of the fourth capacitor is connected to one end of the fourth resistor, serving as the output terminal of the fourth charging electronic circuit. The other end of the fourth resistor is the other end of the fourth charging electronic circuit.
7. The circuit according to claim 6, characterized in that, The first comparison unit includes a fifth comparator; the second comparison unit includes a sixth comparator. The input terminal of the fifth comparator is the input terminal of the first comparison unit and is connected to the output terminal of the third charging electronic circuit. The output terminal of the fifth comparator is the output terminal of the first comparison unit. The input terminal of the sixth comparator is the input terminal of the second comparator unit and is connected to the output terminal of the fourth charging electronic circuit. The output terminal of the sixth comparator is the output terminal of the second comparator unit.
8. The circuit according to claim 4, characterized in that, The first comparison unit includes: a first driver chip, the first driver chip including: a first resistor voltage divider module, a first comparator, a second comparator, a first SR flip-flop, and a first inverter; the second comparison unit includes: a second driver chip, the second driver chip including: a second resistor voltage divider module, the third comparator, the fourth comparator, the second SR flip-flop, and a second inverter.
9. The circuit according to claim 7, characterized in that, The first comparison unit includes a third driver chip, and the third driver chip includes the fifth comparator; the second comparison unit includes a fourth driver chip, and the fourth driver chip includes the sixth comparator.
10. A charging device, characterized in that, The charging device includes: a coil of a relay to be controlled and a relay driving circuit as described in any one of claims 1-9; the output terminal of the relay driving circuit is connected to the terminal on the coil of the relay to be controlled.