A contactor on-off detection circuit

By designing a contactor on-off detection circuit that can utilize four states, the problem of tight detection chip port resources is solved, efficient detection of the two contactor states is achieved, and hardware resources are significantly saved.

CN113567847BActive Publication Date: 2024-09-27LISHEN (QINGDAO) NEW ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110780342.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2024-09-27
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

When the existing contactor on-off detection circuit detects multiple contactors, the input and output port resources of the detection chip are tight, and the port resources cannot be effectively saved.

Method used

Design a contactor on-off detection circuit, which uses four states of detection output signals (high level A1, low level A2, high level B1 and low level B2) through a signal input module and a signal output module. To characterize the on-off status of the two contactors and reduce the number of input and output ports of the detection chip.

Benefits of technology

It is realized that four state combinations of two contactors can be represented through one detection chip output port, which significantly reduces the occupation of detection chip hardware resources and saves port resources, which has important production and practical significance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113567847B
    Figure CN113567847B
Patent Text Reader

Abstract

The invention discloses a contactor on-off detection circuit, which is used to detect the on-off state of a positive contactor KL1 and a negative contactor KL2 of a circuit under test, wherein two contacts of KL1 are respectively connected to the positive output terminal of a first power module and the input terminal VIN1 of a signal input module; two contacts of KL2 are respectively connected to the negative output terminal of the first power module and the input terminal VIN2 of the signal input module; input terminals 1, 2 and 3 of the signal input module are respectively connected to the positive output terminal of the second power module, the positive output terminal and the negative output terminal of the first power module; input terminals VIN1 and VIN2 are respectively connected to one end of the KL1 contact and one end of the KL2 contact; output terminals Z1, Z2 and Z3 of the signal input module are respectively connected to three input terminals of the signal output module; and the output terminal of the signal output module is connected to a detection chip. The invention can significantly reduce the number of input and output ports of the detection chip and save hardware resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic circuits, and in particular to an on-off detection circuit for a contactor. Background Art

[0002] At present, for the detection circuit of the contactor on and off, generally one detection port corresponds to one contactor. In this way, when the number of contactors to be detected is large, the input and output port resources of the detection chip (such as a single-chip microcomputer) will be tight, or even insufficient.

[0003] Therefore, there is an urgent need to develop a technology that can allow an input and output port of an existing detection chip (such as a single-chip microcomputer) to synchronously detect two contactors, thereby saving port resources of the detection chip. Summary of the invention

[0004] The purpose of the present invention is to provide a contactor on-off detection circuit in view of the technical defects in the prior art.

[0005] To this end, the present invention provides a contactor on-off detection circuit for detecting the on-off state of a positive contactor KL1 and a negative contactor KL2 in a tested circuit. The circuit specifically includes a signal input module, a signal output module, a first power module, a second power module, a third power module and a detection chip, wherein:

[0006] A contact of the positive contactor KL1 is connected to the positive output terminal V1+ of the first power module 10 and is used to receive the positive voltage V1+ output by the first power module;

[0007] Another contact of the positive contactor KL1 is connected to the input terminal VIN1 of the signal input module, and is used to output a detection signal VIN1 to the signal input module;

[0008] A contact of the negative contactor KL2 is connected to the negative output terminal V1- of the first power module 10, and is used to receive the negative voltage V1- output by the first power module;

[0009] Another contact of the negative contactor KL2 is connected to the input terminal VIN2 of the signal input module, and is used to output a detection signal VIN2 to the signal input module;

[0010] The input terminal 1 of the signal input module is connected to the positive output terminal V2+ of the second power module, and is used to receive the positive voltage V2+ output by the second power module;

[0011] The input terminal 2 of the signal input module is connected to the positive output terminal V1+ of the first power module, and is used to receive the positive voltage V1+ output by the first power module;

[0012] The input terminal 3 of the signal input module is connected to the negative output terminal V1- of the first power module, and is used to receive the negative voltage V1- output by the first power module;

[0013] The input terminal 3 of the signal input module is also connected to the negative output terminal V2- of the second power module, and is used to receive the negative voltage V2- output by the second power module;

[0014] Wherein, the negative output terminal V2- of the second power module and the negative output terminal V1- of the first power module are grounded together;

[0015] The input terminal VIN1 of the signal input module is connected to one end of the contact of the positive contactor KL1 in the circuit under test, and is used to receive the detection signal VIN1 provided by the positive contactor KL1;

[0016] The input terminal VIN2 of the signal input module is connected to one end of the contact of the negative contactor KL2 in the circuit under test, and is used to receive the detection signal VIN2 provided by the negative contactor KL2;

[0017] The output terminal Z1 of the signal input module is connected to the first input terminal of the signal output module, and is used to control whether current flows through the first input terminal of the signal output module by adjusting the state of the output terminal Z1;

[0018] The output terminal Z2 of the signal input module is connected to the second input terminal of the signal output module, and is used to control the change of the detection output signal OUT of the signal output module by adjusting the state of the output terminal Z2;

[0019] The output terminal Z3 of the signal input module is connected to the third input terminal of the signal output module, and is used to control whether current flows through the first input terminal of the signal output module by adjusting the state of the output terminal Z3;

[0020] The power input terminal VDD of the signal output module is connected to the power output terminal of the third power module and is used to receive the DC power supply VDD;

[0021] The output terminal OUT of the signal output module is connected to an input / output port of the detection chip, and is used to provide a detection output signal OUT for the detection chip;

[0022] The detection output signal OUT has four states: a high level A1, a low level A2, a high level B1 and a low level B2.

[0023] Preferably, the detection chip is used to pre-store and set the correspondence between the detection output signals OUT in four different states and the different state combinations of the two detection signals VIN1 and VIN2, and to judge the states of the two detection signals VIN1 and VIN2 according to the state of the currently received detection output signal OUT.

[0024] Preferably, they are sorted by voltage amplitude: low level B2<low level A2<high ​​level B1<high ​​level A1.

[0025] Preferably, the signal input module includes: resistors R1-R6, a voltage regulator D1, switch tubes Q1-Q2 and optical couplers Q6-Q7, wherein:

[0026] The first pin of the resistor R1 is used as the input terminal VIN1 of the signal input module, connected to another contact of the positive contactor KL1, and is used to receive the detection signal VIN1 provided by the circuit under test;

[0027] The second pin of the resistor R1 is connected to the first pin of the resistor R2 and the gate G of the switch tube Q1 respectively;

[0028] The second pin of the resistor R2 is used as the input terminal 3 of the signal input module, connected to the negative output terminal V1- of the first power module, and is used to receive the negative voltage V1- output by the first power module;

[0029] The second pin of the resistor R2 is also connected to the second pin of the resistor R14 and the source S of the switch tube Q1 respectively;

[0030] The drain D of the switch tube Q1 is connected to the second pin of the optocoupler Q6;

[0031] The first pin of the optocoupler Q6 is connected to the second pin of the resistor R5 and the first pin of the resistor R14 respectively;

[0032] The third pin of the optocoupler Q6 is used as the output terminal Z1 of the signal input module and is connected to the first pin of the resistor R7 in the signal output module;

[0033] The 4th pin of the optocoupler Q6 is used as the output terminal Z2 of the signal input module and is connected to the 1st pin of the resistor R12 in the signal output module;

[0034] The 4th pin of the optocoupler Q6 is also connected to the cathode of the voltage regulator tube D1;

[0035] The anode of the voltage regulator tube D1 is used as the output terminal Z3 of the signal input module and is connected to the second pin of the resistor R12 in the signal output module;

[0036] The anode of the voltage regulator D1 is also connected to the third pin of the optocoupler Q7;

[0037] The first pin of the resistor R5 is used as the input terminal 1 of the signal input module, connected to the positive output terminal V2+ of the second power module, and is used to receive the positive voltage V2+ output by the second power module;

[0038] The first pin of the resistor R5 is also connected to the first pin of the resistor R6;

[0039] The first pin of the resistor R3 is used as the input terminal 2 of the signal input module, connected to the positive output terminal V1+ of the first power module, and is used to receive the positive voltage V1+ output by the first power module;

[0040] The second pin of the resistor R3 is connected to the first pin of the resistor R4 and the gate G of the switch tube Q2 respectively;

[0041] The second pin of the resistor R4 is used as the input terminal VIN2 of the signal input module, connected to another contact of the negative contactor KL2, and is used to receive the detection signal VIN2 provided by the circuit under test;

[0042] The second pin of the resistor R4 is also connected to the second pin of the resistor R15 and the source S of the switch tube Q2 respectively;

[0043] The fourth pin of the optical coupler Q7 is connected to the ground terminal GND, which is the negative terminal of the power output terminal in the third power module;

[0044] The first pin of the optocoupler Q7 is connected to the second pin of the resistor R6 and the first pin of the resistor R15 respectively;

[0045] The second pin of the optocoupler Q7 is connected to the drain D of the switch tube Q2;

[0046] The source electrode S of the switch tube Q2 serves as the input terminal VIN2 of the signal input module, and is connected to another contact of the negative electrode contactor KL2 to receive the detection signal VIN2 provided by the circuit under test.

[0047] Preferably, the signal output module includes: resistors R7 to R13, capacitor C1 and switch tubes Q3 to Q5, wherein:

[0048] The second pin of the resistor R13 is used as the power input terminal VDD of the signal output module, connected to the power output terminal of the third power module, and receives the DC power VDD;

[0049] The second pin of the resistor R13 is also connected to the emitter E of the switch tube Q3 and the first pin of the resistor R10 respectively;

[0050] The first pin of the resistor R13 is used as the first input terminal CK1 of the signal output module and is connected to the output terminal Z1 of the signal input module;

[0051] The first pin of the resistor R13 is also connected to the first pin of the resistor R7;

[0052] The second pin of the resistor R7 is connected to the collector C of the switch tube Q3;

[0053] The base B of the switch tube Q3 is connected to the first pin of the resistor R9;

[0054] The second pin of resistor R9 is connected to terminal Z4;

[0055] The Z4 terminal is also connected to the second pin of the resistor R10, the drain D of the switch tube Q5 and the source S of the switch tube Q4 respectively;

[0056] The gate G of the switch tube Q5 is used as the second input terminal CK2 of the signal output module, connected to the output terminal Z2 of the signal input module, and is used to receive the voltage and current input from the Z2 terminal;

[0057] The gate G of the switch tube Q5 is also connected to the first pins of the resistors R11 and R12 respectively;

[0058] The source electrode S of the switch tube Q5 is used as the third input terminal CK3 of the signal output module and is connected to the output terminal Z3 of the signal input module;

[0059] The source S of the switch tube Q5 is also connected to the gate G of the switch tube Q4 and the second pin of the resistor R12 respectively;

[0060] The second pin of the resistor R11, as the output terminal OUT of the signal output module, is connected to an input / output port of the detection chip, and is used to output detection output signals OUT of four different states to the detection chip;

[0061] The second pin of the resistor R11 is also connected to the first pin of the capacitor C11, the first pin of the resistor R8 and the drain D of the switch tube Q4 respectively;

[0062] The second pin of capacitor C1 is connected to the ground terminal GND;

[0063] The second pin of the resistor R8 is connected to the ground terminal GND.

[0064] It can be seen from the technical solution provided by the present invention above that, compared with the prior art, the present invention provides a contactor on-off detection circuit, which is scientifically designed and can allow an output port of the detection chip to have a signal quantity of four states. The four combination states of the two detection signals provided by the contactor can be represented by the output port of one detection chip, which can significantly reduce the number of input and output ports of the detection chip that need to be occupied (only one is required), saving precious hardware resources of the detection chip, and has great production practical significance.

[0065] For the present invention, the high and low level voltage amplitudes of its output port can be flexibly adjusted according to actual needs, which is convenient for the chip to identify the signal state and helps to reduce the number of input and output ports of the detection chip (such as a single-chip microcomputer) that need to be occupied.

[0066] For the technical solution of the present invention, the hardware circuit design is scientific, the electronic components are commonly used models, easy to select and the components are inexpensive. Therefore, the technical solution of the present invention has strong practical value and market promotion value. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 A structural block diagram of a contactor on-off detection circuit provided by the present invention;

[0068] Figure 2 A specific schematic diagram of a contactor on-off detection circuit provided by the present invention. DETAILED DESCRIPTION

[0069] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0071] See also Figure 1 , Figure 2 The present invention provides a contactor on-off detection circuit for detecting the on-off state of a positive contactor (i.e., a high-side contactor) KL1 and a negative contactor (i.e., a low-side contactor) KL2 in a circuit under test. The circuit specifically includes a signal input module 10, a signal output module 20, a first power module 30, a second power module 40, a third power module 50 and a detection chip 60, wherein:

[0072] It should be noted that, for the circuit under test (such as the power supply circuit of the battery pack), the positive terminal is connected in series with the positive contactor KL1, and the negative terminal is connected in series with the negative contactor KL2. The detection circuit of the present invention can synchronously detect the on and off states of the two contactors KL1 and KL2.

[0073] A contact of the positive contactor KL1 is connected to the positive output terminal V1+ of the first power module 10 and is used to receive the positive voltage V1+ output by the first power module;

[0074] Another contact of the positive contactor KL1 is connected to the input terminal VIN1 of the signal input module 10, and is used to output a detection signal VIN1 to the signal input module 10;

[0075] A contact of the negative contactor KL2 is connected to the negative output terminal V1- of the first power module 10, and is used to receive the negative voltage V1- output by the first power module;

[0076] Another contact of the negative contactor KL2 is connected to the input terminal VIN2 of the signal input module 10, and is used to output a detection signal VIN2 to the signal input module 10;

[0077] The input terminal 1 of the signal input module 10 is connected to the positive output terminal V2+ of the second power module 40, and is used to receive the positive voltage V2+ output by the second power module;

[0078] The input terminal 2 of the signal input module 10 is connected to the positive output terminal V1+ of the first power module 30, and is used to receive the positive voltage V1+ output by the first power module;

[0079] The input terminal 3 of the signal input module 10 is connected to the negative output terminal V1- of the first power module 30, and is used to receive the negative voltage V1- output by the first power module;

[0080] The input terminal 3 of the signal input module 10 is also connected to the negative output terminal V2- of the second power module 40, and is used to receive the negative voltage V2- output by the second power module;

[0081] The negative output terminal V2- of the second power module 40 and the negative output terminal V1- of the first power module 30 are grounded together;

[0082] The input terminal VIN1 of the signal input module 10 is connected to one end of the contact of the positive contactor KL1 in the circuit under test, and is used to receive the detection signal VIN1 provided by the positive contactor KL1;

[0083] The input terminal VIN2 of the signal input module 10 is connected to one end of the contact of the negative contactor KL2 in the circuit under test, and is used to receive the detection signal VIN2 provided by the negative contactor KL2;

[0084] The output terminal Z1 of the signal input module 10 is connected to the first input terminal of the signal output module 20, and is used to control whether there is current flowing through the first input terminal of the signal output module 20 by adjusting the state of the output terminal Z1, thereby respectively controlling the state change of the output terminal Z2 of the signal input module 10 and the change of the detection output signal OUT of the signal output module 20;

[0085] It should be noted that the states of the output terminal Z1 include: high-impedance state and on-state. The high-impedance state means that there is no electrical connection between the output terminals Z1 and Z2, and the resistance between Z1 and Z2 is infinite; while the on-state means that there is electrical connection between the output terminals Z1 and Z2, and there will be a voltage difference between Z1 and Z2, such as about 0.3V.

[0086] The output terminal Z2 of the signal input module 10 is connected to the second input terminal of the signal output module 20, and is used to control the change of the detection output signal OUT of the signal output module 20 by adjusting the state of the output terminal Z2;

[0087] It should be noted that there are three states of the output terminal Z2: high impedance state, on-state 1 and on-state 2. Among them, the high impedance state means that there is no electrical connection between the output terminal Z2 and the output terminals Z1 and Z3; the on-state 1 means that the output terminal Z2 is electrically connected to the output terminal Z1 but not to the output terminal Z3, there will be a voltage difference (such as about 0.3V) between the two ends of Z1 and Z2, and the resistance between the two ends of Z2 and Z3 is infinite; the on-state 2 means that the output terminal Z1 is electrically connected to the output terminals Z2 and Z3. When the current flowing through the output terminals Z1, Z2 and Z3 is large enough, the voltage regulator D1 (see Figure 2 ) is broken down, the voltage at the Z2 end is the voltage-stabilizing value of the Zener diode D1.

[0088] The output terminal Z3 of the signal input module 10 is connected to the third input terminal of the signal output module 20, and is used to control whether there is current flowing through the first input terminal of the signal output module 20 by adjusting the state of the output terminal Z3, thereby controlling the state change of the output terminal Z2 of the signal input module 10 and the change of the detection output signal OUT of the signal output module 20 respectively;

[0089] It should be noted that the state of the output terminal Z3 includes: a high impedance state and a conducting state, wherein the high impedance state refers to the output terminal Z3 and the ground terminal GND (see Figure 2 ) is not electrically connected, and the resistance between Z3 and GND is infinite; and the on state refers to the output terminal Z3 and the ground terminal GND (see Figure 2 ), there is electrical connectivity between Z3 and GND, and there will be a voltage difference between Z3 and GND, such as about 0.3V.

[0090] The power input terminal VDD of the signal output module 20 is connected to the power output terminal of the third power module 50 and is used to receive the DC power VDD;

[0091] The output end OUT of the signal output module 20 is connected to an input / output port of the detection chip 60 (such as a single-chip microcomputer MCU), and is used to provide a detection output signal OUT for the detection chip 60 (such as a single-chip microcomputer MCU). The detection output signal OUT has four states: high level A1, low level A2, high level B1 and low level B2, which facilitates the detection chip 60 to identify the signal state.

[0092] In the present invention, the correspondence between the four states of the detection output signal OUT and the different state combinations of the detection signals VIN1 and VIN2 is as follows:

[0093] 1. When the detection signals VIN1 and VIN2 are both in high impedance state, the detection output signal OUT is at low level B2;

[0094] 2. When the detection signal VIN1 is at a high level and VIN2 is at a low level, the detection output signal OUT is at a high level B1;

[0095] 3. When the detection signal VIN1 is in high impedance state and VIN2 is both at low level, the detection output signal OUT is at high level A1;

[0096] 4. When the detection signal VIN1 is at a high level and VIN2 is at a high impedance state, the detection output signal OUT is at a low level B2;

[0097] Sort by their voltage amplitude: low level B2<low level A2<high level B1<high level A1, where low level B2 is 0V and high level A1 is close to the power supply VDD voltage;

[0098] It should be noted that the detection signals VIN1 and VIN2 are in a high impedance state, indicating that the positive contactor KL1 and the negative contactor KL2 are both in a disconnected state, and no detection signal is connected to the detection circuit provided by the present invention.

[0099] It should be noted that the detection signal VIN1 is at a high level, indicating that the positive contactor KL1 is in a closed state, and the positive voltage V1+ of the first power module 30 is connected to the input terminal VIN1 of the signal input module 10 .

[0100] It should be noted that the detection signal VIN2 is at a low level, indicating that the negative contactor KL2 is in a closed state, and the negative voltage V1 − of the first power module 30 is connected to the input terminal VIN2 of the signal input module 10 .

[0101] It should be noted that the detection chip 60 is used to pre-store and set the correspondence between the detection output signals OUT in four different states and the different state combinations of the two detection signals VIN1 and VIN2, and to judge the states of the two detection signals VIN1 and VIN2 according to the state of the currently received detection output signal OUT.

[0102] In the present invention, in terms of specific implementation, it should be noted that the single-chip microcomputer chip in the detection chip 60 can adopt the currently commonly used brands, series and models, such as NXP's MC9S12 series, etc. The detection chip 60 and its single-chip microcomputer chip model are not within the protection scope of the present invention.

[0103] In the present invention, in terms of specific implementation, it should be noted that the first power module 30, the second power module 40 and the third power module 50 can adopt existing power modules, for example, the power circuit commonly used in the existing battery management system BMS technical solution can be adopted, and technical personnel can easily obtain and apply it without innovation. Their technical solutions do not belong to the technical solutions of the present invention, so they are not explained in detail here.

[0104] See also Figure 1 , for the contactor on-off detection circuit provided by the present invention, the specific working principle is as follows:

[0105] 1. When the contacts of the positive contactor KL1 and the negative contactor KL2 in the measured circuit are disconnected, the connections between the positive output terminal V1+ and the negative output terminal V1- of the first power module and the input terminals VIN1 and VIN2 of the signal input module 10 are disconnected respectively, so that the input terminals VIN1 and VIN2 of the signal input module 10 are in a high impedance state (suspended state), and the output terminals V2+ and V2- of the second power module 40 are controlled so that no current flows through the signal input module 10, so that the output terminals Z1, Z2 and Z3 of the signal input module 10 are all in a high impedance state (the three terminals are not electrically connected to each other), and the VDD power supply current output by the third power module 50 cannot flow through the first input terminal of the signal output module 20 and through the output terminals Z1 to Z3 of the signal input module 10, so that the output terminal OUT of the signal output module 20 is a low level B2, and its voltage amplitude is 0V;

[0106] Under this condition, the detection chip 60 can determine that the detection signals VIN1 and VIN2 are both in high impedance state according to the low level B2 state of the detection output signal OUT, and further determine that the positive contactor KL1 and the negative contactor KL2 are both in the disconnected state.

[0107] 2. When the contacts of the positive contactor KL1 and the negative contactor KL2 in the measured circuit are closed, the output terminals V1+ and V1- of the first power module are connected to the input terminals VIN1 and VIN2 of the signal input module 10 respectively. Therefore, the input terminal VIN1 of the signal input module 10 is at a high level and VIN2 is at a low level. The current between the output terminals V2+ and V2- of the second power module 40 is controlled to flow through the signal input module 10, so that the output terminal Z1 of the signal input module 10 is in a conducting state (output terminals Z1, Z2 is electrically connected), the output terminal Z2 is in the on-state 2 (the voltage between the output terminals Z2 and Z3 is the voltage stabilization value of the voltage regulator D1), and the output terminal Z3 is in the on-state (the output terminal Z3 and GND are electrically connected), so that the VDD power supply current output by the third power supply module 50 can flow through the output terminals Z1 to Z3 of the signal input module 10 through the first input terminal of the signal output module 20, so that the output terminal OUT of the signal output module 20 is a high level B1, and its voltage amplitude is greater than the low level A2 but less than the high level A1;

[0108] Under this condition, the detection chip 60 can determine that the detection signal VIN1 is high and VIN2 is low according to the high level B2 state of the detection output signal OUT, and further determine that the contactors KL1 and KL2 are both in the closed state.

[0109] 3. When the positive contactor KL1 of the measured circuit is disconnected and the negative contactor KL2 is closed, the positive output terminal V1+ of the first power module is disconnected from the input terminal VIN1 of the signal input module 10, and the negative output terminal V1- of the first power module is connected to the input terminal VIN2 of the signal input module 10. Therefore, the input terminal VIN1 of the signal input module 10 is in a high impedance state, and VIN2 is in a low level. The current between the positive output terminal V2+ and the negative output terminal V2- of the second power module 40 is controlled to flow through the signal input module 10, so that the The output terminal Z1 of the signal input module 10 is in a high impedance state (there is no electrical connection between the output terminals Z1 and Z2), the output terminal Z2 is in a high impedance state (there is no electrical connection between the output terminals Z2 and Z3), and the output terminal Z3 is in a conductive state (there is electrical connection between the output terminal Z3 and GND), and the VDD power supply current output by the third power supply module 50 cannot flow through the first input terminal of the signal output module 20 and flow through the output terminals Z1 to Z3 of the signal input module 10, so that the output terminal OUT of the signal output module 20 is a high level A1, and its voltage amplitude is close to the power supply voltage VDD;

[0110] Under this condition, the detection chip 60 can determine that the detection signal VIN1 is in a high impedance state and the detection signal VIN2 is in a low level according to the high level A1 state of the detection output signal OUT, and further determine that the positive contactor KL1 is in an open state and the negative contactor KL2 is in a closed state.

[0111] 4. When the contact of the positive contactor KL1 in the measured circuit is closed and the contact of the negative contactor KL2 is disconnected, the positive output terminal V1+ of the first power module is connected to the input terminal VIN1 of the signal input module 10, and the connection between the negative output terminal V1- of the first power module and the input terminal VIN2 of the signal input module 10 is disconnected. Therefore, the input terminal VIN1 of the signal input module 10 is at a high level, and the input terminal VIN2 is in a high impedance state. The current between the positive output terminal V2+ and the negative output terminal V2- of the second power module 40 is controlled to flow through the signal input module 10, so that the signal input module The output terminal Z1 of the block 10 is in the on state (there is electrical connection between the output terminals Z1 and Z2), the output terminal Z2 is in the on state 1 (there is electrical connection with the output terminal Z1 but not with Z3), and the output terminal Z3 is in the high impedance state (there is no electrical connection between the output terminal Z3 and GND), and the VDD power supply current output by the third power supply module 50 can flow through the first input terminal of the signal output module 20 only through the output terminals Z1 to Z2 of the signal input module 10, but not through the output terminal Z3, so that the output terminal OUT of the signal output module 20 is a low level A2, and its voltage amplitude is greater than the low level B2 but less than the high level B1;

[0112] Under this condition, the detection chip 60 can determine that the detection signal VIN1 is at a high level and the detection signal VIN2 is in a high impedance state according to the low level A2 state of the detection output signal OUT, and further determine that the positive contactor KL1 is in a closed state and the negative contactor KL2 is in an open state.

[0113] In the present invention, the specific implementation is as follows: Figure 2 The signal input module 10 includes: resistors R1-R6, a voltage regulator D1, switch tubes Q1-Q2 and optical couplers Q6-Q7, wherein:

[0114] The first pin of the resistor R1 is used as the input terminal VIN1 of the signal input module 10, connected to another contact of the positive contactor KL1, and is used to receive the detection signal VIN1 provided by the circuit under test;

[0115] The second pin of the resistor R1 is connected to the first pin of the resistor R2 and the gate G of the switch tube Q1 respectively;

[0116] The second pin of the resistor R2 is used as the input terminal 3 of the signal input module 10 and is connected to the negative output terminal V1- of the first power module 30 to receive the negative voltage V1- output by the first power module 30;

[0117] The second pin of the resistor R2 is also connected to the second pin of the resistor R14 and the source S of the switch tube Q1 respectively;

[0118] The drain D of the switch tube Q1 is connected to the second pin of the optocoupler Q6;

[0119] The first pin of the optocoupler Q6 is connected to the second pin of the resistor R5 and the first pin of the resistor R14 respectively;

[0120] The third pin of the optical coupler Q6 is used as the output terminal Z1 of the signal input module 10 and is connected to the first pin of the resistor R7 in the signal output module 20;

[0121] The 4th pin of the optical coupler Q6 is used as the output terminal Z2 of the signal input module 10 and is connected to the 1st pin of the resistor R12 in the signal output module 20;

[0122] The 4th pin of the optocoupler Q6 is also connected to the cathode of the voltage regulator tube D1;

[0123] The anode of the voltage regulator tube D1 is used as the output terminal Z3 of the signal input module 10 and is connected to the second pin of the resistor R12 in the signal output module 20;

[0124] The anode of the voltage regulator D1 is also connected to the third pin of the optocoupler Q7;

[0125] The first pin of the resistor R5 is used as the input terminal 1 of the signal input module 10, connected to the positive output terminal V2+ of the second power module 40, and is used to receive the positive voltage V2+ output by the second power module 40;

[0126] The first pin of the resistor R5 is also connected to the first pin of the resistor R6;

[0127] The first pin of the resistor R3 is used as the input terminal 2 of the signal input module 10 and is connected to the positive output terminal V1+ of the first power module 30 to receive the positive voltage V1+ output by the first power module 30;

[0128] The second pin of the resistor R3 is connected to the first pin of the resistor R4 and the gate G of the switch tube Q2 respectively;

[0129] The second pin of the resistor R4 is used as the input terminal VIN2 of the signal input module 10, connected to another contact of the negative contactor KL2, and is used to receive the detection signal VIN2 provided by the circuit under test;

[0130] The second pin of the resistor R4 is also connected to the second pin of the resistor R15 and the source S of the switch tube Q2 respectively;

[0131] The fourth pin of the optical coupler Q7 is connected to the ground terminal GND, which is the negative terminal of the power output terminal in the third power module 50;

[0132] The first pin of the optocoupler Q7 is connected to the second pin of the resistor R6 and the first pin of the resistor R15 respectively;

[0133] The second pin of the optocoupler Q7 is connected to the drain D of the switch tube Q2;

[0134] The source electrode S of the switch tube Q2 serves as the input terminal VIN2 of the signal input module 10 and is connected to another contact of the negative electrode contactor KL2 to receive the detection signal VIN2 provided by the circuit under test.

[0135] In the present invention, in specific implementation, the working principle of the signal input module 10 is as follows:

[0136] 1. When the circuit under test does not provide the detection signal VIN1 and the detection signal VIN2. When the input terminals VIN1 and IN2 of the signal input module 10 are both in high impedance state (suspended state), the gate G of the switch tube Q1 is pulled down by the resistor R2 to a low potential equal to the negative electrode V1- of the power supply V1 and is cut off, thereby cutting off the optical coupler Q6; similarly, the gate G of the switch tube Q2 is pulled down by the resistor R4 to a low potential equal to the ground terminal V1- and is cut off, thereby cutting off the optical coupler Q7, then the output terminals Z1, Z2 and Z3 of the signal input module 10 are all in high impedance state, and the output terminal OUT of the signal output module 20 is controlled to be a low level B2, and its voltage amplitude is 0V;

[0137] When the power supply VDD1 is high voltage, the resistors R5 and R14 divide the voltage of VDD1 to reduce the voltage between the drain D and the source S of the switch tube Q1, so that the switch tube Q1 can select a medium or low voltage model.

[0138] 2. When the detection signal VIN1 provided by the circuit under test is at a high level and the detection signal VIN2 is at a low level, the switch tubes Q1-Q2 and the optical couplers Q6-Q7 are all turned on, and the output terminals Z1 and Z3 of the signal input module 10 are in the on state, and the output terminal Z2 is in the on state 2 (the voltage-stabilizing value Z2 at which the voltage-stabilizing tube D1 is broken down), thereby controlling the output terminal OUT of the signal output module 20 to be at a high level B1, and its voltage amplitude is greater than the low level A2 and less than the high level A1;

[0139] It should be noted that the current flowing through the voltage regulator D1 needs to be able to make the voltage regulator D1 enter the voltage regulation area, and the voltage regulation value Z2 can be determined according to the voltage of the second power module VDD2. For example, if VDD2 is 5V, the voltage regulation value Z2 can be 3.3V.

[0140] 3. When the detection signal VIN1 provided by the circuit under test is in a high impedance state and the detection signal VIN2 is at a low level, the switch tube Q1 is turned off and the switch tube Q2 is turned on, thereby turning off the optocoupler Q6 and turning on the optocoupler Q7; the turned-off optocoupler Q6 makes the output terminals Z1 and Z2 of the signal input module 10 both in a high impedance state, while the turned-on optocoupler Q7 makes the output terminal Z3 in a conducting state, controlling the output terminal OUT of the signal output module 20 to be a high level A1, and its voltage amplitude is close to the power supply voltage VDD2.

[0141] 4. When the detection signal VIN1 provided by the circuit under test is at a high level and the detection signal VIN2 is in a high impedance state, the switch tube Q1 is turned on and the switch tube Q2 is turned off, thereby turning on the optocoupler Q6 and turning off the optocoupler Q7; the turned-on optocoupler Q6 makes the output terminal Z1 in the on state and Z2 in the on state 1 (there is electrical connectivity between the output terminals Z1 and Z2), and the turned-on optocoupler Q7 makes the output terminal Z3 in a high impedance state, controlling the output terminal OUT of the signal output module 20 to be a low level A2, and its voltage amplitude is greater than the low level B2 but less than the high level B1.

[0142] In the present invention, the specific implementation is as follows: Figure 2 The signal output module 20 includes: resistors R7-R13, capacitor C1 and switch tubes Q3-Q5, wherein:

[0143] The second pin of the resistor R13 is used as the power input terminal VDD of the signal output module 20, connected to the power output terminal of the third power module 50, and receives the DC power VDD;

[0144] The second pin of the resistor R13 is also connected to the emitter E of the switch tube Q3 and the first pin of the resistor R10 respectively;

[0145] The first pin of the resistor R13 is used as the first input terminal CK1 of the signal output module 20, and is connected to the output terminal Z1 of the signal input module 10. The level state of the Z1 terminal determines whether current flows through the first input terminal CK1 and the Z1 terminal of the signal output module 20;

[0146] The first pin of the resistor R13 is also connected to the first pin of the resistor R7;

[0147] The second pin of the resistor R7 is connected to the collector C of the switch tube Q3;

[0148] The base B of the switch tube Q3 is connected to the first pin of the resistor R9;

[0149] The second pin of resistor R9 is connected to terminal Z4;

[0150] The Z4 terminal is also connected to the second pin of the resistor R10, the drain D of the switch tube Q5 and the source S of the switch tube Q4 respectively;

[0151] The gate G of the switch tube Q5, as the second input terminal CK2 of the signal output module 20, is connected to the output terminal Z2 of the signal input module 10, and is used to receive the voltage and current input from the Z2 terminal;

[0152] The gate G of the switch tube Q5 is also connected to the first pins of the resistors R11 and R12 respectively;

[0153] The source S of the switch tube Q5, as the third input terminal CK3 of the signal output module 20, is connected to the output terminal Z3 of the signal input module 10. The level state of the Z3 terminal determines whether current flows through the third input terminal CK3 and the Z3 terminal of the signal output module 20;

[0154] The source S of the switch tube Q5 is also connected to the gate G of the switch tube Q4 and the second pin of the resistor R12 respectively;

[0155] The second pin of the resistor R11, as the output terminal OUT of the signal output module 20, is connected to an input / output port of the detection chip 60, and is used to output four detection output signals OUT of different states to the detection chip 60, including high level B1, low level B2, high level A1 and low level A2, which are sorted according to their voltage amplitudes: low level B2<low level A2<high level B1<high level A1, wherein the low level B2 is 0V, and the high level A1 is close to the power supply VDD2 voltage; the detection chip 60 can determine the level states of the detection signals VIN1 and VIN2 according to the level state of the detection output signal OUT.

[0156] The second pin of the resistor R11 is also connected to the first pin of the capacitor C11, the first pin of the resistor R8 and the drain D of the switch tube Q4 respectively;

[0157] The second pin of capacitor C1 is connected to the ground terminal GND;

[0158] The second pin of the resistor R8 is connected to the ground terminal GND.

[0159] In the present invention, in specific implementation, the working principle of the signal output module 20 is as follows:

[0160] 1. When the circuit under test does not provide the detection signal VIN1 and the detection signal VIN2, the input terminals VIN1 and IN2 of the signal input module 10 are both in a high impedance state (suspended state), or the detection signal VIN1 and the detection signal VIN2 provided are both at a low level, the output terminals Z1, Z2 and Z3 of the signal input module 10 are all in a high impedance state; the high impedance state Z2 and Z3 turn off the switch tubes Q3 to Q5, and the output terminal OUT of the signal input module 10 is pulled down by the resistor R8 to be equal to the potential of the ground terminal GND, so that the output terminal OUT is at a low level B2, and its voltage amplitude is 0V;

[0161] At this time, the detection chip 60 can determine that the detection signals VIN1 and VIN2 are in a high impedance state according to the low-level detection output signal OUT, and further determine that the positive contactor KL1 and the negative contactor KL2 are both in a disconnected state.

[0162] 2. When the detection signal VIN1 provided by the circuit under test is at a high level and the detection signal VIN2 is at a low level, the output terminals Z1 and Z3 of the signal input module 10 are both in the on state, and the output terminal Z2 is in the on state 2; therefore: the switch tubes Q3-Q4 are turned on, so that the current of the power supply VDD2 flows through the terminals Z1, Z2 and Z3. After the current breaks down the voltage regulator D1, the terminal Z2 is equal to the regulated voltage value Z2. The regulated voltage value Z2 can turn on the switch tube Q5, thereby turning off the switch tube Q4; however, the turned-on switch tube Q5 and the turned-on terminal Z3 keep the switch tube Q3 turned on, thereby keeping the regulated voltage value Z2 unchanged at the terminal Z2, so that the output terminal OUT of the signal output module 20 is at a high level B1, and its voltage amplitude is equal to the voltage value obtained by dividing the regulated voltage value Z2 by the resistors R8 and R11, and the voltage value is greater than the low level A2 but less than the high level A1.

[0163] At this time, the detection chip 60 can determine that the detection signal VIN1 is at a high level and VIN2 is at a low level according to the high level detection output signal OUT, and further determine that the contactors KL1 and KL2 are both in a closed state.

[0164] 3. When the detection signal VIN1 provided by the circuit under test is in a high impedance state and the detection signal VIN2 is at a low level, the output terminals Z1-Z2 of the signal input module 10 are in a high impedance state and Z3 is in a conducting state; the detection signal VIN1 is in a high impedance state, so that the Z1 terminal is in a high impedance state, so no current flows through the Z1 and Z2 terminals, and the resistor R12 makes the Z2 terminal and the Z3 terminal have the same potential, then the switch tube Q5 is turned off; the detection signal VIN2 is at a low level, so that the Z3 terminal is in a conducting state, then the switch tubes Q3-Q4 are turned on, so that the output terminal OUT of the signal output module 20 is at a high level A1, and its voltage amplitude is equal to the voltage value obtained by dividing the power supply voltage VDD2 by the resistors R8 and R9, and this voltage value is close to the power supply voltage VDD2;

[0165] The detection chip 60 can determine that the input detection signal VIN1 is in a high impedance state and the detection signal VIN2 is in a low level according to the high level detection output signal OUT, and further determine that the positive contactor KL1 is disconnected and the negative contactor KL2 is closed.

[0166] 4. When the detection signal VIN1 provided by the input of the measured circuit is at a high level and the detection signal VIN2 is in a high impedance state, the output terminal Z1 of the signal input module 10 is in a conducting state, Z2 is in a conducting state 1, and Z3 is in a high impedance state; the input detection signal VIN2 is at a low level, so that the Z3 terminal is in a high impedance state, so that the switch tubes Q3-Q4 are turned off, no current flows through the switch tube Q3, and the voltage regulator D1 will not be broken down by the voltage regulator; the input detection signal VIN1 is at a high level, so that current flows through the Z1-Z2 terminals, and the The current flows through the resistors R13, R11 and R8. At this time, the voltage at the Z2 terminal is equal to the voltage value obtained by dividing the power supply VDD2 by the resistors R8, R11 and R13. This voltage can turn on the switch tube Q5, and further keep the switch tube Q4 in the off state. At the same time, the high-impedance Z3 terminal keeps the switch tube Q3 in the off state. Therefore, the output terminal OUT of the signal output module 20 is a low level A2, and its voltage amplitude is equal to the voltage value obtained by dividing the voltage at the Z2 terminal by the resistors R8 and R11.

[0167] At this time, the detection chip 60 can determine that the input detection signal VIN1 is at a high level and the input detection signal VIN2 is at a high impedance state according to the low level detection output signal OUT, and further determine that the positive contactor KL1 is closed and the negative contactor KL2 is open.

[0168] To sum up, compared with the prior art, the contactor on-off detection circuit provided by the present invention is scientifically designed, and can allow an output port of the detection chip to have a signal quantity of four states. The four combination states of the two detection signals provided by the contactor can be represented by the output port of one detection chip, which can significantly reduce the number of input and output ports of the detection chip that need to be occupied (only one is required), saving precious hardware resources of the detection chip, and has great production practical significance.

[0169] For the present invention, the high and low level voltage amplitudes of its output port can be flexibly adjusted according to actual needs, which is convenient for the chip to identify the signal state and helps to reduce the number of input and output ports of the detection chip (such as a single-chip microcomputer) that need to be occupied.

[0170] For the technical solution of the present invention, the hardware circuit design is scientific, the electronic components are commonly used models, easy to select and the components are inexpensive. Therefore, the technical solution of the present invention has strong practical value and market promotion value.

[0171] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A contactor on-off detection circuit, It is characterized in that The circuit is used for detecting the on / off state of a positive contactor KL1 and a negative contactor KL2 in a circuit under test, the circuit specifically comprising a signal input module (10), a signal output module (20), a first power module (30), a second power module (40), a third power module (50) and a detection chip (60), wherein: A contact of the positive contactor KL1 is connected to the positive output terminal V1+ of the first power module 10 and is used to receive the positive voltage V1+ output by the first power module; Another contact of the positive contactor KL1 is connected to an input terminal VIN1 of the signal input module (10) and is used to output a detection signal VIN1 to the signal input module (10); A contact of the negative contactor KL2 is connected to the negative output terminal V1- of the first power module 10, and is used to receive the negative voltage V1- output by the first power module; Another contact of the negative contactor KL2 is connected to an input terminal VIN2 of the signal input module (10) and is used to output a detection signal VIN2 to the signal input module (10); An input terminal 1 of the signal input module (10) is connected to a positive output terminal V2+ of a second power module (40) and is used to receive a positive voltage V2+ output by the second power module; An input terminal 2 of the signal input module (10) is connected to a positive output terminal V1+ of the first power module (30) and is used to receive a positive voltage V1+ output by the first power module; The input terminal 3 of the signal input module (10) is connected to the negative output terminal V1- of the first power module (30) and is used to receive the negative voltage V1- output by the first power module; The input terminal 3 of the signal input module (10) is also connected to the negative output terminal V2- of the second power module (40) and is used to receive the negative voltage V2- output by the second power module; The negative output terminal V2- of the second power module (40) and the negative output terminal V1- of the first power module (30) are grounded together; An input terminal VIN1 of the signal input module (10) is connected to one end of a contact of a positive contactor KL1 in a circuit under test, and is used to receive a detection signal VIN1 provided by the positive contactor KL1; An input terminal VIN2 of the signal input module (10) is connected to one end of a contact of a negative contactor KL2 in a circuit under test, and is used to receive a detection signal VIN2 provided by the negative contactor KL2; An output terminal Z1 of the signal input module (10) is connected to a first input terminal of the signal output module (20) and is used to control whether current flows through the first input terminal of the signal output module (20) by adjusting the state of the output terminal Z1; The output terminal Z2 of the signal input module (10) is connected to the second input terminal of the signal output module (20) and is used to control the change of the detection output signal OUT of the signal output module (20) by adjusting the state of the output terminal Z2; The output terminal Z3 of the signal input module (10) is connected to the third input terminal of the signal output module (20) and is used to control whether current flows through the first input terminal of the signal output module (20) by adjusting the state of the output terminal Z3; The power input terminal VDD of the signal output module (20) is connected to the power output terminal of the third power module (50) and is used to receive the DC power supply VDD; An output terminal OUT of the signal output module (20) is connected to an input / output port of the detection chip (60) and is used to provide a detection output signal OUT for the detection chip (60); The detection output signal OUT has four states: high level A1, low level A2, high level B1 and low level B2; A detection chip (60) is used to pre-store and set the corresponding relationship between the detection output signal OUT in four different states and the different state combinations of the two detection signals VIN1 and VIN2, and to determine the state of the two detection signals VIN1 and VIN2 according to the state of the currently received detection output signal OUT; Sort by voltage amplitude: low level B2<low level A2<high level B1<high level A1; The signal input module (10) comprises: resistors R1-R6, a voltage regulator tube D1, switch tubes Q1-Q2 and optical couplers Q6-Q7, wherein: The first pin of the resistor R1 is used as an input terminal VIN1 of the signal input module (10), connected to another contact of the positive contactor KL1, and is used to receive a detection signal VIN1 provided by the circuit under test; The second pin of the resistor R1 is connected to the first pin of the resistor R2 and the gate G of the switch tube Q1 respectively; The second pin of the resistor R2 serves as the input terminal 3 of the signal input module (10), is connected to the negative output terminal V1- of the first power module (30), and is used to receive the negative voltage V1- output by the first power module (30); The second pin of the resistor R2 is also connected to the second pin of the resistor R14 and the source S of the switch tube Q1 respectively; The drain D of the switch tube Q1 is connected to the second pin of the optocoupler Q6; The first pin of the optocoupler Q6 is connected to the second pin of the resistor R5 and the first pin of the resistor R14 respectively; The third pin of the optical coupler Q6 is used as the output terminal Z1 of the signal input module (10) and is connected to the first pin of the resistor R7 in the signal output module (20); The fourth pin of the optical coupler Q6 is used as the output terminal Z2 of the signal input module (10) and is connected to the first pin of the resistor R12 in the signal output module (20); The 4th pin of the optocoupler Q6 is also connected to the cathode of the voltage regulator tube D1; The anode of the voltage regulator tube D1 serves as the output terminal Z3 of the signal input module (10) and is connected to the second pin of the resistor R12 in the signal output module (20); The anode of the voltage regulator D1 is also connected to the third pin of the optocoupler Q7; The first pin of the resistor R5 serves as the input terminal 1 of the signal input module (10), connected to the positive output terminal V2+ of the second power module (40), and used to receive the positive voltage V2+ output by the second power module (40); The first pin of the resistor R5 is also connected to the first pin of the resistor R6; The first pin of the resistor R3 serves as the input terminal 2 of the signal input module (10), connected to the positive output terminal V1+ of the first power module (30), and used to receive the positive voltage V1+ output by the first power module (30); The second pin of the resistor R3 is connected to the first pin of the resistor R4 and the gate G of the switch tube Q2 respectively; The second pin of the resistor R4 is used as the input terminal VIN2 of the signal input module (10), connected to another contact of the negative contactor KL2, and is used to receive the detection signal VIN2 provided by the circuit under test; The second pin of the resistor R4 is also connected to the second pin of the resistor R15 and the source S of the switch tube Q2 respectively; The fourth pin of the optical coupler Q7 is connected to a ground terminal GND, and the ground terminal GND is the negative terminal of the power output terminal in the third power module (50); The first pin of the optocoupler Q7 is connected to the second pin of the resistor R6 and the first pin of the resistor R15 respectively; The second pin of the optocoupler Q7 is connected to the drain D of the switch tube Q2; The source electrode S of the switch tube Q2 serves as an input terminal VIN2 of the signal input module (10), is connected to another contact of the negative electrode contactor KL2, and is used to receive a detection signal VIN2 provided by the circuit under test.

2. The contactor on / off detection circuit according to claim 1, It is characterized in that The signal output module (20) comprises: resistors R7-R13, a capacitor C1 and switch tubes Q3-Q5, wherein: The second pin of the resistor R13 serves as a power input terminal VDD of the signal output module (20), is connected to a power output terminal of the third power module (50), and receives a DC power supply VDD; The second pin of the resistor R13 is also connected to the emitter E of the switch tube Q3 and the first pin of the resistor R10 respectively; The first pin of the resistor R13 serves as a first input terminal CK1 of the signal output module (20) and is connected to an output terminal Z1 of the signal input module (10); The first pin of the resistor R13 is also connected to the first pin of the resistor R7; The second pin of the resistor R7 is connected to the collector C of the switch tube Q3; The base B of the switch tube Q3 is connected to the first pin of the resistor R9; The second pin of resistor R9 is connected to terminal Z4; The Z4 terminal is also connected to the second pin of the resistor R10, the drain D of the switch tube Q5 and the source S of the switch tube Q4 respectively; The gate G of the switch tube Q5 serves as the second input terminal CK2 of the signal output module (20), is connected to the output terminal Z2 of the signal input module (10), and is used to receive the voltage and current input from the Z2 terminal; The gate G of the switch tube Q5 is also connected to the first pins of the resistors R11 and R12 respectively; The source electrode S of the switch tube Q5 serves as the third input terminal CK3 of the signal output module (20) and is connected to the output terminal Z3 of the signal input module (10); The source S of the switch tube Q5 is also connected to the gate G of the switch tube Q4 and the second pin of the resistor R12 respectively; The second pin of the resistor R11, serving as the output end OUT of the signal output module (20), is connected to an input / output port of the detection chip (60) and is used to output detection output signals OUT in four different states to the detection chip (60); The second pin of the resistor R11 is also connected to the first pin of the capacitor C11, the first pin of the resistor R8 and the drain D of the switch tube Q4 respectively; The second pin of capacitor C1 is connected to the ground terminal GND; The second pin of the resistor R8 is connected to the ground terminal GND.