CN114859093A - Current sensing based on current divider - Google Patents

Current sensing based on current divider Download PDF

Info

Publication number
CN114859093A
CN114859093A CN202210475342.3A CN202210475342A CN114859093A CN 114859093 A CN114859093 A CN 114859093A CN 202210475342 A CN202210475342 A CN 202210475342A CN 114859093 A CN114859093 A CN 114859093A
Authority
CN
China
Prior art keywords
resistor
circuit
shunt
operational amplifier
amplifier circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210475342.3A
Other languages
Chinese (zh)
Inventor
徐久方
凌欢
吴瑞
张秀清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Hongtron New Energy Power Co ltd
Original Assignee
Anhui Hongtron New Energy Power Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Hongtron New Energy Power Co ltd filed Critical Anhui Hongtron New Energy Power Co ltd
Priority to CN202210475342.3A priority Critical patent/CN114859093A/en
Publication of CN114859093A publication Critical patent/CN114859093A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R15/00Details of measuring arrangements of the types provided for in groups G01R17/00 - G01R29/00, G01R33/00 - G01R33/26 or G01R35/00
    • G01R15/14Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks
    • G01R15/146Measuring arrangements for current not covered by other subgroups of G01R15/14, e.g. using current dividers, shunts, or measuring a voltage drop
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/25Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

本发明揭示了一种基于分流器的电流传感器,电流传感器设有用于连接待采集器件的两个铜排,分流器的采样电阻两端分别连接至两个铜排上,所述分流器输出端经滤波电路、A/D转换电路、隔离电路连接至MCU输入端,所述MCU输出端连接CAN接口,所述CAN接口用于连接汽车CAN总线。本发明电流传感器可以通过分流器来进行测量双向直流电流,该模块是完全高低压隔离的,可以运用在电池系统的总正端或总负端。电流传感器模块的供电电压范围是+3.3V~+5V。该模块会将因温度变化引起的阻值变化降到最小,模块通讯是采用一个CAN2.0B接口对外通讯。

Figure 202210475342

The invention discloses a current sensor based on a shunt. The current sensor is provided with two copper bars for connecting a device to be collected, and two ends of a sampling resistor of the shunt are respectively connected to the two copper bars. The output end of the shunt The filter circuit, the A/D conversion circuit, and the isolation circuit are connected to the input end of the MCU, and the output end of the MCU is connected to the CAN interface, and the CAN interface is used to connect the vehicle CAN bus. The current sensor of the present invention can measure bidirectional DC current through a shunt, the module is completely isolated from high and low voltage, and can be used in the total positive terminal or the total negative terminal of the battery system. The supply voltage range of the current sensor module is +3.3V to +5V. The module will minimize the resistance change caused by temperature changes, and the module communication uses a CAN2.0B interface to communicate externally.

Figure 202210475342

Description

一种基于分流器的电流传感A shunt-based current sensing

技术领域technical field

本发明涉及元器件测量领域,尤其涉及一种分流器来进行电路中电流测量的装置。The invention relates to the field of component measurement, in particular to a device for measuring current in a circuit by a shunt.

背景技术Background technique

现今电动汽车里程数和扭矩要求越来越高,这也就相应的要求电池包提供更高的功率,而功率越高电流相应的也会越高,这就要求我们电流传感器要测量更大的测量范围,同时电机的控制器体积也是越做越小,这就要求我们电流传感器在测量范围越大的情况下体积越做越小。Nowadays, the mileage and torque requirements of electric vehicles are getting higher and higher, which accordingly requires the battery pack to provide higher power, and the higher the power, the higher the current, which requires our current sensor to measure a larger The measurement range, and the volume of the motor controller is also getting smaller and smaller, which requires our current sensor to be smaller and smaller when the measurement range is larger.

目前市场上所提供的都是霍尔电流传感器测量电流,霍尔电流传感器测量基于霍尔原理,就是将总线穿过霍尔传感器,通过电磁感应获得电流值。霍尔传感器的缺点是精度不是特别高,而且灵活性不高,具有温漂,零点漂移等问题。At present, all Hall current sensors on the market measure the current. The Hall current sensor measurement is based on the Hall principle, that is, passing the bus through the Hall sensor and obtaining the current value through electromagnetic induction. The disadvantage of the Hall sensor is that the accuracy is not particularly high, and the flexibility is not high, and it has problems such as temperature drift and zero drift.

分流器测量电流的原理是依据电流经过电阻的时候在电阻两端形成电压而制作的,常用于均流取样检测,有插槽式和非插槽式两种。用分流器来测量电流,在整个量程内都可以保持较好的线性度,但是测量精度稍差。The principle of the shunt to measure the current is based on the formation of a voltage across the resistor when the current passes through the resistor. Using a shunt to measure the current can maintain good linearity over the entire range, but the measurement accuracy is slightly worse.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是实现一种基于分流器的高精度电流传感器,用来解决高精度电流回路中电流的监控和反馈的不足,从而提高电流输入输出精度,达到产品技术要求。The technical problem to be solved by the present invention is to realize a high-precision current sensor based on a shunt, which is used to solve the insufficiency of current monitoring and feedback in the high-precision current loop, thereby improving the current input and output accuracy and meeting product technical requirements.

为了实现上述目的,本发明采用的技术方案为一种基于分流器的电流传感器,电流传感器设有用于连接待采集器件的两个铜排,分流器的采样电阻两端分别连接至两个铜排上,所述分流器输出端经滤波电路、A/D转换电路、隔离电路连接至MCU输入端,所述MCU输出端连接CAN接口,所述CAN接口用于连接汽车CAN总线。In order to achieve the above purpose, the technical solution adopted in the present invention is a current sensor based on a shunt. The current sensor is provided with two copper bars for connecting the device to be collected, and both ends of the sampling resistor of the shunt are respectively connected to the two copper bars. Above, the output end of the shunt is connected to the input end of the MCU through a filter circuit, an A/D conversion circuit, and an isolation circuit, and the output end of the MCU is connected to a CAN interface, and the CAN interface is used to connect to the car CAN bus.

