KR102582380B1 - Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor - Google Patents

Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor Download PDF

Info

Publication number
KR102582380B1
KR102582380B1 KR1020170137609A KR20170137609A KR102582380B1 KR 102582380 B1 KR102582380 B1 KR 102582380B1 KR 1020170137609 A KR1020170137609 A KR 1020170137609A KR 20170137609 A KR20170137609 A KR 20170137609A KR 102582380 B1 KR102582380 B1 KR 102582380B1
Authority
KR
South Korea
Prior art keywords
zero
current sensor
hall
point error
current
Prior art date
Application number
KR1020170137609A
Other languages
Korean (ko)
Other versions
KR20190044955A (en
Inventor
황규민
이병은
김준우
이윤녕
Original Assignee
에스케이온 주식회사
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 에스케이온 주식회사 filed Critical 에스케이온 주식회사
Priority to KR1020170137609A priority Critical patent/KR102582380B1/en
Publication of KR20190044955A publication Critical patent/KR20190044955A/en
Application granted granted Critical
Publication of KR102582380B1 publication Critical patent/KR102582380B1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/005Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L58/00Methods or circuit arrangements for monitoring or controlling batteries or fuel cells, specially adapted for electric vehicles
    • B60L58/10Methods or circuit arrangements for monitoring or controlling batteries or fuel cells, specially adapted for electric vehicles for monitoring or controlling batteries
    • B60L58/12Methods or circuit arrangements for monitoring or controlling batteries or fuel cells, specially adapted for electric vehicles for monitoring or controlling batteries responding to state of charge [SoC]
    • 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/20Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks using galvano-magnetic devices, e.g. Hall-effect devices, i.e. measuring a magnetic field via the interaction between a current and a magnetic field, e.g. magneto resistive or Hall effect devices
    • G01R15/202Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks using galvano-magnetic devices, e.g. Hall-effect devices, i.e. measuring a magnetic field via the interaction between a current and a magnetic field, e.g. magneto resistive or Hall effect devices using Hall-effect devices
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16571Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing AC or DC current with one threshold, e.g. load current, over-current, surge current or fault current
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • G01R31/006Testing of electric installations on transport means on road vehicles, e.g. automobiles or trucks
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3828Arrangements for monitoring battery or accumulator variables, e.g. SoC using current integration
    • 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/70Energy storage systems for electromobility, e.g. batteries

Abstract

본 발명에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치는, 기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서가 상기 배터리에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집하는 표본 수집부; 상기 다수 수집된 표본 중에서 둘 이상의 대표값을 추출하는 대표값 추출부; 상기 둘 이상의 대표값을 이용하여 상기 홀 타입 전류센서의 영점 오차를 산출하는 영점 오차 산출부; 및 상기 홀 타입 전류센서가 측정하는 제2 측정 전류값을 상기 영점 오차 산출부에 의해 산출된 영점 오차만큼 가감하여 상기 홀 타입 전류센서의 영점 오차를 보정하는 영점 오차 보정부;를 포함하여 이루어질 수 있다. 이러한 본 발명에 의하면, 배터리를 충방전시키는 과정에서 홀 타입 전류센서의 영점 오차를 보정할 수 있어, 홀 타입 전류센서의 측정 전류값에 대한 정확도를 한층 더 높일 수 있게 된다.The zero point error correction device for a Hall-type current sensor using a reference current sensor according to the present invention includes a first measurement current value output as the reference current sensor measures the current flowing in the battery, and a Hall-type current sensor measuring the current flowing in the battery. a sample collection unit that receives a second measured current value output as the current is measured and collects a plurality of the first measured current value and the second measured current value corresponding to the first measured current value as samples; a representative value extraction unit that extracts two or more representative values from the plurality of collected samples; a zero-point error calculation unit that calculates a zero-point error of the Hall-type current sensor using the two or more representative values; and a zero-point error correction unit that corrects the zero-point error of the Hall-type current sensor by adding or subtracting the second measurement current value measured by the Hall-type current sensor by the zero-point error calculated by the zero-point error calculation unit. there is. According to the present invention, the zero point error of the Hall-type current sensor can be corrected during the process of charging and discharging the battery, and the accuracy of the measured current value of the Hall-type current sensor can be further improved.

Description

기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치 및 방법{APPARATUS AND METHOD FOR CORRECTING ZERO OFFSET OF HALL TYPE CURRENT SENSOR USING REFERENCE CURRENT SENSOR}Device and method for correcting zero error of Hall type current sensor using reference current sensor {APPARATUS AND METHOD FOR CORRECTING ZERO OFFSET OF HALL TYPE CURRENT SENSOR USING REFERENCE CURRENT SENSOR}

본 발명은 기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 측정 전류값을 기준으로 홀 타입 전류센서의 영점 오차를 보정하는, 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치 및 방법에 관한 것이다.The present invention provides an apparatus and method for correcting the zero point error of a Hall-type current sensor using a reference current sensor, which corrects the zero-point error of the Hall-type current sensor based on the measured current value output as the reference current sensor measures the current flowing in the battery. It's about.

최근, 친환경적인 자동차로서 전기 차량(Electric Vehicle; EV)이 주목받고 있으며, 이러한 전기 차량은 충방전이 가능한 배터리(또는, 2차 전지)를 동력원으로서 탑재하고 있다.Recently, electric vehicles (EVs) have been attracting attention as environmentally friendly vehicles, and these electric vehicles are equipped with batteries (or secondary batteries) that can be charged and discharged as a power source.

다만, 전기 차량에 탑재되는 배터리는 과충전될 경우 폭발의 위험이 있으며, 이에 따라 배터리의 충전상태(State of Charge; SOC)를 정확하게 추정하는 것이 매우 중요하다. 배터리의 충전상태는 배터리에 충전되는 전류 또는 배터리에서 방전되는 전류를 적산하여 추정되는데, 이러한 배터리의 충전상태를 정확하게 추정하기 위해서는 전류센서를 통한 정확한 전류 측정이 선행되어야 한다.However, batteries mounted in electric vehicles have a risk of explosion if overcharged, and therefore, it is very important to accurately estimate the state of charge (SOC) of the battery. The state of charge of a battery is estimated by accumulating the current charging the battery or the current discharging from the battery. In order to accurately estimate the state of charge of the battery, accurate current measurement using a current sensor must be preceded.

전기 차량에 탑재되는 배터리에 흐르는 전류를 측정하는 전류센서로는 홀 타입(Hall type) 전류센서, 션트 저항 타입(shunt resistor type) 전류센서, 그리고 플럭스 게이트 타입(flux gate type) 전류센서 등이 있다.Current sensors that measure the current flowing in batteries mounted on electric vehicles include Hall type current sensors, shunt resistor type current sensors, and flux gate type current sensors. .

이 중에서 션트 저항 타입 전류센서와 플럭스 게이트 타입 전류센서는 전기 차량을 구동하기 전에(즉, 시동 off) 영점을 보정하면, 전기 차량을 구동한 후에(즉, 시동 on) 배터리를 충전 또는 방전하더라도 영점 오차가 거의 존재하지 않아, 배터리에 흐르는 전류를 높은 정밀도로 측정할 수 있다. 이에 반해, 홀 타입 전류센서는 전기 차량을 구동하기 전에 영점을 보정하더라도, 전기 차량을 구동한 후에 배터리를 충전 또는 방전시킬 경우 영점 오차가 발생하여 배터리에 흐르는 전류의 측정값에 대한 신뢰도가 떨어진다.Among these, the shunt resistance type current sensor and the flux gate type current sensor will have zero point if the zero point is corrected before driving the electric vehicle (i.e., ignition off), even if the battery is charged or discharged after driving the electric vehicle (i.e., ignition on). Since there is almost no error, the current flowing in the battery can be measured with high precision. On the other hand, even if the zero point of a Hall-type current sensor is corrected before driving an electric vehicle, a zero point error occurs when the battery is charged or discharged after driving the electric vehicle, reducing the reliability of the measured value of the current flowing in the battery.

이에 따라, 전기 차량에 탑재되는 배터리에 흐르는 전류를 정확하게 측정할 목적으로 션트 저항 타입 전류센서나 플럭스 게이트 타입 전류센서를 주로 이용하며, 홀 타입 전류센서는 션트 저항 타입 전류센서나 플럭스 게이트 타입 전류센서의 고장 등 동작 감시 용도로서 이용한다. Accordingly, to accurately measure the current flowing in the battery mounted on an electric vehicle, a shunt resistance type current sensor or a flux gate type current sensor is mainly used, and the Hall type current sensor is a shunt resistance type current sensor or a flux gate type current sensor. It is used for operation monitoring purposes such as malfunctions.

이 경우 만일 전기 차량 운행 중에 션트 저항 타입 전류센서나 플럭스 게이트 타입 전류센서에 고장이 발생할 경우에는, 이를 대체하여 홀 타입 전류센서로 배터리에 흐르는 전류를 측정할 것이 요구되는데, 상술한 바와 같이 홀 타입 전류는 배터리를 충전 또는 방전시킬 경우 영점 오차가 발생할 수 있다. 따라서, 배터리에 전류가 흐르지 않을 때뿐만 아니라 배터리가 충전이나 방전될 경우에도 홀 타입 전류센서의 영점 오차를 보정할 수 있는 방안이 마련될 필요가 있다.In this case, if a shunt resistance type current sensor or flux gate type current sensor fails while the electric vehicle is in operation, it is required to replace it with a Hall type current sensor to measure the current flowing in the battery. As described above, the Hall type current sensor is required to measure the current flowing in the battery. Current may have a zero point error when charging or discharging the battery. Therefore, it is necessary to provide a method for correcting the zero point error of the Hall-type current sensor not only when no current flows in the battery, but also when the battery is being charged or discharged.

종래에는 배터리에 전류가 흐르지 않을 때 전류센서로 전류를 측정하고, 전류센서로 측정된 전류값이 0A가 아닌 값을 가리킬 경우 그 0A가 아닌 값을 오차로 취급하여, 이후 전류센서에 의해 측정되는 전류값에 상기 오차를 가감하는 방식으로 전류센서의 영점오차를 보정해 왔다. 예를 들어, 특허문헌 1은 하이브리드 차량에 탑재된 고전압배터리의 전류센서 오차 보정방법에 관한 것으로, 차량에 전류 흐름이 발생하지 않을 때 전류값을 측정하여 전류센서의 영점 오차를 보정하는 방안을 개시하고 있다.Conventionally, when no current flows in the battery, the current is measured with a current sensor, and if the current value measured by the current sensor indicates a value other than 0A, the value other than 0A is treated as an error, and then the current value measured by the current sensor is treated as an error. The zero point error of the current sensor has been corrected by adding or subtracting the above error from the current value. For example, Patent Document 1 relates to a method for correcting the error of a current sensor of a high-voltage battery mounted on a hybrid vehicle, and discloses a method of correcting the zero point error of the current sensor by measuring the current value when no current flow occurs in the vehicle. I'm doing it.

한국 등록특허공보 제1054958호(공개일: 2011.08.01)Korean Patent Publication No. 1054958 (Publication Date: 2011.08.01)

본 발명은 상기와 같은 문제점을 해결하기 위해 안출된 것으로서, 배터리가 충전이나 방전될 경우에 홀 타입 전류센서의 영점 오차를 보정할 수 있는 장치 및 방법을 제공하는 것에 그 목적이 있다.The present invention was developed to solve the above problems, and its purpose is to provide a device and method that can correct the zero point error of a Hall-type current sensor when the battery is charged or discharged.

상기와 같은 목적을 달성하기 위하여, 본 발명에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치는, 기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서가 상기 배터리에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집하는 표본 수집부; 상기 다수 수집된 표본 중에서 둘 이상의 대표값을 추출하는 대표값 추출부; 상기 둘 이상의 대표값을 이용하여 상기 홀 타입 전류센서의 영점 오차를 산출하는 영점 오차 산출부; 및 상기 홀 타입 전류센서가 측정하는 제2 측정 전류값을 상기 영점 오차 산출부에 의해 산출된 영점 오차만큼 가감하여 상기 홀 타입 전류센서의 영점 오차를 보정하는 영점 오차 보정부;를 포함하여 이루어질 수 있다.In order to achieve the above object, the zero point error correction device for a Hall-type current sensor using a reference current sensor according to the present invention includes a first measured current value output as the reference current sensor measures the current flowing in the battery, and The Hall-type current sensor receives the second measured current value output as it measures the current flowing in the battery, and uses the first measured current value and the second measured current value corresponding to the first measured current value as a sample. A specimen collection unit that collects multiple samples; a representative value extraction unit that extracts two or more representative values from the plurality of collected samples; a zero-point error calculation unit that calculates a zero-point error of the Hall-type current sensor using the two or more representative values; and a zero-point error correction unit that corrects the zero-point error of the Hall-type current sensor by adding or subtracting the second measurement current value measured by the Hall-type current sensor by the zero-point error calculated by the zero-point error calculation unit. there is.

여기서, 상기 표본 수집부는, 상기 제1 측정 전류값을 x축으로 하고 상기 제2 측정 전류값을 y축으로 한 2차원 평면에 상기 다수 수집된 표본을 나타낼 수 있고, 상기 대표값 추출부는, 상기 제1 측정 전류값의 둘 이상 기설정된 전류 구간 각각에서 상기 대표값을 추출할 수 있다.Here, the sample collection unit may display the plurality of collected samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis, and the representative value extractor may The representative value may be extracted from each of two or more preset current sections of the first measured current value.

여기서, 상기 대표값 추출부는, 상기 기설정된 전류 구간에 포함되어 있는 각 표본을 중심으로 동일 크기의 원을 그린 후 상기 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색하고, 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 상기 대표값으로 추출할 수 있다.Here, the representative value extraction unit draws circles of the same size centered on each sample included in the preset current section, searches for the circle containing the most samples among the circles, and searches for the circle containing the most samples among the circles. The sample with the minimum distance variance from one sample to another sample can be extracted as the representative value.

그리고 상기 영점 오차 산출부는, 상기 2차원 평면에서 상기 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출할 수 있다.Additionally, the zero error calculation unit may create a straight line connecting the two or more representative values in the two-dimensional plane, and calculate the y-intercept of the straight line as the zero error of the Hall-type current sensor.

또는, 상기 영점 오차 산출부는, 상기 2차원 평면에서 상기 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출할 수 있다.Alternatively, the zero error calculation unit may create a trend line for the two or more representative values in the two-dimensional plane, and calculate the y-intercept of the trend line as the zero error of the Hall-type current sensor.

한편, 본 발명에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법은, 기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서가 상기 배터리에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집하는 표본 수집 단계; 상기 다수 수집된 표본 중에서 둘 이상의 대표값을 추출하는 대표값 추출 단계; 상기 둘 이상의 대표값을 이용하여 상기 홀 타입 전류센서의 영점 오차를 산출하는 영점 오차 산출 단계; 및 상기 홀 타입 전류센서가 측정하는 제2 측정 전류값을 상기 영점 오차만큼 가감하여 상기 홀 타입 전류센서의 영점 오차를 보정하는 영점 오차 보정 단계;를 포함하여 이루어질 수 있다.Meanwhile, the zero point error correction method of a Hall-type current sensor using a reference current sensor according to the present invention includes the first measurement current value output as the reference current sensor measures the current flowing in the battery, and the Hall-type current sensor measuring the current flowing in the battery. A sample collection step of receiving a second measured current value output as the current flowing through is measured, and collecting a plurality of the first measured current value and the second measured current value corresponding to the first measured current value as samples; A representative value extraction step of extracting two or more representative values from the plurality of collected samples; A zero-point error calculation step of calculating a zero-point error of the Hall-type current sensor using the two or more representative values; and a zero-point error correction step of correcting the zero-point error of the Hall-type current sensor by adding or subtracting the second measurement current value measured by the Hall-type current sensor by the zero-point error.

여기서, 상기 표본 수집 단계는, 상기 제1 측정 전류값을 x축으로 하고 상기 제2 측정 전류값을 y축으로 한 2차원 평면에 상기 다수 수집된 표본을 나타내는 단계를 더 포함할 수 있고, 상기 대표값 추출 단계는, 상기 제1 측정 전류값의 둘 이상 기설정된 전류 구간 각각에서 상기 대표값을 추출할 수 있다.Here, the sample collection step may further include displaying the plurality of collected samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis, In the representative value extraction step, the representative value may be extracted from each of two or more preset current sections of the first measured current value.

여기서, 상기 대표값 추출 단계는, 상기 기설정된 전류 구간에 포함되어 있는 각 표본을 중심으로 동일 크기의 원을 그린 후 상기 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색하고, 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 상기 대표값으로 추출할 수 있다.Here, in the representative value extraction step, circles of the same size are drawn centering on each sample included in the preset current section, and then the circle containing the most samples among the circles is searched and included within the searched circle. The sample with the minimum distance variance from one sample to another sample can be extracted as the representative value.

그리고 상기 영점 오차 산출 단계는, 상기 2차원 평면에서 상기 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출할 수 있다.In the zero error calculation step, a straight line connecting the two or more representative values can be created in the two-dimensional plane, and the y-intercept of the straight line can be calculated as the zero error of the Hall-type current sensor.

또는, 상기 영점 오차 산출 단계는, 상기 2차원 평면에서 상기 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출할 수 있다.Alternatively, the zero error calculation step may create a trend line for the two or more representative values in the two-dimensional plane, and calculate the y-intercept of the trend line as the zero error of the Hall-type current sensor.

본 발명에 의하면, 기준 전류센서가 배터리에 흐르는 전류(충전 전류 또는 방전 전류)를 측정함에 따라 출력하는 제1 측정 전류값을 기준으로 홀 타입 전류센서의 영점 오차를 보정할 수 있게 됨으로써, 배터리에 전류가 흐르지 않을 때를 기준으로 홀 타입 전류센서의 영점 오차를 보정하던 종래 방식과는 달리, 배터리가 충전 또는 방전되는 과정에서도 홀 타입 전류센서의 영점 오차를 보정할 수 있게 된다.According to the present invention, it is possible to correct the zero point error of the Hall-type current sensor based on the first measured current value output as the reference current sensor measures the current (charge current or discharge current) flowing in the battery, thereby making it possible to correct the zero point error in the battery. Unlike the conventional method of correcting the zero point error of the Hall-type current sensor based on when no current flows, the zero point error of the Hall-type current sensor can be corrected even during the process of charging or discharging the battery.

또한, 본 발명에 의하면, 배터리에 흐르는 전류를 기준 전류센서를 통해 측정하는 중에 상기 기준 전류센서에 고장이 발생하더라도, 고장 발생 전의 기준 전류센서를 통해 홀 타입 전류센서의 영점 오차가 보정됨에 따라, 배터리에 흐르는 전류를 홀 타입 전류센서를 통해서도 정확도 높게 측정할 수 있게 된다.In addition, according to the present invention, even if a failure occurs in the reference current sensor while measuring the current flowing in the battery through the reference current sensor, the zero point error of the Hall-type current sensor is corrected through the reference current sensor before the failure occurred, The current flowing in the battery can be measured with high accuracy using a Hall-type current sensor.

도 1은 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치를 개략적으로 나타낸 도면이다.
도 2는 제1 측정 전류값을 x축으로 하고 제2 측정 전류값을 y축으로 한 2차원 평면에 다수의 표본을 나타낸 도면이다.
도 3은 도 2에 나타낸 다수의 표본 중 제2 전류 구간에 속하는 표본에 대해 DBSCAN 알고리즘을 이용하는 모습을 설명하기 위해 나타낸 도면이다.
도 4는 도 3에서 가장 많은 표본을 포함하고 있는 원 안의 표본에 대해 K-means 알고리즘을 이용하는 모습을 설명하기 위해 나타낸 도면이다.
도 5는 도 2에 나타낸 다수의 표본 중 추출된 두 개의 대표값을 직선으로 이은 모습을 나타낸 도면이다.
도 6은 세 개의 대표값에 대한 추세선을 나타낸 도면이다.
도 7은 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법을 나타낸 흐름도이다.
1 is a diagram schematically showing a zero point error correction device for a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention.
Figure 2 is a diagram showing a number of samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis.
FIG. 3 is a diagram illustrating the use of the DBSCAN algorithm for a sample belonging to the second current section among the multiple samples shown in FIG. 2.
FIG. 4 is a diagram illustrating the use of the K-means algorithm for samples within the circle containing the most samples in FIG. 3.
Figure 5 is a diagram showing two representative values extracted from the plurality of samples shown in Figure 2 connected with a straight line.
Figure 6 is a diagram showing trend lines for three representative values.
Figure 7 is a flowchart showing a zero point error correction method of a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention.

이하에서는 첨부한 도면을 참조하여 본 발명에 대해 상세하게 설명한다. 본 발명의 요지를 불필요하게 흐릴 수 있는 공지 기능 및 구성에 대한 상세한 설명은 생략하기로 한다.Hereinafter, the present invention will be described in detail with reference to the attached drawings. Detailed descriptions of well-known functions and configurations that may unnecessarily obscure the gist of the present invention will be omitted.

도 1은 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치를 개략적으로 나타낸 도면이다.1 is a diagram schematically showing a zero point error correction device for a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention.

본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치(1000)는, 기준 전류센서(20)로부터 제1 측정 전류값을 입력받고, 홀 타입 전류센서(30)로부터 제2 측정 전류값을 입력받아 둘 이상의 대표값을 추출한 뒤, 이를 이용하여 홀 타입 전류센서(30)의 영점 오차를 산출 및 보정한다.The zero point error correction device 1000 for a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention receives the first measured current value from the reference current sensor 20 and receives the first measured current value from the Hall-type current sensor 30. After receiving the second measured current value from and extracting two or more representative values, the zero point error of the Hall-type current sensor 30 is calculated and corrected using this.

도 1에 도시한 배터리(10)는 전기 차량에 탑재되는 것일 수 있다. 그리고 기준 전류센서(20)는 션트 저항 타입 전류센서 및 플럭스 게이트 타입 전류센서와 같이 전기 차량을 구동하기 전에 영점을 보정하면, 전기 차량을 구동한 후에 배터리를 충전 또는 방전하더라도 영점 오차가 거의 존재하지 않아, 배터리에 흐르는 전류(즉, 충전 전류 또는 방전 전류)를 높은 정밀도로 측정할 수 있는 전류센서를 의미한다. The battery 10 shown in FIG. 1 may be mounted on an electric vehicle. In addition, if the zero point of the reference current sensor 20 is corrected before driving an electric vehicle, like a shunt resistor type current sensor and a flux gate type current sensor, there is almost no zero point error even if the battery is charged or discharged after driving the electric vehicle. It refers to a current sensor that can measure the current flowing in the battery (i.e. charging current or discharging current) with high precision.

배터리(10)에 전류가 흐를 경우, 배터리(10)에 내장 또는 외장된 기준 전류센서(20)는 배터리(10)에 흐르는 전류를 측정함에 따라 제1 측정 전류값을 출력한다. When current flows through the battery 10, the reference current sensor 20 built into or external to the battery 10 measures the current flowing through the battery 10 and outputs a first measured current value.

그리고 배터리(10)에 전류가 흐를 경우, 배터리(10)에 내장 또는 외장된 홀 타입 전류센서(20) 역시 배터리(10)에 흐르는 전류를 측정하며, 이에 따라 제2 측정 전류값을 출력한다. And when current flows in the battery 10, the Hall-type current sensor 20 built in or external to the battery 10 also measures the current flowing in the battery 10 and outputs a second measured current value accordingly.

다만, 배터리를 충방전시키는 과정에서 기준 전류센서(20)와 달리 홀 타입 전류센서(30)는 외부 자계 요인 등으로 인해 영점 오차가 발생할 수 있다. 이에 따라, 배터리(10)를 충방전시키는 과정에서 홀 타입 전류센서(30)의 영점 오차를 수시로 보정해 줄 필요가 있다.However, in the process of charging and discharging the battery, unlike the reference current sensor 20, the Hall-type current sensor 30 may have a zero point error due to external magnetic field factors. Accordingly, it is necessary to correct the zero point error of the Hall-type current sensor 30 from time to time in the process of charging and discharging the battery 10.

이를 위해, 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치(1000)는 표본 수집부(100), 대표값 추출부(200), 영점 오차 산출부(300) 및 영점 오차 보정부(400)를 포함하여 이루어질 수 있다.To this end, the zero error correction device 1000 of a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention includes a sample collection unit 100, a representative value extraction unit 200, and a zero error calculation unit 300. ) and a zero point error correction unit 400.

