Magnetic encoder apparatus having a plurality of magnetic sensor elements
09541423 ยท 2017-01-10
Assignee
Inventors
- Peter Kogej (Rozna Dolina, SI)
- Alja{hacek over (z)} Ogrin (Kranj, SI)
- Gregor Dol{hacek over (s)}ak (Ig, SI)
- Bla{hacek over (z)} Hajdinjak (Ljubljana, SI)
Cpc classification
G01D5/2458
PHYSICS
International classification
G01B7/14
PHYSICS
G01B7/30
PHYSICS
G01D5/244
PHYSICS
Abstract
A magnetic encoder apparatus is presented that includes a plurality of magnetic sensor elements (e.g. Hall sensors) for reading an associated magnetic scale that produces a periodically repeating magnetic pattern. The plurality of magnetic sensor elements produce a plurality of sensor signals and an analyzer is provided for analyzing the plurality of sensor signals to provide a measure of the position of the magnetic sensor elements relative to the associated magnetic scale. The analyzer is arranged to use the plurality of sensor signals to assess the period of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements. In this manner, the requirement to carefully match the period of the sensor elements with the periodically repeating magnetic pattern of the associated magnetic scale is avoided.
Claims
1. Magnetic encoder apparatus comprising: a plurality of magnetic sensor elements for reading an associated magnetic scale that produces a periodically repeating magnetic pattern, the plurality of magnetic sensor elements producing a plurality of sensor signals; an analyser for analyzing the plurality of sensor signals to provide a measure of the position of the magnetic sensor elements relative to the associated magnetic scale; the analyser being arranged to use the plurality of sensor signals to assess the period of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements; and the magnetic scale having a series of alternating firs magnetized regions and second magnetized regions, wherein: the first magnetized regions are of the opposite magnetic pole to the second magnetized regions, centers of the first magnetized regions are spaced apart from one another by a fixed interval such that a distance between neighboring centers of each of the first magnetized regions is the same, and each first magnetized region has a first width or a second different width and thereby encodes a data bit, the data bit taking a first value if the first magnetized region has the first width and a different second value if the first magnetized region has the second width.
2. An apparatus according to claim 1, wherein the analyser assesses the period of the periodically repeating magnetic pattern by determining the number of periods of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements.
3. An apparatus according to claim 1, wherein the analyser assesses the period of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements by performing Fourier analysis on the plurality of sensor signals to calculate the amplitude of a fundamental sinusoidal component and/or one or more harmonics thereof.
4. An apparatus according to claim 3, wherein the analyser performs Fourier analysis on the plurality of sensor signals to calculate relative amplitude of a plurality of harmonics, the relative amplitude providing an indication of an alignment of the plurality of sensor elements relative to the scale.
5. An apparatus according to claim 1, wherein the analyser calculates at least one Fourier coefficient from which incremental position information is calculated that describes any change in the relative position of the magnetic sensor elements and the magnetic scale.
6. An apparatus according to claim 1, wherein the analyser is arranged to calculate the phase of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements and to determine, for each period of the of the periodically repeating magnetic pattern, the strength of the magnetic pattern sensed by the plurality of magnetic sensor elements at a predetermined phase angle.
7. An apparatus according to claim 6, wherein the plurality of magnetic sensor elements are arranged to read the associated magnetic scale comprising a series of alternating the first magnetized regions and the second magnetized regions in which absolute data is encoded by providing first magnetized regions of at least a first type and a second type that generate different magnetic field strengths, wherein the predetermined phase angle allows the magnetic field strength to be assessed to determine if each first magnetized region is of a first type or a second type and thereby extract the value of the encoded data bit.
8. An apparatus according to claim 7, wherein the plurality of magnetic sensor elements are arranged to simultaneously read a plurality of first magnetized regions of an associated scale and the analyser is arranged to determine a plurality of data bits that form a codeword, the codeword encoding information about an absolute position of the plurality of magnetic sensor elements relative to the associated scale.
9. An apparatus according to claim 1, wherein the magnetic scale is a linear magnetic scale comprising a linear array of alternating the first magnetized regions and the second magnetized regions.
10. An apparatus according to claim 1, wherein the magnetic scale is a radial magnetic scale comprising a series of radially extending the first magnetized regions and the second magnetized regions.
11. An apparatus according to claim 10, wherein the plurality of magnetic sensor elements used to read the radial magnetic scale are provided as a linear array and the analyser applies a compensation to the sensor signals to compensate for the radial distribution of the first and second magnetized regions.
12. An apparatus according to claim 1, wherein the pitch of the periodically repeating magnetic pattern sensed by the plurality of magnetic sensor elements is different to the pitch of magnetic sensor elements.
13. An apparatus according to claim 1, wherein the plurality of magnetic sensor elements comprises a linear array of Hall sensor elements.
14. An apparatus according to claim 1, wherein the plurality of magnetic sensor elements and the analyser are provided within a readhead.
Description
(1) The present invention will now be described, by way of example only, with reference to the accompanying drawings in which;
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11) Referring to
(12)
(13)
(14) Referring to
(15)
(16)
(17) In this example, there are found to be 8 periods of the magnetic field pattern spatially distributed across the fifty-three Hall sensors of the readhead. There are thus 6.625 sensors provided per period of the magnetic pattern. In terms of Fourier analysis, the magnetic pattern of eight periods that covers the length of the array of Hall sensors can be termed the seventh harmonic (H7) of the fundamental sine wave; the fundamental sine wave comprising a single period over the array of Hall sensors.
(18) The amplitude and phase of the signal that corresponds to the magnetic pattern can thus be calculated by the expressions:
(19)
where S.sub.i is the sensor signal produced by the i.sup.th Hall sensors.
(20) The coefficients
(21)
can be calculated in advance, so can be written as constants ks.sub.i and kc.sub.i. The S.sub.SIN and S.sub.COS expressions thus become:
(22)
(23) Amplitude and phase can then be found using the following equations:
(24)
(25)
(26) The data in
(27)
(28) If the readhead is reading an annular scale, then the period of the sensed magnetic pattern will alter as the readhead is moved radially back and forth relative to the scale ring.
(29)
(30)
(31) It can thus be seen that readhead alignment relative to the scale can be measured by observing the H7/H6 and H7/H8 ratios. In particular, the readhead can be moved radially back and forth until the amplitude of the H7 signal is maximised so that the desired eight periods of the magnetic field pattern spatial distributed across the fifty-three Hall sensors of the readhead. Such correct alignment then ensures that the Sin and Cosine signals generated from the H7 signal provide reliable incremental position information.
(32) It should be noted that, instead of physically moving the readhead, it would also be possible to recalculate the number of periods of the magnetic pattern sensed by the Hall array and adjust the coefficients used in equations 1a, 1b and 2 accordingly. Furthermore, it should be remembered there is also no need to provide an integer number of periods of the magnetic pattern over the length of the Hall sensor array.
(33) It has also been found that using a linear array of Hall sensors to read a radial scale produces radial distortions in the waveforms at the ends of the array.
(34) It has been found that the ks.sub.i and kc.sub.i coefficients used to generate the Sine and Cosine signals can be modified in order to compensate for the radial distortion. In particular, modified ks.sub.i and kc.sub.i coefficients can be calculated taking into account the radial distribution of the first and second magnetic regions using the expressions:
(35)
where P is the period of the scale, r is the radius of the ideal position of the readhead and x.sub.i the distance of the i.sup.th sensor from the centre of the chip. In the present example, the Hall sensors are spaced 0.15 mm apart from one another and x.sub.i=(i26)*0.15 mm (where 26 is the index of the central sensor on the chip and i ranges from 0 to 52). The values of ks.sub.i and kc.sub.i can be calculated in advance.
(36) Taking the corrections of equations 5a and 5b into account the Sine and Cosine expressions become;
(37)
(38) Additionally, applying a so-called window function (using w.sub.i coefficients) to equations 6a and 6b can further improve the amplitude and phase information thereby reducing the error when interpolating those signals.
(39)
(40) There are numerous window functions that could be applied; for example, Hann, Gauss, Triangular, Hamming functions etc.
(41) The values of w, can be calculated in advance as well so both coefficients w.sub.i and kc.sub.i (for linear scale) or w.sub.i and kc.sub.i coefficients (for angular scale) can be merged into one series of coefficents w.sub.i. Equations 3 and 4 provided above can then be used to generate corrected amplitude and phase information.
(42) The skilled person would appreciate that the above examples describe specific ways of implementing the invention and that various alternatives would be possible.