两个所述铜排固定在电流传感器的壳体外,所述分流器、滤波电路、A/D转换电路、隔离电路、MCU固定在壳体内,所述CAN接口固定在壳体端部。The two copper bars are fixed outside the casing of the current sensor, the shunt, the filter circuit, the A/D conversion circuit, the isolation circuit and the MCU are fixed in the casing, and the CAN interface is fixed at the end of the casing.

每个所述铜排上均设有母线电流连接孔,每个所述铜排通过焊接的方式将两端焊接到铜排上。Each of the copper bars is provided with a busbar current connection hole, and both ends of each of the copper bars are welded to the copper bars by welding.

所述基于分流器的电流传感器整体固定在壳体内,所述壳体为长方体结构,仅一端开口用于固定CAN接口,所述铜排固定在壳体表面并伸出壳体,所述连接孔在铜排伸出壳体的部分,所述壳体表面涂抹有屏蔽漆层,所述采样电阻为高精密低温票电阻,所述采样电阻末端接线柱连接电压采样电路,电压采样电路为对称差分放大电路,差分放大电路供电电压7V,低温票电阻接线柱连接差分放大电路Vin1和Vin2。所述差分放大电路输出末端V0连接滤波电路Ui端,所述滤波电路末端U0+与A/D转换器输入端相连,滤波电路U0-接地。The shunt-based current sensor is integrally fixed in the casing, the casing is a cuboid structure, and only one end is open for fixing the CAN interface. The copper bar is fixed on the surface of the casing and protrudes out of the casing. On the part of the copper bar extending out of the casing, the casing surface is coated with a shielding paint layer, the sampling resistor is a high-precision low-temperature ticket resistance, and the terminal terminal of the sampling resistor is connected to a voltage sampling circuit, and the voltage sampling circuit is a symmetrical differential Amplifying circuit, the power supply voltage of the differential amplifying circuit is 7V, and the low-temperature ticket resistance terminal is connected to the differential amplifying circuit Vin1 and Vin2. The output terminal V0 of the differential amplifier circuit is connected to the terminal Ui of the filter circuit, the terminal U0+ of the filter circuit is connected to the input terminal of the A/D converter, and the filter circuit U0- is grounded.

所述分流器由两个相同的A1运放电路和A2运放电路成输入级,所述A1运放电路的输入端正极经电阻R1连接一个采样电阻接线柱,所述A2运放电路的输入端正极经电阻R2连接另一个采样电阻接线柱,所述A1运放电路的输出端经依次串联的电阻R4、电阻R3、电阻R5连接A2运放电路的输出端,所述A1运放电路的输入端负极连接至电阻R4和电阻R3之间,所述A2运放电路的输入端负极连接至电阻R5和电阻R3之间,所述串联的电阻R4、电阻R3、电阻R5并联有电容C1,所述A1运放电路的输出端经电阻R6连接A3运放电路的输入端正极,所述A2运放电路的输出端经电阻R7连接A3运放电路的输入端负极,所述A1运放电路的输出端经电阻R6、电阻R9接地,所述A2运放电路的输出端经电阻R7、电阻R8连接A3运放电路的输出端。The shunt is composed of two identical A1 operational amplifier circuits and A2 operational amplifier circuits as an input stage. The positive pole of the input terminal of the A1 operational amplifier circuit is connected to a sampling resistor binding post through the resistor R1, and the input of the A2 operational amplifier circuit is connected. The positive terminal of the terminal is connected to another sampling resistor terminal through the resistor R2. The output end of the A1 operational amplifier circuit is connected to the output end of the A2 operational amplifier circuit through the resistor R4, the resistor R3 and the resistor R5 in series in sequence. The negative pole of the input terminal is connected between the resistor R4 and the resistor R3, the negative pole of the input terminal of the A2 operational amplifier circuit is connected between the resistor R5 and the resistor R3, and the resistor R4, the resistor R3 and the resistor R5 in series are connected in parallel with the capacitor C1, The output terminal of the A1 operational amplifier circuit is connected to the positive terminal of the input terminal of the A3 operational amplifier circuit through the resistor R6, the output terminal of the A2 operational amplifier circuit is connected to the negative terminal of the input terminal of the A3 operational amplifier circuit through the resistor R7, and the A1 operational amplifier circuit is connected. The output terminal of the A2 is connected to the ground through the resistor R6 and the resistor R9, and the output terminal of the A2 operational amplifier circuit is connected to the output terminal of the A3 operational amplifier circuit through the resistor R7 and the resistor R8.

所述A3运放电路为低温票低增益运放电路,所述A1和A2运放电路为低温票、高增益的运放电路,所述电容C1为滤波电容,所述电阻R1、电阻R2、电阻R6、电阻R7、电阻R9为平衡电阻,所述电阻R3、电阻R4、电阻R5、电阻R8为分压电阻,所述平衡电阻用于平衡输入端失调电流。The A3 op-amp circuit is a low-temperature low-gain op-amp circuit, the A1 and A2 op-amp circuits are low-temperature, high-gain op-amp circuits, the capacitor C1 is a filter capacitor, the resistor R1, resistor R2, The resistor R6, the resistor R7, and the resistor R9 are balance resistors, and the resistor R3, the resistor R4, the resistor R5, and the resistor R8 are voltage divider resistors, and the balance resistors are used to balance the offset current of the input terminal.

所述A/D转换电路选用转换位数24位、具有高速电能计算功能和一个串行接口的高度集成的模数转换器CS5460A。所述A/D转换电路将模拟信号转化为数字信号,通过输出端口与隔离电路VI端口相连。The A/D conversion circuit uses a highly integrated analog-to-digital converter CS5460A with 24 conversion bits, high-speed power calculation function and a serial interface. The A/D conversion circuit converts the analog signal into a digital signal, and is connected to the VI port of the isolation circuit through the output port.