표본 수집부(100)는 기준 전류센서(20)가 배터리(10)에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서(30)가 배터리(10)에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 제2 측정 전류값을 표본으로서 다수 수집한다. 여기서, 제1 측정 전류값에 대응되는 제2 측정 전류값이란, 기준 전류센서(20)가 배터리(10)에 흐르는 전류를 측정함에 따라 출력하는 전류값(즉, 제1 전류값)에 대응하여, 홀 타입 전류센서(30)가 상기 기준 전류센서(20)와 동일한 전류를 측정함에 따라 출력하는 전류값(즉, 제2 측정 전류값)을 의미한다.The sample collection unit 100 measures the first measured current value output as the reference current sensor 20 measures the current flowing in the battery 10 and the current flowing in the battery 10 by the Hall-type current sensor 30. The second measured current value output during measurement is input, and a plurality of the first measured current value and the second measured current value corresponding to the first measured current value are collected as samples. Here, the second measured current value corresponding to the first measured current value corresponds to the current value (i.e., first current value) output as the reference current sensor 20 measures the current flowing through the battery 10. , refers to the current value output as the Hall-type current sensor 30 measures the same current as the reference current sensor 20 (i.e., the second measured current value).

표본 수집부(100)는 제1 측정 전류값과 이에 대응되는 제2 측정 전류값을 일정 주기(예를 들어, 100ms)로 다수 수집할 수 있다.The sample collection unit 100 may collect a plurality of first measured current values and corresponding second measured current values at a certain period (for example, 100 ms).

