System and method for detecting magnetic turn counter errors - Patents.com
The magnetic field turn sensor system addresses sensitivity and nonlinearity issues in automotive steering systems by using multiple sensors and processors to detect and correct errors, ensuring accurate turn counting and safety.
Patent Information
- Application Number
- JP2023509805
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-12
- Filing Date
- 2021-07-26
- Publication Date
- 2024-11-07
- Estimated Expiration
- 2041-07-26
AI Technical Summary
Magnetic sensors in automotive steering systems suffer from sensitivity level changes and nonlinearity errors due to temperature variations, necessitating a robust sensor error detection mechanism.
A magnetic field turn sensor system with multiple angle sensors and signal processing paths, utilizing comparators and processors to detect deviations from expected transition angles and indicate abnormalities, ensuring accurate turn counting even in low power modes.
The system effectively detects and flags errors in turn counting, maintaining accurate steering angle measurements, thereby enhancing safety and compliance with functional safety standards.
Smart Images

Figure 0007579430000001 
Figure 0007579430000002 
Figure 0007579430000003
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to electronic systems and, more particularly, to a system and method for detecting sensor errors through a magnetic turn counter sensing element. [Background technology]
[0002] Magnetic sensors can be implemented to obtain linear or circular position or angle information of mechanical components such as shafts in a variety of applications, including automotive steering systems. Magnetic sensing elements used in magnetic angle sensors often suffer from non-linearity errors and changes in sensitivity levels due to, for example, temperature changes, making it desirable to implement sensor error detection mechanisms for magnetic sensors. Summary of the Invention [Means for solving the problem]
[0003] The methods and devices of the described technology each have several aspects, no single aspect being solely responsible for its desirable attributes.
[0004] In one aspect, a magnetic field turn sensor system is provided comprising: a magnetic field angle sensor; a signal processing path configured to receive an output from the magnetic field angle sensor and generate an angle measurement based on the output; a turn counting path configured to process the output from the magnetic field angle sensor and output a quadrant measurement based on the output; and a processor, wherein the processor is configured to receive the quadrant measurements from the turn counting path, determine that the quadrant measurements indicate a transition between quadrants, obtain an expected transition angle at which the quadrant measurements indicate the transition between quadrants, receive the angle measurements from the signal processing path, determine that the angle measurements deviate from the expected transition angle by more than a threshold, and indicate an anomaly in response to determining that the angle measurements deviate from the expected transition angle by more than the threshold.
[0005] The magnetic field angle sensor can include a first magnetic field angle sensor, the signal processing path can include a first signal processing path, and the angle measurement can include the first angle measurement, the system further comprising a second magnetic field angle sensor and a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output, the processor is further configured to receive the second angle measurement from the second signal processing path, determine that the first angle measurement differs from the second angle measurement by more than a threshold angle, and indicate an anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
[0006] The processor may be further configured to determine that the angle measurement does not deviate from the expected transition angle by more than a threshold, and to refrain from indicating an anomaly in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold.
[0007] The system may further comprise a memory configured to store the expected transition angle, and obtaining the expected transition angle further comprises retrieving the expected transition angle from the memory.
[0008] The processor may be further configured to store a plurality of historical values of the angle measurements in the memory and determine an expected transition angle based on the historical values of the angle measurements.
[0009] The processor may be further configured to, for a transition between the quadrants, average historical values of angle measurements corresponding to the transition between the quadrants and set the average of the historical values as an expected transition angle corresponding to the transition between the quadrants.
[0010] The processor may be further configured to, in response to waking up from the low power mode, compare the quadrant corresponding to the angle measurements to the quadrant measurements, determine that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements, and indicate an anomaly in response to determining that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements.
[0011] The processor may be further configured to determine that the angle measurement deviates from an expected angle range corresponding to the quadrant measurement by more than a threshold, and to indicate an anomaly in response to determining that the angle measurement deviates from the expected angle range by more than the threshold.
[0012] In another aspect, a motor control system configured to control a vehicle is provided, the motor control system comprising: a shaft connected to a steering wheel of the vehicle; a magnetic field turn sensor system comprising a magnetic field angle sensor; a signal processing path configured to receive output from the magnetic field angle sensor and generate an angle measurement based on the output; a turn counting path configured to process the output from the magnetic field angle sensor and output a quadrant measurement based on the output; and a processor, the processor is configured to receive the quadrant measurements from the turn counting path, determine that the quadrant measurements are indicative of a transition between quadrants, obtain an expected transition angle at which the quadrant measurements are indicative of the transition between quadrants, receive the angle measurements from the signal processing path, determine that the angle measurements deviate from the expected transition angle by more than a threshold, and indicate an anomaly in response to determining that the angle measurements deviate from the expected transition angle by more than the threshold.
[0013] The magnetic field angle sensor can include a first magnetic field angle sensor, the signal processing path can include a first signal processing path, and the angle measurement can include the first angle measurement, the system further comprising a second magnetic field angle sensor and a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output, the processor is further configured to receive the second angle measurement from the second signal processing path, determine that the first angle measurement differs from the second angle measurement by more than a threshold angle, and indicate an anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
[0014] The processor may be further configured to determine that the angle measurement does not deviate from the expected transition angle by more than a threshold, and to refrain from indicating an anomaly in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold.
[0015] The system may further comprise a memory configured to store the expected transition angle, and obtaining the expected transition angle further comprises retrieving the expected transition angle from the memory.
[0016] The processor may be further configured to store a plurality of historical values of the angle measurements in the memory and determine an expected transition angle based on the historical values of the angle measurements.
[0017] The processor may be further configured to, for a transition between the quadrants, average historical values of angle measurements corresponding to the transition between the quadrants and set the average of the historical values as an expected transition angle corresponding to the transition between the quadrants.
[0018] The processor may be further configured, in response to waking up from the low power mode, to compare the quadrant corresponding to the angle measurements to the quadrant measurements, to determine that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements, and, in response to determining that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements, to indicate an anomaly.
[0019] The processor may be further configured to determine that the angle measurement deviates from an expected angle range corresponding to the quadrant measurement by more than a threshold, and to indicate an anomaly in response to determining that the angle measurement deviates from the expected angle range by more than the threshold.
[0020] In yet another aspect, a method for detecting an error in a magnetic field turn sensor system is provided, the method including receiving quadrant measurements from a turn counting path of a magnetic field turn sensor system comprising a magnetic field angle sensor and a signal processing path configured to receive an output from the magnetic field angle sensor and generate an angle measurement based on the output, the turn counting path configured to process the output from the magnetic field angle sensor and output the quadrant measurement based on the output, determining that the quadrant measurement is indicative of a transition between quadrants, obtaining an expected transition angle at which the quadrant measurement is indicative of the transition between quadrants, receiving the angle measurement from the signal processing path, determining that the angle measurement deviates from the expected transition angle by more than a threshold, and indicating an anomaly in response to determining that the angle measurement deviates from the expected transition angle by more than the threshold.
[0021] The magnetic field angle sensor can include a first magnetic field angle sensor, the signal processing path including a first signal processing path, and the angle measurement including the first angle measurement, and the magnetic field turn sensor system further includes a second magnetic field angle sensor and a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output, and the method further includes receiving the second angle measurement from the second signal processing path, determining that the first angle measurement differs from the second angle measurement by more than a threshold angle, and indicating an anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
[0022] The method may further include determining that the angle measurement does not deviate from the expected transition angle by more than a threshold, and refraining from indicating an anomaly in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold.
[0023] The method may further include, in response to waking up from the low power mode, comparing a quadrant corresponding to the angle measurements to the quadrant measurements, determining that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements, and in response to determining that the quadrant corresponding to the angle measurements is inconsistent with the quadrant measurements, indicating an anomaly.
[0024] These drawings and the associated descriptions herein are provided to illustrate particular embodiments of the invention and are not intended to be limiting. [Brief description of the drawings]
[0025] [Figure 1A] 1 is a schematic diagram of an example implementation of an error detection system in accordance with a particular embodiment. [Figure 1B] 1 is a schematic diagram of an example implementation of an error detection system in accordance with a particular embodiment. [Figure 2A] 1 illustrates a diagram of an exemplary implementation of a first sensor, according to one embodiment. [Figure 2B] FIG. 13 is a block diagram illustrating an arrangement of multiple comparators that can be used to determine which quadrant a shaft angle is currently in, according to aspects of the present disclosure. [Figure 2C] 1 illustrates an example of a first output and a second output from a sine bridge and a cosine bridge that are provided to a first comparator and a second comparator, according to an aspect of the present disclosure. [Figure 2D] 1 illustrates an example of a first output and a second output from a sine bridge and a cosine bridge that are provided to a first comparator and a second comparator, according to an aspect of the present disclosure. [Diagram 3] FIG. 1 is a block diagram of an example implementation of a magnetic field turn sensor system configured to detect errors in turn counting, according to aspects of the present disclosure. [Figure 4] 11 is a flowchart of an example implementation of a method for detecting an error in a second sensor according to an aspect of the disclosure. [Diagram 5]1 is a flowchart of an example implementation of a method for detecting an error in a comparator according to an aspect of the disclosure. [Figure 6] 6 is a flowchart of an example implementation of a method 600 for detecting an error in a comparator 126, according to an aspect of the disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] Various aspects of the novel system, apparatus, and method are described more fully below with reference to the accompanying drawings. However, aspects of the disclosure may be embodied in many different forms and should not be construed as limited to any specific structure or function presented throughout this disclosure. Rather, these aspects are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Based on the teachings herein, those skilled in the art will appreciate that the scope of the disclosure is intended to cover any aspect of the novel system, apparatus, and method disclosed herein, whether implemented independently of any other aspect or in combination with any other aspect. For example, an apparatus may be implemented or a method may be practiced using any number of the aspects described herein. In addition, the scope is intended to encompass such an apparatus or method that is implemented using other structure, other functions, or other structure and functions in addition to or other than the various aspects described herein. It should be understood that any aspect disclosed herein may be embodied by one or more elements of a claim.
[0027] Although specific aspects are described herein, many variations and permutations of these aspects are within the scope of the present disclosure. Although some benefits and advantages of the preferred aspects are mentioned, the scope of the present disclosure is not intended to be limited to specific benefits, applications, or purposes. Rather, the aspects of the present disclosure are intended to be broadly applicable to different wired and wireless technologies, system configurations, networks including optical networks, hard disks, and transmission protocols, some of which are illustrated in the drawings and the following description of the preferred aspects as examples. The detailed description and drawings are merely illustrative of the present disclosure rather than limiting, the scope of the present disclosure being defined by the appended claims and their equivalents.
[0028] In this description, reference is made to the drawings, in which like reference numbers may indicate identical or functionally similar elements. It should be understood that the elements illustrated in the drawings are not necessarily drawn to scale. It should also be understood that certain embodiments may include more elements than are illustrated in the drawings and / or a subset of the elements illustrated in the drawings. Furthermore, some embodiments may incorporate any suitable combination of features from two or more drawings.
[0029] Overview of the Magnetic Field Turn Sensor System 1A and 1B are schematic diagrams of an example implementation of an error detection system, according to a particular embodiment. The example implementation 100 includes a shaft 106, a magnet 104, a magnetic field turn sensor system or sensing circuit 102, and a circuit board 108. An embodiment of the sensing circuit 102 is further described in connection with FIGS. 2-3 below. The magnet 104 can be attached to a rotating shaft 106. The rotating shaft 106 can be associated with a steering wheel of an automobile in a particular implementation. The sensing circuit 102 can sense a change in position of the magnet 104 and provide an indication of the rotation of the rotating shaft 106. The positional relationship between the sensing circuit 102 and the magnet 104 illustrated in FIGS. 1A and 1B is for illustration purposes. In another embodiment, the implementation can use an end-of-shaft configuration, where the magnet 104 can be a dipole magnet located at the end of the shaft 106, and the sensing circuit 102 can be located below the magnet 104. The positional relationship can be different. In one embodiment, the sensing circuit 102 may include two sensors, a first sensor and a second sensor. The second sensor may be the same as or different from the first sensor. For example, the second sensor may use a different sensing principle and a different signal chain design to ensure robustness.
[0030] In embodiments, magnetic sensors such as anisotropic magnetoresistance (AMR), giant magnetoresistance (GMR), or tunneling magnetoresistance (TMR) sensors, or any other suitable magnetoresistance (XMR) sensors, can be used to implement the disclosed apparatus and / or methods. In some embodiments, the magnetic sensors can measure a change in resistivity that is proportional to the magnetization direction of the free layer in the magnetoresistance sensor. Errors can be detected by using magnetic sensors such as AMR and TMR sensors, as well as various combinations of sensing elements of the magnetic sensors.
[0031] In certain motor control applications, it is beneficial to monitor the number of turns that the shaft 106 rotates, even when the motor controller is powered down. Such a system may arise where the shaft 106 may be moved by an external force while the system is powered off. To address this challenge, a low power circuit (which may be included as part of the sensing circuit 102) may be configured to continuously monitor the rotation of the shaft 106 while the rest of the motor control system is powered down.
[0032] An example of a system in which it may be beneficial to monitor the rotation or number of turns of the shaft 106 is an electric power assisted steering (ePAS) system in an automobile. In many ePAS systems, the angle of the shaft 106 is monitored as part of the motor control function when the system is operating normally. A low power sensing circuit 102 can also be used to keep track of the turns of the shaft 106 during normal operation.
[0033] The number of turns that the motor shaft 106 has rotated may be a critical variable for certain vehicle functions. For example, an error in the number of turns measurement of the steering wheel shaft may result in an incorrect steering angle being detected, which may cause a dangerous situation. Therefore, it may be important to accurately measure the turn count and flag any errors in the angle measurement to the motor control system. Providing diagnostic coverage for a low power turn counter is difficult because typical diagnostic techniques may consume additional power. For example, the low power rotation sensing circuit 102 may have a limited power consumption budget because consuming too much power while the vehicle is turned off may prematurely drain the vehicle battery. Thus, adding an error detection diagnostic that consumes too much additional power may result in the power usage of the sensing circuit 102 exceeding the power consumption budget.
[0034] In the present disclosure, the sense circuit 102 can use angle measurements from one of more signal processing paths to monitor the transition angle between quadrants measured by the sense circuit. Errors in the components of the sense circuit 102 can be detected by comparing the measured transition angle to an expected transition angle. For example, a particular error in a component of the sense circuit 102 will affect the particular angle at which the sense circuit 102 transitions between quadrants, which can be detected by comparing the measured transition angle to a predetermined expected transition angle.
[0035] Aspects of the present disclosure can be implemented, for example, in a magnetic angle sensor including a sensing circuit 102. Such magnetic sensors can include AMR and TMR sensing elements, signal conditioning electronics, and an interface. Depending on the implementation, the interface can include one or more of a Serial Peripheral Interface (SPI), a Single Edge Nibble Transmission (SENT) interface, a Peripheral Acceleration Sensor (PAS) interface such as PAS4. In one application, the interface can be a PAS interface, such as a PAS4 interface for a remote accelerometer used for airbag deployment in a vehicle, for communication with a host electronic control unit (ECU). The magnetic angle sensor can be implemented in an ePAS system of an automobile. Such a system has functional safety specifications defined in accordance with ISO-26262, a functional safety standard for road vehicles. The principles and advantages discussed herein can be implemented to detect errors in turn count measurements of a shaft 106 (e.g., associated with a steering wheel) while the sensing circuit 102 is operating in a low power mode in an ePAS system to meet the functional safety specifications. In other embodiments, the illustrative implementation 100 may be used in other systems conforming to other specifications or standards, or in systems requiring error detection in low power turn counting applications.
[0036] As described herein, a magnetic sensor typically includes two complete bridges, e.g., a cosine bridge and a sine bridge. Each of the cosine bridge and the sine bridge outputs a voltage, i.e., VCOS and VSIN. For example, in an AMR sensor using a single dipole magnet, the "electrical angle" can be understood as the angle calculated from arctan(VSIN / VCOS), and the "magnetic angle", represented herein as ANGLEMAG, can be calculated by dividing the "electrical angle" by two. For an AMR sensor in which the two bridges rotate at about 45° relative to each other, the output of the two bridges is a sine with a relative phase shift of about 90°, and the electrical response of the sensor is twice the magnetic angle. In another example, for a TMR sensor, the "electrical angle" can be the same as the "magnetic angle". Furthermore, the "mechanical angle" can be understood as an angle determined based on the magnet design, which can be reflected in the mechanical-magnetic angle transfer function. The "mechanical angle" and the "magnetic angle" can be the same or different from each other. For example, in an embodiment using a single pole pair magnet, the "mechanical angle" and the "magnetic angle" are the same. In an embodiment using a multi-pole magnet, such as a pole ring, the "mechanical angle" can be expressed as (ANGLEMAG / N), where N is the number of pole pairs.
[0037] In some embodiments, the systems and methods disclosed herein may be applied to a device having a rotating shaft, which may include one or more magnetic elements such as a dipole magnet or a ring magnet, etc. Measurements of the magnetic field by the sensing element may be used to determine the rotation angle of the shaft.
[0038] Magnetic field turn sensor system and error detection technique embodiment FIG. 2A illustrates an exemplary implementation of a first sensor 110 according to an embodiment. The first sensor 110 includes one or more half bridges. A sensor 110 including two or more half bridges can be configured as one or more full bridges. The exemplary first sensor 110 illustrated in FIG. 2A includes eight sensing elements R1-R8 configured as a system of four half bridges. As illustrated in FIG. 2A, the first sensor 110 includes sensing elements R1 and R3 forming a first half bridge having an output V1, sensing elements R2 and R4 forming a second half bridge having a second output V2, sensing elements R5 and R7 forming a third half bridge having an output V3, and sensing elements R6 and R8 forming a fourth half bridge having an output V4.
[0039] The half-bridges (or full bridges, which are paired half-bridges) of the half-bridge system can be oriented at an angle relative to each other and configured to be sensitive to magnetic fields in different directions. In FIG. 2A, the full bridge including the sensing elements R1-R4 and the full bridge including the sensing elements R5-R8 are oriented at an angle α relative to each other. In the illustrated embodiment, α=about 45°. In the embodiment, each of the two pairs of half-bridges (which are full bridges) can form an individual channel, i.e., a first channel and a second channel, each of which is a path between the first sensor and the interface. Here, one full bridge can correspond to a cosine bridge and the other bridge can correspond to a sine bridge. For example, the cosine bridge can include the sensing elements R1-R4 and the sine bridge can include the sensing elements R5-R8, where V2-V1=VCOS and V4-V3=VSIN. One of the sine and cosine bridges may be included in a first channel, which is a first path from the first sensor 110 to the interface. The other of the sine and cosine bridges may be included in a second channel, which is a second path from the first sensor 110 to the interface. The first path is different from the second path. In other embodiments, the half-bridge system may include more or fewer half-bridges than the embodiment illustrated in FIG. 2A.
[0040] 2B is a block diagram illustrating a configuration of multiple comparators 126 that can be used to determine the quadrant in which the angle of the shaft 106 is currently located, according to an embodiment of the disclosure. For example, the configuration illustrates a sine full bridge 203a and a cosine full bridge 203b, which may be similar to the full bridge illustrated in FIG. 2A. The sine bridge 203a is configured to generate a positive output 207P and a negative output 207M, and the cosine bridge 203b is also configured to generate a positive output 205P and a negative output 205M. The outputs 205P, 205M, 207P, and 207M from the sine bridge 203a and the cosine bridge 203b will change depending on the current orientation of the shaft 106. More specifically, the positive output 205P and the negative output 205M from the cosine bridge 203b are provided to a first comparator 126a, while the positive output 207P and the negative output 207M from the sine bridge 203a are provided to a second comparator 126b.
[0041] 2C and 2D illustrate examples of outputs 205P, 205M, 207P, and 207M from sine bridge 203a and cosine bridge 203b that are provided to first comparator 126a and second comparator 126b, according to an embodiment of the present disclosure. As shown in FIG. 2C, each of outputs 205P, 205M, 207P, and 207M changes as shaft 106 rotates 360°. Taking positive and negative outputs 205P and 205M from cosine bridge 203b as an example, outputs 205P and 205M cross over when shaft 106 rotates at two points separated by 180°. The positive output 207P and the negative output 207M from the sine bridge 203a also cross each other at two points separated by 180°, which are offset by 90° from the outputs 205P and 205M from the cosine bridge 203b. Referring to Figures 2B and 2D, the first comparator 126a compares the values of the outputs 205P and 205M from the cosine bridge 203a to generate a first digital output 209 (illustrated in both signal and digital representations), and the second comparator 126b compares the values of the outputs 207P and 207M from the sine bridge 203b to provide a second digital output 211 (also shown in signal and digital representations). The processor can use the first digital output 209 and the second digital output 211 to identify which quadrant the shaft angle is currently in.
[0042] 3 is a block diagram of an example implementation of a magnetic field turn sensor system 102 configured to detect errors in turn counting, according to aspects of the disclosure. In particular, the magnetic field turn sensor system 102 includes a first signal processing path 111, a second signal processing path 113, a turn counting path 115, a processing unit 117 connected to each of the first signal processing path 111 and the second signal processing path 113 and the turn counting path 115, and a memory 119. The first signal processing path 111 includes a first sensor 110, an amplifier 112, an analog-to-digital converter (ADC) 114, and an angle calculator 116. The second signal processing path 113 includes a second sensor 118, an amplifier 120, an ADC 122, and an angle calculator 124. In certain embodiments, the components of the first signal processing path 111 and the second signal processing path 113 may be substantially identical. Additionally, in some implementations, each of the first signal processing path 111 and the second signal processing path 113 may include a pair of amplifiers 112 and 120 and a pair of ADCs 114 and 122. The turn count path 115 includes one or more comparators 126 and a quadrant calculator 128. As shown in FIG. 3 , the comparator 126 is configured to receive an output from the second sensor 118 of the second signal processing path 113. However, in other embodiments, the comparator 126 may be configured to receive an output from the first sensor 110 or from both the first sensor 110 and the second sensor 118.
[0043] The memory 119 can be configured to store expected transition angles at which the turn counting path 115 will transition between quadrants. In some embodiments, the memory 119 can also be configured to store historical values of the angles at which the turn counting path 115 transitions between quadrants. The expected transition angles can be used to detect errors in the comparator 126, as described in more detail herein.
[0044] Processor 117 is configured to receive the angle measurements from each of first processing path 111 and second processing path 113, and to receive the quadrant measurements from turn counting path 115. Processor 117 can determine the angle of shaft 106 based on the angle measurements received from first processing path 111 and second processing path 113. Processor 117 can also determine a turn count (e.g., the number of turns shaft 106 has been rotated relative to a neutral position, which may be defined as a "zero" turn position) by tracking the quadrant measurements from turn counting path 115 over time.
[0045] There are several potential places where errors can occur in the magnetic field turn sensor system 102. Specifically, errors that can ultimately affect the turn count determined by the processor 117 include errors occurring in the second sensor 118, the comparator 126, and / or the quadrant calculator 128. As such, aspects of the present disclosure relate to systems and techniques that can be used to detect each of the above error sources in order for the processor 117 to flag potential errors in the turn count to the motor control system.
[0046] To detect potential errors in the second sensor 118 and / or certain errors in the quadrant calculator 128, the processor 117 can be configured to exploit the redundancy of the first signal processing path 111 and the second signal processing path 113. For example, when the magnetic field turn sensor system 102 is operating without errors, the angle measurements provided by each of the first signal processing path 111 and the second signal processing path 113 should be the same or nearly the same. This means that if an error (e.g., an offset) occurs in the second sensor 118, the angle measurements provided by the first signal processing path 111 and the second signal processing path 113 will be misaligned. For example, the offset may refer to a fixed difference between the measured angle and the actual angle, regardless of the actual angle. In some circumstances, a voltage offset in one of the half bridge outputs 205P, 205M, 207P, and 207M may change the differential voltage output of the bridge, causing an angle error. The offset may also be caused by a defect in one or more of the bridge elements R1-R8.
[0047] Another exemplary error that may occur is a gain error, which may refer to the difference between the actual angle and the measured angle, which may increase linearly with the actual angle. In some cases, the gain error may affect one of the bridge paths, such that the cosine bridge outputs 205P and 205M and the sine bridge outputs 207P and 207M have different amplitudes or have imperfections that cause an open in the bridge output, which may cause the rotation direction to appear to change. Yet another exemplary error that may occur is nonlinearity, which is the difference between the measured angle and the actual angle that changes nonlinearly with the actual angle. Yet another exemplary error includes a timing error that controls the calibration of one or more bridge signal processing paths 111 and 113, which may cause the calibration to be applied incorrectly.
[0048] 4 is a flowchart of an example implementation of a method 400 for detecting an error in the second sensor 118, according to aspects of the disclosure. The method 400 may be performed by the processor 117 of the magnetic field turn sensor system 102. However, in other embodiments, certain blocks of the method 400 may instead be performed by other components that may be located, for example, on the circuit board 108. In some embodiments in which the turn counting path 115 receives outputs from each of the first sensor 110 and the second sensor 118, the method 400 may be modified to detect errors in both the first sensor 110 and the second sensor 118.
[0049] The method 400 begins at block 401. At block 402, the processor 117 receives a first angle measurement from the first signal processing path 111 and a second angle measurement from the second signal processing path 113. At block 404, the processor 117 compares the first angle measurement and the second angle measurement to one another. At block 406, the processor 117 determines whether a difference between the first angle measurement and the second angle measurement exceeds a threshold value.
[0050] In response to the difference between the first and second angle measurements exceeding a threshold, the method 400 proceeds to block 408 where the processor indicates a possible anomaly in the angle measurements. That is, if the individual measurements of the angle of the shaft 106 determined by the first signal processing path 111 and the second signal processing path 113 differ by more than a threshold, the processor 117 can flag the discrepancy as a potential indication that there is an error in one of the first sensor 110 and the second sensor 118. When the vehicle is powered on, the motor control system can receive the anomaly from the processor 117 of the magnetic field turn sensor system 102 and take one or more actions to mitigate a potential error in the turn counting sensor.
[0051] In response to the difference between the first and second angle measurements being less than the threshold value, method 400 proceeds to block 410, where method 400 ends. In some implementations, after ending at block 410, method 400 may be performed in a loop returning to block 401 so that a new set of angle measurements can be compared.
[0052] In addition to detecting potential errors in the second sensor 118, the magnetic field turn sensor system 102 can be configured to detect potential errors in the comparators 126 by detecting whether the angle at which the shaft 106 transitions between quadrants deviates from an expected transition angle. In particular, if there is no error in the magnetic field turn sensor system 102, as the shaft 106 rotates, the particular quadrant measurement determined by the turn counting path 115 transitions from a current quadrant to an adjacent quadrant at a known, repeatable angle (e.g., an expected transition angle). However, if there is an error in the comparator 126, the particular angle at which the turn counting path 115 detects the transition between quadrants will deviate from the expected transition angle. Thus, by detecting a deviation between the angle at which the transition between quadrants occurs and the expected transition angle, the magnetic field turn sensor system 102 can determine that there is an error in one or more of the comparators 126.
[0053] The quadrant measurements output from the turn count path 115 can be used by the processor 117 to determine the turn count of the shaft 106 while the motor control system (e.g., used to control an automobile) is powered off. For the safety of the motor control system, it is important that the system tracks the rotation of the shaft 106 while the system is powered off so that it can rely on the turn count provided by the magnetic field turn sensor system 102 when the system is powered on. For example, if the shaft 106 connected to the steering wheel of a vehicle is rotated 360° while the motor control system is powered off, without knowledge of this rotation, the steering angle commanded by the motor control system will deviate from the intended position of the steering wheel due to the undetected rotation of the shaft 106.
[0054] In some embodiments, to determine that the magnetic field turn sensor system 102 is functioning upon start-up, the processor 117 may compare the turn count quadrant received from the quadrant calculator 128 with the quadrant corresponding to the angle received from the angle calculators 116 and 124 to ensure that the two quadrants match. For example, if the turn quadrant calculator 128 reports quadrant 3 (or octant 3a if octants are output) and the angle calculators 116 and 124 report an angle that is within quadrant 3 (or octant 3a), the processor 117 will not generate an anomaly. In contrast, if the angle calculators 116 and 124 report an angle that does not fall within quadrant 3 (or octant 3a), the processor 117 will generate an anomaly, which may be interpreted as an anomaly in the quadrant calculator 128.
[0055] 5 is a flowchart of an example implementation of a method 500 for detecting an error in the comparator 126 according to aspects of the disclosure. The method 500 may be performed by the processor 117 of the magnetic field turn sensor system 102. However, in other embodiments, certain blocks of the method 500 may instead be performed by other components that may be located on the circuit board 108, for example.
[0056] The method 500 begins at block 501. At block 502, the processor 117 receives quadrant measurements from the turn counting path 115. Depending on the embodiment, the magnetic field turn sensor system 102 may include a single signal processing path 113 or a first signal processing path 111 and a second signal processing path 113. The turn counting path 115 is configured to receive an output from at least one of the magnetic field angle sensors of the first signal processing path 111 and the second signal processing path 113.
[0057] At block 504, the processor 117 determines that the quadrant measurements indicate a transition between quadrants. For example, in some embodiments, the processor 117 may determine that the quadrant measurements indicate a different quadrant relative to a previously received quadrant measurement, thereby determining that the shaft 106 has transitioned between quadrants. As described above, the quadrant calculator 128 may output the quadrant measurements to the processor 117 based on the first digital output 209 and the second digital output 211 received from the comparator 126.
[0058] In block 506, the processor 117 obtains an expected transition angle at which the quadrant measurements indicate a transition between quadrants. In some implementations, the processor 117 can obtain the expected transition angle from the memory 119. For example, the memory 119 can store expected transition angles that can be preprogrammed into the memory 119 based on characteristics of the magnetic field turn sensor system 102. In some embodiments, the expected transition angle can be hard-coded into digital logic. In one particular implementation, the processor 117 can store historical values of the quadrant transition angle in the memory 119 as the shaft 106 rotates. For example, the processor 117 can store the angle measurements received from the first signal processing path 111 and the second signal processing path 113 as historical transition angles in the memory 119 when the turn counting path 115 indicates a transition between quadrants. The processor 117 can use the stored historical transition angles to determine the expected transition angle. In some embodiments, the processor 117 can average the historical transition angles of a given transition between quadrants to determine the corresponding expected transition angle. Advantageously, storing historical values of the quadrant transition angles can allow for adjustment for drift in the system over time. However, aspects of the present disclosure are not limited to using an average of historical transition angles, and processor 117 can determine expected transition angles using other techniques (e.g., determining an average value).
[0059] In block 508, the processor 117 receives an angle measurement from a signal processing path (e.g., from at least one of the first signal processing path 111 and the second signal processing path 113). In block 510, the processor 117 determines that the angle measurement deviates from an expected transition angle by more than a threshold, which in certain embodiments may be stored in the memory 119. For example, the processor 117 may compare the angle measurement to the expected transition angle and determine whether the difference between the angle measurement and the expected transition angle exceeds a threshold. If the difference is less than the threshold, the processor 117 may determine that no error has occurred in the comparator 126 and may return to block 501. However, if the difference exceeds the threshold, the processor 117 may proceed to block 510.
[0060] At block 512, the processor 117 indicates an anomaly in response to determining that the angle measurement deviates from the expected transition angle by more than a threshold. The processor 117 can provide an indication of the anomaly to the motor control system, which can in turn take one or more actions to mitigate potential errors in the turn count sensor when the vehicle is powered on. The method 500 ends at block 514.
[0061] 6 is a flowchart of an example implementation of a method 600 for detecting an error in the comparator 126, according to aspects of the disclosure. The method 600 may be performed by the processor 117 of the magnetic field turn sensor system 102. However, in other embodiments, certain blocks of the method 600 may instead be performed by other components that may be located on the circuit board 108, for example. Although the method 600 is illustrated as a separate process from the method 500 shown in FIG. 5, in some implementations, the methods 500 and 600 may be performed in parallel to detect errors in the comparator 126 or other portions of the magnetic field turn sensor system 102.
[0062] The method 600 begins at block 601. At block 602, the magnetic field turn sensor system 102 wakes up from a low power mode. At block 604, the processor 117 compares a quadrant corresponding to an angle measurement from a signal processing path (e.g., from at least one of the first signal processing path 111 and the second signal processing path 113) to a quadrant measurement received from the turn counting path 115. At block 606, if the quadrants match from the comparison at block 604, the method 600 continues to block 608. Otherwise, if the quadrants do not match from the comparison at block 604, the method continues to block 614.
[0063] For example, if turn quadrant calculator 128 reports quadrant 3 (or octant 3a if octants are output) and angle calculators 116 and 124 report angles that are within quadrant 3 (or octant 3a), processor 117 will not generate an anomaly. In contrast, if angle calculators 116 and 124 report angles that are not within quadrant 3 (or octant 3a), processor 117 will generate an anomaly, which may be interpreted as an anomaly in quadrant calculator 128.
[0064] At block 608, the processor 117 receives updated values of the angle measurement and the quadrant measurement. At block 610, the processor compares the angle measurement to an expected angle range corresponding to the quadrant measurement. At block 612, if the angle measurement matches or is within the expected angle range threshold, the method 600 will return to block 608. Otherwise, if the angle measurement differs from the expected angle range by more than the threshold (e.g., the angle measurement deviates from the expected angle range by more than a threshold angle), the method will continue to block 614.
[0065] At block 614, the processor 117 indicates an anomaly in response to determining that the angle measurements deviate from an expected range of angles corresponding to the quadrant measurements. The processor 117 can provide an indication of the anomaly to the motor control system, which can in turn take one or more actions to mitigate potential errors in the turn count sensor when the vehicle is powered on. Advantageously, by detecting whether the quadrant corresponding to the angle measurements matches the quadrant measurements, the method 600 can detect an error where the quadrant measurements are "stuck" at a particular value. The method 600 ends at block 616.
[0066] conclusion Aspects of the present disclosure may be implemented in a variety of electronic devices. Examples of electronic devices include, but are not limited to, home appliances, parts of home appliances, electronic test equipment, vehicle electronic systems, etc. Examples of electronic devices include, but are not limited to, computing devices, communication devices, electronic consumer electronics, automotive electronic systems, etc. Additionally, electronic devices may include unfinished products.
[0067] Unless the context clearly requires otherwise, throughout the description and claims, the terms "comprise," "comprising," "include," "including," and the like are to be construed in an inclusive sense, i.e., "including but not limited to," and not in an exclusive or exhaustive sense. In addition, the words "herein," "above," "below," and words of similar import, when used in this application, shall not refer to any particular portion of this application, but to this application as a whole. Where the context permits, terms in the above detailed description of certain embodiments using the singular or plural form may also include the plural or singular form, respectively. Where the context permits, the term "or" referring to a list of two or more items is intended to cover all of the following interpretations of the term, namely, any of the items in the list, all of the items in the list, and any combination of the items in the list.
[0068] Furthermore, conditional language used herein, such as, among others, "can," "could," "might," "may," "eg," "for example," "such as," and the like, is generally intended to convey that certain embodiments include certain features, elements, and / or conditions, but not other embodiments, unless otherwise specified or understood otherwise within the context in which it is used. Such conditional language is thereby generally not intended to imply that features, elements, and / or conditions are in any way required by one or more embodiments, or that one or more embodiments necessarily include logic for determining whether those features, elements, and / or conditions are to be included in or performed in any particular embodiment, with or without author input or prompting.
[0069] The foregoing description and claims may refer to elements or features that are "connected" or "coupled" together. As used herein, unless otherwise specified, "connected" means that one element / feature is directly or indirectly connected to another element / feature, not necessarily mechanically connected. Similarly, unless otherwise specified, "coupled" means that one element / feature is directly or indirectly connected to another element / feature, not necessarily mechanically coupled. Thus, while the various schematic diagrams depicted in the figures show example arrangements of elements and components, additional intervening elements, devices, features, or components may be present in an actual embodiment (assuming the functionality of the depicted circuit is not adversely affected).
[0070] As used herein, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, database, or another data structure), ascertaining, and the like. Also, "determining" may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. Also, "determining" may include resolving, selecting, choosing, establishing, and the like. Furthermore, "channel width" as used herein may encompass or be referred to as bandwidth in certain aspects.
[0071] The various operations of the methods described above may be performed by any suitable means capable of performing the operations, such as various hardware and / or software components, circuits, and / or modules. In general, any operation illustrated in the figures may be performed by a corresponding functional means capable of performing the operation.
[0072] The various example logic blocks, modules, and circuits described in connection with this disclosure may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array signal (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but alternatively, the processor may be any commercially available processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
[0073] The methods disclosed herein include one or more steps or actions for achieving the described method. The steps and / or actions of the methods may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions may be modified without departing from the scope of the claims.
[0074] It should be understood that the implementations are not limited to the precise configuration and components illustrated above. Various modifications, changes and variations may be made in the arrangement, operation and details of the methods and apparatus described above without departing from the scope of the implementations.
[0075] Although the present invention has been described with respect to certain embodiments, other embodiments apparent to those skilled in the art are within the scope of the present invention, including embodiments that do not provide all of the features and advantages set forth herein. Moreover, the various embodiments described above can be combined to provide further embodiments. Moreover, certain features shown in the context of one embodiment can also be incorporated in other embodiments. [Explanation of symbols]
[0076] 100 Example implementations 102 Sensing circuit 104 Magnet 106 Rotating Shaft 108 Circuit Board 110 First Sensor 111 First signal processing path 112 Amplifier 113 Second signal processing path 114 Analog-to-Digital Conversion (ADC) 115 Turn Count Route 116 Angle Calculator 117 Processors 118 Second Sensor 119 Memory 120 Amplifier 122 ADC 124 Angle Calculator 126 Comparator 128 Quadrant Calculator 203a sine bridge 203b Cosine Bridge 205M Negative Output 205P Positive Output 207M Negative Output 207P Positive Output 209 1st digital output 211 Second Digital Output
Claims
1. 1. A magnetic field turn sensor system, comprising: A magnetic field angle sensor; a signal processing path configured to receive an output from the magnetic field angle sensor and generate an angle measurement based on the output; a turn counting path configured to process the output from the magnetic field angle sensor and output a quadrant measurement based on the output; A processor; wherein the processor: receiving the quadrant measurements from the turn count path; determining that the quadrant measurements indicate transitions between quadrants; determining an estimated expected transition angle if the quadrant measurements indicate a transition between the quadrants; receiving the angle measurements from the signal processing path; determining that the angle measurement deviates from the expected transition angle by more than a threshold; and configured to indicate an anomaly in response to determining that the angle measurement deviates from the expected transition angle by more than the threshold; a memory configured to store the expected transition angle; The processor, storing a plurality of historical values of the angle measurements in the memory; and The magnetic field turn sensor system further configured to determine the expected transition angle based on the historical values of the angle measurements.
2. the magnetic field angle sensor includes a first magnetic field angle sensor, the signal processing path includes a first signal processing path, the angle measurements include a first angle measurement, and the system further comprises: a second magnetic field angle sensor; a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output; The processor, receiving the second angle measurement from the second signal processing path; determining that the first angle measurement differs from the second angle measurement by more than a threshold angle; and 2. The system of claim 1, further configured to indicate the anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
3. The processor, determining that the angle measurement does not deviate from the expected transition angle by more than the threshold; and 2. The system of claim 1, further configured to refrain from indicating the anomaly in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold.
4. The system of claim 1 , wherein determining the expected transition angle further comprises retrieving the expected transition angle from the memory.
5. The processor, for the inter-quadrant transition, averaging the historical values of the angle measurements corresponding to the inter-quadrant transition; and The system of claim 1 , further configured to set the average of the historical values as the expected transition angle corresponding to the transition between the quadrants.
6. The processor, responsive to waking up from the low power mode, comparing a quadrant corresponding to the angle measurement to the quadrant measurement; determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement; and The system of claim 1 , further configured to indicate the anomaly in response to determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement.
7. The processor, determining that the angle measurement deviates from an expected range of angles corresponding to the quadrant measurement by more than a threshold; and The system of claim 1 , further configured to indicate the anomaly in response to determining that the angle measurement deviates from the expected angle range by more than the threshold.
8. 1. A motor control system configured to control a vehicle, comprising: a shaft connected to a steering wheel of the vehicle; 1. A magnetic field turn sensor system comprising: a magnetic field angle sensor; a signal processing path configured to receive an output from the magnetic field angle sensor and generate an angle measurement based on the output; a turn counting path configured to process the output from the magnetic field angle sensor and output a quadrant measurement based on the output; and a processor, the processor comprising: receiving the quadrant measurements from the turn count path; determining that the quadrant measurements indicate transitions between quadrants; determining an estimated expected transition angle if the quadrant measurements indicate a transition between the quadrants; receiving the angle measurements from the signal processing path; determining that the angle measurement deviates from the expected transition angle by more than a threshold; and and a magnetic field turn sensor system configured to indicate an anomaly in response to determining that the angle measurement deviates from the expected transition angle by more than the threshold; a memory configured to store the expected transition angle; The processor, storing a plurality of historical values of the angle measurements in the memory; and The motor control system is further configured to determine the expected transition angle based on the historical values of the angle measurements.
9. the magnetic field angle sensor includes a first magnetic field angle sensor, the signal processing path includes a first signal processing path, the angle measurements include a first angle measurement, and the system further comprises: a second magnetic field angle sensor; a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output; The processor, receiving the second angle measurement from the second signal processing path; determining that the first angle measurement differs from the second angle measurement by more than a threshold angle; and 9. The system of claim 8, further configured to indicate the anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
10. The processor, determining that the angle measurement does not deviate from the expected transition angle by more than the threshold; and 10. The system of claim 8, further configured to refrain from indicating the anomaly in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold.
11. The system of claim 8 , wherein determining the expected transition angle further comprises retrieving the expected transition angle from the memory.
12. The processor, for the inter-quadrant transition, averaging the historical values of the angle measurements corresponding to the inter-quadrant transition; and The system of claim 8 , further configured to set the average of the historical values as the expected transition angle corresponding to the transition between the quadrants.
13. The processor, responsive to waking up from the low power mode, comparing a quadrant corresponding to the angle measurement to the quadrant measurement; determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement; and The system of claim 8 , further configured to indicate the anomaly in response to determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement.
14. The processor, determining that the angle measurement deviates from an expected range of angles corresponding to the quadrant measurement by more than a threshold; and The system of claim 8 , further configured to indicate the anomaly in response to determining that the angle measurement deviates from the expected angle range by more than the threshold.
15. 1. A method for detecting an error in a magnetic field turn sensor system, comprising: receiving a quadrant measurement from a turn counting path of the magnetic field turn sensor system, the magnetic field turn sensor system comprising: a magnetic field angle sensor; a signal processing path configured to receive an output from the magnetic field angle sensor and generate an angle measurement based on the output; and a memory configured to store an expected transition angle, the turn counting path configured to process the output from the magnetic field angle sensor and output the quadrant measurement based on the output; determining that the quadrant measurements indicate a transition between quadrants; determining the expected transition angle estimated given that the quadrant measurements indicate a transition between the quadrants; receiving the angle measurements from the signal processing path; determining that the angle measurement deviates from the expected transition angle by more than a threshold; indicating an anomaly in response to determining that the angle measurement deviates from the expected transition angle by more than the threshold; storing a plurality of historical values of the angle measurement in the memory; determining the expected transition angle based on the historical values of the angle measurements.
16. the magnetic field angle sensor includes a first magnetic field angle sensor, the signal processing path includes a first signal processing path, and the angle measurement includes a first angle measurement, the magnetic field turn sensor system further comprises a second magnetic field angle sensor and a second signal processing path configured to receive an output from the second magnetic field angle sensor and generate a second angle measurement based on the output, and the method further comprises: receiving the second angle measurement from the second signal processing path; determining that the first angle measurement differs from the second angle measurement by more than a threshold angle; 16. The method of claim 15, further comprising: indicating the anomaly in response to determining that the first angle measurement differs from the second angle measurement by more than the threshold angle.
17. determining that the angle measurement does not deviate from the expected transition angle by more than the threshold; 16. The method of claim 15, further comprising: in response to determining that the angle measurement does not deviate from the expected transition angle by more than the threshold, refraining from indicating the anomaly.
18. responsive to waking up from a low power mode, comparing a quadrant corresponding to the angle measurement to the quadrant measurement; determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement; 16. The method of claim 15, further comprising: indicating the anomaly in response to determining that the quadrant corresponding to the angle measurement is not consistent with the quadrant measurement.
Citation Information
Patent Citations
Abnormality detecting device of r / d conversion function
JP2008122216A
Vehicle electric power steering device
JP2016113031A
Angle calculation device
JP2019215310A