所述隔离电路选用具有多通道配置和输出使能功能的四通道数字隔离器进行隔离和连接,所述隔离电路内的逻辑存储器为RAM存储器,所述隔离电路将隔离器输出端口V0与微控制单元MCU输入端SPI相连接。The isolation circuit selects a four-channel digital isolator with multi-channel configuration and output enabling functions for isolation and connection, the logic memory in the isolation circuit is a RAM memory, and the isolation circuit connects the isolator output port V0 with the microcontroller. The unit MCU input terminal SPI is connected.

所述MCU用于对输入信号进行逻辑判断,所述MCU内设有定时器、通讯接口、电源管理器、看门狗计时器,所述MCU将微控制单元输出端SPI与CAN输入端口相连接。The MCU is used to perform logical judgment on the input signal, and the MCU is provided with a timer, a communication interface, a power manager, and a watchdog timer, and the MCU connects the output end SPI of the microcontroller unit with the CAN input port .

所述CAN接口输出端口通过接插件与外界相连接,所述CAN接口为设有四个Pin脚的连接器,其中Pin a为供电电源VCC、Pin b为CAN_L、Pin c为CAN_H、Pin d为GND。The CAN interface output port is connected with the outside world through a connector, and the CAN interface is a connector provided with four Pins, wherein Pin a is the power supply VCC, Pin b is CAN_L, Pin c is CAN_H, and Pin d is GND.

本发明电流传感器可以通过分流器来进行测量双向直流电流,该模块是完全高低压隔离的,可以运用在电池系统的总正端或总负端。电流传感器模块的供电电压范围是+3.3V~+5V。该模块会将因温度变化引起的阻值变化降到最小,模块通讯是采用一个CAN2.0B接口对外通讯(默认500kbit/s,可配置)。The current sensor of the present invention can measure bidirectional DC current through a shunt, the module is completely isolated from high and low voltage, and can be used in the total positive terminal or the total negative terminal of the battery system. The supply voltage range of the current sensor module is +3.3V to +5V. The module will minimize the resistance change caused by temperature change, and the module communication uses a CAN2.0B interface for external communication (default 500kbit/s, configurable).

附图说明Description of drawings

下面对本发明说明书中每幅附图表达的内容及图中的标记作简要说明:The content expressed in each drawing in the description of the present invention and the marks in the drawings are briefly described below:

图1为传感器内部结构电路原理示意图;Figure 1 is a schematic diagram of the internal structure and circuit principle of the sensor;

图2为传感器外观结构形式的示意图;Fig. 2 is the schematic diagram of the appearance structure of the sensor;

图3为传感器内部结构形式的示意图;Figure 3 is a schematic diagram of the internal structure of the sensor;

图4为低通滤波电路原理图;Figure 4 is a schematic diagram of a low-pass filter circuit;

图5为高通滤波电路原理图;Figure 5 is a schematic diagram of a high-pass filter circuit;

图6是本发明A/D转换器方框图;Fig. 6 is the block diagram of A/D converter of the present invention;

图7是隔离电路原理图;Figure 7 is a schematic diagram of the isolation circuit;

图8是本发明MCU方框图;Fig. 8 is the MCU block diagram of the present invention;

图9是本发明CAN接口结构示意图;Fig. 9 is the CAN interface structure schematic diagram of the present invention;

图10为本发明分流器原理图Figure 10 is a schematic diagram of the shunt of the present invention

上述图中的标记均为:1、铜排;2、电流接线孔;3、采样电阻;4、测量单元;5、电压采集模块;6、CAN接口。The marks in the above figures are: 1. Copper bar; 2. Current wiring hole; 3. Sampling resistor; 4. Measuring unit; 5. Voltage acquisition module; 6. CAN interface.

具体实施方式Detailed ways

下面对照附图,通过对实施例的描述,本发明的具体实施方式如所涉及的各构件的形状、构造、各部分之间的相互位置及连接关系、各部分的作用及工作原理、制造工艺及操作使用方法等,作进一步详细的说明,以帮助本领域技术人员对本发明的发明构思、技术方案有更完整、准确和深入的理解。Below with reference to the accompanying drawings, through the description of the embodiments, the specific implementation of the present invention, such as the shape and structure of each component involved, the mutual position and connection relationship between each part, the function and working principle of each part, and the manufacturing process and operation and use methods, etc., are described in further detail to help those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solutions of the present invention.

本发明为基于分流器的电流传感器,将传统的测量方法改为分流器的测量部分全部集成到分流器上,这样可以使整个电流测量和反馈回路变短,且电压采集使用差分放大电路使信号干扰因素降低,测量误差变小。The present invention is a current sensor based on a shunt, and the traditional measurement method is changed to the measurement part of the shunt, all of which are integrated into the shunt, so that the entire current measurement and feedback loop can be shortened, and the voltage acquisition uses a differential amplifier circuit to make the signal Interference factors are reduced, and measurement errors are reduced.

电流传感器主要分成三个部分,第一部分是大电流连接铜排1,第二部分是测量单元4,也是整个传感器的核心,第三部分是CAN通讯部分。其中测量单元4包括分流器、滤波电路、A/D转换电路、隔离电路。电流测量过程:首先给电流传感器通电,当有电流经过分流器时,电流流经低温漂电阻,分流器测得一个电压信号,电压信号经过差分放大电路放大后送入滤波电路过滤杂波,然后连接到A/D转换器的模拟量输入端,经过模数转换器后得到数字信号,A/D转换器将数字信号输出后通过隔离电路输出给MCU,由MCU进行逻辑判断后将数据通过CAN接口6输出到CAN总线上。The current sensor is mainly divided into three parts, the first part is the high current connection copper bar 1, the second part is the measurement unit 4, which is also the core of the whole sensor, and the third part is the CAN communication part. The measurement unit 4 includes a shunt, a filter circuit, an A/D conversion circuit, and an isolation circuit. Current measurement process: first power on the current sensor, when there is current passing through the shunt, the current flows through the low temperature drift resistance, the shunt measures a voltage signal, the voltage signal is amplified by the differential amplifier circuit and sent to the filter circuit to filter the clutter, and then It is connected to the analog input terminal of the A/D converter, and the digital signal is obtained after the analog-to-digital converter. The A/D converter outputs the digital signal and outputs it to the MCU through the isolation circuit. After the MCU performs logical judgment, the data is passed through the CAN Interface 6 outputs to the CAN bus.

