Magnetic polewheels are used in many modern day angular position sensors to detect the angular position of a rotating object. Such angular position sensors have applications in many fields such as automotive, industrial, etc. For example, in automobiles angular position sensors are used in brushless direct current (BLDC) motors to detect rotor position during operation and in steering angle measurement to provide information about the direction a driver wants to go for automatic steering applications (e.g., electric power steering, electronic stability control, active steering systems, parking assistance systems, etc.).
Conventional magnetic angular position sensors are positioned in front of a rotating magnetized disc located at the end of a shaft. In such a position, the magnetic angular position sensors are able to accurately measure changes in the magnetic field and to determine an angle of the shaft therefrom. However, if the end of the shaft is not accessible due to mechanical restrictions (e.g., in electrical car motors), the magnetic angular position sensor is instead located alongside the shaft at a position outside of an axis of rotation (i.e., an out-of-axis position). In such an out-of-axis position, the out-of-axis magnetic angular position sensor measures changes in an out-of-axis magnetic field and determines an angle of the shaft therefrom.
The description herein is made with reference to the drawings, wherein like reference numerals are generally utilized to refer to like elements throughout, and wherein the various structures are not necessarily drawn to scale. In the following description, for purposes of explanation, numerous specific details are set forth in order to facilitate understanding. It may be evident, however, to one skilled in the art, that one or more aspects described herein may be practiced with a lesser degree of these specific details. In other instances, known structures and devices are shown in block diagram form to facilitate understanding.
Some conventional methods for measuring a mechanical angle of rotation by way of out-of-axis magnetic fields use the Nonius principle (i.e., the Vernier principle). The Nonius principle allows shaft angle detection over a mechanical 360° rotation by combining signal information received from two sensors triggered by two polewheels. For example,
As the rotatable shaft 106 rotates magnetic polewheels 102a and 102b rotate, causing sections 104a and 104b to move past the magnetic field sensors 108. A first magnetic field sensor 108a detects changes in a magnetic field generated by the primary polewheel 102a, and therefrom generates a first output signal out1. A second magnetic field sensor 108b detects changes in a magnetic field generated by the secondary polewheel 102b, and therefrom generates a second output signal out2. A Nonius angle (i.e., an estimated mechanical) of the rotating shaft 106, as shown in graph 112 of
Using the Nonius principle improves the sensitivity of polewheel based magnetic sensor modules over sensor modules using a single polewheel (e.g., which can have errors as high as +/−35° for diametric polewheels). For example, graph 112 shows an error associated with the Nonius angle (y-axis) as a function of the actual, mechanical angle (x-axis). As shown in graph 112, the error of the Nonius angle ranges from +4.23°/−3.50°. However, even using the Nonius principle, detection errors can arise.
Accordingly, some aspects of the present disclosure provide for a method and/or apparatus for accurately measuring an out-of-axis magnetic field generated by a magnetic polewheel.
In some embodiments, the disclosure relates to a magnetic sensor module having a first polewheel comprising a plurality of sections, having alternating magnetic polarities, positioned around a circumference of a ring structure. A first magneto-resistive sensor is located at a first angular position. A second magneto-resistive sensor is located at a second angular position. The second magneto-resistive sensor is oriented with respect to a radial direction of the magnetic polewheel at a non-zero angle dependent upon a number of the plurality of sections. The first and second magneto-resistive sensors are configured to concurrently generate first and second sensor signals proportional to a magnetic field corresponding to a first measured angle of the first polewheel. A signal processor is configured to receive the first and second sensor signals and to determine an estimated mechanical angle of the first polewheel to a high degree of accuracy therefrom.
In other embodiments, the disclosure relates to a method of measuring an enhanced angle corresponding to a mechanical angle of a rotatable device by determining an out-of-axis magnetic field based upon a signal period of a detected signal. The method comprises operating one or more magnetic field sensors to determine a position within a signal curve corresponding to a mechanical rotation. The position is then translated into a signal period of the position measured by the one or more magnetic field sensors. An enhanced angle is then calculated from the signal period. By determining the enhanced angle from a signal period, the accuracy of the enhanced angle can better estimate the actual mechanical angle of the rotatable device.
The multi-sensor magnetic sensor module 200 comprises a magnetic polewheel 202 with a plurality of sections 204 (i.e., “poles”) configured to generate magnetic fields having alternating polarities around a ring structure. For example, a first section 204a is configured to generate a magnetic field having a first polarity (e.g., having a north magnetic pole facing radially outward), while a second section 204b is configured to generate a magnetic field having a second polarity (e.g., having a south magnetic pole facing radially outward). The alternating polarities of the first and second sections, 204a and 204b, result in a magnetic field that varies as a function of an angle of the magnetic polewheel 202. Although multi-sensor magnetic sensor module 200 is illustrated as having two sections (poles), it will be appreciated that the disclosed multi-sensor magnetic sensor module may comprise any number of sections.
The magnetic polewheel 202 is mounted on a rotatable shaft 206 and is separated by an air gap 212 from a first magneto-resistive sensor 208a and from a second magneto-resistive sensor 208b. The first and second magneto-resistive sensors, 208a and 208b, are configured to detect a magnetic field 214 output from the magnetic polewheel 202 and to respectively generate first and second output signals, out1 and out2, based upon the detected magnetic field 214. The first and second output signals correspond to an estimated mechanical angle of the magnetic polewheel 202. In some embodiments, the first and second magneto-resistive sensors comprise giant magneto-resistive sensors.
As the rotatable shaft 206 rotates the magnetic polewheel 202 rotates, causing sections 204a and 204b to move past the magnetic field sensors 208. Since the magnetic field 214 generated by the magnetic polewheel 202 varies as a function of angle, the resulting output signals, out1 and out2, generated by the magnetic field sensor 208 comprise a sinusoidal signal with a signal period that is dependent upon a number of sections 204 in the magnetic polewheel 202. The first and second output signals out1 and out2 are provided to a signal processor 210. The signal processor 210 operates an algorithm to determine a first measured angle of the first magneto-resistive sensor 208a and a second measured angle of the second magneto-resistive sensor 208b. The first and second measured angles are then averaged to generate an estimated mechanical angle of the magnetic polewheel 202. In some embodiments, the algorithm corresponds to the methods 700 and 800, described below.
The first magneto-resistive sensor 208a is located at a first angular position α1 and the second magneto-resistive sensor 208b is located at a second angular position α2. The first and second angular positions, α1 and α2, are separated by a separation angle Δα, which is dependent upon a number of pole pairs present in the magnetic polewheel 202. The separation angle Δα causes the first magneto-resistive sensor 208a to be located at a position that correspond to a center of a magnetic pole (e.g., 204b), when the second magneto-resistive sensor 208b is located at a position that corresponds to a magnetic pole transition (e.g., a transition between 204b and 204a). Since the error of a magnetic sensor is small when a sensor is facing a middle of a pole or a pole transition (i.e., the magneto-resistive sensors have a high degree of accuracy at a center of a pole and at a pole transition, where the magnetic field is substantially straight), such a separation can improve the accuracy of the magnetic sensor module 200.
The first and second magneto-resistive sensors 208a, 208b are configured to measure a magnetic field generated by a same section of the magnetic polewheel 202 at a same time. In some embodiments, the first and second magneto-resistive sensors, 208a and 208b, are oriented at different angles with respect to a radial direction 216 of the polewheel. Because of the directional dependence of the magneto-resistive sensors 208 (e.g., magneto-resistive sensors have a resistance that is proportional to an angle at which a magnetic field is incident on the magneto-resistive sensor), such an orientation allows for the first and second magneto-resistive sensors, 208a and 208b, to be oriented in line with a magnetic field line generated by a same section of the magnetic polewheel 202, such that the first and second magneto-resistive sensors, 208a and 208b, measure a same mechanical angle of the magnetic polewheel 202 at a time.
For example, for the diametric magnetic polewheel 202 of
As shown in graph 300, in a first region 302 (where a first sensor travels from a pole center to a pole transition and the second sensor travels from a pole transition to a pole center) the first measured angle has a negative error, so that the first measured angle is less than the actual mechanical angle. Furthermore, the second measured angle has a positive error so that the measured angle is greater than the actual mechanical angle. Taking the average (i.e., mean) of the first and second measured angles in the first region 302 causes the positive and negative error values to cancel each other, resulting in an estimated mechanical angle having a reduced overall error.
In a second region 304 (where the first sensor travels from a pole center to a pole transition and the second sensor travels from a pole transition to a pole center) the first measured angle has a negative error, so that the first measured angle is less than the actual mechanical angle. Furthermore, the second measured angle has a positive error, so that the second measured angle is greater than the actual mechanical angle. Taking the average (i.e., mean) of the first and second measured angles in the second region 304 causes the positive and negative error values to cancel each other, resulting in an estimated mechanical angle having a reduced overall error. The resulting error shown in graph 306 is between +/−9.4°.
The multi-sensor magnetic sensor module 400 comprises two polewheels: a primary polewheel 402a (i.e., a coarse polewheel) having n pole pairs and a secondary polewheel 402b (i.e., a fine polewheel) having n+1 pole pairs. As shown in
The polewheels, 402a and 402b, are separated from magnetic field sensors 408 by an air gap 412. In particular, a first magneto-resistive sensor 408a is associated with the primary magnetic polewheel 402a, while a second magneto-resistive sensor 408b and a third magneto-resistive sensor 408c are associated with the secondary polewheel 402b. The magnetic field sensors 408a-408c are configured to provide signals to a signal processor 410 configured to measure a mechanical angle of the rotating shaft 406. In some embodiments, the signal processor 410 comprises a memory element 414 configured to store an algorithm (e.g., algorithms corresponding to methods 600 or 700) that is used in processing the signals received from the magnetic field sensors 408 to determine an estimated mechanical angle.
At 502, a magnetic sensor module comprising one or more magnetic polewheel located around a rotatable shaft is provided. The magnetic polewheels comprises a plurality of a sections (“poles”) having different magnetic polarities, such that the outer surface of the polewheel alternates between sections having a north magnetic pole and sections having a south magnetic pole.
At 504, a first magneto-resistive sensor is provided at a first angular position relative to a magnetic polewheel.
At 506, a second magneto-resistive sensor is provided at a second angular position relative to the magnetic polewheel. In general, for a polewheel having n poles (i.e., sections), the first and second magneto-resistive sensors are separated by a separation angle Δα, where:
Δα=360°/2n.
Furthermore, the second magneto-resistive sensor is oriented with respect to the first magneto-resistive sensor by a rotation angle of β, where:
β=90°+360°/2n.
Such an orientation between the first and second magneto-resistive sensors causes the magneto-resistive sensors to be oriented at different angles with respect to a radial direction of the magnetic polewheel.
At 508, the first magneto-resistive sensor is operated to generate a first sensor signal corresponding to a first measured angle φ1. The first measured angle φ1 is the first magneto-resistive sensor's measurement of a mechanical angle of the rotatable shaft. However, due to errors in the measurement, the first measured angle φ1 may deviate slightly from the actual mechanical angle φmech.
At 510, the second magneto-resistive sensor is operated to generate a second sensor signal corresponding to a second measured angle φ2. The second measured angle φ1 is the second magneto-resistive sensors measurement of a mechanical angle of the rotatable shaft. However, due to errors in the measurement, the second measured angle φ2 may deviate slightly from the actual mechanical angle φmech.
At 512, an estimated mechanical angle φest of the rotatable shaft is determined from the mean of the first and second measured angles,
φest=(φ1+φ2)/2.
By determining the estimated mechanical angle φest from the mean of the first and second measured angles, the errors associated with the first and second measured angles, φ1 and φ2, are mitigated providing for a good accuracy of the resulting multi-sensor magnetic sensor module.
At 602, an out-of-axis magnetic field sensor module is provided. The out-of-axis magnetic field sensor module comprises one or more magnetic field sensors located alongside one or more rotating magnetic polewheels located around a rotatable shaft. The one or more magnetic field sensors are configured to measure components of a magnetic field generated by a magnetic polewheel. In some embodiments, the one or more magnetic field sensors comprise magneto-resistive sensors (e.g., giant magneto-resistive sensors). In some embodiments, the out-of-axis magnetic field sensor module comprises two concentric rotating polewheels, wherein respective polewheels comprise one or more magnetic field sensors located alongside the polewheels.
At 604, at least one magnetic field sensor is operated to determine a position of the rotatable shaft within a signal curve. In some embodiments, the position of the rotatable shaft within the signal curve is determined as a function of a measured angle. For example, a position of the rotatable shaft within a signal curve that extends over a mechanical 360° rotation may comprise a measured angle determined by translating a sensor signal generated by a magnetic sensor to the measured angle. In some embodiments, the position of the rotatable shaft within the signal curve comprises a Nonius angle (i.e., a measured angle determined by utilizing the Nonius principle), in which the Nonius angle is proportional to a difference between a first measured angle generated by a first magnetic sensor associated with a first polewheel and a second measured angle generated by a second magnetic sensor associated with a second polewheel.
At 606, the position of the rotatable shaft within a signal curve is translated to a signal period. The signal period is an amount of time that a signal takes to go through one complete iteration. In a polewheel having multiple sections/poles, the signal output from a magnetic sensor will go through multiple signal periods over a mechanical 360° rotation. For example, a polewheel having n pole pairs (i.e., wherein each pole pair has two sections) will go through n signal periods over a mechanical 360° rotation. In some embodiments, a Nonius angle of a polewheel (determined at 604) can be translated into a signal period, thereby allowing the position of the rotatable shaft within the signal curve to be a function of a signal period rather than an angle. For example, for a polewheel having two polewheel pairs, a Nonius angle of 180° would translate to a signal period of 1.
At 608, an enhanced angle of the rotatable shaft is calculated from the signal period. The enhanced angle is an estimated of the physical angular position of the rotatable shaft.
At 610, the enhanced angle may be adjusted to eliminate error peaks. In some embodiments, the enhanced angle can be adjusted to eliminate errors inherent in the Nonius angle from which the signal period is determined. For example, if the enhanced angle is calculated based upon a signal period determined from a Nonius angle, errors in the Nonius angle can cause the signal period to be incorrect, resulting in error peaks in the enhanced angle. Therefore, by comparing the enhanced angle to a maximum error of the Nonius angle, the error peaks can be identified and subsequently corrected.
While the disclosed methods (e.g., method 600, 700, and 800) are illustrated and described as a series of acts or events, it will be appreciated that the illustrated ordering of such acts or events are not to be interpreted in a limiting sense. For example, some acts may occur in different orders and/or concurrently with other acts or events apart from those illustrated and/or described herein. In addition, not all illustrated acts may be required to implement one or more aspects or embodiments of the description herein. Further, one or more of the acts depicted herein may be carried out in one or more separate acts and/or phases.
At 702, an out-of-axis magnetic sensor module having two concentric polewheels is provided. In some embodiments, the out-of-axis magnetic field sensor module comprises a first magnetic sensor associated with a primary polewheel and a second magnetic sensor associated with a secondary polewheel. The primary polewheel has a first number of sections/poles (e.g., n pole pairs). The secondary polewheel is positioned concentric to the primary polewheel and has a second number of sectionspoles, which is greater than the first number of sections/poles (e.g., n+1 pole pairs).
At 704, a first, course angle (θcoarse) associated with the primary polewheel is determined.
At 706, a second, fine angle (θfine) associated with the secondary polewheel is determined.
At 708, a Nonius angle (θNonius) of the rotatable shaft is determined from the coarse angle θcoarse and the fine angle θfine. The Nonius angle θNonius is an approximate mechanical angle of the rotatable shaft as measured by the fine polewheel. The Nonius angle θNonius can be determined according to the Nonius principle, in which the coarse angle θcoarse is subtracted from the fine angle θfine to generate a Nonius angleNonius of the fine polewheel (i.e., θNonius=θfine−θcoarse) that provides a rough estimate of the mechanical angle of the rotatable shaft. In some embodiments, the modulo of the Nonius angle θNonius and 360° is taken to correct overshoots in the Nonius angle θNonius. In such embodiments, the resulting Nonius angle θNonius is equal to:
θNonius=mod(θNonius′,360°)
where θNonius′=θfine−θcoarse. For negative difference between fine angle θfine and the coarse angle θcoarse, the modulo is defined as: mod(−x, 360°)=360°−x (e.g., mod(−35°, 360°)=325°).
At 710, a position of the rotatable shaft is determined as a function of a signal period of the fine polewheel. In some embodiments, the signal period is determined by first calculating a threshold, which is equal to a size of a signal period of the fine polewheel in degrees, and then dividing the measured angle by the threshold. In such an embodiment, the threshold is equal to three-hundred and sixty degrees divided a number of pole pairs of a fine pole wheel (i.e., Threshold=360°/pole pair number of fine wheel). The signal period is equal to the floor of the Nonius angle θNonius divided by the threshold (i.e., Signalperiod Number=Floor(θNonius/Threshold), wherein the floor function of x rounds the elements of x to the nearest integer less than or equal to x.
For example, a fine polewheel having 4 polewheel pairs has a threshold of 360°/4=90°. Therefore, a Nonius angle θNonius of approximately 10° will result in a signal period of 0 (i.e., Floor (10°/90)) indicating that the Nonius angle θNonius is within the first signal period of the fine polewheel, while a Nonius angle θNonius of approximately 120° will result in a signal period of 1 (i.e., Floor (120°/90)) indicating that the Nonius angle θNonius is within the second signal period of the fine polewheel.
At 712, an enhanced angle is determined. The enhanced angle is calculated based upon the signal period and the fine angle θfine. In some embodiments, the enhanced angle θenhanced is equal to:
θenhanced=(360°*Signalperiod Number+θfine)/pole number of fine wheel.
For example, for a fine polewheel having 4 poles pairs, a signal period of 1, and a fine angle of 35°, the enhanced angle θenhanced is equal to 395°/4=98.75°.
At 714, the enhanced angle is selectively adjusted to remove peak errors. Since the Nonius angle is sometimes erroneous, the correct signal period cannot always be determined correctly causing the calculated signal period to be off by one. This results in error peaks in the enhanced angle with an amplitude that is equal to the threshold. To account for such peak errors, the peak errors are first identified and then the enhanced angle is adjusted by a value equal to the threshold.
For example, in one embodiment, to account for the error peaks, the enhanced angle θenhanced is compared with the Nonius angle θNonius. If the difference of the enhanced angle θenhanced and the Nonius angle θNonius is greater than a maximum error of the Nonius angle (i.e., a “Nonius error”)(act 716), the method assumes that a positive error peak is present and generates an adjusted enhanced angle θenhanced′ that is equal to the enhanced angle θenhanced minus the threshold (act 718). If the difference of the enhanced angle θenhanced and the Nonius angle θNonius is less than a minimum Nonius error (act 720), the method assumes that a negative error peak is present and generates an adjusted enhanced angle θenhanced′ that is equal to the enhanced angle θenhanced plus the threshold (act 722). If the difference of the enhanced angle θenhanced and the Nonius angle θNonius is less than a maximum Nonius error or greater than a minimum Nonius error, no peak is present and the enhanced angle θenhanced is not adjusted. In summary, the enhanced angle θenhanced can be adjusted according to the following equations:
IF θNonius−θenhanced>max(abs(ErrorNonius))
θenhanced′=θenhanced−Threshold
IF θNonius−θenhanced<−max(abs(ErrorNonius))
θenhanced′=θenhanced+Threshold.
In some embodiments, methods 600 and 700 may be executed by the disclosed multi-sensor magnetic field modules (e.g., multi-sensor magnetic sensor module 200 and 500). However, it will be appreciated that methods 600 and 700 are not limited to such multi-sensor magnetic field modules. Rather, the disclosed methods may be applied independent of the disclosed multi-sensor magnetic field modules or in conjunction with the disclosed multi-sensor magnetic field modules.
For example,
The magnetic sensor module 900 comprises a polewheel 902 mounted on a rotatable shaft 906 and separated by an air gap 912 from one or more magnetic field sensors 908 configured to detect a magnetic field output from the polewheel 902. The polewheel 902 comprises with a plurality of sections 904 configured to generate magnetic fields having alternating polarities around a ring structure.
Based upon a detected magnetic field, the magnetic field sensors 908 are configured to generate one or more output signals, corresponding to a magnetic field generated by the polewheel 902, which are provided to a signal processor 910. The signal processor 910 comprises a memory element 914 configured to store an algorithm that determines a signal period corresponding to the output signals generated by the magnetic field sensors 908.
For example, graph 916 of
The magnetic sensor module 1000 comprises a primary polewheel 1002a (i.e., a coarse polewheel) and a secondary polewheel 1002b (i.e., a fine polewheel mounted on a rotating shaft 1006 in a manner that causes the polewheels to be concentric about an axis 1014. The magnetic polewheels 1002 are separated from magnetic field sensors 1008 by an air gap 1012. The magnetic field sensors 1008 are configured to detect a magnetic field output from the polewheels. Over a mechanical 360° rotation the magnetic field sensors 1008 deliver two signals to a signal processor 1010, wherein the signal from the primary (coarse) pole wheel 1002a has a larger period than the signal from the secondary (fine) pole wheel 1002b.
It will be appreciated that equivalent alterations and/or modifications may occur to those skilled in the art based upon a reading and/or understanding of the specification and annexed drawings. The disclosure herein includes all such modifications and alterations and is generally not intended to be limited thereby. For example, although the figures provided herein, are illustrated and described to have a particular doping type, it will be appreciated that alternative doping types may be utilized as will be appreciated by one of ordinary skill in the art.
In addition, while a particular feature or aspect may have been disclosed with respect to only one of several implementations, such feature or aspect may be combined with one or more other features and/or aspects of other implementations as may be desired. Furthermore, to the extent that the terms “includes”, “having”, “has”, “with”, and/or variants thereof are used herein, such terms are intended to be inclusive in meaning—like “comprising.” Also, “exemplary” is merely meant to mean an example, rather than the best. It is also to be appreciated that features, layers and/or elements depicted herein are illustrated with particular dimensions and/or orientations relative to one another for purposes of simplicity and ease of understanding, and that the actual dimensions and/or orientations may differ substantially from that illustrated herein.