홀 타입 전류센서(30)에 영점 오차가 발생하지 않았을 경우에는, 기준 전류센서(20)가 출력하는 제1 측정 전류값과 홀 타입 전류센서(30)가 출력하는 제2 측정 전류값이 서로 동일하다. 하지만 홀 타입 전류센서(30)에 영점 오차가 발생한 경우에는, 홀 타입 전류센서(30)가 출력하는 제2 측정 전류값이 상기 영점 오차로 인해 부정확해지기 때문에 홀 타입 전류센서(30)의 영점 오차를 보정해주어야 한다.If no zero error occurs in the Hall-type current sensor 30, the first measurement current value output by the reference current sensor 20 and the second measurement current value output by the Hall-type current sensor 30 are the same. do. However, when a zero point error occurs in the Hall-type current sensor 30, the second measured current value output by the Hall-type current sensor 30 becomes inaccurate due to the zero point error, so the zero point of the Hall-type current sensor 30 Errors must be corrected.

도 2는 제1 측정 전류값을 x축으로 하고 제2 측정 전류값을 y축으로 한 2차원 평면에 다수의 표본을 나타낸 도면으로서, 표본 수집부(100)는 수집한 다수의 표본을 도 2에 도시된 바와 같은 2차원 평면에 나타낼 수 있다.Figure 2 is a diagram showing a plurality of samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis. It can be represented on a two-dimensional plane as shown in .