如图10所示,分流器由两个相同的A1运放电路和A2运放电路成输入级,A1运放电路的输入端正极经电阻R1连接一个采样电阻接线柱,A2运放电路的输入端正极经电阻R2连接另一个采样电阻接线柱,A1运放电路的输出端经依次串联的电阻R4、电阻R3、电阻R5连接A2运放电路的输出端,A1运放电路的输入端负极连接至电阻R4和电阻R3之间,A2运放电路的输入端负极连接至电阻R5和电阻R3之间,串联的电阻R4、电阻R3、电阻R5并联有电容C1,A1运放电路的输出端经电阻R6连接A3运放电路的输入端正极,A2运放电路的输出端经电阻R7连接A3运放电路的输入端负极,A1运放电路的输出端经电阻R6、电阻R9接地,A2运放电路的输出端经电阻R7、电阻R8连接A3运放电路的输出端。As shown in Figure 10, the shunt is composed of two identical A1 op-amp circuits and A2 op-amp circuits as the input stage. The positive terminal of the input terminal of the A1 op-amp circuit is connected to a sampling resistor binding post through the resistor R1, and the input of the A2 op-amp circuit is connected. The positive terminal of the terminal is connected to another sampling resistor terminal through the resistor R2. The output terminal of the A1 operational amplifier circuit is connected to the output terminal of the A2 operational amplifier circuit through the resistor R4, resistor R3 and resistor R5 in series in sequence, and the input terminal of the A1 operational amplifier circuit is connected to the negative terminal. Between the resistor R4 and the resistor R3, the negative pole of the input terminal of the A2 op amp circuit is connected between the resistor R5 and the resistor R3, the resistor R4, the resistor R3, and the resistor R5 are connected in parallel with the capacitor C1, and the output terminal of the A1 op amp circuit is connected in parallel with the capacitor C1. The resistor R6 is connected to the positive terminal of the input terminal of the A3 operational amplifier circuit, the output terminal of the A2 operational amplifier circuit is connected to the negative terminal of the input terminal of the A3 operational amplifier circuit through the resistor R7, the output terminal of the A1 operational amplifier circuit is grounded through the resistor R6 and the resistor R9, and the A2 operational amplifier is connected to the ground. The output end of the circuit is connected to the output end of the A3 operational amplifier circuit through the resistor R7 and the resistor R8.

采样端加入了运放差分放大电路不仅可以起到稳定工作电压的作用还可以进行小电流测量,这样设计可以使测量范围更广,精度更高,A1和A2两个相同的运放电路构成输入级,在与差分放大器A3串联组成三运放差分放大电路,电路中输入级电阻应保持对称相等。The sampling end adds an operational amplifier differential amplifier circuit, which can not only stabilize the working voltage but also perform small current measurement. This design can make the measurement range wider and higher in accuracy. Two identical operational amplifier circuits A1 and A2 form the input. stage, in series with the differential amplifier A3 to form a three-op-amp differential amplifier circuit, the input stage resistance in the circuit should be kept symmetrical and equal.

C1为滤波电容,A1和A2选用低温票、高增益的运放,A3为低温票低增益运放,R1、R2、R6、R7、R9为平衡电阻,用来平衡输入端失调电流,R3、R4、R5、R8为分压电阻。C1 is a filter capacitor, A1 and A2 use low-temperature, high-gain op amps, A3 is a low-temperature low-gain op amp, R1, R2, R6, R7, R9 are balance resistors to balance the offset current at the input end, R3, R4, R5 and R8 are voltage divider resistors.

A1和A2提高了差模信号与共模信号比值,在电路输入级对称条件下,各电阻阻值的误差对电路共模抑制无影响,电路对共模信号几乎无放大作用,共模电压增益很小。A1 and A2 improve the ratio of differential mode signal to common mode signal. Under the condition of symmetry of the circuit input stage, the error of each resistance value has no effect on the common mode rejection of the circuit, the circuit has almost no amplifying effect on the common mode signal, and the common mode voltage gain is very high. Small.

因为R1=R2,R4=R5,R8=R9,R6=R7,所以两级差模增益Q为Because R1=R2, R4=R5, R8=R9, R6=R7, the two-stage differential mode gain Q is

Q=V0/(Vin1+Vin2)=(R3+R4+R5)/R3*(R9/R6)Q=V0/(Vin1+Vin2)=(R3+R4+R5)/R3*(R9/R6)

因为差分放大电路第一级增益放大倍数在10-100倍,且第二级增益放大倍数1-2倍左右,电压在经过第一级和第二级放大电路后可以得到一个很高的放大倍数,所以电流传感器可以测量几毫安的小电流。Because the first-stage gain magnification of the differential amplifier circuit is 10-100 times, and the second-stage gain magnification is about 1-2 times, the voltage can get a very high magnification after passing through the first-stage and second-stage amplifying circuits , so the current sensor can measure small currents of a few milliamps.

