Detection device
By designing a detection device that includes a voltage divider and an operational amplifier, the problems of accuracy and efficiency in relay status detection during long-term use are solved. This enables efficient and accurate relay status detection in non-constant voltage source environments, saving energy consumption.
Patent Information
- Application Number
- CN202422880088.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2034-11-25
AI Technical Summary
Existing technologies are insufficient for effectively detecting the status of relays used for extended periods, especially in environments with non-constant voltage sources, resulting in low detection accuracy and efficiency.
A detection device was designed, including a power supply module, a relay, a pre-charge branch, a detection module, and a processing module. By combining voltage divider and operational amplifier, the relay status can be accurately detected under high voltage conditions, and power can be saved by turning transistors on and off.
It expands the application range of relay status detection, improves the accuracy and efficiency of detection, and is especially suitable for non-constant voltage source environments, saving power consumption.
Smart Images

Figure CN223897594U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of relay detection, in particular to a detection device. BACKGROUND
[0002] Relay is an electrical control device, which plays an important role in many industries and application scenarios. However, if the relay is used for a long time, and is affected by the application environment, the relay may fail. Therefore, how to detect the state of the relay through the detection circuit becomes a technical problem to be solved in the field. CONTENT OF THE UTILITY MODEL
[0003] Therefore, it is necessary to provide a detection device capable of detecting the state of the relay in view of the above technical problems.
[0004] In a first aspect, the present application provides a detection device, which comprises a power supply module, a first relay, a pre-charging branch, a first detection module, a load module and a processing module, the pre-charging branch comprising a pre-charging resistor and a second relay;
[0005] The first end of the pre-charging resistor is connected with the first end of the first relay, the second end of the pre-charging resistor is connected with the first end of the second relay, and the second end of the second relay is connected with the second end of the first relay.
[0006] The first end of the first relay is connected with the first end of the power supply module and the first end of the first detection module, the second end of the first relay is connected with the second end of the first detection module and the first end of the load module, the third end of the first detection module is connected with the processing module, and the second end of the load module is connected with the second end of the power supply module.
[0007] The detection device provided by the present application can detect the voltage at both ends of the first relay and the second relay through the first detection module, determine the output voltage based on the voltage difference between the detected voltages at both ends, and input the output voltage to the processing module through the third end of the first detection module. The processing module can determine the state of the first relay and the second relay based on the output voltage. Since the present application can detect the voltage at both ends of the first relay and the second relay, determine the output voltage based on the voltage difference between the detected voltages at both ends, and can be applied to the state detection of the relay when the power supply module is a constant voltage source, and can also be applied to the state detection of the relay when the power supply module is a non-constant voltage source, thereby expanding the application range of the relay state detection.
[0008] In one of the embodiments, the detection device further comprises a first voltage dividing module and a second voltage dividing module.
[0009] The first end of the power supply module is connected with the first end of the first relay and the first end of the first voltage dividing module, the second end of the first voltage dividing module is connected with the second end of the power supply module, and the third end of the first voltage dividing module is connected with the first end of the first detection module.
[0010] The first end of the second voltage dividing module is connected with the second end of the first relay and the first end of the load module, the second end of the second voltage dividing module is connected with the second end of the power supply module, and the third end of the second voltage dividing module is connected with the second end of the first detection module.
[0011] The detection device provided by the embodiment of the present application can be connected with the first detection module through the first voltage dividing module and the second voltage dividing module when the voltage of the power supply module is high, that is, the voltage division of the first voltage dividing module is input to the first end of the first detection module, and the voltage division of the second voltage dividing module is input to the second end of the first detection module. The voltage input to the first end and the second end of the first detection module can be reduced through the voltage division of the first voltage dividing module and the second voltage dividing module, so that the first detection module can withstand the input voltage, thereby enabling the first detection module to determine the output voltage based on the voltage division of the first voltage dividing module and the voltage division of the second voltage dividing module, that is, enabling the first detection module to determine the output voltage based on the voltage of the first end and the second end of the relay. Moreover, the third end of the first detection module is connected with the processing module, so that the output voltage can be input to the processing module through the first detection module, and the state of the relay is determined based on the output voltage by the processing module. The detection device can be applied to the state detection of the relay when the power supply module is a constant voltage source, and can also be applied to the state detection of the relay when the power supply module is a non-constant voltage source, thereby expanding the application range of the state detection of the relay.
[0012] In one of the embodiments, the first voltage dividing module comprises a first resistor, a first transistor and a second resistor.
[0013] The first end of the power supply module is connected with the first end of the first resistor;
[0014] The collector of the first transistor is connected with the second end of the first resistor, the emitter of the first transistor is connected with the first end of the second resistor and the first end of the first detection module, and the base of the first transistor is connected with the processing module.
[0015] The second end of the second resistor is connected with the second end of the power supply module.
[0016] The detection device provided by the embodiment of the present application can turn on the first transistor to detect the state of the relay, and can turn off the first transistor after the detection is completed, thereby preventing a path from being formed between the positive and negative electrodes of the power supply module and saving the electric energy of the power supply module.
[0017] In one of the embodiments, the detection device further comprises a first capacitor.
[0018] The first end of the first capacitor is connected with the first end of the second resistor, and the second end of the first capacitor is connected with the second end of the second resistor.
[0019] The detection device provided by the embodiment can stabilize and filter the voltage division of the second resistor through the first capacitor, so that the output voltage obtained by the first detection module is more accurate, and the accuracy of the state detection of the relay is improved.
[0020] In one of the embodiments, the second voltage division module comprises a third resistor, a second transistor and a fourth resistor.
[0021] The first end of the third resistor is connected with the second end of the first relay and the first end of the load module.
[0022] The collector of the second transistor is connected with the second end of the third resistor, the emitter of the second transistor is connected with the first end of the fourth resistor and the second end of the first detection module, and the base of the second transistor is connected with the processing module.
[0023] The second end of the fourth resistor is connected with the second end of the power supply module.
[0024] The detection device provided by the embodiment can turn on the second transistor to detect the state of the relay, and after the detection is completed, the second transistor can be turned off, so that a path is prevented from being formed between the positive and negative poles of the power supply module, and the power of the power supply module is saved.
[0025] In one of the embodiments, the detection device further comprises a second capacitor.
[0026] The first end of the second capacitor is connected with the emitter of the second transistor, and the second end of the second capacitor is connected with the second end of the second resistor.
[0027] The detection device provided by the embodiment can stabilize and filter the voltage division of the fourth resistor through the second capacitor, so that the output voltage obtained by the first detection module is more accurate, and the accuracy of the state detection of the relay is improved.
[0028] In one of the embodiments, the first detection module comprises a first operational amplifier.
[0029] The third end of the first voltage division module is connected with the non-inverting input end of the first operational amplifier, the third end of the second voltage division module is connected with the inverting input end of the first operational amplifier, and the output end of the first operational amplifier is connected with the processing module.
[0030] The detection device provided by the embodiment of the application is connected with the first operational amplifier, the first voltage division module, the second voltage division module and the processing module, so that the output voltage can be input to the processing module through the first operational amplifier, and the state of the relay is determined by the processing module based on the output voltage. The detection device can be applied to the state detection of the relay when the power supply module is a constant voltage source, and can also be applied to the state detection of the relay when the power supply module is a non-constant voltage source, thereby expanding the application range of the state detection of the relay.
[0031] In one of the embodiments, the first detection module further includes a fifth resistor, a sixth resistor, a seventh resistor and an eighth resistor.
[0032] The non-inverting input terminal of the first operational amplifier is connected with the first end of the fifth resistor and the first end of the sixth resistor, the second end of the fifth resistor is connected with the third end of the first voltage division module, and the second end of the sixth resistor is grounded.
[0033] The inverting input terminal of the first operational amplifier is connected with the first end of the seventh resistor and the first end of the eighth resistor, the second end of the seventh resistor is connected with the third end of the second voltage division module, and the output terminal of the first operational amplifier is connected with the second end of the eighth resistor and the processing module.
[0034] The detection device provided by the embodiment of the application is connected with the first operational amplifier, the fifth resistor, the sixth resistor, the seventh resistor and the eighth resistor, so that the voltage of the input terminal of the first operational amplifier can be kept balanced, thereby improving the working stability of the first operational amplifier and the accuracy of the output signal.
[0035] In one of the embodiments, the detection device further includes a third relay, a second detection module and a third transistor.
[0036] The first end of the third relay is connected with the second end of the power supply module, the second end of the third relay is connected with the emitter of the third transistor, the first end of the second detection module and the second end of the load module, the collector of the third transistor is connected with the third end of the first voltage division module, and the base of the third transistor is connected with the processing module.
[0037] The second end of the second detection module is connected with the second end of the power supply module, and the third end of the second detection module is connected with the processing module.
[0038] The detection device provided by the embodiment of the application can detect the state of the relay of the low-voltage end of the power supply module after the third transistor is turned on, without comparing the output voltage of the operational amplifier before and after the triode is turned on, thereby improving the state detection efficiency of the third relay. Moreover, the first relay and the second relay can be detected after the third transistor is turned off, so that the detection of the first relay, the second relay and the third relay is realized through the third transistor.
[0039] In one of the embodiments, the detection device further comprises a fourth transistor and a fifth transistor;
[0040] The collector of the fourth transistor is connected with the second end of the third relay, the emitter of the fourth transistor is connected with the first end of the second detection module, and the base of the fourth transistor is connected with the processing module;
[0041] The collector of the fifth transistor is connected with the first end of the third relay, the emitter of the fifth transistor is connected with the second end of the second detection module, and the base of the fifth transistor is connected with the processing module.
[0042] The detection device provided by the embodiments of the present application can turn on the fourth transistor and the fifth transistor to detect the state of the third relay, and can turn off the fourth transistor and the fifth transistor after the detection is completed, thereby saving the power of the power supply module.
[0043] In one of the embodiments, the second detection module comprises a second operational amplifier;
[0044] The emitter of the fourth transistor is connected with the non-inverting input end of the second operational amplifier, and the emitter of the fifth transistor is connected with the inverting input end of the second operational amplifier.
[0045] The detection device provided by the embodiments of the present application is connected with the fourth transistor and the fifth transistor through the second operational amplifier to detect the voltage at the two ends of the third relay, and determines the output voltage of the output end of the second operational amplifier based on the voltage at the two ends of the third relay, and then the output voltage can be input to the processing module through the output end of the second operational amplifier, and the state of the relay is determined by the processing module based on the output voltage. Therefore, it can be suitable for the state detection of the relay when the power supply module is a constant voltage source, and it can also be suitable for the state detection of the relay when the power supply module is a non-constant voltage source, thereby expanding the application range of the state detection of the relay.
[0046] In one of the embodiments, the second detection module further comprises a tenth resistor, an eleventh resistor, a twelfth resistor and a thirteenth resistor;
[0047] The emitter of the fourth transistor is connected with the first end of the second operational amplifier through the tenth resistor, the first end of the eleventh resistor is connected with the first end of the second operational amplifier, and the second end of the eleventh resistor is grounded; the emitter of the fifth transistor is connected with the second end of the second operational amplifier through the twelfth resistor, the first end of the thirteenth resistor is connected with the second end of the second operational amplifier, the second end of the thirteenth resistor is connected with the output end of the second operational amplifier, and the output end of the second operational amplifier is connected with the processing module.
[0048] The detection device provided by the embodiment of the present application can keep the voltage of the input end of the second operational amplifier balanced, thereby improving the working stability of the second operational amplifier and the accuracy of the output signal.
[0049] In one of the embodiments, the detection device further comprises a third capacitor and a fourth capacitor.
[0050] The first end of the third capacitor is connected with the emitter of the fourth transistor, and the second end of the third capacitor is connected with the second end of the eleventh resistor.
[0051] The first end of the fourth capacitor is connected with the emitter of the fifth transistor, and the second end of the fourth capacitor is connected with the second end of the eleventh resistor.
[0052] The detection device provided by the embodiment of the present application can store electric energy when charging through the third capacitor and the fourth capacitor, thereby reducing the impact of the current on the second operational amplifier.
[0053] The above description is only a summary of the technical solutions of the present application, in order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the specification, and in order to make the above and other purposes, characteristics and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0054] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of illustrating the preferred embodiments and are not considered limiting the present application. Moreover, the same reference numbers are used to represent the same components throughout the drawings. In the drawings:
[0055] Figure 1 is one of the structural block diagrams of the detection device provided by the embodiment of the present application;
[0056] Figure 2 is the second structural block diagram of the detection device provided by the embodiment of the present application;
[0057] Figure 3 is the third structural block diagram of the detection device provided by the embodiment of the present application.
[0058] Explanation of reference signs:
[0059] Power supply module 11, first detection module 12, load module 13;
[0060] Processing module 14, first voltage dividing module 21, second voltage dividing module 22;
[0061] The first transistor Q1, the second transistor Q2, the third transistor Q3, the fourth transistor Q4;
[0062] The fifth transistor Q5, the fourteenth resistor R1, the fifteenth resistor R2, the sixteenth resistor R3;
[0063] The second resistor R4, the pre-charge resistor R5, the seventeenth resistor R6, the eighteenth resistor R7;
[0064] The nineteenth resistor R8, the fourth resistor R9, the fifth resistor R10, the sixth resistor R11;
[0065] The seventh resistor R12, the eighth resistor R13, the tenth resistor R14, the eleventh resistor R15;
[0066] The twelfth resistor R16, the thirteenth resistor R17, the first capacitor C1, the second capacitor C2;
[0067] The third capacitor C3, the fourth capacitor C4, the first relay SW1, the second relay SW2;
[0068] The third relay SW3, the second detection module 23, the first operational amplifier OP1;
[0069] The second operational amplifier OP2. DETAILED DESCRIPTION
[0070] The embodiments of the technical scheme of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical scheme of the present application, and therefore only serve as examples, and cannot limit the protection scope of the present application.
[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "include" and "have" and any variations thereof in the specification and claims of the present application and the above description of drawings are intended to cover non-exclusive inclusion.
[0072] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "a plurality of" is two or more, unless otherwise explicitly specified.
[0073] Reference to an "embodiment" in this document means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. As will be apparent to those of ordinary skill in the art, embodiments described herein can be combined with other embodiments.
[0074] In the description of the embodiments of the application, the term "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " in this paper generally represents that the front and rear associated objects are a "or" relationship.
[0075] In the description of the embodiments of the application, the term "a plurality of" refers to two or more (including two), and similarly, "a plurality of groups" refers to two or more groups (including two groups), and "a plurality of pieces" refers to two or more pieces (including two pieces).
[0076] Relay is an electrical control device, which plays an important role in many industries and application scenarios. However, if the relay is used for a long time, combined with the influence of the application environment, the relay may fail, therefore, how to detect the state of the relay through the detection circuit becomes a technical problem to be solved in the field.
[0077] To solve the above technical problems, Figure 1 is one of the structural block diagrams of the detection device provided by the embodiments of the application, the detection device comprises a power supply module 11, a first relay SW1, a pre-charging branch, a first detection module 12, a load module 13 and a processing module 14, the pre-charging branch comprises a pre-charging resistor R5 and a second relay SW2;
[0078] The first end of the pre-charging resistor R5 is connected with the first end of the first relay SW1, the second end of the pre-charging resistor R5 is connected with the first end of the second relay SW2, and the second end of the second relay SW2 is connected with the second end of the first relay SW1.
[0079] The first end of the first relay SW1 is connected with the first end of the power supply module 11 and the first end of the first detection module 12, the second end of the first relay SW1 is connected with the second end of the first detection module 12 and the first end of the load module 13, the third end of the first detection module 12 is connected with the processing module 14, and the second end of the load module 13 is connected with the second end of the power supply module 11.
[0080] The power supply module 11 can consist of a single battery cell, multiple battery cells connected in series and parallel, or other regulated DC power supplies capable of providing DC power. The power supply module 11 can be a high-voltage power supply or a low-voltage power supply. The power supply module 11 can be a constant-voltage power supply or a non-constant-voltage power supply. The first detection module 12 can be an operational amplifier, voltage comparator, etc. The load module 13 can include motors in electric vehicles, equipment in automated control systems, motors in home appliances, etc. The processing module 14 can include analog-to-digital converters and microcontrollers, or processors capable of performing analog-to-digital conversion and data processing functions. The relay 16 can include one or more relays.
[0081] The second relay SW2 can be a pre-charge relay used in electric vehicles to control the power-on and power-off of the high-voltage system. Since the power supply module 11 in electric vehicles is a high-voltage battery module, directly closing the first relay SW1 when the battery module outputs high voltage to the motor would damage the relay. The pre-charge resistor R5 and the second relay SW2 can reduce the possibility of the high voltage from the battery module damaging the relay. Therefore, the second relay SW2 can be closed first for pre-charging, and after pre-charging is complete, the first relay SW1 can be closed, simultaneously opening the pre-charge relay to complete the high-voltage output process.
[0082] The detection device provided in this application embodiment has a first terminal of a pre-charge resistor R5 connected to a first terminal of a first relay SW1, a second terminal of a pre-charge resistor R5 connected to a first terminal of a second relay SW2, a second terminal of a second relay SW2 connected to a second terminal of a first relay SW1, a first terminal of a first relay SW1 connected to a first terminal of a first detection module 12, and a second terminal of a first relay SW1 connected to a second terminal of the first detection module 12. This allows the first detection module 12 to detect the voltage across the terminals of the first relay SW1 and the second relay SW2, and determine the output voltage based on the voltage difference between the detected terminals. The output voltage can be input to a processing module 14 via a third terminal of the first detection module, and the processing module 14 can determine the state of the first relay SW1 and the second relay SW2 based on the output voltage. Since this application embodiment can detect the voltage across the terminals of the first relay SW1 and the second relay SW2 and determine the output voltage based on the voltage difference between the detected terminals, it is applicable to relay state detection when the power supply module is a constant voltage source, and also applicable to relay state detection when the power supply module is a non-constant voltage source, thus expanding the application range of relay state detection.
[0083] In one embodiment, such as Figure 2 As shown, Figure 2This is a second structural block diagram of the detection device provided in the embodiments of this application. The detection device also includes a first voltage divider module 21 and a second voltage divider module 22.
[0084] The first end of the power supply module 11 is connected to the first end of the first relay SW1 and the first end of the first voltage divider module 21, the second end of the first voltage divider module 21 is connected to the second end of the power supply module 11, and the third end of the first voltage divider module 21 is connected to the first end of the first detection module 12.
[0085] The first end of the second voltage divider module 22 is connected to the second end of the first relay SW1 and the first end of the load module 13. The second end of the second voltage divider module 22 is connected to the second end of the power supply module 11. The third end of the second voltage divider module 22 is connected to the second end of the first detection module 12.
[0086] The detection device provided in this embodiment, when the voltage of the power supply module 11 is high, can be connected to the first detection module 12 after voltage division by the first voltage divider module 21 and the second voltage divider module 22. Specifically, the voltage divided by the first voltage divider module 21 is input to the first terminal of the first detection module 12, and the voltage divided by the second voltage divider module 22 is input to the second terminal of the first detection module 12. After voltage division by the first voltage divider module 21 and the second voltage divider module 22, the voltage input to the first and second terminals of the first detection module 12 can be reduced, allowing the first detection module 12 to withstand the input voltage. This enables the first detection module 12 to determine the output voltage based on the voltage divided by the first voltage divider module 21 and the second voltage divider module 22, and thus, the first detection module 12 can determine the output voltage based on the voltage between the first and second terminals of the first relay SW1. Furthermore, since the third terminal of the first detection module 12 is connected to the processing module 14, the output voltage can be input to the processing module 14, and the processing module 14 can determine the state of the relay 16 based on the output voltage. It can be applied to relay status detection when the power supply module is a constant voltage source, and it can also be applied to relay status detection when the power supply module is a non-constant voltage source, thus expanding the application range of relay status detection.
[0087] In one embodiment, such as Figure 3 As shown, Figure 3 This is the third structural block diagram of the detection device provided in this application embodiment. The processing module 14 in this embodiment may include an analog-to-digital converter 31 and a microcontroller 32. (Refer to...) Figure 2 and Figure 3 The first voltage divider module 21 includes a first resistor, a first transistor Q1, and a second resistor;
[0088] The first terminal of the power supply module 11 is connected to the first terminal of the first resistor; the collector of the first transistor Q1 is connected to the second terminal of the first resistor; the emitter of the first transistor Q1 is connected to the first terminal of the second resistor and the first terminal of the first detection module 12; the base of the first transistor Q1 is connected to the processing module 14; and the second terminal of the second resistor is connected to the second terminal of the power supply module 11.
[0089] The base of the first transistor Q1 can be connected to the microcontroller 32. The first resistor can be a large resistor with a large resistance value, or it can be composed of multiple resistors connected in series to form a single large resistor. Figure 3 The first resistor shown includes three resistors: the fourteenth resistor R1, the fifteenth resistor R2, and the sixteenth resistor R3. The second resistor R4 is a voltage divider resistor, which can be connected in series with the first resistor to divide the voltage. The voltage obtained can be input into the first detection module 12 for processing.
[0090] The detection device provided in this application embodiment can turn on the first transistor Q1 to detect the state of the relay 16. After the detection is completed, the first transistor Q1 can be turned off to prevent the formation of a circuit between the positive and negative terminals of the power supply module 11 and save the power of the power supply module 11.
[0091] In one embodiment, such as Figure 3 As shown, the detection device also includes a first capacitor C1;
[0092] The first terminal of the first capacitor C1 is connected to the first terminal of the second resistor R4, and the second terminal of the first capacitor C1 is connected to the second terminal of the second resistor R4.
[0093] The detection device provided in this embodiment can stabilize and filter the voltage division of the second resistor through the first capacitor, thereby making the output voltage obtained by the first detection module 12 more accurate and improving the accuracy of relay status detection.
[0094] In one embodiment, such as Figure 1 , Figure 2 and Figure 3 As shown, the second voltage divider module 22 includes a third resistor, a second transistor Q2, and a fourth resistor R9;
[0095] The first end of the third resistor is connected to the second end of the first relay SW1 and the first end of the load module 13; the collector of the second transistor Q2 is connected to the second end of the third resistor, the emitter of the second transistor Q2 is connected to the first end of the fourth resistor and the second end of the first detection module 12, the base of the second transistor Q2 is connected to the processing module 14; and the second end of the fourth resistor is connected to the second end of the power supply module 11.
[0096] The base of the second transistor Q2 can be connected to the microcontroller 32. The third resistor can be a large resistor with a large resistance value, or it can be composed of multiple resistors connected in series to form a single large resistor. Figure 3 The third resistor shown includes three resistors: the seventeenth resistor R6, the eighteenth resistor R7, and the nineteenth resistor R8. The fourth resistor R9 is a voltage divider resistor, which can be connected in series with the third resistor to divide the voltage. The voltage obtained can be input into the first detection module 12 for processing.
[0097] The detection device provided in this application embodiment can turn on the second transistor Q2 to detect the state of the relay. After the detection is completed, the second transistor Q2 can be turned off to prevent the formation of a circuit between the positive and negative terminals of the power supply module 11 and save the power of the power supply module 11.
[0098] In one embodiment, such as Figure 3 As shown, the detection device also includes a second capacitor C2;
[0099] The first terminal of the second capacitor C2 is connected to the emitter of the second transistor Q2, and the second terminal of the second capacitor C2 is connected to the second terminal of the second resistor.
[0100] The detection device provided in this application embodiment can stabilize and filter the voltage division of the fourth resistor through the second capacitor, thereby making the output voltage obtained by the first detection module 12 more accurate and improving the accuracy of relay status detection.
[0101] In one embodiment, such as Figure 2 and Figure 3 As shown, the first detection module 12 includes a first operational amplifier OP1; the third terminal of the first voltage divider module 21 is connected to the non-inverting input terminal of the first operational amplifier OP1, the third terminal of the second voltage divider module 22 is connected to the inverting input terminal of the first operational amplifier OP1, and the output terminal Vout1 of the first operational amplifier OP1 is connected to the processing module 14.
[0102] The first terminal of the first detection module 12 can be the non-inverting input terminal of the first operational amplifier OP1, and the second terminal of the first detection module 12 can be the inverting input terminal of the first operational amplifier OP1.
[0103] The output terminal Vout1 of the first operational amplifier OP1 can be connected to the analog-to-digital converter 31. The first operational amplifier can perform a subtraction operation between the voltage at the non-inverting input and the voltage at the inverting input, and determine the output voltage based on the result of the subtraction operation. This output voltage is then output through the output terminal Vout1 of the first operational amplifier OP1. This output voltage is input to the analog-to-digital converter 31 for analog-to-digital conversion to obtain the processing result. The analog-to-digital converter then inputs this processing result to the microcontroller, which determines the state of the relay based on the processing result.
[0104] The detection device provided in this application embodiment is connected to a first voltage divider module 21, a second voltage divider module 22, and a processing module 14 via a first operational amplifier. The first operational amplifier can input the output voltage to the processing module 14, which then determines the relay's state based on the output voltage. Therefore, it is applicable to relay state detection when the power supply module is a constant voltage source, and also applicable to relay state detection when the power supply module is a non-constant voltage source, thus expanding the application range of relay state detection.
[0105] In one embodiment, such as Figure 3 As shown, the first detection module 12 also includes a fifth resistor R10, a sixth resistor R11, a seventh resistor R12 and an eighth resistor R13;
[0106] The non-inverting input terminal of the first operational amplifier OP1 is connected to the first terminal of the fifth resistor R10 and the first terminal of the sixth resistor R11. The second terminal of the fifth resistor R10 is connected to the third terminal of the first voltage divider module 21, and the second terminal of the sixth resistor R11 is grounded.
[0107] The inverting input terminal of the first operational amplifier OP1 is connected to the first terminal of the seventh resistor R12 and the first terminal of the eighth resistor R13. The second terminal of the seventh resistor R12 is connected to the third terminal of the second voltage divider module 22. The output terminal of the first operational amplifier is connected to the second terminal of the eighth resistor R13 and the processing module 14.
[0108] The detection device provided in this application embodiment can maintain the voltage balance at the input terminal of the first operational amplifier by connecting the first operational amplifier OP1 with the fifth resistor R10, the sixth resistor R11, the seventh resistor R12 and the eighth resistor R13, thereby improving the working stability of the first operational amplifier OP1 and the accuracy of the output signal.
[0109] In one embodiment, such as Figure 2 and Figure 3 As shown, the detection device also includes a third relay SW3, a second detection module 23, and a third transistor Q3;
[0110] The first terminal of the third relay SW3 is connected to the second terminal of the power supply module 11. The second terminal of the third relay SW3 is connected to the emitter of the third transistor Q3, the first terminal of the second detection module 23, and the second terminal of the load module 13. The collector of the third transistor Q3 is connected to the third terminal of the first voltage divider module 21. The base of the third transistor Q3 is connected to the processing module 14.
[0111] The second end of the second detection module 23 is connected to the second end of the power supply module 11, and the third end of the second detection module 23 is connected to the processing module 14.
[0112] The third relay SW3 can be a relay used in electric vehicles to control the power-on and power-off of the high-voltage system. Alternatively, it can be a relay located at the low-voltage end of the power supply module 11 in other applications. The base of the third transistor Q3 can be connected to the microcontroller 32.
[0113] The current detection circuit for the third relay SW3 requires comparing the output voltage of the operational amplifier before and after the transistor is turned on. Specifically, it compares the output voltage of the operational amplifier when the transistor is on with the output voltage when the transistor is off, and determines the state of the third relay SW3 based on the comparison result. Therefore, the hardware requires a longer response time, and the software requires a longer computation time, resulting in low efficiency in detecting the state of the third relay SW3.
[0114] The detection device provided in this application embodiment does not require comparing the output voltage of the operational amplifier before and after the transistor is turned on. It can detect the relay status at the low-voltage end of the power supply module 11 simply by turning on the third transistor Q3, thereby improving the status detection efficiency of the third relay SW3. Furthermore, turning off the third transistor allows for the detection of the first and second relays, thus enabling the detection of the first, second, and third relays through the configured third transistor.
[0115] In one embodiment, such as Figure 2 , Figure 3 As shown, the detection device also includes a fourth transistor Q4 and a fifth transistor Q5;
[0116] The collector of the fourth transistor Q4 is connected to the second terminal of the third relay SW3, the emitter of the fourth transistor Q4 is connected to the first terminal of the second detection module 23, and the base of the fourth transistor Q4 is connected to the processing module 14; the collector of the fifth transistor Q5 is connected to the first terminal of the third relay SW3, the emitter of the fifth transistor Q5 is connected to the second terminal of the second detection module 23, and the base of the fifth transistor Q5 is connected to the processing module 14.
[0117] The bases of the fourth transistor Q4 and the fifth transistor Q5 can be connected to the microcontroller 32.
[0118] The detection device provided in this application embodiment can turn on the fourth transistor Q4 and the fifth transistor Q5 to detect the state of the third relay SW3. After the detection is completed, the fourth transistor Q4 and the fifth transistor Q5 can be turned off to save the power of the power supply module 11.
[0119] In one embodiment, such as Figure 3 As shown, the second detection module 23 includes a second operational amplifier OP2;
[0120] The emitter of the fourth transistor Q4 is connected to the non-inverting input of the second operational amplifier OP2, and the emitter of the fifth transistor Q5 is connected to the inverting input of the second operational amplifier OP2.
[0121] The first terminal of the second detection module 23 can be the non-inverting input terminal of the second operational amplifier OP2, and the second terminal of the second detection module 23 can be the inverting input terminal of the second operational amplifier OP2.
[0122] The output terminal Vout2 of the second operational amplifier OP2 can be connected to the analog-to-digital converter 31. The second operational amplifier can perform a subtraction operation between the voltage at the non-inverting input and the voltage at the inverting input, and determine the output voltage based on the result of the subtraction operation. This output voltage is then output through the output terminal Vout2 of the second operational amplifier OP2. This output voltage is input to the analog-to-digital converter 31 for analog-to-digital conversion processing to obtain the processing result. The analog-to-digital converter then inputs this processing result to the microcontroller, which determines the state of the relay based on the processing result.
[0123] The detection device provided in this application embodiment is connected to a second operational amplifier OP2, a fourth transistor Q4, and a fifth transistor Q5 to detect the voltage across a third relay SW3. Based on this voltage, the output voltage of the second operational amplifier OP2 is determined, and then input to the processing module 14 via the output of the second operational amplifier OP2. The processing module 14 then determines the relay's state based on the output voltage. Therefore, this device is applicable to relay state detection when the power supply module is a constant voltage source, and also applicable when the power supply module is a non-constant voltage source, thus expanding the application range of relay state detection.
[0124] In one embodiment, such as Figure 2 and Figure 3 As shown, the second detection module 23 also includes a tenth resistor R14, an eleventh resistor R15, a twelfth resistor R16, and a thirteenth resistor R17;
[0125] The emitter of the fourth transistor Q4 is connected to the first terminal of the second operational amplifier OP2 through the tenth resistor R14, the first terminal of the eleventh resistor R15 is connected to the first terminal of the second operational amplifier OP2, and the second terminal of the eleventh resistor R15 is grounded.
[0126] The emitter of the fifth transistor Q5 is connected to the second terminal of the second operational amplifier OP2 through the twelfth resistor R16. The first terminal of the thirteenth resistor R17 is connected to the second terminal of the second operational amplifier OP2. The second terminal of the thirteenth resistor R17 is connected to the third terminal of the second operational amplifier OP2. The third terminal of the second operational amplifier OP2 is connected to the processing module 14.
[0127] The detection device provided in this application embodiment can maintain the voltage balance at the input terminal of the second operational amplifier OP2 by connecting the second operational amplifier OP2 with the tenth resistor R14, the eleventh resistor R15, the twelfth resistor R16 and the thirteenth resistor R17, thereby improving the working stability of the second operational amplifier OP2 and the accuracy of the output signal.
[0128] In one embodiment, such as Figure 3 As shown, the detection device also includes a third capacitor C3 and a fourth capacitor C4;
[0129] The first terminal of the third capacitor C3 is connected to the emitter of the fourth transistor Q4, and the second terminal of the third capacitor C3 is connected to the second terminal of the eleventh resistor R15; the first terminal of the fourth capacitor C4 is connected to the emitter of the fifth transistor Q5, and the second terminal of the fourth capacitor C4 is connected to the second terminal of the eleventh resistor R15.
[0130] The detection device provided in this application embodiment can store electrical energy during charging through the third and fourth capacitors, thereby reducing the impact of current on the second operational amplifier.
[0131] To better understand the solution of this application, the relay status detection process used in an electric vehicle to control the power-on and power-off of the high-voltage system is described here as an example. Figure 2 and Figure 3 Figure 3 Figure 2 Figure 3 The details are as follows:
[0132] If the power supply module is a battery pack with U=400 volts; R1=R2=R3=R6=R7=R8=470 kΩ; R4=R9=R10=R11=R12=R13=R14=R15=R16=R17=10 kΩ; assume R5=80 Ω.
[0133] Step 1: During the vehicle power-on process, the initial load voltage is 0V. Without closing any relays, the microcontroller 32 controls the first transistor Q1 and the second transistor Q2 to conduct, determining if either the first relay SW1 or the second relay SW2 has a fault that prevents it from disconnecting. At this time, the voltage V at the non-inverting input of the first operational amplifier OP1 is... 1+ =R4 / (R1+R2+R3+R4)*U=2.817V. If the first relay SW1 and the second relay SW2 are normally disconnected, the voltage V at the inverting input terminal of the first operational amplifier is... 1- =0, at this time the output voltage Vout1 of the first operational amplifier OP1 is = V 1+ - V 1- =2.817V. If the first relay SW1 or the second relay SW2 is not disconnected, then V1+ It's still 2.817 volts, V 1- =R9 / (R5+R6+R7+R8+R9) *U ≈2.817 volts, Vout1= V 1+ - V 1- =0V, at this point stop subsequent testing and report that either the first relay SW1 or the second relay SW2 has a fault that it cannot be disconnected.
[0134] Step 2: If Step 1 proceeds without fault, close the second relay SW2. If Vout1 decreases from 2.817V to 0V, it indicates that the second relay SW2 can engage normally. If Vout1 remains stable at 2.817V, it indicates that the second relay SW2 cannot engage normally. At this point, stop the subsequent testing and report a fault that the second relay SW2 cannot close. After the test is completed, use a microcontroller 32 to control the first transistor Q1 and the second transistor Q2 to turn off.
[0135] Step 3: If Step 2 proceeds without fault, then check if the third relay SW3 has a fault that prevents it from disconnecting. Use a microcontroller to control the conduction of the third transistor Q3, the fourth transistor Q4, and the fifth transistor Q5. At this time, the voltage V at the non-inverting input of the second operational amplifier OP2... 2+ =R4 / (R1+R2+R3+R4)*U=2.817V. If the third relay SW3 is normally disconnected, the voltage V at the inverting input of the second operational amplifier OP2 will be... 2- =0, at this time the output voltage Vout2 of the second operational amplifier OP2 is = V 2+ - V 2- =2.817 volts. If the third relay SW3 is not disconnected, then V 2+ = V 2- =0, Vout2= V 2+ - V 2- =0V, at this point stop the subsequent testing and report that the third relay SW3 has a fault that cannot be disconnected.
[0136] Step 4: If there are no faults in Step 3, close the third relay SW3. If Vout2 decreases from 2.817V to 0V, it means the third relay SW3 can engage normally. If Vout2 remains stable at 2.817V, it means the third relay SW3 cannot engage normally. At this point, stop the subsequent tests and report a fault that the third relay SW3 cannot close. After the test is completed, use the microcontroller to control the third transistor Q3, the fourth transistor Q4, and the fifth transistor Q5 to turn off.
[0137] Step 5: If step 4 proceeds without fault, close the first relay SW1, and after a delay, open the second relay SW2. At this point, it is necessary to determine whether the first relay SW1 closed normally. Use the microcontroller 32 to control the first transistor Q1 and the second transistor Q2 to conduct. If the first relay SW1 is closed, the voltage V at the non-inverting input of the first operational amplifier OP1 will be... 1+ =R4 / (R1+R2+R3+R4)*U=2.817V, Inverting input voltage V 1- = R9 / (R5+R6+R7+R8) *U =2.817V, Vout1= V 1+ -V 1- =0V. If the first relay SW1 is not closed, the voltage V at the non-inverting input of the first operational amplifier OP1 is 0V. 1+ =R4 / (R1+R2+R3+R4)*U=2.817V, Inverting input voltage V 1- =0V, Vout1= V 1+ - V 1- =2.817V, at which point a fault is reported that the first relay SW1 cannot close.
[0138] It should be noted that if a fault is detected in any of the above steps during power-on, the detection will be stopped immediately and the fault will be reported.
[0139] After the vehicle is powered down, it is only necessary to determine whether the first relay SW1 and the third relay SW3 are properly disconnected. The determination process is as follows:
[0140] Step 1: Check if the first relay SW1 is properly disconnected. Use a microcontroller 32 to control the first transistor Q1 and the second transistor Q2 to conduct. Regardless of the state of the first relay SW1 and the third relay SW3, the voltage V at the non-inverting input of the first operational amplifier will be... 1+ =R4 / (R1+R2+R3+R4)*U=2.817V. When the first relay SW1 is normally disconnected, regardless of whether the third relay SW3 is stuck, the voltage V at the inverting input terminal of the first operational amplifier is... 1- =0V, Vout1= V 1+ - V 1- =2.817V. When the first relay SW1 is stuck, the voltage V at the inverting input terminal of the first operational amplifier is... 1- =R9 / (R6+R7+R8+R9)*U=2.817V, Vout1= V 1+ - V 1- =0V. At this point, subsequent detection stops, and the first relay SW1 is reported as stuck. After detection is complete, the microcontroller 32 controls the first transistor Q1 and the second transistor Q2 to turn off.
[0141] Step 2: Check if the third relay SW3 is properly disconnected. Use a microcontroller 32 to control the conduction of the third transistor Q3, the fourth transistor Q4, and the fifth transistor Q5. Regardless of the states of the first relay SW1 and the third relay SW3, the voltage V at the inverting input of the second operational amplifier will be... 2- =0V, when the third relay SW3 is normally disconnected, the voltage V at the non-inverting input of the second operational amplifier is 0V. 2+ = R4 / (R1+R2+R3+R4)*U=2.817V, Vout2= V 2+ - V 2- =2.817V. When the third relay SW3 is stuck, the voltage V at the non-inverting input of the second operational amplifier is... 2+ =0, Vout2= V 2+ - V 2- =0V. At this point, the third relay SW3 is reported as stuck. After the test is completed, the microcontroller 32 controls the third transistor Q3, the fourth transistor Q4, and the fifth transistor Q5 to turn off. At this point, the tests on the first relay SW1 and the third relay SW3 are complete. The test circuits are all disconnected, so no power is consumed by the power supply module 11.
[0142] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0143] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0144] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A detection device, characterized in that, The detection device includes a power supply module, a first relay, a pre-charge branch, a first detection module, a load module, and a processing module. The pre-charge branch includes a pre-charge resistor and a second relay. The first end of the pre-charge resistor is connected to the first end of the first relay, the second end of the pre-charge resistor is connected to the first end of the second relay, and the second end of the second relay is connected to the second end of the first relay. The first terminal of the first relay is connected to the first terminal of the power supply module and the first terminal of the first detection module; the second terminal of the first relay is connected to the second terminal of the first detection module and the first terminal of the load module; the third terminal of the first detection module is connected to the processing module; and the second terminal of the load module is connected to the second terminal of the power supply module.
2. The detection device according to claim 1, characterized in that, The detection device further includes a first voltage divider module and a second voltage divider module; The first terminal of the power supply module is connected to the first terminal of the first relay and the first terminal of the first voltage divider module, the second terminal of the first voltage divider module is connected to the second terminal of the power supply module, and the third terminal of the first voltage divider module is connected to the first terminal of the first detection module. The first terminal of the second voltage divider module is connected to the second terminal of the first relay and the first terminal of the load module, the second terminal of the second voltage divider module is connected to the second terminal of the power supply module, and the third terminal of the second voltage divider module is connected to the second terminal of the first detection module.
3. The detection device according to claim 2, characterized in that, The first voltage divider module includes a first resistor, a first transistor, and a second resistor; The first terminal of the power supply module is connected to the first terminal of the first resistor; The collector of the first transistor is connected to the second end of the first resistor, the emitter of the first transistor is connected to the first end of the second resistor and the first end of the first detection module, and the base of the first transistor is connected to the processing module. The second end of the second resistor is connected to the second end of the power supply module.
4. The detection device according to claim 3, characterized in that, The detection device also includes a first capacitor; The first terminal of the first capacitor is connected to the first terminal of the second resistor, and the second terminal of the first capacitor is connected to the second terminal of the second resistor.
5. The detection device according to claim 3 or 4, characterized in that, The second voltage divider module includes a third resistor, a second transistor, and a fourth resistor; The first end of the third resistor is connected to the second end of the first relay and the first end of the load module; The collector of the second transistor is connected to the second end of the third resistor, the emitter of the second transistor is connected to the first end of the fourth resistor and the second end of the first detection module, and the base of the second transistor is connected to the processing module. The second end of the fourth resistor is connected to the second end of the power supply module.
6. The detection device according to claim 5, characterized in that, The detection device also includes a second capacitor; The first terminal of the second capacitor is connected to the emitter of the second transistor, and the second terminal of the second capacitor is connected to the second terminal of the second resistor.
7. The detection device according to any one of claims 2-4, characterized in that, The first detection module includes a first operational amplifier; The third terminal of the first voltage divider module is connected to the non-inverting input terminal of the first operational amplifier, the third terminal of the second voltage divider module is connected to the inverting input terminal of the first operational amplifier, and the output terminal of the first operational amplifier is connected to the processing module.
8. The detection device according to claim 7, characterized in that, The first detection module also includes a fifth resistor, a sixth resistor, a seventh resistor, and an eighth resistor; The non-inverting input terminal of the first operational amplifier is connected to the first terminal of the fifth resistor and the first terminal of the sixth resistor, the second terminal of the fifth resistor is connected to the third terminal of the first voltage divider module, and the second terminal of the sixth resistor is grounded. The inverting input terminal of the first operational amplifier is connected to the first terminal of the seventh resistor and the first terminal of the eighth resistor. The second terminal of the seventh resistor is connected to the third terminal of the second voltage divider module. The output terminal of the first operational amplifier is connected to the second terminal of the eighth resistor and the processing module.
9. The detection device according to any one of claims 2-4, characterized in that, The detection device also includes a third relay, a second detection module, and a third transistor; The first terminal of the third relay is connected to the second terminal of the power supply module, the second terminal of the third relay is connected to the emitter of the third transistor, the first terminal of the second detection module, and the second terminal of the load module, the collector of the third transistor is connected to the third terminal of the first voltage divider module, and the base of the third transistor is connected to the processing module. The second end of the second detection module is connected to the second end of the power supply module, and the third end of the second detection module is connected to the processing module.
10. The detection device according to claim 9, characterized in that, The detection device further includes a fourth transistor and a fifth transistor; The collector of the fourth transistor is connected to the second terminal of the third relay, the emitter of the fourth transistor is connected to the first terminal of the second detection module, and the base of the fourth transistor is connected to the processing module. The collector of the fifth transistor is connected to the first terminal of the third relay, the emitter of the fifth transistor is connected to the second terminal of the second detection module, and the base of the fifth transistor is connected to the processing module.
11. The detection device according to claim 10, characterized in that, The second detection module includes a second operational amplifier; The emitter of the fourth transistor is connected to the non-inverting input of the second operational amplifier, and the emitter of the fifth transistor is connected to the inverting input of the second operational amplifier.
12. The detection device according to claim 11, characterized in that, The second detection module also includes a tenth resistor, an eleventh resistor, a twelfth resistor, and a thirteenth resistor; The emitter of the fourth transistor is connected to the first terminal of the second operational amplifier through the tenth resistor, the first terminal of the eleventh resistor is connected to the first terminal of the second operational amplifier, and the second terminal of the eleventh resistor is grounded. The emitter of the fifth transistor is connected to the second terminal of the second operational amplifier through the twelfth resistor, the first terminal of the thirteenth resistor is connected to the second terminal of the second operational amplifier, the second terminal of the thirteenth resistor is connected to the output terminal of the second operational amplifier, and the output terminal of the second operational amplifier is connected to the processing module.
13. The detection device according to claim 12, characterized in that, The detection device also includes a third capacitor and a fourth capacitor; The first terminal of the third capacitor is connected to the emitter of the fourth transistor, and the second terminal of the third capacitor is connected to the second terminal of the eleventh resistor. The first terminal of the fourth capacitor is connected to the emitter of the fifth transistor, and the second terminal of the fourth capacitor is connected to the second terminal of the eleventh resistor.