또한, 표본 수집부(100)는 수집한 표본의 개수가 부족하다고 판단될 경우에는 표본의 수집 주기를 줄임으로써 보다 많은 표본을 수집할 수 있다.Additionally, when the sample collection unit 100 determines that the number of collected samples is insufficient, it can collect more samples by reducing the sample collection cycle.

대표값 추출부(200)는 표본 수집부(100)에 의해 다수 수집된 표본 중에서 둘 이상의 대표값을 추출한다. 이 경우 대표값 추출부(200)는 제1 측정 전류값의 둘 이상 기설정된 전류 구간(예를 들어, 도 2에 도시한 제1 전류 구간 및 제2 전류 구간) 각각에서 대표값을 추출할 수 있다.The representative value extraction unit 200 extracts two or more representative values from a plurality of samples collected by the sample collection unit 100. In this case, the representative value extraction unit 200 can extract a representative value from each of two or more preset current sections (for example, the first current section and the second current section shown in FIG. 2) of the first measured current value. there is.

도 3은 도 2에 나타낸 다수의 표본 중 제2 전류 구간에 속하는 표본에 대해 DBSCAN 알고리즘을 이용하는 모습을 설명하기 위해 나타낸 도면이고, 도 4는 도 3에서 가장 많은 표본을 포함하고 있는 원 안의 표본에 대해 K-means 알고리즘을 이용하는 모습을 설명하기 위해 나타낸 도면이다.FIG. 3 is a diagram showing the use of the DBSCAN algorithm for samples belonging to the second current section among the multiple samples shown in FIG. 2, and FIG. 4 shows the samples within the circle containing the most samples in FIG. 3. This is a diagram to explain how to use the K-means algorithm.