整个电流传感器固定在壳体内,两个铜排1固定在壳体的侧面,壳体灌胶密封,另一端为CAN接口6,直接与汽车上的CAN插头连接。分流器包括采样电阻3和电压采集模块5,采样电阻3通过焊接的方式将两端焊接到铜排1上,当电流通过铜排1上两个电流接线孔2流过分流器时,会在采样电阻3两端形成一个采集电压,此电压信号一般为0-75mV,采样电阻3的阻值是已知的,电压采集模块5通过接线柱连接采样电阻3两端获得其电压U,通过公式I=U/R可知采样电阻3中流过的电流值I。在整个设计中TCR(电阻温度系数)才是选择的重点,低温漂电阻是指电阻阻值随温度变化小的电阻,电阻的温漂即TCR,低温漂电阻又分为低温漂薄膜电阻和低温漂精密电阻。The entire current sensor is fixed in the casing, two copper bars 1 are fixed on the side of the casing, the casing is sealed with glue, and the other end is the CAN interface 6, which is directly connected to the CAN plug on the car. The shunt includes a sampling resistor 3 and a voltage acquisition module 5. Both ends of the sampling resistor 3 are welded to the copper bar 1 by welding. When the current flows through the shunt through the two current wiring holes 2 on the copper bar 1, it will A collection voltage is formed at both ends of the sampling resistor 3. The voltage signal is generally 0-75mV. The resistance value of the sampling resistor 3 is known. The voltage collection module 5 obtains its voltage U by connecting the two ends of the sampling resistor 3 through the binding posts. I=U/R The current value I flowing through the sampling resistor 3 can be known. In the whole design, TCR (Temperature Coefficient of Resistance) is the key point of selection. Low temperature drift resistance refers to the resistance whose resistance value changes with temperature. Drift precision resistors.

这样我们可以有两方案,第一种方案是使用低温漂薄膜电阻做分流器采样电阻3,低温漂薄膜电阻可以满足中、高阻值的测量,不仅可以通过较大电流还可以有一个比较高的精度,第二种方案是使用低温票精密电阻,使用低温票精密电阻的好处是可以提供一个极高的测量精度,一般可以达到0.01%。低温漂电阻相较于普通电阻的区别是随电流的升高电阻自身温度的变化很小,可以广泛应用于电机控制器等高温环境的测量。In this way, we can have two solutions. The first solution is to use the low temperature drift thin film resistor as the shunt sampling resistor 3. The low temperature drift thin film resistor can meet the measurement of medium and high resistance values, and not only can pass a large current, but also have a relatively high resistance value. The second solution is to use a low-temperature precision resistor. The advantage of using a low-temperature precision resistor is that it can provide a very high measurement accuracy, which can generally reach 0.01%. The difference between low temperature drift resistance and ordinary resistance is that the temperature of the resistance itself changes very little with the increase of current, and it can be widely used in the measurement of high temperature environments such as motor controllers.

滤波电路如图4、5所示,因为在信号传输过程中会有杂波混合在其中,所以引入滤波电路,Ui代表输入电压,R代表保护电阻,C代表滤波电容,Uo代表滤波输出电压,RL为电路内阻,高通电路指允许高于设定频率的信号通过,对低于设定频率的信号不允许通过,低通电路与高通电路相对应,即对低于设定频率的信号阻碍很小,高于设定频率的信号阻碍很大,在汽车零部件EMC电池兼容测试中经常会遇到高频信号或低频信号超出限值的情况,这个时候使用高低通滤波电路会使测试结果得到改善,低通和高通电路由实际应用情况选择。The filter circuit is shown in Figures 4 and 5. Because there will be clutter mixed in the signal transmission process, a filter circuit is introduced. Ui represents the input voltage, R represents the protection resistor, C represents the filter capacitor, and Uo represents the filter output voltage. RL is the internal resistance of the circuit. High-pass circuit means that signals higher than the set frequency are allowed to pass, and signals below the set frequency are not allowed to pass. The low-pass circuit corresponds to the high-pass circuit, that is, the signal below the set frequency is blocked. It is very small, and the signal higher than the set frequency is very hindered. In the EMC battery compatibility test of auto parts, it is often encountered that the high frequency signal or the low frequency signal exceeds the limit. At this time, the use of high and low pass filter circuit will make the test result. Improved, low-pass and high-pass circuits are selected by the actual application situation.

A/D转换电路如图6所示,A/D转换器的形式有很多种,方式的不同会影响测量后的精度,而他的主要作用就是将模拟电子量转换为数字量,使输出的数字量与输入的模拟电子量成正比从而实现转换功能。在A/D转换的过程中,因输入的模拟电子量信号是连续的,输出的数字信号是离散的,所以在进行模数转换时要按照一定的频率对输入的模拟量信号进行采样。A/D转换需要经过采样、保持、量化和编码四个阶段。采样就是对连续变化的模拟电子信号进行定时测量采样,采样越密集,电路输出信号就越接近输入值,因此对于采样频率有一定要求,采样频率fs≥2fImay,其中fImay是输入信号频谱中的最高频率;保持就是将采集信号保存一段时间;量化就是将采样电压转换为以某个最小单位电压△的整数倍的过程,分成的等级称为量化级,等级越多越好,A称为量化单位;所谓编码就是用二进制代码来表示量化后的量化电平。在实际应用中选用转换位数24位、具有高速电能计算功能和一个串行接口的高度集成的模数转换器CS5460A。The A/D conversion circuit is shown in Figure 6. There are many forms of A/D converters, and the different methods will affect the accuracy after measurement, and its main function is to convert analog electronic quantities into digital quantities, so that the output The digital quantity is proportional to the input analog electronic quantity to realize the conversion function. In the process of A/D conversion, since the input analog electronic signal is continuous and the output digital signal is discrete, the input analog signal should be sampled according to a certain frequency during analog-to-digital conversion. A/D conversion needs to go through four stages of sampling, holding, quantization and encoding. Sampling is the timing measurement and sampling of the continuously changing analog electronic signal. The denser the sampling, the closer the circuit output signal is to the input value. Therefore, there are certain requirements for the sampling frequency. The sampling frequency fs≥2fImay, where fImay is the highest value in the input signal spectrum. Frequency; hold is to store the collected signal for a period of time; quantization is the process of converting the sampling voltage into an integer multiple of a certain minimum unit voltage △, and the divided levels are called quantization levels. The more levels, the better, A is called the quantization unit ; The so-called coding is to use binary code to represent the quantized level after quantization. In practical application, a highly integrated analog-to-digital converter CS5460A with 24-bit conversion bits, high-speed power calculation function and a serial interface is used.

