A kind of Hall current sensor calibration steps
Technical field
The invention belongs to technical field of electrical equipment, particularly a kind of Hall current sensor calibration steps.
Background technology
Current sensor is a kind of conventional measuring instrument, has certain application in multiple fields.Electric current passes
Sensor has the multiple advantages such as certainty of measurement height, fast response time, reliability height.Wherein current sensor
Application in electric equipment is also the most widely, and plays huge effect.The standard of current acquisition
How exactness directly affects the stability of system, therefore in the situation that current sensor is fixing with sample circuit
Under, the calibration of electric current just seems most important with computational algorithm.There is presently no one and can effectively calibrate suddenly
The method of your current sensor.
Summary of the invention
For solving above-mentioned technical problem, the invention provides a kind of Hall current sensor calibration steps, its bag
Include following steps:
S1: regulated power supply and current sensor are connected with signal conditioning circuit by single-pole double-throw switch (SPDT), its
Described in signal conditioning circuit for accept regulated power supply and current sensor signal input, and export to number
Word signal processor DSP, described digital signal processor DSP obtains sample rate current AD value in real time;
S2: be connected with signal conditioning circuit by single-pole double-throw switch (SPDT) by described regulated power supply, regulation voltage is extremely
Current sensor maximum output voltage umax, described digital signal processor DSP gathers electric current AD value record
For ADmax, regulation voltage is to current sensor minimum output voltage umin, described digital signal processor DSP
Gather electric current AD value and be recorded as ADmin;
S3: described current sensor is worked in 0 current status, by described single-pole double-throw switch (SPDT) by electric current
Sensor is connected with described signal conditioning circuit;
S4: described digital signal processor DSP reads the electric current AD of current sensor under 0 current status in real time
Value is also designated as i_ad0, is incremented by by counter value cnt of current sample enumerator with 1 for step value and reads and counts
Electric current AD value i_ad0 after number, saves as variable Iall by the i_ad0 phase adduction of acquisition;
S5: judge whether count value cnt is more than count threshold N, if continuing executing with step S4 less than N, as
Fruit then obtains described current sensor 0 current average I0=Iall/N more than N;
S6: obtain positive current different base value N1=ADmax-I0, negative current different base value N2=I0-ADmin;
S7: current sensor is worked in non-zero current status and reads electric current AD value i_ad, it is judged that i_ad-I0
Whether more than 0, it is cur=(i_ad-I0)/N1 if greater than 0 calibration current value, if i_ad-I0 is not
It is cur=(i_ad-I0)/N2 more than 0 calibration current value.
The method have the advantages that
The current sensor of the Hall current sensor calibration steps calibration that the present invention provides has certainty of measurement
Height, fast response time, high reliability.
Certainly, the arbitrary product implementing the present invention it is not absolutely required to reach all the above advantage simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, embodiment will be described required below
The accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only the one of the present invention
A little embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, also
Other accompanying drawing can be obtained according to these accompanying drawings.
The Hall current sensor calibration system schematic that Fig. 1 provides for the embodiment of the present invention;
The Hall current sensor calibration steps schematic flow sheet that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The all other embodiments obtained under property work premise, broadly fall into the scope of protection of the invention.
The invention provides a kind of Hall current sensor calibration steps, it is based on Hall current as shown in Figure 1
Sensor calibrating system, it comprises the following steps:
S1: regulated power supply and current sensor are connected with signal conditioning circuit by single-pole double-throw switch (SPDT), its
Described in signal conditioning circuit for accept regulated power supply and current sensor signal input, and export to number
Word signal processor DSP, described digital signal processor DSP obtains sample rate current AD value in real time;
S2: be connected with signal conditioning circuit by single-pole double-throw switch (SPDT) by described regulated power supply, regulation voltage is extremely
Current sensor maximum output voltage umax, described digital signal processor DSP gathers electric current AD value record
For ADmax, regulation voltage is to current sensor minimum output voltage umin, described digital signal processor DSP
Gather electric current AD value and be recorded as ADmin;
S3: described current sensor is worked in 0 current status, by described single-pole double-throw switch (SPDT) by electric current
Sensor is connected with described signal conditioning circuit;
S4: pass as in figure 2 it is shown, described digital signal processor DSP reads electric current under 0 current status in real time
The electric current AD value of sensor is also designated as i_ad0, by counter value cnt of current sample enumerator with 1 as stepping
Value is incremented by and reads electric current AD value i_ad0 after counting, and the i_ad0 phase adduction of acquisition is saved as variable
Iall;
S5: judge whether count value cnt is more than count threshold N, if continuing executing with step S4 less than N, as
Fruit then obtains described current sensor 0 current average I0=Iall/N more than N;
S6: obtain positive current different base value N1=ADmax-I0, negative current different base value N2=I0-ADmin;
S7: current sensor is worked in non-zero current status and reads electric current AD value i_ad, it is judged that i_ad-I0
Whether more than 0, it is cur=(i_ad-I0)/N1 if greater than 0 calibration current value, if i_ad-I0 is not
It is cur=(i_ad-I0)/N2 more than 0 calibration current value.
The current sensor of the Hall current sensor calibration steps calibration that the present invention provides has certainty of measurement
Height, fast response time, high reliability.
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.Preferred embodiment is not
There is all of details of detailed descriptionthe, be also not intended to the detailed description of the invention that this invention is only described.Obviously, root
According to the content of this specification, can make many modifications and variations.It is real that these are chosen and specifically described to this specification
Execute example, be to preferably explain the principle of the present invention and actual application, so that art technology
Personnel can be best understood by and utilize the present invention.The present invention is only by claims and four corner thereof and equivalence
The restriction of thing.