대표값 추출부(200)는 DBSCAN 알고리즘 및 K-means 알고리즘을 포함할 수 있으며, 이러한 알고리즘을 이용하여 표본 수집부(100)에 의해 다수 수집된 표본 중에서 둘 이상의 대표값을 추출할 수 있다.The representative value extraction unit 200 may include a DBSCAN algorithm and a K-means algorithm, and two or more representative values may be extracted from a plurality of samples collected by the sample collection unit 100 using these algorithms.

먼저, 대표값 추출부(200)는 DBSCAN 알고리즘을 이용하여 기설정된 전류 구간에 포함되어 있는 다수 수집된 표본에 대하여, 각 표본을 중심으로 하는 동일 크기의 원을 다수 그린 후 상기 다수의 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색한다. First, the representative value extraction unit 200 draws a plurality of circles of the same size centered on each sample for a plurality of collected samples included in a preset current section using the DBSCAN algorithm, and then draws the largest circle among the plurality of circles. Search for circles containing many samples.

구체적으로, 대표값 추출부(200)는 도 3에 도시된 바와 같이 기설정된 전류 구간에 수집된 각 표본을 중심으로 동일 크기의 원을 그리며, 이 경우 어느 표본을 중심으로 하는 원은 1개의 표본만을 포함하나, 다른 표본을 중심으로 하는 원은 6개의 표본을 포함한다. 이 경우 대표값 추출부(200)는 상기 6개의 표본을 포함하고 있는 원을 표본의 대표값을 추출하기 위한 원으로서 검색한다. 이와 같이 대표값 추출부(200)가 DBSCAN 알고리즘을 이용하여 표본의 대표값을 추출하기 위한 원을 검색하는 것은 노이즈 성격의 표본을 대표값 추출에서 제외시킴으로써, 보다 정확한 영점 오차를 산출해내기 위함이다.Specifically, the representative value extraction unit 200 draws circles of the same size centered on each sample collected in a preset current section as shown in FIG. 3. In this case, a circle centered on a sample represents one sample. A circle containing only one sample, but centered on another sample, contains six samples. In this case, the representative value extraction unit 200 searches the circle containing the six samples as a circle for extracting the representative value of the sample. In this way, the representative value extraction unit 200 searches for a circle to extract the representative value of the sample using the DBSCAN algorithm to calculate a more accurate zero point error by excluding samples of noise nature from representative value extraction. .

비록 도 3에서는 표본의 대표값을 추출하기 위한 원을 검색하는 모습을 제2 전류 구간에 대해서만 도시하였으나, 대표값 추출부(200)는 제1 전류 구간의 경우에도 이와 동일한 방법을 통해 가장 많은 표본을 포함하고 있는 원을 표본의 대표값을 추출하기 위한 원으로서 검색한다. Although FIG. 3 shows the search for a circle to extract representative values of samples only for the second current section, the representative value extractor 200 extracts the largest number of samples through the same method in the case of the first current section as well. The circle containing is searched as a circle for extracting the representative value of the sample.

이후, 대표값 추출부(200)는 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 대표값으로 추출한다. Thereafter, the representative value extraction unit 200 extracts the sample with the minimum distance variance from one sample included in the searched circle to another sample as the representative value.

예를 들어, 대표값 추출부(200)는 도 4(a)의 경우 다음의 수학식 1과 같이 거리 분산(Vs1)을 계산한다.For example, in the case of FIG. 4(a), the representative value extraction unit 200 calculates the distance variance (V s1 ) as shown in Equation 1 below.

[수학식 1][Equation 1]

그리고 대표값 추출부(200)는 도 4(b)의 경우 다음의 수학식 2와 같이 거리 분산(Vs2)을 계산한다.And in the case of FIG. 4(b), the representative value extraction unit 200 calculates the distance variance (V s2 ) as shown in Equation 2 below.

[수학식 2][Equation 2]

이와 같이 대표값 추출부(200)는 상기 검색된 원 안에 포함되어 있는 표본 각각에 대해 거리 분산을 계산한 뒤, 거리 분산이 최소가 되는 표본(도 4(a)의 중앙에 위치한 표본)을 기설정된 전류 구간에 다수 수집된 표본의 대표값으로 추출한다. 이와 같이 대표값 추출부(200)가 K-means 알고리즘을 이용하여 다수 수집된 표본 중 대표값을 추출함으로써, 전류센서(30)의 영점 오차를 보다 정확하게 산출해낼 수 있게 된다.In this way, the representative value extraction unit 200 calculates the distance variance for each sample included in the searched circle, and then selects the sample with the minimum distance variance (the sample located in the center of Figure 4(a)) as a preset It is extracted as a representative value of many samples collected in the current section. In this way, the representative value extraction unit 200 extracts a representative value from a large number of collected samples using the K-means algorithm, making it possible to calculate the zero error of the current sensor 30 more accurately.

영점 오차 산출부(300)는 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값을 이용하여 홀 타입 전류센서(30)의 영점 오차를 산출한다. The zero error calculation unit 300 calculates the zero error of the Hall-type current sensor 30 using two or more representative values extracted by the representative value extraction unit 200.

구체적으로, 영점 오차 산출부(300)는 도 5에 도시된 바와 같이 2차원 평면에서 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편(Y)을 홀 타입 전류센서(30)의 영점 오차로 산출할 수 있다. 다만, 이 경우는 둘 이상의 대표값이 한 직선상에 위치하는 경우에 한해서 홀 타입 전류센서(30)의 영점 오차를 산출할 수 있다.Specifically, the zero point error calculation unit 300 creates a straight line connecting two or more representative values extracted by the representative value extracting unit 200 in a two-dimensional plane as shown in FIG. 5, and the y-intercept of the straight line ( Y) can be calculated as the zero error of the Hall-type current sensor 30. However, in this case, the zero error of the Hall-type current sensor 30 can be calculated only when two or more representative values are located on one straight line.