隔离如图7所示,电流传感器的通讯信号在传输过程中会受到各种各样的干扰,本传感器为了保证信号的稳定使用信号隔离器,加入隔离器使电路高低压分离,保护低压电路不被高压电路干扰,在A/D转换器和MCU之间我们选用具有多通道配置和输出使能功能的四通道数字隔离器进行隔离和连接,内逻辑存储器为RAM存储器,这些器件的逻辑输入和输出缓冲器被TI的二氧化硅隔离屏蔽隔开,支持多种通道配置和最低不小于500kbps的数据速率,所选型号两端均可以采用5V电源供电,与低压系统兼容,并且能够实现电压转换功能,所选型号需有默认输出控制引脚,利用该引脚可以定义无输入电源时所采取的逻辑状态,同时在传感器壳体均匀涂抹一层屏蔽漆,油漆干燥形成漆膜后能起到导电作用,从而起到屏蔽电磁波干扰的作用,屏蔽漆就是用导电金属粉末添加于特定的树脂原料中以制成能够喷涂的油漆涂料。Isolation As shown in Figure 7, the communication signal of the current sensor will be subject to various disturbances during the transmission process. In order to ensure the stability of the signal, the sensor uses a signal isolator, adding an isolator to separate the high and low voltages of the circuit to protect the low-voltage circuit from being damaged. Interferenced by high-voltage circuits, we choose a four-channel digital isolator with multi-channel configuration and output enable functions for isolation and connection between the A/D converter and the MCU. The internal logic memory is RAM memory. The logic input and The output buffers are separated by TI's silicon dioxide isolation shield, support a variety of channel configurations and minimum data rates of 500kbps, both ends of the selected model can be powered by 5V power supply, compatible with low voltage systems, and can achieve voltage conversion Function, the selected model needs to have a default output control pin, which can be used to define the logic state taken when there is no input power supply, and at the same time, a layer of shielding paint is evenly applied to the sensor housing, and the paint can be dried to form a paint film. Conductive effect, thus playing the role of shielding electromagnetic wave interference, shielding paint is to add conductive metal powder to specific resin raw materials to make paint that can be sprayed.

MCU即微控制单元如图8所示,微控制单元对输入信号进行逻辑判断。MCU的定时器选择Programmable Timer(可编程定时器)该类Timer的定时时间是可以由用户的程序来控制的,控制的方式包括:时钟源的选择、分频数(Prescale)选择及预制数的设定等。外部中断采用上升沿触发,当输入信号大于设定值时自动触发。通讯接口采用SPI接口,此类接口是绝大多数MCU都提供的一种最基础的通讯方式,其数据传输采用同步时钟来控制。Bandgap禁带宽度,导带的最低点和价带的最高点的能量之差,也称能隙。直接读写IO口,当执行读IO口指令时,就是输入口;当执行写IO口指令则自动为输出口。采用RAM存储器,因为所存储数据经上传后即可清除,不需要长时间保存。电源管理器选用DC/DC调制IC,因供电电源为直流电源,不涉及交流电,只需升/降压调节即可。Watchdog(看门狗计时器)是大多数MCU的一种基本配置,此Watchdog满足即允许程序对其复位又能对其关闭,保障MCU因为意外的故障而导致死机提供了一种自我恢复能力。The MCU, the micro-control unit, is shown in Figure 8, and the micro-control unit performs logical judgment on the input signal. MCU's timer selection Programmable Timer (programmable timer) The timing of this type of Timer can be controlled by the user's program. The control methods include: clock source selection, frequency division (Prescale) selection and preset number selection settings etc. The external interrupt is triggered by the rising edge, and is automatically triggered when the input signal is greater than the set value. The communication interface adopts the SPI interface, which is the most basic communication method provided by most MCUs, and its data transmission is controlled by a synchronous clock. Bandgap is the energy difference between the lowest point of the conduction band and the highest point of the valence band, also known as the energy gap. Directly read and write the IO port. When the read IO port command is executed, it is an input port; when the write IO port command is executed, it is automatically an output port. RAM memory is used, because the stored data can be cleared after uploading, and it does not need to be stored for a long time. The power manager uses a DC/DC modulation IC. Since the power supply is a DC power supply, it does not involve AC power, and only needs to be adjusted up/down. Watchdog (watchdog timer) is a basic configuration of most MCUs. This Watchdog satisfies that it allows the program to reset and close it, and provides a self-recovery capability to ensure that the MCU crashes due to unexpected failures.

CAN接口6如图9所示,使用CAN传输是因为电流传感器可能会工作在电磁噪声很强或信号传输距离较远的环境中,采用CAN可以很好的解决这个问题。CAN由公/母头连接器组成,Pin脚数量4个,如图5,Pin a为供电电源VCC:12V;Pin b为CAN_L;Pin c为CAN_H;Pin d为GND。The CAN interface 6 is shown in Figure 9. The use of CAN transmission is because the current sensor may work in an environment with strong electromagnetic noise or a long signal transmission distance. The use of CAN can solve this problem very well. CAN consists of male/female connectors with 4 pins, as shown in Figure 5, Pin a is the power supply VCC: 12V; Pin b is CAN_L; Pin c is CAN_H; Pin d is GND.

电流测量过程:首先给电流传感器通电,当有电流经过分流器时,电流流经低温漂电阻,分流器测得一个电压信号,电压信号经过滤波电路过滤杂波,然后连接到A/D转换器的模拟量输入端,经过模数转换器后得到数字信号,A/D转换器将数字信号输出后通过隔离电路输出给MCU,由MCU进行逻辑判断后将数据通过CAN接口输出到CAN总线上。Current measurement process: first power on the current sensor, when there is current passing through the shunt, the current flows through the low temperature drift resistance, the shunt measures a voltage signal, the voltage signal is filtered by the filter circuit, and then connected to the A/D converter The analog input terminal of the MCU obtains a digital signal after passing through the analog-to-digital converter. The A/D converter outputs the digital signal and outputs it to the MCU through the isolation circuit. After the MCU performs logical judgment, the data is output to the CAN bus through the CAN interface.

上面结合附图对本发明进行了示例性描述,显然本发明具体实现并不受上述方式的限制,只要采用了本发明的方法构思和技术方案进行的各种非实质性的改进,或未经改进将本发明的构思和技术方案直接应用于其它场合的,均在本发明的保护范围之内。The present invention has been exemplarily described above in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited by the above methods, as long as various insubstantial improvements made by the method concept and technical solutions of the present invention are adopted, or no improvement is made. It is within the protection scope of the present invention to directly apply the concepts and technical solutions of the present invention to other occasions.

Claims (10)

1. A shunt-based current sensor, comprising: current sensor is equipped with and is used for connecting two copper bars of treating the collection device, and the sampling resistance both ends of shunt are connected to respectively on two copper bars, the shunt output is connected to the MCU input through filter circuit, AD converting circuit, buffer circuit, the CAN interface is connected to the MCU output, the CAN interface is used for connecting car CAN bus.
2. The shunt-based current sensor of claim 1, wherein: two the copper bar is fixed outside current sensor's casing, shunt, filter circuit, AD converting circuit, buffer circuit, MCU are fixed in the casing, the CAN interface is fixed at the casing tip.
3. The shunt-based current sensor of claim 2, wherein: each copper bar is provided with a bus current connecting hole, and the two ends of each copper bar are welded to the corresponding copper bar in a welding mode.
4. The shunt-based current sensor of claim 3, wherein: the current sensor monolithic stationary is in the casing based on the shunt, the casing is the cuboid structure, and only one end opening is used for fixed CAN interface, the copper bar is fixed at housing face and is stretched out the casing, the connecting hole stretches out the part of casing at the copper bar, housing face has paintd the shielding lacquer layer, sampling resistance is high-accuracy low temperature ticket resistance, sampling resistance terminal connection voltage sampling circuit, voltage sampling circuit are symmetrical difference amplifier circuit, difference amplifier circuit supply voltage 7V, low temperature ticket resistance terminal connection difference amplifier circuit Vin1 and Vin 2. And the output tail end V0 of the differential amplification circuit is connected with the Ui end of the filter circuit, the tail end U0+ of the filter circuit is connected with the input end of the A/D converter, and the filter circuit U0-is grounded.
5. The shunt-based current sensor of any one of claims 1-4, wherein: the current divider is composed of two identical A1 operational amplifier circuits and an A2 operational amplifier circuit to form an input stage, the anode of the input end of the A1 operational amplifier circuit is connected with a sampling resistor through a resistor R1, the anode of the input end of the A2 operational amplifier circuit is connected with another sampling resistor through a resistor R2, the output end of the A1 operational amplifier circuit is connected with the output end of the A2 operational amplifier circuit through a resistor R4, a resistor R3 and a resistor R5 which are sequentially connected in series, the cathode of the input end of the A1 operational amplifier circuit is connected between a resistor R4 and a resistor R4, the cathode of the input end of the A4 operational amplifier circuit is connected between the resistor R4 and the resistor R4, the series-connected resistor R4, the resistor R4 and the resistor R4 are connected in parallel with a capacitor C4, the output end of the A4 operational amplifier circuit is connected with the anode of the input end of the A4 operational amplifier circuit through the resistor R4, the output end of the A4 operational amplifier circuit is connected with the A4 through the resistor R4, and the cathode of the output end of the A4 amplifier circuit is connected with the input end of the A4 through the resistor R4, and the output end of the A4 circuit, The resistor R9 is grounded, and the output end of the A2 operational amplifier circuit is connected with the output end of the A3 operational amplifier circuit through the resistor R7 and the resistor R8.
6. The shunt-based current sensor of claim 5, wherein: a3 operational amplifier circuit is low temperature ticket low gain operational amplifier circuit, A1 and A2 operational amplifier circuit are low temperature ticket, high gain's operational amplifier circuit, electric capacity C1 is filter capacitor, resistance R1, resistance R2, resistance R6, resistance R7, resistance R9 are balanced resistance, resistance R3, resistance R4, resistance R5, resistance R8 are divider resistance, balanced resistance is used for balanced input end offset current.
7. The shunt-based current sensor of claim 6, wherein: the A/D conversion circuit selects a highly integrated analog-to-digital converter CS5460A with a conversion bit number of 24 bits, a high-speed electric energy calculation function and a serial interface. The A/D conversion circuit converts the analog signal into a digital signal and is connected with the VI port of the isolation circuit through the output port.
8. The shunt-based current sensor of claim 7, wherein: the isolation circuit selects a four-channel digital isolator with multi-channel configuration and output enabling functions for isolation and connection, a logic memory in the isolation circuit is an RAM memory, and the isolation circuit connects an output port V0 of the isolator with an input end SPI of the MCU.
9. The shunt-based current sensor of claim 8, wherein: the MCU is used for carrying out logic judgment on input signals, a timer, a communication interface, a power manager and a watchdog timer are arranged in the MCU, and the MCU is used for connecting the output end SPI of the micro control unit with the input port of the CAN.
10. The shunt-based current sensor of claim 9, wherein: the CAN interface output port is connected with the outside through a connector, the CAN interface is a connector provided with four Pin pins, wherein Pin a is a power supply VCC, Pin b is CAN _ L, Pin c is CAN _ H, and Pin d is GND.
CN202210475342.3A 2022-04-29 2022-04-29 Current sensing based on current divider Pending CN114859093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210475342.3A CN114859093A (en) 2022-04-29 2022-04-29 Current sensing based on current divider

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210475342.3A CN114859093A (en) 2022-04-29 2022-04-29 Current sensing based on current divider

Publications (1)

Publication Number Publication Date
CN114859093A true CN114859093A (en) 2022-08-05

Family

ID=82635218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210475342.3A Pending CN114859093A (en) 2022-04-29 2022-04-29 Current sensing based on current divider

Country Status (1)

Country Link
CN (1) CN114859093A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115290951A (en) * 2022-08-25 2022-11-04 蚌埠市双环电子集团股份有限公司 High-voltage-resistance current detection splitter for new energy automobile battery management system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2222977Y (en) * 1994-03-23 1996-03-20 朱进先 Compensation type constant-current automatic charging and discharging device for storage battery
CN101661057A (en) * 2009-09-27 2010-03-03 哈尔滨理工大学 Device for implementing power measurement based on resistance sampling by linear optocoupler
CN201497766U (en) * 2009-09-27 2010-06-02 哈尔滨理工大学 Current sensor for realizing voltage sampling for current divider by adopting linear photoelectric coupler
CN106443150A (en) * 2016-06-20 2017-02-22 深圳市沃特玛电池有限公司 Current sensor based on diverter
CN111781420A (en) * 2020-06-05 2020-10-16 武汉船用电力推进装置研究所(中国船舶重工集团公司第七一二研究所) Electric quantity acquisition module of direct current molded case circuit breaker
CN112630516A (en) * 2020-12-05 2021-04-09 西安翔腾微电子科技有限公司 High-precision sensor current signal sampling method and circuit
CN112649646A (en) * 2020-12-23 2021-04-13 南方电网电力科技股份有限公司 Giant magnetoresistance effect-based micro current sensor device and application method thereof
CN113484598A (en) * 2021-07-20 2021-10-08 贵州天义电器有限责任公司 Chip type current sensor circuit based on BusBar structure
CN114280350A (en) * 2021-12-15 2022-04-05 浙江巨磁智能技术有限公司 Large current measuring method based on high-precision current sensor and shunt

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2222977Y (en) * 1994-03-23 1996-03-20 朱进先 Compensation type constant-current automatic charging and discharging device for storage battery
CN101661057A (en) * 2009-09-27 2010-03-03 哈尔滨理工大学 Device for implementing power measurement based on resistance sampling by linear optocoupler
CN201497766U (en) * 2009-09-27 2010-06-02 哈尔滨理工大学 Current sensor for realizing voltage sampling for current divider by adopting linear photoelectric coupler
CN106443150A (en) * 2016-06-20 2017-02-22 深圳市沃特玛电池有限公司 Current sensor based on diverter
CN111781420A (en) * 2020-06-05 2020-10-16 武汉船用电力推进装置研究所(中国船舶重工集团公司第七一二研究所) Electric quantity acquisition module of direct current molded case circuit breaker
CN112630516A (en) * 2020-12-05 2021-04-09 西安翔腾微电子科技有限公司 High-precision sensor current signal sampling method and circuit
CN112649646A (en) * 2020-12-23 2021-04-13 南方电网电力科技股份有限公司 Giant magnetoresistance effect-based micro current sensor device and application method thereof
CN113484598A (en) * 2021-07-20 2021-10-08 贵州天义电器有限责任公司 Chip type current sensor circuit based on BusBar structure
CN114280350A (en) * 2021-12-15 2022-04-05 浙江巨磁智能技术有限公司 Large current measuring method based on high-precision current sensor and shunt

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115290951A (en) * 2022-08-25 2022-11-04 蚌埠市双环电子集团股份有限公司 High-voltage-resistance current detection splitter for new energy automobile battery management system

Similar Documents

Publication Publication Date Title
CN203705533U (en) Current detection circuit of Hall current sensor of electric automobile
CN100583644C (en) Integrating A/D convertion method and its A/D converter
CN103412168B (en) A kind of high-precision current sampling circuit of intelligent electric meter
CN108664439B (en) Analog quantity output circuit device with digital isolation
CN106646056B (en) Signal acquisition circuit powered by single lithium battery and acquisition method thereof
CN114859093A (en) Current sensing based on current divider
CN204065210U (en) The isolated DC voltage collection circuit of linear change
CN203881815U (en) Simple high-precision DC electronic load
CN204392210U (en) A kind of code signal change-over circuit
CN102035546A (en) Voltage current transformer
CN109347059A (en) A kind of hardware over-current protection method and system for bidirectional current output
CN205643468U (en) Electronic voltage transformer suitable for smart power grid power quality detection
CN209894870U (en) Conversion circuit for sampling output current of three-phase frequency converter
CN218567474U (en) Resistance measurement control circuit
CN204119024U (en) A kind of voltage signal conditioning circuit based on TL431
CN208383944U (en) Industrial robot controller busbar voltage detection circuit
CN113884963A (en) A high-precision DC standard electric energy meter
CN216449651U (en) A multi-channel high-precision high-voltage detection circuit
CN216209447U (en) Isolated form high voltage direct current sampling circuit
CN206848792U (en) Signal acquisition and processing apparatus and system
CN106324332A (en) Current sampling circuit of battery management system
CN114296019A (en) Temperature compensation structure of direct current sensor
CN211785771U (en) Current sampling circuit and fan drive system
CN202217012U (en) Microcurrent detection module
CN204117011U (en) A kind of voltage signal conditioning circuit based on controllable accurate source of stable pressure

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination