Circuit and method for improving current detection precision of current divider
Technical Field
The invention belongs to the technical field of battery management systems of electric vehicles, and particularly relates to a circuit and a method for improving current detection precision of a current divider.
Background
The current collection scheme of the electric automobile detects the charging and discharging current of a power battery through a Hall current sensor or a current divider, wherein the current collector has the advantage of low cost and is widely used.
In a general current divider detection circuit, an operational amplifier is used to detect a differential signal at two ends of a current divider, as shown in fig. 1 of the specification, IVCC _5V is a 5V power supply, IGND is a ground, RX is a current divider (assuming a range of 75 mV/400A), when a battery pack is charged and discharged, a differential signal voltage is generated at two ends of the current divider RX (IBATS +, IBATS-) and the circuit amplifies the current divider differential signal by 21 times by using a low offset voltage operational amplifier MCP6N16 to output, since a charging current and a discharging current are opposite, a positive differential signal and a negative differential signal are respectively generated at two ends of the current divider RX, in order to enable the ADC to acquire a positive voltage, the operational amplifier output end adds 2500mV voltage output by a reference TL431 to enable an output voltage range to be in a range from 0V to 4.096V, so that currents of-400A to 400A are converted into voltage signals of 0.925V to 4.075V, and an output voltage Vi is acquired by the ADC, and a current formula is calculated as:
since the ADC bit number of the collected voltage is generally 12 bits, the collection precision of the detection method is 0.25A/mv, and the calculation formula is as follows:
that is, the minimum resolution of the current detected by the circuit is 0.25A, the charging current of the slow charging of the electric automobile is generally less than 10A, the current at the end of charging is smaller, if the electric automobile is slowly charged by using the household alternating current, the battery (assuming that the rated capacity of the battery is 100 AH) of the electric automobile needs more than 10 hours from emptying to full charging, the accumulated error of the SOC estimation is 2.5AH according to the current detection error of 0.25A. Because the slow charging time is longer, electric automobile often can use under the condition of not filling full, if SOC can not obtain full charge calibration for a long time, the error of SOC estimation can increase gradually, this not only influences customer and uses the experience, probably leads to the vehicle to go the in-process electric quantity low parking because of SOC estimation is virtual high even. Therefore, a circuit and a method for improving the accuracy of the current detection of the current divider are provided.
Disclosure of Invention
The present invention is directed to a circuit and a method for improving the accuracy of the current detected by the current divider, so as to solve the problems mentioned in the background art.
The invention realizes the purpose through the following technical scheme:
the circuit comprises a first resistor, a second resistor, a low offset voltage operational amplifier, a third resistor, a fourth resistor and a fifth resistor, wherein one end of the low offset voltage operational amplifier is connected with the IBATS + or IBATS-outgoing line of the shunt RX through the first resistor or the second resistor, and the other end of the low offset voltage operational amplifier is connected with a voltage output end through the third resistor, the fourth resistor and the fifth resistor.
As a further optimization scheme of the invention, the model of the low offset voltage operational amplifier is MCP6N16.
As a further optimization scheme of the present invention, the VIM pin of the operational amplifier of the discharge current circuit is connected to the IBATS-outlet of the shunt RX through a first resistor, the VIP pin is connected to the IBATS + outlet of the shunt RX through a second resistor, the VIM pin of the operational amplifier of the charge current circuit is connected to the IBATS + outlet of the shunt RX through a first resistor, and the VIP pin is connected to the IBATS-outlet of the shunt RX through a second resistor.
As a further optimized scheme of the present invention, a VOUT pin of an operational amplifier of the discharging current circuit or the charging current circuit is connected to one end of a third resistor and one end of a fifth resistor, respectively, the other end of the fifth resistor is connected to a voltage output terminal, a VFG pin of the operational amplifier is connected to the other end of the third resistor and one end of a fourth resistor, respectively, and a VREF pin of the operational amplifier is connected to the other end of the fourth resistor and ground, respectively.
As a further optimized solution of the present invention, the resistance of the third resistor in the discharging current circuit is 50K Ω, the resistance of the third resistor in the charging current circuit is 100K Ω, and the resistances of the fourth resistors are all 1K Ω.
The invention also provides a method for improving the current precision of the current divider, and the circuit for detecting the current precision by using the current divider comprises the following steps:
s1: respectively connecting the discharging current circuit and the charging current circuit to IBATS + and IBATS-end lead wires of the shunt;
s2: collecting a discharging current and a charging current based on the discharging current circuit and the charging current circuit respectively;
s3: in the process of collecting the discharge current, the low offset voltage operational amplifier MCP6N16 amplifies the differential signal of the current divider by M times and outputs the amplified signal to output a voltage signal V1, and the discharge current at the moment is calculated, so that the discharge current precision is obtained; in the process of collecting the charging current, the low offset voltage operational amplifier MCP6N16 amplifies the differential signal of the current divider by N times and outputs the amplified signal to output a voltage signal V2, and the discharging current at the moment is calculated, so that the discharging current precision is obtained;
wherein, the flow of gathering discharge current, charging current includes: if V1=0, it indicates that there is a charging current or the current is 0A on the shunt, and when V1 > 0, the current uses I1 as the discharging current; if V2=0, it indicates that there is a discharge current or the current is 0A on the shunt, and when V2 > 0, I2 is taken as the charging current, otherwise the current is 0A.
As a further optimized solution of the present invention, in the step S3, the amplification factor M is a sum of resistances of the third resistor and the fourth resistor in the discharging current circuit, and is specifically 51, and the amplification factor N is a sum of resistances of the third resistor and the fourth resistor in the charging current circuit, and is specifically 101.
As a further optimization scheme of the present invention, the calculation method of the current collection precision in step S3 is as follows:
when X is M, i is the discharge current acquisition precision, and when X is N, i is the charging current acquisition precision, and the unit of i is A/mv.
As a further optimization scheme of the invention, the discharge current acquisition precision is 0.11A/mv, and the charging current acquisition precision is 0.05A/mv.
As a further optimized solution of the present invention, the calculation formula of the discharge current I1 is:
the calculation formula of the charging current I2 is as follows:
m, N is the current amplification factor of the low offset voltage operational amplifier in the discharging current circuit and the charging current circuit, respectively.
The invention has the beneficial effects that: the circuit and the method for improving the current divider detection current precision can improve the current divider collection current precision under the condition of not improving ADC collection digits, effectively reduce the accumulated error of SOC calculation, and reduce the SOC calculation virtual height caused by the current precision problem.
Drawings
FIG. 1 is a circuit diagram of a shunt current sense circuit of the prior art;
fig. 2 is a circuit diagram of the circuit for improving the accuracy of the current detected by the current divider according to the present invention.
Detailed Description
The present application will now be described in further detail with reference to the drawings, it should be noted that the following detailed description is given for illustrative purposes only and is not to be construed as limiting the scope of the present application, as those skilled in the art will be able to make numerous insubstantial modifications and adaptations to the present application based on the above disclosure.
Fig. 1 is a circuit diagram of a current divider detection circuit in the prior art, the current divider detection circuit includes a low offset voltage operational amplifier MCP6N16 and a voltage regulator TL431, a power supply end of the low offset voltage operational amplifier MCP6N16 is connected with an isolation 5V power supply IVCC _5V, a VSS end is connected with an isolation ground IGND, a VIM end and a VIP end are respectively connected with an IBATS-, IBATS + outgoing line of a current divider, a VOUT end is connected with the voltage regulator TL431, the voltage regulator TL431 is connected with the isolation 5V power supply IVCC _5V, a reference voltage of 2500mA is output, and after the reference voltage is superimposed with an amplified voltage output by the low offset voltage operational amplifier MCP6N16, an output voltage Vi is collected by an isolation ADC.
In this embodiment, as shown in fig. 2, the circuit for improving the current detection accuracy of the shunt includes two sets of shunt detection current circuits having the same composition structure, which are disposed on IBATS + and IBATS-lead wires of the shunt RX, and are respectively a discharge current circuit and a charge current circuit, and include a first resistor R1 or R10, a second resistor R2 or R20, a low offset voltage operational amplifier U1 or U2 with the model of MCP6N16, a third resistor R5 or R50, a fourth resistor R6 or R60, and a fifth resistor R4 or R40.
In this embodiment, compared with the shunt detection current circuit in the prior art shown in fig. 1, the shunt detection current circuit in the circuit for improving the shunt detection current precision deletes the voltage stabilizer TL431, the surrounding connection resistor R7, and the capacitor C7:
a VIM pin 2 of an operational amplifier of the discharge current circuit is connected to an IBATS-outgoing line of a shunt RX through a resistor R1, a VIP pin 3 is connected to an IBATS + outgoing line of the shunt RX through a resistor R2, a VOUT pin 7 of the operational amplifier of the discharge current circuit is respectively connected with one ends of a resistor R5 and a resistor R4, the other end of the resistor R4 is connected with a voltage output end V1, a VFG pin 6 of the operational amplifier is respectively connected with the other end of the resistor R5 and one end of the resistor R6, a VREF pin 5 of the operational amplifier is respectively connected with the other end of the resistor R6 and the ground IGND, the resistance value of the resistor R5 is 50K omega, the resistance value of the resistor R6 is 1K omega, and namely the amplification factor of the operational amplifier is adjusted to 51 times;
a VIM pin 2 of an operational amplifier of the charging current circuit is connected to an IBATS + outgoing line of a shunt RX through a resistor R10, a VIP pin 3 is connected to an IBATS-outgoing line of the shunt RX through a resistor R20, a VOUT pin 7 of the operational amplifier of the charging current circuit is respectively connected with one ends of a resistor R50 and a resistor R40, the other end of the resistor R40 is connected with a voltage output end V2, a VFG pin 6 of the operational amplifier is respectively connected with the other end of the resistor R50 and one end of a resistor R60, a VREF pin 5 of the operational amplifier is respectively connected with the other end of the resistor R60 and the ground IGND, the resistance value of the resistor R50 is 100K omega, the resistance value of the resistor R60 is 1K omega, and the amplification multiple of the operational amplifier is 101 times.
The method for improving the accuracy of the current detected by the current divider utilizes the circuit for improving the accuracy of the current detected by the current divider in the embodiment, and comprises the following steps of:
s1: respectively connecting the discharging current circuit and the charging current circuit to IBATS + and IBATS-end lead wires of the shunt;
s2: collecting a discharging current and a charging current based on the discharging current circuit and the charging current circuit respectively;
s3: in the process of collecting the discharge current, the low offset voltage operational amplifier MCP6N16 amplifies the differential signal of the current divider by M times and outputs the amplified signal to output a voltage signal V1, and the discharge current at the moment is calculated, so that the discharge current precision is obtained;
the process of collecting the discharge current comprises the following steps: if V1=0, it indicates that there is a charging current or the current is 0A on the shunt, and when V1 > 0, the current uses I1 as the discharging current; when the discharge current of the battery is 0-400A, the output voltage range is 0-3582 mv, and the discharge current I1 has the calculation formula as follows:
the discharge current precision is:
when the current is charged, the operational amplifier cannot output negative voltage, and the output voltage V1 is 0V, so that the accuracy of the discharge current acquisition is 0.11A/mv, which is doubled compared with the improved front accuracy;
in the process of collecting the charging current, the low offset voltage operational amplifier MCP6N16 amplifies the differential signal of the current divider by N times and outputs the amplified signal to output a voltage signal V2, and the discharging current at the moment is calculated, so that the discharging current precision is obtained;
the process of collecting the charging current comprises the following steps: if V2=0, it indicates that there is a discharge current or the current is 0A on the shunt, and when V2 > 0, I2 is taken as the charging current, otherwise the current is 0A.
When the charging current of the battery is 0-200A, the output voltage range is 0-3787.5 mv, when the current discharges, the output voltage V2 is 0V because the operational amplifier can not output negative voltage, thus the precision of the charging current collection is 0.05A/mv, and the calculation formula of the charging current I2 is as follows:
the charging current precision is as follows:
the above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.