The invention pertains to the field of magnetic sensors, as, e.g., hall sensors. It relates to a method and apparatus for calibrating a magnetic sensor and/or a calibrating magnet.
The output voltage of a directional magnetic sensor, such as a Hall magnetic sensor, is given by the equation
where V0 denotes the offset voltage of the magnetic sensor, and {right arrow over (S)}·{right arrow over (B)} denotes the scalar (dot) product of the sensitivity vector of the Hall sensor {right arrow over (S)} and the magnetic field vector {right arrow over (B)} to which the magnetic sensor is exposed.
The position and direction of the sensitivity vector of a directional magnetic sensor is determined by the structure and geometry of the sensor. For example, In the case of a Hall magnetic sensor based on a Hall plate, the sensitivity vector is positioned at the plate's center of symmetry and directed perpendicularly to the plate surface, as illustrated in
The sensitivity vector of a directional magnetic sensor can be represented by its components as follows (see
where Sx, Sy, Sz denote the components of the vector {right arrow over (S)} in a Cartesian coordinate system (R), and î, ĵ. and {circumflex over (k)} are unit vectors parallel to the x, y and z axes, respectively, of the coordinate system.
Similarly, the vector of the magnetic field can be represented by its components in the same coordinate system R:
Alternatively, the vector {right arrow over (B)} can be represented as follows:
where B denotes the modulus of the vector {right arrow over (B)}, and Cx, Cy and Cz are the directional cosines of the vector {right arrow over (B)} in the coordinate system R.
Using expressions (2)−(4), equation (1) can be re-written in the following forms:
in practical applications of a directional magnetic sensor, the parameters V0, Sx, Sy and Sz must be known with high-enough accuracy. The process of the measurement of these parameters is called the calibration of a directional magnetic sensor.
Similarly, in practical applications of a magnet used for magnetic measurements, such as the calibration of magnetic sensors, either the parameters Bx, By and Bz, or B, Cx, Cy and Cz must be known with high-enough accuracy. The process of the measurement of these parameters is called the calibration of a magnet.
The standard method of the measurement of the offset voltage of a magnetic sensor is to place the sensor in a so-called zero-gauss chamber (ZGC) and then to measure its output voltage. Since a zero-gauss chamber is made of a ferromagnetic material of high permeability, it is assumed that it shields the sensor from the environmental magnetic field; then, according to Eq. (1), assuming {right arrow over (B)}=0, the output voltage of the sensor (V) is equal to the offset voltage, V=Vo. However, ZGC might not be perfect, or it might be accidentally magnetized, so therein might be {right arrow over (B)}≠0, and the offset measurement will be incorrect.
The conventional method of the measurement of the magnetic sensitivity of a magnetic sensor comprises the measurements the output voltage of the sensor, which is exposed to a known magnetic field vector. For example, according to the European patent application publication EP 1518131 A1, the magnetic sensitivity of a Hall magnetic sensor is measured by continuously changing and measuring the two angular positions of the Hall element in a known magnetic field. The measurement results are interpreted using spherical harmonics.
Typically, the modulus of the magnetic field vector, which is used for the calibration, is measured by an NMR-teslameter (NMR: nuclear magnetic resonance); and the angular position of this vector is estimated based on the geometry and material properties of the source of the magnetic field (calibrating magnet). However, such an estimation of the angular position of the magnetic field vector is subject to substantial errors, due to the fact that the model of the geometry of the magnetic source is simplified; and the material properties of the calibrating magnet are only approximately known and, due to the hysteresis effect, they may depend on the operation pre-history of the magnet.
Alternatively, the angular position of the magnetic field vector of the calibrating magnet is determined by the measurement using a previously calibrated directional magnetic sensor. In this case arises the question of the accuracy of this previous calibration (what was first—calibration of the magnet or the calibration of the magnetic sensor—chicken or egg?).
In summary, according to the previous art,
Therefore, it would be desirable to find new methods for the calibration of a directional magnetic sensor and of the calibration of a magnet, which is more accurate and easier to perform than the previously known corresponding calibration methods.
The above objective and other objectives are solved by a method and an apparatus in accordance with the independent claims. Preferred embodiments and/or variations of the invention are presented in dependent claims.
A method for calibrating a magnetic sensor and/or a calibrating magnet in accordance with an aspect of the invention as hereinafter claimed may comprise the steps of claim 1 below.
A method for calibrating a magnetic sensor and/or a calibrating magnet, wherein said sensor, when subjected to a magnetic field {right arrow over (B)}=(Bx; By; Bz)T, exhibits an output voltage V governed by V=V0+{right arrow over (S)}·{right arrow over (B)}, wherein V0 denotes an offset voltage of the magnetic sensor, and {right arrow over (S)}·{right arrow over (B)} denotes a scalar product of a sensitivity vector {right arrow over (S)}=(Sx; Sy; Sz)T of the magnetic sensor and the magnetic field vector {right arrow over (B)}, may, in accordance with the invention, comprise the steps of
The output voltage V will thus in general depend on and/or vary with the orientation of the magnetic sensor (for reasons of brevity, also referred to as sensor in what follows), in particular the orientation relative to the magnetic field, and will change when either the sensor or the magnetic field, in particular a magnet generating the electric field, is rotated. The orientation may also be referred to as the position in what follows. The sensor may in particular be a Hall sensor, in particular a Hall plate.
The offset voltage V0 is, in general, specific for an Individual sensor, but may slowly change over time. The offset voltage may also depend on other parameters, in particular a temperature of the sensor, etc. Two different sensors will in general have different offset voltages.
The magnetic field {right arrow over (B)}=(Bx; By; Bz)T may in particular be generated by the calibrating magnet. The magnetic field {right arrow over (B)} may also result from a superposition a calibration field generated by the calibration magnet, and one or more further magnetic field, in particular a (local) magnetic field of the earth.
In order to rotate the magnetic sensor relative to the magnetic field, the magnetic sensor may be rotated In a reference coordinate system, in particular by an angle α about an axis defined by and/or parallel to a vector {right arrow over (D)} with ∥{right arrow over (D)}∥≠0, said vector being defined with respect to the reference coordinate system. More generally, the magnetic sensor may be subjected to a rotation ; wherein ≠ is a matrix characterizing a rotation with respect to the reference coordinate system. Alternatively, the magnetic sensor may remain stationary, while the magnetic field may be subjected to an inverse rotation, in particular to a rotation by −α about the axis defined by and/or parallel to the vector {right arrow over (D)}, or more generally, to a rotation defined by , wherein =. The magnetic field may, in particular, be rotated by rotating a magnet generating the magnetic field {right arrow over (B)}=(Bx; By; Bz)T, in particular the calibrating magnet.
In embodiments, both the magnetic sensor and the magnetic field may be rotated subsequently and/or alternatingly, in particular several times each, to assume the N−1 further (relative) orientations, wherein at least one relative orientation may be assumed repeatedly. This may allow for higher calibration accuracy.
The reference coordinate system may in particular be a static coordinate system which remains fixed and/or stationary when the magnetic sensor and/or the magnetic field is rotated and may in particular be defined by laboratory walls and floor, and/or edges and/or corners between the latter.
Briefly, a method in accordance with the invention as hereinafter claimed for calibrations of a directional magnetic field sensor (Sensor) and/or of a magnet used for the calibration (Magnet) may comprise one or more, in particular all, of the following steps:
Preferably, positions and/or orientations are chosen so that the said system of equations is analytically solvable.
The sensor may be comprised by or comprise electric and/or electronic circuitry (to be referred to as circuitry in what follows). The circuitry may comprise wiring, printed circuits etc.; and/or passive electric elements like resistors, diodes, capacitors, inductors, etc. The circuitry may comprise an electric power source and/or storage, in particular a (rechargeable) battery and/or a capacitor. The circuitry may comprise terminals and/or wireless connection means (e.g. RFID or similar), in particular for connecting and/or interfacing the sensor with external electric and/or electronic measurement equipment, e.g. for measurement data acquisition, processing, analysis and/or representation. The circuitry may comprise or represent a logic circuit. The circuitry may comprise an integrated circuit, in particular a general purpose central processing unit (CPU), a microcontroller, a reduced instruction set computer (RISC) processor, an application specific integrated circuit (ASIC), a programmable logic circuit (PLC), a field programmable gate array (FPGA), and/or any other circuit or processing device. The circuitry may comprise a non-volatile memory, in particular EPROM or EEPROM. The (actual) sensor together with the circuitry may constitute a sensor unit.
The sensor unit comprising the sensor may be comprised by or comprise an enclosure, e.g. a housing. The enclosure may be formed integrally with the sensor unit, e.g. by casting the unit into a thermoplastic material. The enclosure may constitute a package for the sensor, also referred to as the sensor's package.
Sx, Sy, Sz are preferably determined with respect to a, in particular cartesian, natural coordinate system of the sensor and/or the sensor's package. Such a coordinate system may be defined by edges of the sensor and/or the sensor package, wherein linearly independent, preferably orthogonal, unit vectors î, ĵ, and {circumflex over (k)} may be selected to coincide with edges and/or point in directions defined by edges of the sensor and/or the sensor's package. In particular, where the sensor and/or the sensor's package has the shape of a, preferably rectangular, cuboid, unit vectors î, ĵ, and {circumflex over (k)} may be selected to point along the respective directions of three edges joined at one corner of said cuboid, and/or extend perpendicular to faces defining the cuboid.
Alternatively, Sx, Sy, Sz may be determined with respect to an arbitrary coordinate system in a first step, and components S′x, S′y, and S′z of sensitivity vector {right arrow over (S)} may subsequently be determined by transformation to a natural coordinate system of the sensor and/or the sensor's package with unit vectors î′, ĵ′, and {circumflex over (k)}′ as described above.
Sensitivity vector components Sx, Sy, Sz and/or S′x, S′y, and S′z may subsequently be stored in non-volatile memory, in particular EPROM or EEPROM comprised by the sensor unit comprising the sensor as exemplary described above. This allows for efficient and error-free determination of vector magnetic fields, comprising in particular their correct orientation is space, by means of the calibrated sensor.
The present Invention thus has, inter alia, the following advantages:
First, overcoming of the prejudice of the previous art—that the calibration of a directional magnetic sensor can be performed only in a magnetic field, which Is either non-existent (for offset calibration), or it has precisely known both the modulus and the angular position (for sensitivity calibration). In contrary, according to the present invention,
The only relevant condition concerning the magnetic field is that this field stays constant during the measurements.
Second, the proposed method also enables the measurement of the angular position of the magnetic field vector of the magnet used for the calibration, without relying on the geometry, material properties, nor on a previous calibration of a magnetometer.
The subject matter of the invention will be explained with respect to further optional detail in the following text with reference to further exemplary embodiments which are illustrated in the attached drawings.
In the following, the following notations will be used:
According to the present invention, the measurement of all 7 calibrating parameters of Sensor (V0,
Sx, Sy and Sz) and of Magnet (Cx, Cy and Cz) can be made by performing a single process comprising the following steps:
However, in praxis, it is often more convenient not to calibrate all 7 parameters at once; instead, it is often more convenient to split the above calibration process into a few separate sub-processes.
For example, it is convenient to perform the calibrations of Sensor's offset and the calibration of Sensor's sensitivity and Magnet's field direction in two separate sub-processes. The main reasons for doing so are the following:
Another example is the calibration of Sensor's sensitivity in a separate sub-process: once a Magnet is calibrated by the complete process, the angular position of its magnetic field vector (Cx, Cy and Cz) will be known. Then, many Sensors can be calibrated in this Magnet by a simplified version of the above process chain.
Similarly, once a Sensor is calibrated by the complete process or by two simplified processes, it can be used to calibrate several Magnets by a simplified version of the above process chain.
Therefore, the preferred implementation of the present invention is to perform it in two, three or more independent sub-processes. If the calibration process is split into sub-processes, then the minimum number of Positions in each of the sub-processes shall be equal to the number of unknown parameters that are treated (cancelled out or to be determined) in each of the sub-processes. Below are described a few examples of such preferred calibration sub-processes.
According to the present invention, one can measure only the offset voltage of a Sensor, even in the presence of an unknown but constant magnetic field, by the following sub-process:
Preferably, the said Positions are predetermined in such a way, that the said equations make a system of equations, in which all the terms containing the components of the Sensor's sensitivity vector and the components of the magnetic field can be mutually cancelled out. Consequently, the said system of equations can be solved analytically, by reducing it to a single equation, which gives the sought offset voltage of Sensor.
For example, if the offset voltage of a Sensor is measured in the presence of the Earth's magnetic field, i.e. Magnet is Earth, then Sensor shall be placed in the said series of 4 Positions with respect to a stationary laboratory coordinate system.
Preferably, the first of the said sensor's Positions shall be chosen so that the coordinate axes of Sensor's coordinate system Rs are parallel with the corresponding coordinate axes of Magnet's coordinate system Rm; and the other Sensor's Positions shall be realized by rotations of Sensor around one of the magnet's coordinate axis for 90° or 180°.
For the four Directions of Sensor shown in
By summing Eqs. (7) to (11), we obtain
This Eq. (11) gives the value of the sought offset voltage of Sensor.
In a special case, when the component, which is parallel with the rotation axis, of either the vector {right arrow over (S)} or of the vector {right arrow over (B)}, or of both, is equal to zero, the above offset calibration sub-process can be further simplified. For example, if above Sz=0, and/or Bz=0, then the offset measurement can be performed with only 2 Positions, namely D1 and D2. In this case, the solution of the system of the equations (7) and (8) is
By performing the above offset measurement several times, preferably with different sets of the four Directions, and subsequently averaging the obtained result, one can decrease the error of the measured offset.
Therefore, by applying the present method, we can measure the offset voltage of a directional magnetic sensor in the presence of an unknown, or only partially known magnetic field. The only condition concerning the magnetic field is that it stays constant during at least four successive measurements described above.
Ones the offset voltage is measured as described above, it can be cancelled in the Sensor output voltage. Then the equation (6) can be re-written as follows:
wherein V may correspond to V−V0 as previously used, and further, by introducing the symbol
The ratio (V/B) in (13) is called the “actual sensitivity” of the Sensor, and is denoted by Si (i is an index). We use the attribute “actual sensitivity” because the value of Si depends on the actual Position of the vector {right arrow over (S)}.
In equation (14), only the actual sensitivity Si can be measured directly, while the other 6 parameters on the right side of the equation are unknown. The present invention makes it possible to find these unknown parameters in the following way:
The expression “independent equations” as introduced above may be understood such that that none of the equations can be derived algebraically from the others.
Preferably, the said Positions are predetermined in such a way, that the said equations make a system of equations, in which some of the terms containing the components of the magnetic field can be mutually cancelled out.
Consequently, the said system of equations can be simplified, so that it becomes analytically solvable. The solution of this system of equations gives the sought values of the components of the sensitivity vector of sensor {right arrow over (S)} and the values of the components of the magnetic field vector {right arrow over (B)}.
For example, if Magnet is a large stationary electromagnet, then Sensor shall be placed in the said series of the positions, or directions, with respect to the electromagnet's coordinate system. Alternatively, if Magnet is small permanent magnet, or a system of such magnets, then Magnet may be placed in the said series of the positions, or directions, with respect to the Sensors's coordinate system.
Preferably, the first of the said mutual positions of the magnet and the magnetic sensor shall be chosen so that the coordinate axes of the Sensor's coordinate system Rs are parallel with the corresponding coordinate axes of the Magnet's coordinate system Rm. The other Sensor's positions can be realized by rotations of Sensor around one of the Magnet's coordinate axis for 90° or 180°. Alternatively, the other Magnet's positions can be realized by rotations of Magnet around one of the Sensor's coordinate axis for 90° or 180°.
In
In each of these positions, the output voltage of Sensor V and the modulus of the magnetic field vector B of the Magnet are measured simultaneously, and Si is calculated according to equation (13). According to
By adding equations (15) and (17) we get
Similarly, by adding equations (16) and (18) we get
The last two equations are redundant, which means that in principle it is sufficient to perform only two of the above measurements, not four; but the use of four measurements increases the accuracy of the procedure, so, for example, we further calculate with 4 measurements. By adding equations (19) and (20) is obtained
In
According to
By adding equations (22) and (24) we get
Similarly, by adding equations (23) and (25) we get
Here, the last two equations are also redundant, but, as above, we further calculate with both of them. Addition (22) and (25) gives:
In
According to
By adding equations (29) and (31) we get
Similarly, by adding equations (30) and (32) we get
Also here the two equations are redundant, but, as above, we calculate with both. By adding (33) and (34) it is obtained
Equations (21), (28) and (35) can be written as follows:
If both sides of these equations are squared and then these three equations are added together, we get
(the sum of the squares of the directional cosines of vector {right arrow over (B)}). From equation (37) it is possible to calculate the component x of the probe sensitivity,
where are S1x, S2x and S3x are the measured values of the generalized actual sensitivities of the Sensor, which are defined by equations (21), (28) and (35).
From equations (36) and (38) the cosines of the direction of the magnetic field vector are calculated directly:
We will use equations (22)-(25) and (29)-(32). Subtracting equation (24) from equation (22) gives:
Subtracting equation (25) from equation (23) gives:
Similarly, subtracting equation (31) from equation (29) and (32) from (30), respectively, gives
Subtracting equations (43) from (40) and adding equations (41) and (42) forms the following system of equations:
The solution of this system of equations is:
Sy and Sz are the required components of the vector {right arrow over (S)}.
Once the cosines of the direction of the magnetic field vector of the used Magnet are determined as described above in the second calibration sub-process, a simplified procedure with at least 3 Positions can be used to measure only the sensitivity vector of other Sensors.
For example: The Sensor is positioned so that its sensitivity components Sx, Sy and Sz are, one after the other, parallel to the main component of the vector {right arrow over (B)}, for example, parallel to Bx. This corresponds to one position from
We rewrite three equations 15, 22, and 29 from above:
The solution of this system of equations is:
Of course, here again, increasing the number of measurements and averaging the results reduces the measurement error. The simplest increase is the doubling of the number of measurements in which each of the vectors {right arrow over (S)}x, {right arrow over (S)}y and {right arrow over (S)}z from
Alternatively, once a Sensor is calibrated as described above in the first two calibration sub-processes, it can be used to calibrate other Magnets in a simplified procedure, with at least 3 Positions. The corresponding sub-process and equations are analogous to those of the previous section “Measurement of the Sensor's magnetic sensitivity vector when the field vector of the Magnet is known”.
According to the present invention, the measurement of offsets and sensitivity vector components of such 2-axial or 3-axial Sensors is reduced to the measurement of the offset and sensitivity vector components of each of the Sensors in the housing individually, in the same way as shown above for one single-axis Sensor.
For example, if the sensitivity vector components of a 3-axial Sensor are to be measured, then Equation (14) can be written for each single-axis Sensor in the housing:
The symbols S1i, S2i, S3iare the actual sensitivities of sensors 1, 2, 3 (i.e. sensors directed in the direction of the x, y, z axes). Cx, Cy and Cz are the cosines of the directions of the vector {right arrow over (B)} in the common reference coordinate system R.
Each of these equations has the same form and meaning as equation (14), which means that the determination of the coefficients in these equations could be performed in the same way as described above for a single-axial Sensor. The only difference is that now in each Sensor-Magnet Position three voltages should be read (from the output of each of the three Sensors), not just one; and write and solve three systems of equations instead of only one.
If the magnetic field of the calibrating magnet is known, then all the sensitivity vectors of a 3-axis magnetic sensor can be determined in the sub-process described above, which comprises measurements in only 3 positions.
A mechanical device that defines the reference (R) coordinate system, which is common to both the vector {right arrow over (S)} (i.e. to the probe housing in its basic position) and vector {right arrow over (B)} should be placed in the magnet (or Helmholtz coils). This device should also enable accurate placement of the probe housing in such positions that the coordinate axes of the probe Xs, Ys, Zs are strictly parallel to the coordinate axes of the reference system Xr, Yr, Zr, and any axis of the probe (system S) with any axis system R. In particular, each axis of the reference (R) coordinate system may then coincide with one axis of the natural coordinate system of the sensor and/or the sensor's package, in particular with said natural coordinate system and the reference (R) coordinate being identical. The center of the field sensitive volume (FSV) of the probe should always remain in the same place, in order to be always exposed to the same vector of field {right arrow over (B)}.
The calibration tool does not necessarily have to be in the shape of a cube, but should enable precise rotation by 90° for all three angles of rotation (angles roll, pitch, yaw in
An example of one such tool is shown in
As a reminder, the same measurement results can be obtained by rotating the magnetic sensor in a constant magnetic field or by rotating the field while the magnetic sensor maintains a constant position (see
The positioning of the tool from
In order for the cube to be able to rotate 90° in any direction and for its center of mass to always maintain the same position, it is necessary to ensure a precise locating of the cube. A 3D corner tool is used for this, or locating in the so-called. 6 points (3-2-1 location) (see
Measurement of the module of the magnetic field of Magnet
At least 6 Positions that are chosen so that the resulting system of 6 independent equations is analytically solvable, the solutions give
both the values of the components of the magnetic sensitivity vector of Sensor and the values of the directional cosines of the magnetic field vector of the Magnet.
This description and any accompanying drawings that illustrate aspects and embodiments of the present invention should not be taken as limiting the claims defining the protected invention. In other words, while the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive. Various mechanical, compositional, structural, electrical, and operational changes may be made without departing from the spirit and scope of this description and the claims. In some instances, well-known circuits, structures and techniques have not been shown in detail in order not to obscure the invention. Thus, it will be understood that changes and modifications may be made by those of ordinary skill within the scope and spirit of the following claims. In particular, the present invention covers further embodiments with any combination of features from different and/or individual embodiments as described above and below. Embodiments in accordance with the invention may, in particular, include further and/or additional features, elements, aspects, etc. not shown in the drawings or described above.
The disclosure also covers all further features shown in any Figure, individually, although they may not have been described in the afore or following description. Also, individual alternatives of the embodiments described in any Figure and the description and individual alternatives of features thereof can be disclaimed from the subject matter of the invention or from disclosed subject matter. The disclosure comprises subject matter consisting of the features defined In the claims or the exemplary embodiments as well as subject matter comprising said features.
The present disclosure also includes embodiments with any combination of features which are mentioned or shown above and/or below, in various embodiments or variants. It also includes individual features as shown in the Figures, even if they are shown there in connection with other features and/or are not mentioned above or below. The disclosure comprises embodiments which exclusively comprise the features described in the claims or the exemplary embodiments, as well as those which comprise additional other features. The steps of any method disclosed above or claimed below may preferably be carried out according the order in which they are presented, but may also be carried out in a different order.
Furthermore, in the claims the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. A single unit or step may fulfil the functions of several features recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. The terms “essentially”, “substantially”, “about”, “approximately” and the like in connection with an attribute or a value particularly also define exactly the attribute or exactly the value, respectively. The term “about” in the context of a given numerate value or range refers to a value or range that is, e.g., within 20%, within 10%, within 5%, or within 2% of the given value or range. Components described as coupled or connected may be electrically or mechanically directly coupled, or they may be indirectly coupled via one or more intermediate components. Any reference signs in the claims should not be construed as limiting the scope.
Number | Date | Country | Kind |
---|---|---|---|
CH070147/2021 | Aug 2021 | CH | national |
22020110.7 | Mar 2022 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2022/072389 | 8/9/2022 | WO |