이에 따라, 영점 오차 산출부(300)는 도 6에 도시된 바와 같이(도 6은 도 5와 달리 대표값만을 도시함) 2차원 평면에서 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편(Y)을 홀 타입 전류센서(30)의 영점 오차로 산출할 수 있다. 여기서, 추세선은 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값으로부터의 거리 분산이 최소가 되는 직선을 의미한다.Accordingly, as shown in FIG. 6 (FIG. 6 shows only representative values, unlike FIG. 5), the zero point error calculation unit 300 generates two or more values extracted by the representative value extraction unit 200 in a two-dimensional plane. A trend line can be created for the representative value, and the y-intercept (Y) of the trend line can be calculated as the zero error of the Hall-type current sensor 30. Here, the trend line refers to a straight line in which the dispersion of distances from two or more representative values extracted by the representative value extraction unit 200 is minimized.

영점 오차 보정부(400)는 영점 오차 산출부(300)에 의해 산출된 영점 오차를 이용해서 전류센서(30)의 영점 오차를 보정한다. 예를 들어, 도 5 또는 도 6의 경우 영점 오차 산출부(300)에 의해 산출되는 영점 오차는 Y이므로, 영점 오차 보정부(400)는 이후에 홀 타입 전류센서(30)가 측정하는 제2 측정 전류값에서 Y만큼 감산함으로써 홀 타입 전류센서(30)의 영점 오차를 보정한다. 그리고 만일 영점 오차 산출부(300)에 의해 산출되는 영점 오차가 -Y인 경우, 영점 오차 보정부(400)는 이후에 홀 타입 전류센서(30)가 측정하는 측정 전류값에서 Y만큼 가산함으로써 홀 타입 전류센서(30)의 영점 오차를 보정한다.The zero point error correction unit 400 corrects the zero point error of the current sensor 30 using the zero point error calculated by the zero point error calculation unit 300. For example, in the case of FIG. 5 or 6, the zero error calculated by the zero error calculation unit 300 is Y, so the zero error correction unit 400 subsequently measures the second The zero point error of the Hall-type current sensor 30 is corrected by subtracting Y from the measured current value. And if the zero error calculated by the zero error calculation unit 300 is -Y, the zero error correction unit 400 adds Y to the measurement current value measured by the Hall type current sensor 30 to determine the Hall value. Correct the zero point error of the type current sensor (30).

도 7은 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법을 나타낸 흐름도로서, 이하에서는 도 7을 더 참고하여 본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법에 대해 설명하기로 한다.Figure 7 is a flowchart showing a zero point error correction method of a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention. Hereinafter, with further reference to Figure 7, the reference current sensor according to an embodiment of the present invention will be described. We will now explain how to correct the zero point error of the Hall-type current sensor used.

본 발명의 일 실시예에 따른 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법은, 먼저 기준 전류센서(20)가 배터리(10)에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서(30)가 상기 배터리(10)에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집한다(S100). 여기서, 표본 수집부(100)는 수집한 다수의 표본을, 도 2에 도시된 바와 같이 제1 측정 전류값을 x축으로 하고 제2 측정 전류값을 y축으로 한 2차원 평면에 나타낼 수 있다.The zero point error correction method of a Hall-type current sensor using a reference current sensor according to an embodiment of the present invention first measures the first measured current value output as the reference current sensor 20 measures the current flowing in the battery 10. And, the Hall-type current sensor 30 receives a second measured current value output as it measures the current flowing in the battery 10, and receives the first measured current value and the second measured current value corresponding to the first measured current value. A plurality of second measured current values are collected as samples (S100). Here, the sample collection unit 100 may display the collected plurality of samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis, as shown in FIG. 2. .

그리고 표본 수집부(100)는 수집한 표본의 개수가 부족하다고 판단될 경우 제1 측정 전류값 및 이에 대응되는 제2 측정 전류값을 표본으로서 더 수집하며, 수집한 표본의 개수가 충분하다고 판단될 경우에는 다음 단계가 진행된다(S200).Additionally, when the sample collection unit 100 determines that the number of collected samples is insufficient, it further collects the first measured current value and the second measured current value corresponding thereto as samples, and when it determines that the number of collected samples is sufficient, the sample collection unit 100 further collects the first measured current value and the corresponding second measured current value as samples. In this case, the next step proceeds (S200).

표본 수집부(100)에 의해 표본 개수가 충분하다고 판단될 경우, 대표값 추출부(200)는 DBSCAN 알고리즘 및 K-means 알고리즘을 이용하여 다수 수집된 표본 중 둘 이상의 대표값을 추출한다(S300). 여기서, 대표값 추출부(200)는 제1 측정 전류값의 둘 이상 기설정된 전류 구간 각각에서 대표값을 추출할 수 있다. If the sample collection unit 100 determines that the number of samples is sufficient, the representative value extraction unit 200 extracts two or more representative values from the multiple collected samples using the DBSCAN algorithm and the K-means algorithm (S300) . Here, the representative value extractor 200 may extract a representative value from each of two or more preset current sections of the first measured current value.

표본 수집부(100)에 의해 다수 수집된 표본 중에서 대표값을 추출하기 위해, 대표값 추출부(200)는 먼저 DBSCAN 알고리즘을 이용하여 상기 기설정된 구간에 포함되어 있는 각 표본을 중심으로 동일 크기의 원을 그린 후 상기 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색한다.In order to extract a representative value from a plurality of samples collected by the sample collection unit 100, the representative value extraction unit 200 first uses the DBSCAN algorithm to select a sample of the same size centered on each sample included in the preset interval. After drawing a circle, search for the circle containing the most samples among the circles.

그 후, 대표값 추출부(200)는 K-means 알고리즘을 이용하여 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 대표값으로 추출한다.Thereafter, the representative value extraction unit 200 uses the K-means algorithm to extract as a representative value the sample with the minimum distance variance from one sample included in the searched circle to another sample.

대표값 추출부(200)에 의해 둘 이상의 대표값이 추출되면, 영점 오차 산출부(300)가 상기 둘 이상의 대표값을 이용하여 홀 타입 전류센서(30)의 영점 오차를 산출한다(S400).When two or more representative values are extracted by the representative value extraction unit 200, the zero error calculation unit 300 calculates the zero error of the Hall-type current sensor 30 using the two or more representative values (S400).

구체적으로, 영점 오차 산출부(300)는 도 5에 도시된 바와 같이 2차원 평면에서 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편(Y)을 홀 타입 전류센서(30)의 영점 오차로 산출할 수 있다.Specifically, the zero point error calculation unit 300 creates a straight line connecting two or more representative values extracted by the representative value extracting unit 200 in a two-dimensional plane as shown in FIG. 5, and the y-intercept of the straight line ( Y) can be calculated as the zero error of the Hall-type current sensor 30.

또는, 영점 오차 산출부(300)는 도 6에 도시된 바와 같이 2차원 평면에서 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편(Y)을 홀 타입 전류센서(30)의 영점 오차로 산출할 수 있다. 여기서, 추세선은 상기 대표값 추출부(200)에 의해 추출된 둘 이상의 대표값으로부터의 거리 분산이 최소가 되는 직선을 의미한다.Alternatively, the zero error calculation unit 300 creates a trend line for two or more representative values extracted by the representative value extraction unit 200 in a two-dimensional plane as shown in FIG. 6, and the y-intercept (Y) of the trend line ) can be calculated as the zero point error of the Hall-type current sensor 30. Here, the trend line refers to a straight line in which the dispersion of distances from two or more representative values extracted by the representative value extraction unit 200 is minimized.

영점 오차 산출부(300)에 의해 홀 타입 전류센서(30)의 영점 오차가 산출되면, 영점 오차 보정부(400)가 상기 영점 오차를 이용해서 홀 타입 전류센서(30)의 영점 오차를 보정한다(S500). 보다 구체적으로, 영점 오차 보정부(400)는 영점 오차 산출부(300)에 의해 영점 오차가 산출되면, 이후 홀 타입 전류센서(30)가 측정하는 측정 전류값에서 상기 영점 오차를 가감하는 방법을 통해 홀 타입 전류센서(30)의 영점 오차를 보정한다. When the zero point error of the Hall-type current sensor 30 is calculated by the zero-point error calculation unit 300, the zero-point error correction unit 400 uses the zero-point error to correct the zero-point error of the Hall-type current sensor 30. (S500). More specifically, when the zero point error is calculated by the zero point error calculation unit 300, the zero point error correction unit 400 uses a method of adding or subtracting the zero point error from the measurement current value measured by the Hall type current sensor 30. The zero point error of the Hall-type current sensor 30 is corrected through.

이러한 본 발명에 의하면, 배터리에 전류가 흐르지 않을 때를 기준으로 전류센서의 영점 오차를 보정하던 종래 방식과는 달리, 배터리를 충방전시키는 과정에서 홀 타입 전류센서의 영점 오차를 보정할 수 있어, 홀 타입 전류센서의 측정 전류값에 대한 정확도를 한층 더 높일 수 있게 된다.According to the present invention, unlike the conventional method of correcting the zero point error of the current sensor based on when no current flows in the battery, the zero point error of the Hall-type current sensor can be corrected during the process of charging and discharging the battery. The accuracy of the measured current value of the Hall-type current sensor can be further improved.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 이는 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능함은 물론이다. 따라서, 본 발명의 기술적 사상은 특허청구범위에 의해서만 파악되어야 하고, 이의 균등 또는 등가적 변형 모두는 본 발명의 기술적 사상의 범주에 속한다고 할 것이다.As described above, although the present invention has been described with reference to limited embodiments and drawings, the present invention is not limited to the above embodiments, and those skilled in the art can make various modifications and modifications from these descriptions. Of course, modification is possible. Therefore, the technical idea of the present invention should be understood only by the scope of the patent claims, and all equivalent or equivalent modifications thereof shall fall within the scope of the technical idea of the present invention.

10: 배터리
20: 기준 전류센서
30: 홀 타입 전류센서
100: 표본 수집부
200: 대표값 추출부
300: 영점 오차 산출부
400: 영점 오차 보정부
1000: 영점 오차 보정 장치
10: battery
20: Reference current sensor
30: Hall type current sensor
100: Sample collection unit
200: Representative value extraction unit
300: Zero error calculation unit
400: Zero point error correction unit
1000: Zero point error correction device

Claims (10)

기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서가 상기 배터리에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집하는 표본 수집부;
상기 다수 수집된 표본 중에서 둘 이상의 대표값을 추출하는 대표값 추출부;
상기 둘 이상의 대표값을 이용하여 상기 홀 타입 전류센서의 영점 오차를 산출하는 영점 오차 산출부; 및
상기 홀 타입 전류센서가 측정하는 제2 측정 전류값을 상기 영점 오차 산출부에 의해 산출된 영점 오차만큼 가감하여 상기 홀 타입 전류센서의 영점 오차를 보정하는 영점 오차 보정부;를 포함하며,
상기 표본 수집부는 상기 제1 측정 전류값을 x축으로 하고 상기 제2 측정 전류값을 y축으로 한 2차원 평면에 상기 다수 수집된 표본을 나타내고,
상기 대표값 추출부는 상기 제1 측정 전류값의 둘 이상의 기설정된 전류 구간에서 각 전류 구간별로 대표값을 하나씩 추출하여, 상기 다수의 수집된 표본 중에서 총 둘 이상의 대표값을 추출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치.
The first measurement current value output as the reference current sensor measures the current flowing in the battery and the second measurement current value output as the Hall-type current sensor measures the current flowing in the battery are input, and the first measurement current value is input. a sample collection unit that collects a plurality of current values and the second measured current value corresponding to the first measured current value as samples;
a representative value extraction unit that extracts two or more representative values from the plurality of collected samples;
a zero-point error calculation unit that calculates a zero-point error of the Hall-type current sensor using the two or more representative values; and
A zero-point error correction unit that corrects the zero-point error of the Hall-type current sensor by adding or subtracting the second measured current value measured by the Hall-type current sensor by the zero-point error calculated by the zero-point error calculation unit,
The sample collection unit displays the plurality of collected samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis,
The representative value extraction unit extracts one representative value for each current section from two or more preset current sections of the first measured current value, and extracts a total of two or more representative values from the plurality of collected samples. Zero point error correction device for Hall type current sensor using current sensor.
삭제delete 제1항에 있어서,
상기 대표값 추출부는, 상기 기설정된 전류 구간에 포함되어 있는 각 표본을 중심으로 동일 크기의 원을 그린 후 상기 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색하고, 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 상기 대표값으로 추출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치.
According to paragraph 1,
The representative value extraction unit draws circles of the same size centered on each sample included in the preset current section, searches for the circle containing the most samples among the circles, and searches for a circle containing the most samples among the circles. A zero-point error correction device for a Hall-type current sensor using a reference current sensor, characterized in that a sample with minimum distance dispersion from one sample to another is extracted as the representative value.
제1항에 있어서,
상기 영점 오차 산출부는, 상기 2차원 평면에서 상기 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치.
According to paragraph 1,
The zero error calculation unit creates a straight line connecting the two or more representative values in the two-dimensional plane, and calculates the y-intercept of the straight line as the zero error of the Hall type current sensor. Zero point error correction device for current sensors.
제1항에 있어서,
상기 영점 오차 산출부는, 상기 2차원 평면에서 상기 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 장치.
According to paragraph 1,
The zero error calculation unit creates a trend line for the two or more representative values in the two-dimensional plane, and calculates the y-intercept of the trend line as the zero error of the Hall type current sensor. Zero point error correction device for current sensors.
기준 전류센서가 배터리에 흐르는 전류를 측정함에 따라 출력하는 제1 측정 전류값과, 홀 타입 전류센서가 상기 배터리에 흐르는 전류를 측정함에 따라 출력하는 제2 측정 전류값을 입력받아, 상기 제1 측정 전류값 및 상기 제1 측정 전류값에 대응되는 상기 제2 측정 전류값을 표본으로서 다수 수집하는 표본 수집 단계;
상기 다수 수집된 표본 중에서 둘 이상의 대표값을 추출하는 대표값 추출 단계;
상기 둘 이상의 대표값을 이용하여 상기 홀 타입 전류센서의 영점 오차를 산출하는 영점 오차 산출 단계; 및
상기 홀 타입 전류센서가 측정하는 제2 측정 전류값을 상기 영점 오차만큼 가감하여 상기 홀 타입 전류센서의 영점 오차를 보정하는 영점 오차 보정 단계;를 포함하며,
상기 표본 수집 단계는 상기 제1 측정 전류값을 x축으로 하고 상기 제2 측정 전류값을 y축으로 한 2차원 평면에 상기 다수 수집된 표본을 나타내는 단계를 더 포함하고,
상기 대표값 추출 단계는 상기 제1 측정 전류값의 둘 이상의 기설정된 전류 구간에서 각 전류 구간별로 대표값을 하나씩 추출하여, 상기 다수 수집된 표본 중에서 총 둘 이상의 대표값을 추출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법.
The first measurement current value output as the reference current sensor measures the current flowing in the battery and the second measurement current value output as the Hall-type current sensor measures the current flowing in the battery are input, and the first measurement current value is input. A sample collection step of collecting a plurality of current values and the second measured current value corresponding to the first measured current value as samples;
A representative value extraction step of extracting two or more representative values from the plurality of collected samples;
A zero-point error calculation step of calculating a zero-point error of the Hall-type current sensor using the two or more representative values; and
A zero-point error correction step of correcting the zero-point error of the Hall-type current sensor by adding or subtracting the second measurement current value measured by the Hall-type current sensor by the zero-point error,
The sample collection step further includes displaying the plurality of collected samples on a two-dimensional plane with the first measured current value as the x-axis and the second measured current value as the y-axis,
The representative value extraction step extracts one representative value for each current section from two or more preset current sections of the first measured current value, and extracts a total of two or more representative values from the plurality of collected samples. How to correct zero point error of a Hall-type current sensor using a current sensor.
삭제delete 제6항에 있어서,
상기 대표값 추출 단계는, 상기 기설정된 전류 구간에 포함되어 있는 각 표본을 중심으로 동일 크기의 원을 그린 후 상기 원 중에서 가장 많은 표본을 포함하고 있는 원을 검색하고, 상기 검색된 원 안에 포함되어 있는 어느 하나의 표본으로부터 다른 표본까지의 거리 분산이 최소가 되는 표본을 상기 대표값으로 추출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법.
According to clause 6,
In the representative value extraction step, a circle of the same size is drawn centering on each sample included in the preset current section, the circle containing the most samples among the circles is searched, and the circle included in the searched circle is searched. A zero-point error correction method for a Hall-type current sensor using a reference current sensor, characterized in that a sample with the minimum distance variance from one sample to another is extracted as the representative value.
제6항에 있어서,
상기 영점 오차 산출 단계는, 상기 2차원 평면에서 상기 둘 이상의 대표값을 잇는 직선을 만들고, 상기 직선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법.
According to clause 6,
In the zero error calculation step, a straight line is created connecting the two or more representative values in the two-dimensional plane, and the y-intercept of the straight line is calculated as the zero error of the Hall type current sensor. How to correct zero point error of type current sensor.
제6항에 있어서,
상기 영점 오차 산출 단계는, 상기 2차원 평면에서 상기 둘 이상의 대표값에 대한 추세선을 만들고, 상기 추세선의 y절편을 상기 홀 타입 전류센서의 영점 오차로 산출하는 것을 특징으로 하는 기준 전류센서를 이용한 홀 타입 전류센서의 영점 오차 보정 방법.
According to clause 6,
In the zero error calculation step, a trend line is created for the two or more representative values in the two-dimensional plane, and the y-intercept of the trend line is calculated as the zero error of the Hall type current sensor. How to correct zero point error of type current sensor.
KR1020170137609A 2017-10-23 2017-10-23 Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor KR102582380B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170137609A KR102582380B1 (en) 2017-10-23 2017-10-23 Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170137609A KR102582380B1 (en) 2017-10-23 2017-10-23 Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor

Publications (2)

Publication Number Publication Date
KR20190044955A KR20190044955A (en) 2019-05-02
KR102582380B1 true KR102582380B1 (en) 2023-09-25

Family

ID=66581401

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170137609A KR102582380B1 (en) 2017-10-23 2017-10-23 Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor

Country Status (1)

Country Link
KR (1) KR102582380B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113848371B (en) * 2021-09-26 2022-05-06 南方电网数字电网研究院有限公司 Current measuring apparatus, method and storage medium
KR102648483B1 (en) * 2021-12-31 2024-03-18 주식회사 지케이알 Method of correcting current flowing through a plurality of power switches embedded in a vehicle junction box

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1605232A3 (en) * 2004-06-11 2010-12-29 Yamaha Corporation Method and apparatus for measuring magnetic offset of geomagnetic sensor and portable electronic apparatus
KR101054958B1 (en) 2008-11-27 2011-08-05 현대자동차주식회사 Correction method of current sensor error of high voltage battery of hybrid vehicle
KR101810658B1 (en) * 2015-03-16 2017-12-19 주식회사 엘지화학 Appratus for calibrating of Shunt type current sensor and Method thereof

Also Published As

Publication number Publication date
KR20190044955A (en) 2019-05-02

Similar Documents

Publication Publication Date Title
CN106249171B (en) A kind of electrokinetic cell system identification and method for estimating state for the wide sampling interval
KR102343967B1 (en) Method and apparatus for estimating state of battery
CN102590754B (en) Battery capacity detection device of lithium ion rechargeable battery
CN104678316B (en) Charge states of lithium ion battery evaluation method and device
CN104391252B (en) Automobile lead-acid battery health state detection method
CN105738822B (en) The device and method of estimating remaining capacity of battery
EP3149500B1 (en) Method for determining the reliability of state of health parameter values
WO2011125213A1 (en) Secondary battery degradation determination device and degradation determination method
CN102449495B (en) Battery state of charge calculation device
CN105283773A (en) Battery soundness estimation device and soundness estimation method
CN101632028A (en) Apparatus and method for detecting charged state of electric storage device
CN103823189A (en) Method for calculating residual capacity of power battery pack
KR20110139187A (en) Cell abnormality detection circuit and power supply device
CN104865445A (en) Power battery inner resistance detection method and power battery health degree diagnosis method
CN106054081A (en) Lithium battery modeling method for SOC (State of Charge) estimation of electric vehicle power battery
KR102582380B1 (en) Apparatus and method for correcting zero offset of hall type current sensor using reference current sensor
CN103809124A (en) Battery anomaly detection method and detection system
US20140218040A1 (en) Method for estimating the state of charge of a battery, and battery management system using the method
JP6011865B2 (en) Secondary battery short circuit inspection method
CN104198795A (en) Vehicle power system open-circuit voltage detection method, power system and vehicle
CN107238803B (en) For estimating the method and computer readable storage medium of battery SOE
US20230391224A1 (en) System and method for battery diagnosis according to altitude using atmospheric pressure sensor
CN101144836A (en) Voltage detection circuit and control method
CN115248379A (en) Power battery micro-short-circuit diagnosis method and system based on multi-scene fusion
JP2014230412A (en) Current sensor correcting device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant