A DC charging gun electronic lock driving circuit
By designing the DC charging gun electronic lock driving circuit in the battery management system, using the lock comparison module and the drive module combined with the signal of the BMS main control chip, the problem of inaccurate electronic lock control is solved, and the safety and reliability of the electronic lock is achieved. and unlock, improves the safety of the electric vehicle charging process and reduces design costs.
Patent Information
- Application Number
- CN202011390905.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-02
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-12-02
AI Technical Summary
When the existing battery management system BMS controls the electronic lock to lock or unlock, it is prone to undesired locking or unlocking control signals due to software errors or misjudgment, resulting in the electronic lock to lock or unlock without locking or unlocking. The problem of not locking or unlocking instead of locking or unlocking will affect the safety of the charging process of electric vehicles.
A DC charging gun electronic lock driving circuit is designed, including a lock comparison module, a driving module and a BMS main control chip. The voltage threshold range is set through the lock comparison module, and combined with the output signal and position feedback signal of the BMS main control chip. Scientifically control the power supply of the electronic lock to ensure reliable locking and unlocking of the electronic lock.
It realizes the safe and reliable locking and unlocking of electronic locks, reduces the risk of error control caused by BMS software errors or misjudgment, improves the safety of the charging process of electric vehicles, and has small space and low cost, which is of practical value. and marketing value.
Smart Images

Figure CN112498138B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and in particular to an electronic lock driving circuit for a DC charging gun. Background Art
[0002] The Battery Management System (BMS) is a battery protection device and a bridge between the battery and the load terminal. It provides overcharge, over-discharge, over-temperature and other protection functions for the battery according to the actual use status of the battery monitored online to ensure the safe use of the battery. The battery management system BMS is widely used in many fields such as electric vehicles, communication base stations, robots, etc.
[0003] Taking electric vehicles as an example, according to the requirements of the new national standard GB / T18487.1-2015 (General requirements for conductive charging systems of electric vehicles Part 1), an electronic lock function must be added to the DC charging gun to ensure that when the charging pile is charging the on-board power battery system (hereinafter referred to as the battery system), it is prevented from pulling out the gun due to misoperation and other reasons, which may cause an arc and lead to personal safety accidents; the new national standard also requires locking before charging, unlocking after charging is completed, and the gun can only be pulled out after unlocking to ensure personal safety.
[0004] However, based on the existing technical solutions, when the battery management system BMS is required to control the locking or unlocking of the electronic lock, the BMS may fail to control the locking or unlocking of the electronic lock when it should be locked or unlocked, or may control the locking or unlocking of the electronic lock when it should not be locked or unlocked.
[0005] The reason for the above problems is that in the existing technical solution, the control chip only outputs the corresponding electronic lock locking or unlocking control signal to connect or disconnect the electronic lock power supply after the BMS software makes a judgment. In this way, an unexpected locking or unlocking control signal may be output due to an error or misjudgment of the BMS software, resulting in the electronic lock not being locked or unlocked when it should be, or being locked or unlocked when it should not be locked or unlocked. Summary of the invention
[0006] The purpose of the present invention is to provide a DC charging gun electronic lock driving circuit in view of the technical defects in the prior art.
[0007] To this end, the present invention provides a DC charging gun electronic lock driving circuit, which includes a locking comparison module, a driving module and a BMS main control chip;
[0008] Among them, the locking comparison module, its input end is connected to the charging connection confirmation end CC2 of the DC charging gun socket;
[0009] The locking comparison module has an output terminal VO connected to the first input terminal of the driving module and the first input terminal of the BMS main control chip respectively;
[0010] A driving module, wherein a first power input terminal thereof is connected to an external DC power supply VCC1;
[0011] A driving module, wherein a second power input terminal thereof is connected to an external DC power supply VCC2;
[0012] A driving module, a first input terminal of which is connected to an output terminal VO of the locking comparison module;
[0013] A driving module, a second input terminal of which is connected to an output terminal LOCK of the BMS main control chip;
[0014] A drive module, whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock, and whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock, is used to control the on and off of the power supply of the electronic lock;
[0015] A BMS main control chip, a first input terminal of which is connected to the output terminal VO of the locking comparison module, and is connected to the first input terminal of the driving module;
[0016] The second input terminal of the BMS main control chip is connected to the position feedback output terminal ELOCK of the electronic lock.
[0017] Preferably, the DC power supply VCC1 is a 5V DC power supply; the DC power supply VCC2 is a 12V DC power supply.
[0018] Preferably, the lock comparison module includes: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein:
[0019] The power input terminal 3 of the operational amplifier U1 is connected to a 5V external DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7 respectively;
[0020] The positive input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4;
[0021] The reverse input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the forward input terminal 1 of the operational amplifier U2;
[0022] The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND;
[0023] The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5;
[0024] The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND;
[0025] The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and converge is used as the output terminal VO of the locking comparison module;
[0026] The power input terminal 3 of the operational amplifier U2 is connected to the power supply 5V and the second pin of the resistor R6 respectively;
[0027] The inverting input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6;
[0028] The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND;
[0029] The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6;
[0030] The power input terminal 3 of the operational amplifier U2 is connected to a 5V external DC power supply VCC1 and the second pin of the resistor R6 respectively;
[0031] The first pin of the resistor R1 is used as the input end of the lock comparison module and is used to connect to the detection end CC2 of the DC charging gun socket;
[0032] The first pin of the resistor R5 is connected to the ground terminal GND;
[0033] The anode of the diode D6 is connected to the output terminal VO of the locking comparison module.
[0034] Preferably, the driving module includes: resistors R8 to R18 and switch tubes Q1 to Q6, wherein:
[0035] The base B of the switch tube Q1 is connected to the second pin of the resistor R8;
[0036] The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2;
[0037] The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively;
[0038] The first pin of the resistor R8 is used as the first input terminal of the driving module and is used to connect to the output terminal VO of the locking comparison module;
[0039] The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10 respectively;
[0040] The first pin of the resistor R9 is used as the second input terminal of the driving module and is used to connect to the output terminal LOCK of the BMS main control chip;
[0041] The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND;
[0042] Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12;
[0043] The collector C of the switch tube Q3 is connected to the ground terminal GND;
[0044] The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively;
[0045] The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively;
[0046] The emitter E of the switch tube Q4 is connected to the first pin of the resistor R16 and the 12V DC power supply VCC2 respectively;
[0047] The collector C of the switch tube Q4 is connected to the first pin of the resistor R17;
[0048] The gate G of the switch tube Q5 is connected to the second pins of the resistor R13 and the resistor R14 respectively;
[0049] The drain D of the switch tube Q5 is connected to the first pin of the resistor R14 and the 12V DC power supply VCC2 respectively;
[0050] The source electrode S of the switch tube Q5 serves as the output terminal LOCK+ of the driving module;
[0051] The output terminal LOCK+ of the driving module is connected to the positive input terminal IN+ of the electronic lock;
[0052] The gate G of the switch tube Q6 is connected to the second pin of the resistor R17 and the first pin of the resistor R18 respectively;
[0053] The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively;
[0054] The drain electrode D of the switch tube Q6 serves as the output terminal LOCK- of the driving module;
[0055] The output terminal LOCK- of the driving module is connected to the negative input terminal IN- of the electronic lock.
[0056] Preferably, Q1 and Q2 are NPN transistors;
[0057] Q3 and Q4 are PNP transistors;
[0058] Q5 is a MOS tube for P communication;
[0059] Q6 is an N-type MOS tube.
[0060] Preferably, the locking comparison module is used to set the voltage threshold range for the driving module to drive the electronic lock to lock, and when the charging gun is unplugged from the DC charging gun charging socket or not inserted into the DC charging gun charging socket, output a low-potential VO signal to the first input terminal of the BMS main control chip, and when the charging gun is inserted into the DC charging gun charging socket, output a high-potential VO signal to the first input terminal of the BMS main control chip;
[0061] A driving module, whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock, and whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock, is used to control the on and off of the power supply of the electronic lock according to the control signal LOCK of locking and unlocking the electronic lock output by the output terminal LOCK of the BMS main control chip;
[0062] The BMS main control chip is used to receive the VO signal output by the output terminal VO of the lock comparison module to determine the insertion and removal of the charging gun.
[0063] It can be seen from the technical solution provided by the present invention that, compared with the prior art, the present invention provides a DC charging gun electronic lock driving circuit, which has a scientific structural design and can safely and reliably drive the electronic lock to lock and unlock, and has great practical significance.
[0064] In addition, for the present invention, the hardware circuit design is scientific, the number of ports occupied by the BMS main control chip is small, the electronic components are commonly used models, easy to select, and the price is also low; in addition, since surface-mounted low-power electronic components are used, the circuit board occupies a small space and the design cost is very low. Therefore, the technical solution of the present invention has strong practical value and market promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 This is a block diagram of the overall structure of a DC charging gun electronic lock drive circuit provided by the present invention;
[0066] Figure 2 A specific connection principle diagram of a comparison module in a DC charging gun electronic lock driving circuit provided by the present invention;
[0067] Figure 3 A specific connection schematic diagram of a drive module in a DC charging gun electronic lock drive circuit provided by the present invention. DETAILED DESCRIPTION
[0068] In order to make the technical means implemented by the present invention easier to understand, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant application, rather than to limit the application. It is also necessary to explain that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings.
[0069] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0070] See also Figures 1 to 3 , the present invention provides a DC charging gun electronic lock driving circuit, including a locking comparison module 100, a driving module 200 and a BMS main control chip 300;
[0071] Among them, the locking comparison module 100, its input end is connected to the charging connection confirmation end CC2 of the DC charging gun socket;
[0072] It should be noted that the DC charging gun socket is a socket that complies with the requirements of the new national standard GB / T18487.1-2015 (General requirements for electric vehicle conductive charging systems Part 1). The voltage values of the charging connection confirmation terminal CC2 on it include: 12V (when the charging gun is not inserted) and 6V (when the charging gun is inserted).
[0073] The locking comparison module 100, whose output terminal VO is respectively connected to the first input terminal of the driving module 200 and the first input terminal of the BMS main control chip 300, is used to set the voltage threshold range for the driving module 200 to drive the electronic lock to lock, and when the charging gun is unplugged from the DC charging gun charging socket or not inserted into the DC charging gun charging socket, output a low potential VO signal to the first input terminal of the BMS main control chip 300, and when the charging gun is inserted into the DC charging gun charging socket, output a high potential VO signal to the first input terminal of the BMS main control chip 300;
[0074] The driving module 200 has a first power input terminal connected to an external DC power source VCC1;
[0075] The driving module 200 has a second power input terminal connected to an external DC power source VCC2;
[0076] The driving module 200 has a first input terminal connected to the output terminal VO of the locking comparison module 100, and is used to set a voltage threshold range for driving the electronic lock to lock through the locking comparison module 100;
[0077] The driving module 200 has a second input terminal connected to the output terminal LOCK of the BMS main control chip 300, and is used to receive the control signal LOCK for locking and unlocking the electronic lock output by the BMS main control chip 300;
[0078] The driving module 200, whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock, and whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock, is used to control the on and off of the power supply of the electronic lock according to the control signal LOCK of locking and unlocking the electronic lock output by the output terminal LOCK of the BMS main control chip 300;
[0079] The BMS main control chip 300, whose first input terminal is connected to the output terminal VO of the locking comparison module 100 and to the first input terminal of the driving module 300, is used to receive the VO signal output by the output terminal VO of the locking comparison module 100 to determine the insertion and removal of the charging gun;
[0080] The BMS main control chip 300 has a second input terminal connected to the position feedback output terminal ELOCK of the electronic lock, and is used to receive the locking and unlocking position feedback signals output by the position feedback output terminal ELOCK of the electronic lock;
[0081] The BMS main control chip 300 has an output terminal LOCK connected to the second input terminal of the driving module 200 , and is used to output a control signal LOCK for locking and unlocking the electronic lock to the driving module 200 .
[0082] It should be noted that, in the present invention, the output terminal LOCK of the BMS main control chip 300 can be a push-pull output and has three signal states:
[0083] 1. High level, turn on the power to drive the electronic lock to lock;
[0084] 2. Low level, when the power is turned on, the electronic lock is unlocked; in addition, when the BMS main control chip 300 is powered on or reset, it is also at a low level;
[0085] 3. High impedance state, the electronic lock is not connected to the power supply.
[0086] In specific implementation, when the output signal VO of the lock comparison module 100 is at a low level, the priority is the highest and the LOCK signal is in a high impedance state;
[0087] In specific implementation, when the output signal VO of the lock comparison module 100 is at a high level, the priority is the lowest, and the LOCK signal is at a high level or a low level; wherein the high level or low level signal is controlled by the charging control strategy stored in the BMS main control chip 300, which complies with the charging control strategy required by the new national standard, does not belong to the technical solution of the present invention, and is not explained in detail here.
[0088] In the present invention, in order to more clearly understand the working principle of the overall technical solution of the electronic lock driving circuit of the present invention, the working principle is described as follows:
[0089] 1. When the DC charging gun socket is not plugged into the DC charging gun, the voltage of the charging connection confirmation terminal CC2 of the DC charging gun socket is 12V. This voltage value is not within the locking voltage threshold range set by the locking comparison module 100. The output terminal VO of the locking comparison module 100 is at a low potential, making the output terminal LOCK of the BMS main control chip 300 in a high impedance state. Therefore, the driving module 200 will not be connected to the DC power supply VCC2, so the electronic lock will not be locked.
[0090] The position feedback output terminal ELOCK of the electronic lock outputs a position feedback signal of no locking or unlocking to the first input terminal of the BMS main control chip 300, and the BMS main control chip 300 determines that the electronic lock is not powered on;
[0091] It should be noted that when the charging gun is not inserted, the low level signal at the output terminal VO of the locking comparison module 100 has the highest priority, so the output terminal LOCK of the BMS main control chip 300 can be controlled to be in a high impedance state.
[0092] 2. When the DC charging gun socket is inserted into the DC charging gun, the electronic lock position feedback output terminal ELOCK still has no locking signal and unlocking signal output to the first input terminal of the BMS main control chip 300, and the voltage of the charging connection confirmation terminal CC2 changes from 12V to 6V. This voltage value is within the locking voltage threshold range set by the locking module 100. Then, the output terminal VO of the locking comparison module 100 changes from a low potential to a high potential, and its priority also changes from the highest to the lowest. The signal state of the output terminal LOCK of the BMS main control chip 300 is no longer controlled, so that the BMS main control chip 300 can control the signal state of its output terminal LOCK according to the charging strategy;
[0093] It should be noted that the charging strategy stored in the BMS main control chip 300 should comply with the charging control process specified in the new national charging standard GB / T18487.1-2015 (General requirements for electric vehicle conductive charging system Part 1), which does not belong to the technical solution of the present invention, so it will not be explained in detail here.
[0094] According to the charging strategy, when the output terminal LOCK of the BMS main control chip changes from a high impedance state to a high level, the driving module 200 can connect to the DC power supply VCC2, and input the positive input terminal IN+ and the negative input terminal IN- of the electronic lock through the output terminal LOCK+ and the output terminal LOCK of the driving module 200, thereby driving the electronic lock to lock;
[0095] When the electronic lock is reliably locked, the electronic lock inputs a locked position feedback signal to the BMS main control chip 300 through its position feedback output terminal ELOCK, and the BMS main control chip 300 determines that the electronic lock has been reliably locked.
[0096] It should be noted that the technical solution of the present invention is only applicable to electromagnetic electronic locks powered by a unidirectional power supply. If it is powered by a pulse power supply, then after the electronic lock is reliably locked, it is still necessary to ensure that the electronic lock is reliably locked within the time when the drive module 200 disconnects the DC power supply VCC2, and then continue to connect the DC power supply VCC2, and repeat this process until charging is completed; if it is powered by a continuous power supply, then after the electronic lock is reliably locked, the drive module 200 continues to connect the DC power supply VCC2 until charging is completed.
[0097] It should be noted that the technical solution of the present invention is not applicable to electronic locks that are locked by forward power drive and unlocked by reverse power drive, such as motor-type electronic locks that require forward power drive to lock and reverse power drive to unlock.
[0098] 3. When charging is completed, the DC charging gun is locked by the electronic lock and cannot be pulled out from the DC charging gun socket, so the voltage of the charging connection confirmation terminal CC2 remains unchanged at 6V, and the output terminal VO of the locking comparison module 100 also remains at a high potential, and its priority is the lowest, and the signal state of the output terminal LOCK of the BMS main control chip 300 is no longer controlled;
[0099] According to the charging strategy, when the output terminal LOCK of the BMS main control chip 300 changes from a high level to a low level, the driving module 200 disconnects the DC power supply VCC2, and there is no 12V output between its output terminals LOCK+ and LOCK-, and the electronic lock is unlocked;
[0100] When the electronic lock is reliably unlocked, the electronic lock inputs an unlocking position feedback signal to the BMS main control chip 300 through its position feedback output terminal ELOCK, and the BMS main control chip 300 determines that the electronic lock has been reliably unlocked. At this point, the DC charging gun can be unplugged.
[0101] 4. When the DC charging gun is unplugged from the DC charging gun socket, the voltage of the charging connection confirmation terminal CC2 changes from 6V to 12V, and the output terminal VO of the locking comparison module 100 changes from a high potential to a low potential, and its priority also changes from the lowest to the highest. Therefore, the output terminal LOCK of the BMS main control chip 300 is controlled to change from a low level to a high impedance state, so that there is still no 12V output between the output terminals LOCK+ and LOCK- of the driving module 200.
[0102] In the present invention, in a specific implementation, the DC power supply VCC1 is used to provide a 5V DC power supply to the driving module 200;
[0103] The DC power supply VCC2 is a 12V DC power supply, which is specifically provided by an existing DC charging pile for the electronic lock.
[0104] In the present invention, the specific implementation is as follows: Figure 2 As shown, the lock comparison module 100 includes: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein:
[0105] The power input terminal 3 of the operational amplifier U1 is connected to a 5V external DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7 respectively;
[0106] The positive input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4;
[0107] The reverse input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the forward input terminal 1 of the operational amplifier U2;
[0108] The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND;
[0109] The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5;
[0110] The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND;
[0111] The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and merge is used as the output terminal VO of the locking comparison module 100;
[0112] The power input terminal 3 of the operational amplifier U2 is connected to the power supply 5V and the second pin of the resistor R6 respectively;
[0113] The inverting input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6;
[0114] The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND;
[0115] The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6;
[0116] The power input terminal 3 of the operational amplifier U2 is connected to a 5V external DC power supply VCC1 and the second pin of the resistor R6 respectively;
[0117] The first pin of the resistor R1 is used as an input terminal of the locking comparison module 100 and is used to connect to the charging connection confirmation terminal CC2;
[0118] The first pin of the resistor R5 is connected to the ground terminal GND;
[0119] An anode of the diode D6 is connected to the output terminal VO of the lock comparison module 100 .
[0120] In the present invention, in specific implementation, the working principle of the locking comparison module 100 is as follows:
[0121] 1. When the DC charging gun socket is not plugged into the charging gun, the voltage of the charging connection confirmation terminal CC2 of the original DC charging gun socket is 12V, and the voltage V1 is obtained after the voltage is divided by the resistor R1 and the resistor R2 (see Figure 2 As shown), at this time, the voltage V1 is greater than the upper limit VTH of the locking voltage threshold; since the voltage V1 is greater than VTH, V1 is greater than the lower limit VTL of the locking voltage threshold, so that the output terminal 5 of the operational amplifier U2 is at a high potential, the diode D6 is cut off, so that the output terminal 5 of the operational amplifier U1 is at a low potential, and the diode D5 is turned on, so that the output terminal VO of the locking comparison module 100 is at a low potential.
[0122] Among them, the upper limit VTH of the locking voltage threshold is obtained by dividing the power supply 5V (i.e., the DC power supply VCC1) by the resistor R4 and the resistor R3, and the lower limit VTL of the locking voltage threshold is obtained by dividing the power supply 5V (i.e., the DC power supply VCC1) by the resistor 6 and the resistor R5.
[0123] 2. When the DC charging gun socket is inserted into the DC charging gun, the charging connection confirmation terminal CC2 of the DC charging gun socket changes from 12V to 6V, so that the voltage V1 is between the lower limit VTL of the locking voltage threshold and the upper limit VTH of the locking voltage threshold; since the voltage V1 is greater than the lower limit VTL of the locking voltage threshold, the output terminal 5 of the operational amplifier U2 is at a high potential, and the diode D6 is cut off. Since the voltage V1 is less than the upper limit VTH of the locking voltage threshold, the output terminal 5 of the operational amplifier U1 is at a high potential, and the diode D5 is cut off, so the output terminal VO of the locking comparison module 100 is at a high potential.
[0124] In the present invention, for specific implementation, see Figure 3 As shown, the driving module 200 includes: resistors R8-R18 and switch tubes Q1-Q6, wherein:
[0125] The base B of the switch tube Q1 is connected to the second pin of the resistor R8;
[0126] The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2;
[0127] The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively;
[0128] The first pin of the resistor R8 is used as the first input terminal of the driving module 200 and is used to connect to the output terminal VO of the locking comparison module 100;
[0129] The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10 respectively;
[0130] The first pin of the resistor R9 is used as the second input terminal of the driving module 200 and is used to connect to the output terminal LOCK of the BMS main control chip 300;
[0131] The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND;
[0132] Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12;
[0133] The collector C of the switch tube Q3 is connected to the ground terminal GND;
[0134] The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively;
[0135] The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively;
[0136] The emitter E of the switch tube Q4 is respectively connected to the first pin of the resistor R16 and a DC power source VCC2 (for example, a 12V DC power source);
[0137] The collector C of the switch tube Q4 is connected to the first pin of the resistor R17;
[0138] The gate G of the switch tube Q5 is connected to the second pins of the resistor R13 and the resistor R14 respectively;
[0139] The drain D of the switch tube Q5 is connected to the first pin of the resistor R14 and a DC power source VCC2 (for example, a 12V DC power source).
[0140] The source electrode S of the switch tube Q5 serves as the output terminal LOCK+ of the driving module 200;
[0141] The output terminal LOCK+ of the driving module 200 is connected to the positive input terminal IN+ of the electronic lock;
[0142] The gate G of the switch tube Q6 is connected to the second pin of the resistor R17 and the first pin of the resistor R18 respectively;
[0143] The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively;
[0144] The drain electrode D of the switch tube Q6 serves as the output terminal LOCK- of the driving module 200;
[0145] The output terminal LOCK- of the driving module 200 is connected to the negative input terminal IN- of the electronic lock.
[0146] In specific implementation, Q1 and Q2 are NPN transistors; Q3 and Q4 are PNP transistors; Q5 is a P-communication MOS tube; Q6 is an N-communication MOS tube (field effect tube).
[0147] In the present invention, in specific implementation, the working principle of the driving module 200 is as follows:
[0148] 1. When the DC charging gun is not inserted into the DC charging gun socket, the output terminal VO of the locking comparison module 100 is at a low potential (highest priority), so that the output terminal LOCK of the BMS main control chip 300 is in a high impedance state, so the switch tubes Q1 and Q2 are both turned off, and the switch tubes Q3 to Q6 are also turned off. There is no 12V output between the output terminals LOCK+ and LOCK- of the driving module 200, so the electronic lock will not be driven to lock;
[0149] The electronic lock position feedback output terminal ELOCK does not output a locking signal and an unlocking signal (ie, a locking and unlocking position feedback signal) to the first input terminal of the BMS main control chip 300 , and the BMS main control chip 300 determines that the electronic lock is not powered on.
[0150] 2. When the DC charging gun socket is inserted into the DC charging gun, the electronic lock position feedback output terminal ELOCK still has no locking signal and unlocking signal output to the first input terminal of the BMS main control chip 300, and the voltage of the charging connection confirmation terminal CC2 of the DC charging gun socket changes from 12V to 6V, so that the output terminal VO of the locking comparison module 100 changes from low potential to high potential (the priority changes from the highest to the lowest), and the switch tube Q1 changes from cut-off to on; because the high potential VO signal has the lowest priority, it no longer controls the signal change of the output terminal LOCK of the BMS main control chip 300, so that the BMS main control chip 300 can control the signal state of its output terminal LOCK according to the charging strategy;
[0151] According to the charging strategy, when the output terminal LOCK of the BMS main control chip 300 changes from a high impedance state to a high level, the switch tube Q2 changes from off to on, and the switch tubes Q3 to Q6 also change from off to on. Then, a DC power supply 12V (DC power supply VC2) is output between the output terminals LOCK+ and LOCK- of the driving module 200, so that the positive input terminal IN+ of the electronic lock is connected to the positive pole of the DC power supply 12V, and the negative input terminal IN- is grounded, thereby providing a positive power supply for the electronic lock to drive the electronic lock to lock;
[0152] When the electronic lock is reliably locked, the electronic lock outputs a locked position feedback signal to the first input terminal of the BMS main control chip 300 through its position feedback output terminal ELOCK, so that the output terminal LOCK of the BMS main control chip 300 changes from a high level to a low level, and the switch tube Q2 changes from on to off, so that the switch tubes Q3 to Q6 also change from on to off, and disconnect the connection with the DC power supply 12V (DC power supply VC2), so that there is no 12V output between the output terminals LOCK+ and LOCK- of the drive module 200;
[0153] After the set delay, the output terminal LOCK of the BMS main control chip 300 changes from a low level to a high level, so that the switch tube Q2 changes from off to on, and the switch tubes Q3 to Q6 also change from off to on, and the connection with the DC power supply 12V is connected, so that there is a 12V output between the output terminals LOCK+ and LOCK- of the drive module 200; this is repeated until the charging is completed.
[0154] It should be noted that the time for which the output terminal LOCK of the BMS main control chip 300 maintains a low level should ensure that the electronic lock is in a reliably locked state.
[0155] 3. Since the DC charging gun is locked by the electronic lock and cannot be unplugged from the DC charging gun socket, the voltage of the charging connection confirmation terminal CC2 of the DC charging gun socket remains unchanged at 6V, and the output terminal VO of the locking comparison module 100 also remains at a high potential, and the switch tube Q1 remains turned on; since the high-potential VO signal has the lowest priority, it no longer controls the signal change of the output terminal LOCK of the BMS main control chip 300;
[0156] When the BMS main control chip 300 changes its output terminal LOCK from a high level to a continuous low level according to the charging control strategy, the switch tube Q2 changes from on to continuously off, and the switch tubes Q3 to Q6 change from on to continuously off, then there is no longer a 12V output between the output terminals LOCK+ and LOCK- of the driving module 200, and at this time, the electronic lock is unlocked.
[0157] When the electronic lock is reliably unlocked, the electronic lock inputs an unlocking position feedback signal to the BMS main control chip 300 through its position feedback output terminal ELOCK, and the BMS main control chip 300 determines that the electronic lock has been reliably unlocked. At this point, the DC charging gun can be unplugged.
[0158] 4. When the DC charging gun is unplugged from the DC charging gun socket, the voltage of the charging connection confirmation terminal CC2 of the DC charging gun socket changes from 6V to 12V, and the output terminal VO of the locking comparison module 100 changes from high potential to low potential (the priority changes from the lowest to the highest), so that the output terminal LOCK of the BMS main control chip 300 changes from low level to high impedance; the low level VO changes the switch tube Q1 from on to off, and the high impedance LOCK keeps the switch tube Q2 off, and keeps the switch tubes Q3~Q6 off, and there is still no 12V output between the output terminals LOCK+ and LOCK- of the driving module 200.
[0159] During this period, the power consumption of the driving module 200 is zero.
[0160] In the present invention, in terms of specific implementation, it should be noted that the BMS main control chip 300 can apply the currently commonly used brands, series and models, such as NXP's MC9S12 series, Infineon's TC2 series TC265, etc. The model of the BMS main control chip 300 is not within the protection scope of the present invention.
[0161] It should be noted that the present invention can reliably drive the electronic lock to lock and unlock through a control method combining software and hardware, and will not erroneously control the action of the electronic lock due to errors or misjudgments of the existing software of the BMS main control chip.
[0162] In summary, compared with the prior art, the DC charging gun electronic lock driving circuit provided by the present invention has a scientific structural design, can safely and reliably drive the electronic lock to lock and unlock, and has great practical significance.
[0163] In addition, for the present invention, the hardware circuit design is scientific, the number of ports occupied by the BMS main control chip is small, the electronic components are commonly used models, easy to select, and the price is also low; in addition, since surface-mounted low-power electronic components are used, the circuit board occupies a small space and the design cost is very low. Therefore, the technical solution of the present invention has strong practical value and market promotion value.
[0164] 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 DC charging gun electronic lock driving circuit, characterized in that: It comprises a locking comparison module (100), a driving module (200) and a BMS main control chip (300); The locking comparison module (100) has an input terminal connected to a charging connection confirmation terminal CC2 of a DC charging gun socket; A locking comparison module (100), whose output terminal VO is respectively connected to the first input terminal of the driving module (200) and the first input terminal of the BMS main control chip (300); A driving module (200), wherein a first power input terminal thereof is connected to an external direct current power source VCC1; A driving module (200), wherein a second power input terminal thereof is connected to an external direct current power source VCC2; A driving module (200), a first input end of which is connected to an output end VO of the locking comparison module (100); A driving module (200), wherein a second input terminal thereof is connected to an output terminal LOCK of a BMS main control chip (300); A driving module (200), whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock, and whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock, for controlling the on and off of the power supply of the electronic lock; A BMS main control chip (300), a first input end of which is connected to the output end VO of the locking comparison module (100), and is connected to the first input end of the driving module (300); A BMS main control chip (300), a second input terminal of which is connected to a position feedback output terminal ELOCK of the electronic lock; When the DC charging gun socket is not plugged into a DC charging gun, the voltage of the charging connection confirmation terminal CC2 of the DC charging gun socket is 12V, and the voltage value is not within the locking voltage threshold range set by the locking comparison module (100), then the output terminal VO of the locking comparison module (100) is at a low potential, so that the output terminal LOCK of the BMS main control chip (300) is in a high impedance state, and therefore the driving module (200) will not be connected to the DC power supply VCC2, and the electronic lock will not be locked; When the charging gun is not inserted, the low level signal at the output terminal VO of the locking comparison module (100) has the highest priority, so the output terminal LOCK of the BMS main control chip (300) is controlled to be in a high impedance state; When the DC charging gun socket is plugged into the DC charging gun, the electronic lock position feedback output terminal ELOCK still has no locking signal and unlocking signal output to the first input terminal of the BMS main control chip (300), and the voltage of the charging connection confirmation terminal CC2 changes from 12V to 6V. This voltage value is within the locking voltage threshold range set by the locking comparison module (100). Then, the output terminal VO of the locking comparison module (100) changes from a low potential to a high potential, and its priority changes from the highest to the lowest. The signal state of the output terminal LOCK of the BMS main control chip (300) is no longer controlled, so that the BMS main control chip (300) controls the signal state of its output terminal LOCK according to the charging strategy.
2. The DC charging gun electronic lock driving circuit according to claim 1, characterized in that: The DC power supply VCC1 is a 5V DC power supply; the DC power supply VCC2 is a 12V DC power supply.
3. The DC charging gun electronic lock driving circuit according to claim 1, characterized in that: The locking comparison module (100) comprises: resistors R1-R7, diodes D1-D6 and operational amplifiers U1-U2, wherein: The power input terminal 3 of the operational amplifier U1 is connected to a 5V external DC power supply VCC1, the second pin of the resistor R4 and the first pin of the resistor R7 respectively; The positive input terminal 1 of the operational amplifier U1 is respectively connected to the second pin of the resistor R3, the anode of the diode D1, the cathode of the diode D2 and the first pin of the resistor R4; The reverse input terminal 2 of the operational amplifier U1 is respectively connected to the second pin of the resistor R2, the cathode of the diode D1, the anode of the diode D2, the second pin of the resistor R1, the anode of the diode D3, the cathode of the diode D4 and the forward input terminal 1 of the operational amplifier U2; The ground terminal 4 of the operational amplifier U1 is connected to the ground terminal GND; The output terminal 5 of the operational amplifier U1 is connected to the cathode of the diode D5; The first pin of the resistor R2 and the first pin of the resistor R3 are both connected to the ground terminal GND; The port where the second pin of the resistor R7 and the anode of the diode D5 intersect and converge is used as the output terminal VO of the locking comparison module (100); The power input terminal 3 of the operational amplifier U2 is connected to the power supply 5V and the second pin of the resistor R6 respectively; The inverting input terminal 2 of the operational amplifier U2 is respectively connected to the second pin of the resistor R5, the cathode of the diode D3, the anode of the diode D4 and the first pin of the resistor R6; The ground terminal 4 of the operational amplifier U2 is connected to the ground terminal GND; The output terminal 5 of the operational amplifier U2 is connected to the cathode of the diode D6; The power input terminal 3 of the operational amplifier U2 is connected to a 5V external DC power supply VCC1 and the second pin of the resistor R6 respectively; The first pin of the resistor R1 is used as an input terminal of the locking comparison module (100) and is used to connect to the detection terminal CC2 of the DC charging gun socket; The first pin of the resistor R5 is connected to the ground terminal GND; The anode of the diode D6 is connected to the output terminal VO of the locking comparison module (100).
4. The DC charging gun electronic lock driving circuit according to claim 1, characterized in that: The driving module (200) comprises: resistors R8-R18 and switch tubes Q1-Q6, wherein: The base B of the switch tube Q1 is connected to the second pin of the resistor R8; The emitter E of the switch tube Q1 is connected to the collector C of the switch tube Q2; The collector C of the switch tube Q1 is connected to the first pins of the resistors R11, R12 and R15 respectively; The first pin of the resistor R8 is used as the first input terminal of the driving module (200) and is used to connect to the output terminal VO of the locking comparison module (100); The base B of the switch tube Q2 is connected to the second pin of the resistor R9 and the first pin of the resistor R10 respectively; The first pin of the resistor R9 is used as a second input terminal of the driving module (200) and is used to connect to the output terminal LOCK of the BMS main control chip (300); The emitter E of the switch tube Q2 is connected to the second pin of the resistor R9 and the ground terminal GND; Wherein, the base B of the switch tube Q3 is connected to the second pin of the resistor R12; The collector C of the switch tube Q3 is connected to the ground terminal GND; The emitter E of the switch tube Q3 is connected to the second pin of the resistor R11 and the first pin of the resistor R13 respectively; The base B of the switch tube Q4 is connected to the second pins of the resistor R15 and the resistor R16 respectively; The emitter E of the switch tube Q4 is connected to the first pin of the resistor R16 and the 12V DC power supply VCC2 respectively; The collector C of the switch tube Q4 is connected to the first pin of the resistor R17; The gate G of the switch tube Q5 is connected to the second pins of the resistor R13 and the resistor R14 respectively; The drain D of the switch tube Q5 is connected to the first pin of the resistor R14 and the 12V DC power supply VCC2 respectively; The source electrode S of the switch tube Q5 serves as the output terminal LOCK+ of the driving module (200); The output terminal LOCK+ of the driving module (200) is connected to the positive input terminal IN+ of the electronic lock; The gate G of the switch tube Q6 is connected to the second pin of the resistor R17 and the first pin of the resistor R18 respectively; The source S of the switch tube Q6 is connected to the second pin of the resistor R18 and the ground terminal GND respectively; The drain electrode D of the switch tube Q6 serves as the output terminal LOCK- of the driving module (200); The output terminal LOCK- of the driving module (200) is connected to the negative input terminal IN- of the electronic lock.
5. The DC charging gun electronic lock driving circuit according to claim 4, characterized in that: Q1 and Q2 are NPN transistors; Q3 and Q4 are PNP transistors; Q5 is a MOS tube for P communication; Q6 is an N-type MOS tube.
6. The DC charging gun electronic lock driving circuit according to claim 1, characterized in that: A locking comparison module (100) is used to set a voltage threshold range for the driving module (200) to drive the electronic lock to lock, and when the charging gun is unplugged from the DC charging gun charging socket or not plugged into the DC charging gun charging socket, output a low potential VO signal to the first input end of the BMS main control chip (300), and when the charging gun is plugged into the DC charging gun charging socket, output a high potential VO signal to the first input end of the BMS main control chip (300); A drive module (200), whose output terminal LOCK+ is connected to the positive input terminal IN+ of the electronic lock, and whose output terminal LOCK- is connected to the negative input terminal IN- of the electronic lock, and is used to control the on and off of the power supply of the electronic lock according to the control signal LOCK for locking and unlocking the electronic lock output by the output terminal LOCK of the BMS main control chip (300); The BMS main control chip (300) is used to receive a VO signal outputted by the output terminal VO of the locking comparison module (100) and to judge whether the charging gun is inserted or removed.