CN107525963A - A kind of current sample method based on Hall - Google Patents
A kind of current sample method based on Hall Download PDFInfo
- Publication number
- CN107525963A CN107525963A CN201710820458.5A CN201710820458A CN107525963A CN 107525963 A CN107525963 A CN 107525963A CN 201710820458 A CN201710820458 A CN 201710820458A CN 107525963 A CN107525963 A CN 107525963A
- Authority
- CN
- China
- Prior art keywords
- range
- current
- hall
- relation curve
- method based
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000005070 sampling Methods 0.000 claims abstract description 8
- 238000012937 correction Methods 0.000 claims description 4
- 238000012935 Averaging Methods 0.000 claims description 2
- 230000009466 transformation Effects 0.000 claims description 2
- 230000003321 amplification Effects 0.000 description 4
- 238000003199 nucleic acid amplification method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000010354 integration Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012886 linear function Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/25—Arrangements for measuring currents or voltages or for indicating presence or sign thereof using digital measurement techniques
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Instrument Details And Bridges, And Automatic Balancing Devices (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
The present invention provides a kind of current sample method based on Hall, and the current sample method based on Hall comprises the following steps:The ADC of single-chip microcomputer is calibrated;Gather the corresponding relation curve of electric current and actual current to draw the Hall sensor respectively in the first range and the second range by specified electric current for Hall sensor;The switching point of the first range and the second range is determined by the first relation curve and the second relation curve.The sampling precision of current sample method provided by the invention based on Hall is higher, and then improves the estimation precision of battery SOC.
Description
【Technical field】
The present invention relates to the technical field of current measurement, more particularly to a kind of current sample method based on Hall.
【Background technology】
With the continuous development of electric automobile, the indices of the battery of power are provided for electric automobile also turns into concern
Emphasis.Wherein, battery SOC (State of Charge, state-of-charge) is used for the dump energy for informing user's battery, is user
Preferably planning mileage has great significance.
At present, current integration method is widely used to calculate the SOC of battery, and this method is adopted by using Hall current sensor
Colleeting comb, integration of the electric current on the time is then done, finally draws the quantity of electric charge, therefore, the degree of accuracy of current acquisition directly affects
The degree of accuracy of SOC predictions.
Generally use Hall sensor is acquired to the electric current of place circuit and exports collection signal and put through computing at present
Big circuit is transferred to single-chip microcomputer.However, because the ADC of single-chip microcomputer generally all has nonlinearity erron, Hall sensor
Export and non-critical linear and amplifier amplifying circuit multiplication factor is also not the theoretical value calculated, and then cause through list
Larger error be present between the real current of circuit where the collection signal and Hall sensor of the output of piece machine, so as to influence battery
SOC estimation precision.
In consideration of it, real be necessary to provide a kind of new current sample method based on Hall to overcome drawbacks described above.
【The content of the invention】
It is an object of the invention to provide a kind of current sample method based on Hall, the current sample side based on Hall
The sampling precision of method is higher, and then improves the estimation precision of battery SOC.
To achieve these goals, the present invention provides a kind of current sample method based on Hall, described based on Hall
Current sample method comprises the following steps:
The ADC of single-chip microcomputer is calibrated;
For Hall sensor by specified electric current to draw the Hall sensor in the first range and the second amount respectively
The corresponding relation curve of electric current and actual current is gathered in journey;
The switching point of the first range and the second range is determined by the first relation curve and the second relation curve.
Current sample method provided by the present invention based on Hall, due to the ADC of single-chip microcomputer is calibrated with
And the sample rate current of Hall sensor is carried out with actual current corresponding, and then cause the data that single-chip microcomputer collects than calibrated
Really, current sample precision is improved, so as to improve the estimation precision of battery SOC.
【Brief description of the drawings】
Fig. 1 is the application schematic diagram of Hall sensor.
Fig. 2 is the flow chart of the current sample method based on Hall provided in the embodiment of the present invention.
Fig. 3 is the nonlinearity erron figure of the ADC sampling in Fig. 1.
Fig. 4 is electric current of the Hall sensor in the case of theory and voltage relationship figure in Fig. 1.
Fig. 5 is the collection electric current of the Hall sensor in Fig. 1 and the corresponding relation figure of actual current.
Fig. 6 is the first range of Hall sensor and the first switching mode figure of the second range in Fig. 1.
Fig. 7 is the first range of Hall sensor and the second switching mode figure of the second range in Fig. 1.
Fig. 8 is the temperature of Hall sensor and current error graph of a relation in Fig. 1.
【Embodiment】
In order that the purpose of the present invention, technical scheme and advantageous effects become apparent from understanding, below in conjunction with accompanying drawing and
Embodiment, the present invention will be described in further detail.It should be appreciated that the specific implementation described in this specification
Mode is not intended to limit the present invention just for the sake of explaining the present invention.
Referring to Fig. 1, it is the application schematic diagram of Hall sensor 10.Wherein, Hall sensor 10 is used for where gathering
The electric current of circuit is transferred to single-chip microcomputer 30 through operational amplification circuit 20.It is appreciated that the output voltage signal of Hall sensor 10 is simultaneously
The single-chip microcomputer 30 is sent to after the amplification of operational amplification circuit 20.Further, the single-chip microcomputer 30 includes being used to simulate
Signal changes into ADC (Analog-to-Digital Converter, analog-digital converter) module 31 of data signal.Due to list
Generally all be present nonlinearity erron in the ADC 31 of piece machine 30, therefore, can be carried to height by carrying out calibration to ADC 31
The precision of the current sample of Hall sensor 10.
Referring to Fig. 2, it is the flow chart of the current sample method based on Hall provided in the embodiment of the present invention.Answer
Illustrate, method of the invention is not limited to the order of following step, and in other embodiment, and method of the invention can be with
A portion of step as described below is only included, or part steps therein can be deleted.
Step S01, the ADC 31 of single-chip microcomputer 30 is calibrated.
Referring again to Fig. 3, the nonlinearity erron figure of the sampling of ADC 31 is obtained by using criteria check instrument.Wherein,
311 be theoretical value, and 312 be measured value.Abscissa is the numerical value that ADC 31 samples, and ordinate is that ADC 31 receives
Magnitude of voltage.As seen from Figure 3, in theory, the numerical value that ADC 31 samples is linear corresponding with the magnitude of voltage received
Relation, and actually it is then nonlinear corresponding relation.By way of to Fig. 3 using point three sections of fittings, Calibration equation is obtained
Group is as follows, and the sample magnitude x and the actual samples voltage V- being an actually-received of ADC 31 are can be obtained by by Calibration equation group
ADC corresponding relation.
It should be noted that the single-chip microcomputer 30 in present embodiment is 12, therefore, the sample magnitude model of ADC 31
Enclose for 0~4096, it will be understood that if the digit of single-chip microcomputer 30 is different, the span of the numerical value of ADC 31 is also different, its
In, a and b numerical value can be drawn according to test statisticses data, for example, according to test statisticses data, find 215 with
Interior, measured value and theoretical value deviation are larger, then just using 215 as a points;Similarly, the data measurement behind 3899 is found
Also and theoretical value deviation is larger, and just selection 3899 is used as b points.Therefore, f2(x) it is linear function, and f1And f (x)3(x) it is then song
Line function, and if single-chip microcomputer 30 model it is different from digit, expression formula corresponding to each function is different.In addition, above-mentioned equation group
Expression can also pass through MATLAB curve matching work according to substantial amounts of experimental data by being calculated
Tool, it is fitted and draws according to image.
Step S02, for Hall sensor 10 by specified electric current to draw Hall sensor 10 in the first range respectively
And the second corresponding relation curve for gathering electric current and actual current in range.
Referring again to Fig. 4, it is electric current of the Hall sensor 10 in the case of theory and voltage relationship figure.Wherein, first
Range is -30A~30A;Second range is -300A~300A.It can be seen that in theory when for Hall sensor 10 it is same
During the electric current of the first range, exported by Hall sensor 10 and after operational amplification circuit 20, the ADC 31 receives
0.25V to 4.75V voltage, and voltage and the linear change of electric current.Therefore, can be -30A, voltage 0.25V according to electric current
A points and electric current is 30A, voltage is 4.75V B points draw electric current and voltage of the Hall sensor 10 in the first range
The equation of corresponding relation.Similarly, be -300A according to electric current, the C points that voltage is 0.25V and electric current are 300A, voltage is
4.75V D points draw the corresponding relation equation of electric current and voltage of the Hall sensor 10 in the second range.However, due to suddenly
The output of your sensor 10 is simultaneously non-critical linear, and the multiplication factor of amplifier amplifying circuit 20 is also not the theory calculated
Value, therefore, it is necessary to the relation curve between sample rate current and actual current is found out by statistical method.
Specifically, referring again to Fig. 5, in the first range, multiple electric currents is chosen and are powered for Hall sensor 10, for example,
Lead to 5A, 10A, 15A and 20A etc. electric current to Hall sensor 10 respectively, and measure the sampled voltage that ADC 31 receives,
Then, sample rate current is drawn according to the electric current in the first range and the corresponding relation equation of voltage, then according to sample rate current (figure
Abscissa represents sample rate current in 5) with corresponding actual current (ordinate represents actual current in Fig. 5) determined by point, retouch
Corresponding first relation curve S1 is painted, finally, by using MATLAB curve-fitting tool, obtains the first relation curve S1's
Cubic fit multinomial.It is appreciated that the point of selection is more, the cubic fit multinomial drawn is more accurate.Though it is appreciated that
So it is named the first relation curve S1, but it is close to straight line.Similarly, by leading to some of the second range for Hall sensor 10
Electric current is to obtain the corresponding relation of sample rate current and actual current in the second range.Specifically, the sampling electricity in the second range
Stream the second relation curve S2 (Fig. 6 please be join) corresponding with actual current.
Step S03, the first range and the second range are determined by the first relation curve S1 and the second relation curve S2
Switching point.
Specifically, referring again to Fig. 6, when the first relation curve S1 and the second relation curve S2 has intersection point, in point of intersection
The automatic switchover of the first range and the second range is done, that is, when the collection electric current for collecting Hall sensor 10 is less than intersection point institute
During corresponding collection electric current, corresponding reality is drawn with the first relation curve S1 of actual current using electric current is gathered in the first range
Border electric current;When the collection electric current for collecting Hall sensor 10 is more than the collection electric current corresponding to intersection point, using the second range
Middle collection electric current draws corresponding actual current with the second relation curve S2 of actual current.
Referring again to Fig. 7, when the first relation curve S1 and the second relation curve S2 does not have intersection point, in the first range
Credibility interval in select first interval, mean value transformation is done in first interval, use linear averaging method connection first close
It is curve S1 and the second relation curve S2, and then obtains straight line L1, and respectively with straight line L1 and the first relation curve S1 intersection point
And the size of the collection electric current corresponding to straight line S2 and the second relation curve S2 intersection point does separation.Because straight line L1 is combined
The characteristics of first curve S1 and the second curve S2, high-precision feature of first range in low current is make use of to greatest extent,
So that the first relation curve S1 and the second relation curve S2 turns into a continuous line.It is appreciated that first interval can be one
Individual symmetrical 2 δ scopes, wherein, the section of 2 δ scopes, it can be drawn according to statistical experiment.The first range in present embodiment
Avoid with the switching method of the second range and first sent out by the situation that data can fiercely beat near two range switching points in technology
It is raw.
Step S04, gather Hall sensor 10 temperature, and according to Hall sensor 10 temperature correction coefficient to reality
Electric current is calibrated.
Specifically, referring again to Fig. 8, each Hall sensor 10 is in the temperature correction coefficient corresponding to Shi Douyou that dispatches from the factory (temperature
Degree and the corresponding relation of current error), therefore, can by tabling look-up, find out corresponding to the actual current that draws is entered after relation
Row calibration.When three broken lines represent different electric currents respectively in Fig. 8, the temperature of Hall sensor 10 and corresponding current error.
In present embodiment, it is contemplated that temperature influences on the precision of Hall sensor 10, according to temperature correction coefficient to the reality that draws
Electric current is calibrated, and then further increases the precision of sampling.
Current sample method provided by the present invention based on Hall, due to carrying out school to the ADC 31 of single-chip microcomputer 30
Accurate and to Hall sensor 10 sample rate current carries out data ratio corresponding, and then that single-chip microcomputer is collected with actual current
It is relatively accurate, the sampling precision of electric current is improved, so as to improve the estimation precision of battery SOC.
The present invention is not restricted to described in specification and embodiment, therefore for the personnel of familiar field
Additional advantage and modification is easily achieved, therefore in the essence of the universal limited without departing substantially from claim and equivalency range
In the case of refreshing and scope, the present invention is not limited to specific details, representational equipment and shown here as the diagram with description
Example.
Claims (7)
- A kind of 1. current sample method based on Hall, it is characterised in that:The current sample method based on Hall is included such as Lower step:The ADC of single-chip microcomputer is calibrated;For Hall sensor by specified electric current to draw the Hall sensor in the first range and the second range respectively Gather the corresponding relation curve of electric current and actual current;The switching point of the first range and the second range is determined by the first relation curve and the second relation curve.
- 2. the current sample method based on Hall as claimed in claim 1, it is characterised in that:Described " to the ADC of single-chip microcomputer Module is calibrated " step in, obtain the nonlinearity erron figure of ADC sampling by using criteria check instrument, and The sample magnitude of the ADC and the corresponding relation of actual samples voltage are obtained by the way of piecewise fitting.
- 3. the current sample method based on Hall as claimed in claim 1, it is characterised in that:First range be -30A~ 30A;Second range is -300A~300A.
- 4. the current sample method based on Hall as claimed in claim 1, it is characterised in that:Chosen in first range Multiple actual currents are that the Hall sensor is powered and measures corresponding sampled voltage, then, according in first range Electric current and the corresponding relation equation of voltage draw sample rate current, then, according to the sample rate current and corresponding actual current Multiple points are determined, and then obtain first relation curve;Chosen in second range multiple actual currents for it is described suddenly You are powered and measure corresponding sampled voltage at sensor, then, according to the pass corresponding with voltage of the electric current in second range It is that equation draws sample rate current, then, determines multiple points with corresponding actual current according to the sample rate current, and then obtain institute State the second relation curve.
- 5. the current sample method based on Hall as claimed in claim 1, it is characterised in that:When the first relation curve and second When relation curve has intersection point, the automatic switchover of the first range and the second range is done in point of intersection.
- 6. the current sample method based on Hall as claimed in claim 5, it is characterised in that:When first relation curve with When second relation curve does not have intersection point, first interval is selected in the credibility interval of first range, and described Mean value transformation is done in one section, first relation curve is connected with the second relation curve using the method for linear averaging, entered And a straight line is obtained, and the switching of first range and second range is done by the straight line.
- 7. the current sample method based on Hall as claimed in claim 1, it is characterised in that:The electric current based on Hall is adopted Quadrat method also comprises the following steps:The temperature of the Hall sensor is gathered, and actual current is carried out according to the temperature correction coefficient of the Hall sensor Calibration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710820458.5A CN107525963A (en) | 2017-09-13 | 2017-09-13 | A kind of current sample method based on Hall |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710820458.5A CN107525963A (en) | 2017-09-13 | 2017-09-13 | A kind of current sample method based on Hall |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107525963A true CN107525963A (en) | 2017-12-29 |
Family
ID=60735822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710820458.5A Pending CN107525963A (en) | 2017-09-13 | 2017-09-13 | A kind of current sample method based on Hall |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107525963A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112304210A (en) * | 2020-11-10 | 2021-02-02 | 陕西宏星电器有限责任公司 | Hall angle sensor angle calibration method |
CN112345810A (en) * | 2019-08-06 | 2021-02-09 | 天津光电通信技术有限公司 | Current measuring device based on Hall sensor and measuring method thereof |
CN112468042A (en) * | 2020-10-26 | 2021-03-09 | 北京精密机电控制设备研究所 | Power take-off vehicle-mounted power supply system realized by direct-current voltage sampling circuit |
CN113030559A (en) * | 2021-05-21 | 2021-06-25 | 杭州并坚科技有限公司 | Method for detecting residual current of detector |
CN113075446A (en) * | 2021-03-31 | 2021-07-06 | 北京润科通用技术有限公司 | Current acquisition method and device |
CN115453397A (en) * | 2022-10-24 | 2022-12-09 | 惠州市乐亿通科技有限公司 | Battery current monitoring method, device, controller and circuit |
-
2017
- 2017-09-13 CN CN201710820458.5A patent/CN107525963A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112345810A (en) * | 2019-08-06 | 2021-02-09 | 天津光电通信技术有限公司 | Current measuring device based on Hall sensor and measuring method thereof |
CN112468042A (en) * | 2020-10-26 | 2021-03-09 | 北京精密机电控制设备研究所 | Power take-off vehicle-mounted power supply system realized by direct-current voltage sampling circuit |
CN112304210A (en) * | 2020-11-10 | 2021-02-02 | 陕西宏星电器有限责任公司 | Hall angle sensor angle calibration method |
CN112304210B (en) * | 2020-11-10 | 2023-03-21 | 陕西宏星电器有限责任公司 | Hall angle sensor angle calibration method |
CN113075446A (en) * | 2021-03-31 | 2021-07-06 | 北京润科通用技术有限公司 | Current acquisition method and device |
CN113075446B (en) * | 2021-03-31 | 2023-06-16 | 北京润科通用技术有限公司 | Current acquisition method and device |
CN113030559A (en) * | 2021-05-21 | 2021-06-25 | 杭州并坚科技有限公司 | Method for detecting residual current of detector |
CN113030559B (en) * | 2021-05-21 | 2021-08-24 | 杭州并坚科技有限公司 | Method for detecting residual current of detector |
CN115453397A (en) * | 2022-10-24 | 2022-12-09 | 惠州市乐亿通科技有限公司 | Battery current monitoring method, device, controller and circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107525963A (en) | A kind of current sample method based on Hall | |
CN106249171B (en) | A kind of electrokinetic cell system identification and method for estimating state for the wide sampling interval | |
CN103344921B (en) | Lithium-ion-power cell health state evaluation system and method | |
CN104267261B (en) | On-line secondary battery simplified impedance spectroscopy model parameter estimating method based on fractional order united Kalman filtering | |
CN106842060A (en) | A kind of electrokinetic cell SOC estimation method and system based on dynamic parameter | |
CN106772072A (en) | A kind of SOC estimation method and device based on battery behavior curve | |
CN106054081A (en) | Lithium battery modeling method for SOC (State of Charge) estimation of electric vehicle power battery | |
CN201141892Y (en) | Three-phase four-wire electronic split-phase measuring electric energy meter | |
CN207282658U (en) | A kind of charging interval display system | |
CN105353316B (en) | SOC variable quantities and charge capacity conversion factor measuring method during power battery charging | |
CN106019207A (en) | Power metering calibration method | |
CN105223512A (en) | Based on the method for the dynamic rectification dump energy of battery behavior | |
CN103383435A (en) | System and method for on-line dynamic measurement of electric quantity of lithium ion batteries | |
CN106872906A (en) | A kind of method and system based on OCV curve amendments SOC | |
CN106980041A (en) | A kind of current acquisition method of battery management system | |
CN204832352U (en) | Little measurement of capacitance appearance of phase -delay total mark | |
Haoran et al. | Lithium battery soc estimation based on extended kalman filtering algorithm | |
CN103135066A (en) | Measuring method of electric quantity of segmented iron phosphate lithium battery | |
CN107741565A (en) | Measurement apparatus, method, mobile terminal and readable storage medium storing program for executing | |
CN112946554B (en) | Calibration method of current sensor | |
CN103575976B (en) | A kind of pure 90 degree of phase shift reactive power measuring methods | |
CN103076480B (en) | Tiny signal collecting card | |
CN202649436U (en) | Battery power sensing control device | |
CN114067457B (en) | Method for calculating endurance mileage according to SOC prediction value | |
CN101308196B (en) | Current integration measuring circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171229 |
|
WD01 | Invention patent application deemed withdrawn after publication |