Method for measuring angular position of rotating shaft of motor vehicle

By generating and phase-shifting sine and cosine signals, and correcting angle values ​​using predetermined phase shift values, the problem of position sensor measurement errors in motor vehicles is solved, achieving higher accuracy and lower processing requirements.

CN118715416AInactive Publication Date: 2024-09-27CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380022379.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-18
Filing Date
2023-02-08
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Position sensors in existing motor vehicles have errors when measuring the angular position of the rotation axis. The main reason is that the error caused by the misalignment and non-parallel between the sensor and the target is difficult to effectively reduce. The traditional filtering method has limited efficiency and requires high processing power. .

Method used

Calculate the average angular position of the shaft by generating and phase-shifting sine and cosine signals, correcting the angular value signal using a predetermined phase shift value to reduce errors, using magnetic elements and magnetoresistive position sensors to measure the angular position of the shaft, using a computer program product Implement signal processing.

Benefits of technology

The error between the position sensor and the target is significantly reduced, and the error range is reduced from ±0.12° to ±0.01°, which improves measurement accuracy and reduces hardware and software processing requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118715416A
    Figure CN118715416A
Patent Text Reader

Abstract

A method for measuring the angular position of a rotating shaft of a motor vehicle by means of a target fixed at the free end of said shaft and a position sensor mounted facing said target, said method comprising the following steps: generating (E1) a first sinusoidal signal and a first cosine signal, the first sinusoidal signal and the first cosine signal represent the angle change of the target relative to the sensor when the shaft rotates; generating (E2) a second sinusoidal signal and a second cosine signal, the second sinusoidal signal and the second cosine signal characterizing a change in angle of the target relative to the sensor when the shaft is rotated; generating (E3) a first angle value signal and generating (E4) a second angle value signal; and calculating (E5) an average angular position of the shaft at a given time based on the first angle value signal, the second angle value signal and the predetermined phase shift value.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of shaft position sensors in motor vehicles and more specifically to a method for measuring the angular position of a rotating shaft of a motor vehicle by means of a target fixed at the free end of the shaft and a position sensor mounted facing the target, and to a position sensor suitable for implementing the method. [Background Technology]

[0002] It is currently known practice to use so-called "position" sensors in motor vehicles to measure the angular position of a shaft relative to a reference position. For example, it is known practice to measure the angular position of a crankshaft or camshaft of an internal combustion engine to determine the timing of injecting fuel into a cylinder.

[0003] As is known, the sensor is mounted facing the free end of the shaft, with a magnetic target mounted in the center of the shaft. The sensor uses the electromagnetic response of the target to generate a sine signal and a cosine signal representing the angular variation of the target relative to the sensor when the shaft rotates, and its arc tangent makes it possible to obtain an angular value signal giving the angular position of the shaft relative to a reference position. The sensor can be a TMR (tunnel magnetoresistance), GMR (giant magnetoresistance) or AMR (anisotropic magnetoresistance) sensor.

[0004] In a known solution, the sensor comprises an electronic circuit on which are mounted a first Wheatstone bridge making it possible to generate a sine signal and a second Wheatstone bridge making it possible to generate a cosine signal. In the case of an AMR sensor, the first Wheatstone bridge and the second Wheatstone bridge are mechanically offset by an angle of 45° to each other. In the case of a GMR or TMR sensor, the first Wheatstone bridge and the second Wheatstone bridge are mechanically offset by an angle of 90° to each other.

[0005] When the sensor is mounted relative to the center of the target, a tolerance for eccentricity is allowed. Likewise, an angular tolerance is allowed between the electronic circuit and the target, which should ideally be parallel. However, these tolerances can lead to errors in the angular position values ​​delivered by the sensor. In particular, the more the sensor is offset relative to the center of the target, and therefore from the axis of rotation of the shaft, the more the error increases.

[0006] Figure 1 The observed error Err (in degrees) between the calculated angle and the actual angle (in degrees) is shown as a function of the actual angle ANG (in degrees) of the shaft. It can be seen that the error Err between the calculation performed by the sensor and the actual angular position ANG of the shaft can be as high as about plus or minus 8°.

[0007] One solution consists in ensuring a centered parallel placement of the sensor and the target, but the installation constraints on the production line always involve tolerances. Another solution consists in processing the angle value signal by filtering to reduce the error. However, the effectiveness of this processing can be limited, especially since it only works correctly at a fixed frequency. The error is still large. Figure 2 The error Err (in degrees) observed between the calculated angle and the actual angle (in degrees) as a function of the actual angle ANG (in degrees) of the shaft after filtering is shown. It can be seen that for an eccentric offset of 0.25 mm, the error Err between the calculation performed by the sensor and the actual angular position ANG of the shaft can be as high as about plus or minus 0.12°. In addition, processing the angle value signal by filtering requires a lot of processing power in both hardware and software, which is another disadvantage.

[0008] It would therefore be advantageous to propose a solution making it possible to at least partially overcome these drawbacks. [Summary of the invention]

[0009] The present invention aims to further reduce the errors of position sensors in motor vehicles when measuring the angular position of a rotating shaft. The present invention aims to reduce the measurement errors generated by misalignment and / or non-parallelism of the position sensor relative to a target fixed on the free end of the rotating shaft in the motor vehicle. The present invention aims to provide a simple, reliable and effective solution to reduce the measurement errors of motor vehicle position sensors.

[0010] To this end, the invention firstly relates to a method for measuring the angular position of a rotating shaft of a motor vehicle by means of a target fixed to the free end of said shaft and comprising a magnetic element and a magnetoresistive position sensor mounted facing said target, said method comprising the following steps:

[0011] - generating a first sine signal and a first cosine signal, the first sine signal and the first cosine signal representing an angular change of the target relative to the sensor when the shaft rotates,

[0012] - generating a second sine signal and a second cosine signal, the second sine signal and the second cosine signal representing the angular change of the target relative to the sensor when the shaft rotates, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, and the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value,

[0013] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0014] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0015] - calculating the average angular position of the shaft at a given time based on the first angle value signal, the second angle value signal and the predetermined phase shift value according to the following formula:

[0016] -if

[0017] [Mathematical formula 1]

[0018] (SA1(t)+SA2(t)+DPH)<360,

[0019] but:

[0020] [Mathematical formula 2]

[0021]

[0022] -if

[0023] [Mathematical formula 3]

[0024] (SA1(t)+SA2(t)+DPH)>360,

[0025] but:

[0026] [Formula 4]

[0027]

[0028] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0029] The method according to the invention makes it possible to correct errors generated by misalignment and / or non-parallelism between the position sensor and the target by compensating for imperfections of the first and second angle value signals to calculate a mean angular position of the shaft which substantially corresponds to the actual angular position of the shaft.

[0030] Preferably, the first angle value signal is generated by obtaining the arc tangent of the ratio of the value of the first sine signal to the value of the first cosine signal, and the second angle value signal is generated by obtaining the arc tangent of the ratio of the value of the second sine signal to the value of the second cosine signal.

[0031] According to one aspect of the present invention, the sensor includes a first generating module and a second generating module which is angularly offset relative to the first generating module by an angle equal to the predetermined phase shift value, the step of generating the first sine signal and the first cosine signal is performed by the first generating module, and the step of generating the second sine signal and the second cosine signal is performed by the second generating module, the first sine signal and the first cosine signal represent the angular change of the target relative to the first generating module when the shaft rotates, and the second sine signal and the second cosine signal represent the angular change of the target relative to the second generating module when the shaft rotates.

[0032] According to another aspect of the present invention, the sensor includes at least a first generating module, the step of generating the first sine signal and the first cosine signal is performed by the first generating module based on the change in the direction of the electromagnetic field generated by the rotation of the target, and the step of generating the second sine signal and the second cosine signal is performed by the first generating module or the electronic control unit based on the first sine signal and the first cosine signal.

[0033] Preferably, the predetermined phase shift value is 90°. Alternatively, the predetermined phase shift value may be 45°.

[0034] The invention also relates to a computer program product, characterized in that the computer program product comprises a set of program code instructions which, when executed by one or more processors, configure the one or more processors to implement the method as described above.

[0035] The invention also relates to a position sensor suitable for being mounted facing a magnetic target fixed at the end of a rotating shaft of a motor vehicle, said sensor being configured to implement a method as described above.

[0036] According to one aspect of the present invention, the sensor includes a first generating module and a second generating module, the first generating module is configured to generate a first sine signal and a first cosine signal, the second generating module is angularly offset relative to the first generating module by an angle equal to a predetermined phase shift value and is configured to generate a second sine signal and a second cosine signal, the first sine signal and the first cosine signal represent the angular change of the target relative to the first generating module when the shaft rotates, and the second sine signal and the second cosine signal represent the angular change of the target relative to the second generating module when the shaft rotates.

[0037] In one embodiment, the sensor comprises:

[0038] a first signal generating module, the first signal generating module being configured to generate a first sine signal and a first cosine signal, the first sine signal and the first cosine signal representing an angular change of the target relative to the first generating module when the shaft rotates, and generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the second cosine signal,

[0039] - a second generating module, the second generating module being configured to generate a second sine signal and a second cosine signal, the second sine signal and the second cosine signal representing an angular change of the target relative to the second generating module when the shaft rotates, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value, and generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0040] And is configured to calculate an average angular position of the shaft based on the first angle value signal, the second angle value signal and the predetermined phase shift value.

[0041] In another embodiment, the sensor comprises:

[0042] - a first signal generating module, the first signal generating module being configured to generate a first sine signal and a first cosine signal, the first sine signal and the first cosine signal representing an angular change of the target relative to the first generating module when the shaft rotates; and sending the first sine signal and the first cosine signal to an electronic control unit of the vehicle,

[0043] - a second generating module, the second generating module being configured to generate a second sine signal and a second cosine signal, the second sine signal and the second cosine signal representing the angular change of the target relative to the second generating module when the shaft rotates, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value; and sending the second sine signal and the second cosine signal to an electronic control unit of the vehicle.

[0044] In this case, the sensor interacts with the electronic control unit, which is configured to:

[0045] - receiving the first sine signal, the first cosine signal, the second sine signal and the second cosine signal,

[0046] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0047] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0048] - calculating an average angular position of the shaft based on the first angle value signal, the second angle value signal and the predetermined phase shift value.

[0049] Advantageously, the sensor includes at least a first generating module, which is configured to generate the first sine signal and the first cosine signal based on the change in the direction of the electromagnetic field generated by the rotation of the target and to generate the second sine signal and the second cosine signal based on the first sine signal and the first cosine signal, or to transmit the first sine signal and the first cosine signal to an electronic control unit so that the electronic control unit generates the second sine signal and the second cosine signal based on the first sine signal and the first cosine signal.

[0050] Preferably, the predetermined phase shift value is 90°. Alternatively, the predetermined phase shift value may be 45°.

[0051] The present invention also relates to an electronic control unit, which is configured as follows:

[0052] - receiving the first angle value signal and the second angle value signal from a sensor as described above,

[0053] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0054] -if

[0055] [Mathematical formula 5]

[0056] (SA1(t)+SA2(t)+DPH)<360,

[0057] but:

[0058] [Mathematical formula 6]

[0059]

[0060] -if

[0061] [Mathematical formula 7]

[0062] (SA1(t)+SA2(t)+DPH)>360,

[0063] but:

[0064] [Mathematical formula 8]

[0065]

[0066] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0067] The present invention also relates to an electronic control unit, which is configured as follows:

[0068] - receiving the first sine signal, the first cosine signal, the second sine signal and the second cosine signal from a sensor as described above,

[0069] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0070] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0071] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0072] -if

[0073] [Mathematical formula 9]

[0074] (SA1(t)+SA2(t)+DPH)<360,

[0075] but:

[0076] [Formula 10]

[0077]

[0078] -if

[0079] [Mathematical formula 11]

[0080] (SA1(t)+SA2(t)+DPH)>360,

[0081] but:

[0082] [Mathematical formula 12]

[0083]

[0084] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0085] The present invention also relates to an electronic control unit, which is configured as follows:

[0086] - receiving the first sine signal and the first cosine signal from a sensor as described above,

[0087] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0088] - simulating a second sine signal and a second cosine signal based on the received first sine signal and the received first cosine signal,

[0089] - generating a second angle value signal representing a second angular position of the shaft based on the simulated second sine signal and the simulated second cosine signal,

[0090] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0091] -if

[0092] [Mathematical formula 13]

[0093] (SA1(t)+SA2(t)+DPH)<360,

[0094] but:

[0095] [Formula 14]

[0096]

[0097] -if

[0098] [Mathematical formula 15]

[0099] (SA1(t)+SA2(t)+DPH)>360,

[0100] but:

[0101] [Formula 16]

[0102]

[0103] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0104] The invention also relates to a motor vehicle comprising at least one rotating shaft comprising a target fixed at one of its ends, and at least one position sensor as described above, mounted facing the target.

[0105] The invention also relates to a motor vehicle comprising:

[0106] - Electronic control unit,

[0107] at least one rotating shaft comprising a target fixed at one of its ends and comprising at least one magnetic element,

[0108] a magnetoresistive position sensor, mounted facing the target and connected to the electronic control unit via at least one communication link, the sensor being configured to:

[0109] - generating a first sine signal and a first cosine signal, the first sine signal and the first cosine signal representing the angular variation of the target when the shaft rotates, and sending the first sine signal and the first cosine signal to the electronic control unit,

[0110] - generating a second sine signal and a second cosine signal, the second sine signal and the second cosine signal representing the angular change of the target when the shaft rotates, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, and the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value,

[0111] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0112] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0113] - sending the first angle value signal and the second angle value signal to the electronic control unit,

[0114] -The electronic control unit is configured to:

[0115] - receiving the first angle value signal and the second angle value signal from the sensor,

[0116] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0117] -if

[0118] [Mathematical formula 17]

[0119] (SA1(t)+SA2(t)+DPH)<360,

[0120] but:

[0121] [Mathematical formula 18]

[0122]

[0123] -if

[0124] [Mathematical formula 19]

[0125] (SA1(t)+SA2(t)+DPH)>360,

[0126] but:

[0127] [Mathematical formula 20]

[0128]

[0129] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0130] The invention also relates to a motor vehicle comprising:

[0131] - Electronic control unit,

[0132] at least one rotating shaft comprising a target fixed at one of its ends and comprising at least one magnetic element,

[0133] a magnetoresistive position sensor, mounted facing the target and connected to the electronic control unit via at least one communication link, the sensor being configured to:

[0134] - generating a first sine signal and a first cosine signal, the first sine signal and the first cosine signal representing the angular variation of the target when the shaft rotates, and sending the first sine signal and the first cosine signal to the electronic control unit,

[0135] - generating a second sine signal and a second cosine signal, the second sine signal and the second cosine signal representing the angular change of the target when the shaft rotates, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, and the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value,

[0136] - sending the generated first sine signal, first cosine signal, second sine signal and second cosine signal to the electronic control unit,

[0137] -The electronic control unit is configured to:

[0138] - receiving the first sine signal, the first cosine signal, the second sine signal and the second cosine signal from the sensor,

[0139] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0140] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0141] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0142] -if

[0143] [Mathematical formula 21]

[0144] (SA1(t)+SA2(t)+DPH)<360,

[0145] but:

[0146] [Mathematical formula 22]

[0147]

[0148] -if

[0149] [Mathematical formula 23]

[0150] (SA1(t)+SA2(t)+DPH)>360,

[0151] but:

[0152] [Mathematical formula 24]

[0153]

[0154] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0155] The invention also relates to a motor vehicle comprising:

[0156] - Electronic control unit,

[0157] at least one rotating shaft comprising a target fixed at one of its ends and comprising at least one magnetic element,

[0158] a magnetoresistive position sensor mounted facing the target and connected to the electronic control unit via at least one communication link, the sensor being configured to generate a first sine signal and a first cosine signal representing an angular variation of the target when the shaft rotates, and to send the first sine signal and the first cosine signal to the electronic control unit,

[0159] -The electronic control unit is configured to:

[0160] - receiving the first sine signal and the first cosine signal from the sensor,

[0161] - simulating a second sine signal and a second cosine signal representing an angular change of the target when the shaft rotates based on the received first sine signal and the first cosine signal, the first sine signal and the second sine signal being phase-shifted by a predetermined phase shift value, and the first cosine signal and the second cosine signal being phase-shifted by a predetermined phase shift value,

[0162] - generating a first angle value signal representing a first angular position of the shaft based on the first sine signal and the first cosine signal,

[0163] - generating a second angle value signal representing a second angular position of the shaft based on the second sine signal and the second cosine signal,

[0164] - calculating the average angular position of the shaft at a given time t based on the value of the first angle value signal, the value of the second angle value signal and the predetermined phase shift value according to the following formula:

[0165] -if

[0166] [Mathematical formula 25]

[0167] (SA1(t)+SA2(t)+DPH)<360,

[0168] but:

[0169] [Mathematical formula 26]

[0170]

[0171] -if

[0172] [Mathematical formula 27]

[0173] (SA1(t)+SA2(t)+DPH)>360,

[0174] but:

[0175] [Mathematical formula 28]

[0176]

[0177] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value. [Drawings]

[0178] Other features and advantages of the present invention will become more clearly apparent when reading the following description. This description is purely illustrative and must be read with reference to the accompanying drawings, in which:

[0179] [ Figure 1 ] Figure 1 An example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft when uncorrected is shown.

[0180] [ Figure 2 ] Figure 2 An example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft after correction by prior art solutions is shown.

[0181] [ Figure 3 ] Figure 3 An embodiment of a motor vehicle according to the invention is schematically illustrated.

[0182] [ Figure 4A ] Figure 4A A first arrangement of shafts and position sensors is schematically illustrated.

[0183] [ Figure 4B ] Figure 4B A second arrangement of shafts and position sensors is schematically illustrated.

[0184] [ Figure 5 ] Figure 5 A first exemplary embodiment of the method according to the invention is schematically illustrated.

[0185] [ Figure 6 ] Figure 6 A second embodiment of the method according to the invention is schematically illustrated.

[0186] [ Figure 7 ] Figure 7 A third embodiment of the method according to the invention is schematically illustrated.

[0187] [ Figure 8 ] Figure 8 An example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft after correction using the method according to the invention in a first configuration is shown.

[0188] [ Fig. 9 ] Fig. 9 An example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft after correction using the method according to the invention in a second configuration is shown. [Specific implementation method]

[0189] Figure 3An example of a vehicle 1 according to the invention is schematically shown. In this example, the vehicle 1 is an electric vehicle comprising an electric drive machine comprising a rotor 10 and a stator 20. The electric machine is powered by a battery 30 and controlled by an electronic control unit 40 via a converter 25 and using sensors 50.

[0190] The rotor 10 comprises a rotating central shaft 11 so that the wheels 2 of the vehicle 1 can be driven via a transmission line (not shown for clarity). It should be noted that in this example, the shaft 11 is the shaft of the rotor 10, but this in no way limits the scope of the invention and the shaft 11 can be any type of rotating shaft of a motor vehicle.

[0191] refer to Figure 4A and Figure 4B The shaft 11 is in the form of a rod extending from the body of the rotor 10 in the longitudinal direction and including a free end 11A. Such a shaft 11 may be, for example, a crankshaft or a camshaft.

[0192] The free end 11A of the shaft 11 comprises a target 12, for example in the form of a disc, which is mounted coaxially with the shaft 11, i.e. the center of the target 12 coincides with the longitudinal axis of the shaft 11. The target 12 comprises a central magnetic element at its center. The magnetic element can be part of the target 12 or an additional element fixed to the center of the target 12.

[0193] According to the invention, two configurations are possible:

[0194] a first “physical” configuration in which the sensor 50 generates two pairs of sine and cosine signals by measuring the variations in the direction of the electromagnetic field of the target 12 ,

[0195] - A second "virtual" configuration, in which the sensor 50 generates a pair of "real" sine and cosine signals by measuring the change in the electromagnetic field direction of the target 12, and the second pair of "virtual" sine and cosine signals is constructed by the sensor 50 or the electronic control unit 40 based on the pair of "real" sine and cosine signals.

[0196] I. First Configuration

[0197] refer to Figure 4A An example of a sensor in a first configuration is given. The sensor 50 comprises a housing (not shown for clarity) in which a first generating module 51 and a second generating module 52 are mounted. The description given below also relates to Figures 5 to 7 The reference numerals SIN1, COS1, SIN2, COS2, SA1, SA2 and PAM.

[0198] The first generating module 51 is configured to generate a first sine signal SIN1 and a first cosine signal COS1 , wherein the first sine signal and the first cosine signal represent an angular change of the target 12 relative to the first generating module 51 when the shaft 11 rotates.

[0199] The second generating module 52 is configured to generate a second sine signal SIN2 and a second cosine signal COS2 , wherein the second sine signal and the second cosine signal represent an angular change of the target 12 relative to the second generating module 52 when the shaft 11 rotates.

[0200] The first sine signal SIN1 and the second sine signal SIN2 are phase-shifted by a predetermined phase shift value DPH. Likewise, the first cosine signal COS1 and the second cosine signal COS2 are phase-shifted by the same predetermined phase shift value DPH.

[0201] Preferably, the first generating module 51 and the second generating module 52 each comprise an electronic circuit comprising a magnetoresistor, preferably a Wheatstone bridge, which is substantially centered relative to the target 12 within the centering tolerances resulting from the mounting.

[0202] The first generating module 51 and the second generating module 52 are arranged to be angularly rotated relative to each other by a certain offset value, preferably 45° or 90°. This mechanical offset makes it possible to generate a phase shift DPH of the same value (preferably 45° or 90°) between the first sine signal SIN1 and the second sine signal SIN2 and between the first cosine signal COS1 and the second cosine signal COS2.

[0203] exist Figure 4A In the illustrated embodiment, the sensor 50 comprises a first electronic circuit on which a first generating module 51 is mounted and a second electronic circuit on which a second generating module 52 is mounted. The first electronic circuit and the second electronic circuit are substantially parallel to each other and to the target within a parallelism tolerance resulting from the mounting.

[0204] In another embodiment, the sensor 50 comprises a single electronic circuit mounted in line with the target 12 , ie facing it, substantially coaxially and parallel to it, and on which both the first generating module 51 and the second generating module 52 are mounted.

[0205] "Substantially" means that a misalignment tolerance of, for example, no more than 1 mm is allowed between the measurement center of the sensor 50 and the center of the target 12 (or the longitudinal axis of the shaft 11), and / or a parallelism tolerance of, for example, no more than 1 mm is allowed between the plane of the sensor's (multiple) electronic circuits and the plane of the target. This tolerance depends on the mounting of the sensor 50 and the centering of the target 12.

[0206] The sensor 50 may be a magnetic sensor, in particular a TMR (Tunnel Magneto-Resistance), GMR or AMR sensor, or any other type of suitable position sensor.

[0207] First embodiment

[0208] In this embodiment, the first generating module 51 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1 .

[0209] The second generating module 52 is configured to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2 .

[0210] The sensor 50 is configured to calculate an average angular position PAM of the shaft 11 at a given time t based on the value of the first angle value signal SA1 , the value of the second angle value signal SA2 and a predetermined phase shift value DPH.

[0211] Preferably, the sensor 50 is configured to calculate the average angular position of the shaft 11 according to the following formula:

[0212] -if

[0213] [Mathematical formula 29]

[0214] (SA1(t)+SA2(t)+DPH)<360,

[0215] but:

[0216] [Math 30]

[0217]

[0218] -if

[0219] [Mathematical formula 31]

[0220] (SA1(t)+SA2(t)+DPH)>360,

[0221] but:

[0222] [Math 32]

[0223]

[0224] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0225] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0226] Second embodiment

[0227] In this embodiment, the first generating module 51 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1 , and send the first angle value signal SA1 to the electronic control unit 40 .

[0228] The second generating module 52 is configured to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2 , and send the second angle value signal SA2 to the electronic control unit 40 .

[0229] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0230] The electronic control unit 40 is configured to receive the first and second angle value signals SA1 and SA2 and calculate an average angular position PAM of the shaft 11 at a given time t based on the values ​​of the first and second angle value signals SA1 and SA2 and a predetermined phase shift value DPH.

[0231] Preferably, the electronic control unit 40 is configured to calculate the average angular position of the shaft 11 according to the following formula:

[0232] -if

[0233] [Mathematical formula 33]

[0234] (SA1(t)+SA2(t)+DPH)360

[0235] ,but:

[0236] [Math 34]

[0237]

[0238] -if

[0239] [Mathematical formula 35]

[0240] (SA1(t)+SA2(t)+DPH)>360,

[0241] but:

[0242] [Mathematical formula 36]

[0243]

[0244] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0245] The electronic control unit 40 comprises a processor capable of executing a set of instructions allowing these functions to be performed.

[0246] Third embodiment

[0247] In this embodiment, the first generating module 51 is configured to send the first sine signal SIN1 and the first cosine signal COS1 to the electronic control unit 40 , and the second generating module 52 is configured to send the second sine signal SIN2 and the second cosine signal COS2 to the electronic control unit 40 .

[0248] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0249] The electronic control unit 40 is configured to receive a first sine signal SIN1 , a first cosine signal COS1 , a second sine signal SIN2 , and a second cosine signal COS2 .

[0250] The electronic control unit 40 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1 , and to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2 .

[0251] The electronic control unit 40 is configured to calculate an average angular position PAM of the shaft 11 at a given time t based on the value of the first angle value signal SA1 at time t, the value of the second angle value signal SA2 at time t and a predetermined phase shift value DPH.

[0252] The electronic control unit 40 comprises a processor capable of executing a set of instructions allowing these functions to be performed.

[0253] Exemplary Embodiments

[0254] Now we will refer to the above three embodiments Figures 5 to 7 Three exemplary embodiments are described.

[0255] Steps E1 and E2 are common to all three embodiments.

[0256] First, in step E1 , the shaft 11 is rotated.

[0257] In step E2, the first generating module 51 generates a first sine signal SIN1 and a first cosine signal COS1, which characterize the angular variation of the target 12 relative to the first generating module 51 when the shaft 11 rotates, and the second generating module 52 generates a second sine signal SIN2 and a second cosine signal COS2, which characterize the angular variation of the target 12 relative to the second generating module 52 when the shaft 11 rotates. Such generation of sine and cosine signals based on the variation in the direction of the electromagnetic field generated by the rotating target 12 is known per se and will not be described in detail here.

[0258] First embodiment ( Figure 5 )

[0259] After step E2, in step E3, the first generating module 51 generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1, and the second generating module 52 generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2.

[0260] In step E4, the sensor 50 calculates the average angular position PAM of the shaft based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0261] -if

[0262] [Mathematical formula 37]

[0263] (SA1(t)+SA2(t)+DPH)<360,

[0264] but:

[0265] [Math 38]

[0266]

[0267] -if

[0268] [Math 39]

[0269] (SA1(t)+SA2(t)+DPH)>360,

[0270] but:

[0271] [Math 40]

[0272]

[0273] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0274] Second embodiment ( Figure 6 )

[0275] After step E2, in step E3, the first generating module 51 generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1, and the second generating module 52 generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2.

[0276] In step F4 , the first generating module 51 sends the first angle value signal SA1 to the electronic control unit 40 , and the second generating module 52 sends the second angle value signal SA2 to the electronic control unit 40 .

[0277] In step F5 , the electronic control unit 40 receives the first angle value signal SA1 and the second angle value signal SA2 .

[0278] In step F6, the electronic control unit 40 calculates the average angular position PAM of the shaft based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0279] -if

[0280] [Mathematical formula 41]

[0281] (SA1(t)+SA2(t)+DPH)<360,

[0282] but:

[0283] [Mathematical formula 42]

[0284]

[0285] -if

[0286] [Mathematical formula 43]

[0287] (SA1(t)+SA2(t)+DPH)>360,

[0288] but:

[0289] [Mathematical formula 44]

[0290]

[0291] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0292] Third embodiment ( Figure 7 )

[0293] After step E2 , in step G3 , the first generating module 51 sends the first sine signal SIN1 and the first cosine signal COS1 to the electronic control unit 40 , and the second generating module 52 sends the second sine signal SIN2 and the second cosine signal COS2 to the electronic control unit 40 .

[0294] In step G4, the electronic control unit 40 receives the first sine signal SIN1, the first cosine signal COS1, the second sine signal SIN2 and the second cosine signal COS2, and in step G5, generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1, and generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2.

[0295] In step F6, the electronic control unit 40 calculates the average angular position PAM of the shaft 11 based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value according to the following formula:

[0296] -if

[0297] [Mathematical formula 45]

[0298] (SA1(t)+SA2(t)+DPH)<360,

[0299] but:

[0300] [Mathematical formula 46]

[0301]

[0302] -if

[0303] [Mathematical formula 47]

[0304] (SA1(t)+SA2(t)+DPH)>360,

[0305] but:

[0306] [Mathematical formula 48]

[0307]

[0308] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0309] I. Second Configuration

[0310] refer to Figure 4B An example of a sensor 50 in a second configuration is given. The sensor 50 comprises a housing (not shown for clarity) in which at least a first generating module 51 is mounted.

[0311] Preferably, the first generating module 51 comprises an electronic circuit, preferably a Wheatstone bridge magnetoresistor circuit, which is substantially centered relative to the target 12 within the centering tolerances resulting from the mounting.

[0312] “Substantially” means that a misalignment tolerance is allowed between the measurement center of the first generation module 51 and the center of the target 12 (or the longitudinal axis of the shaft 11 ), for example, not exceeding 1 mm.

[0313] The sensor 50 may be a magnetic sensor, in particular a TMR (Tunnel Magneto-Resistance), GMR or AMR sensor, or any other type of suitable position sensor.

[0314] The first generating module 51 is configured to generate a first sine signal SIN1 and a first cosine signal COS1 , wherein the first sine signal and the first cosine signal represent an angular change of the target 12 relative to the first generating module 51 when the shaft 11 rotates.

[0315] First embodiment

[0316] In this embodiment, the sensor 50 is configured to simulate (i.e., construct) a second sine signal SIN2 and a second cosine signal COS2 based on the first sine signal SIN1 and the first cosine signal COS2. The first sine signal SIN1 and the second sine signal SIN2 are phase-shifted by a predetermined phase shift value DPH. Similarly, the first cosine signal COS1 and the second cosine signal COS2 are phase-shifted by the same predetermined phase shift value DPH.

[0317] "Simulated out" or "constructed" means that the sensor 50 uses the values ​​of the first sine signal SIN1 and the first cosine signal COS1 generated at time t and a subsequent time t+1, wherein the time interval between t and t+1 corresponds to the predetermined phase shift value DPH. In practice, the amplitude values ​​of the first sine signal SIN1 and the first cosine signal COS1 are stored in a first column of a table in a storage area (not shown) of the sensor 50 for subsequent use, and the amplitude values ​​of the second sine signal SIN2 and the second cosine signal COS2 are generated by copying the amplitude values ​​of the first sine signal SIN1 and the first cosine signal COS1 into the second column of the table, but shifting these amplitude values ​​in the lower row so that in a single row, these values ​​correspond to the SIN1 signal and the COS1 signal phase-shifted by a predetermined phase value (preferably 90°). This copying of the amplitude values ​​of the first sine signal SIN1 and the first cosine signal COS1 involves an initialization phase during which the second column of the table does not contain any value for the duration of the predetermined phase shift value DPH and for the time period corresponding to acquiring the first amplitude values ​​of the first sine signal SIN1 and the first cosine signal COS1.

[0318] The sensor 50 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1 .

[0319] The sensor 50 is configured to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2, the first sine signal SIN1 and the second sine signal SIN2 are phase-shifted by a predetermined phase shift value DPH, and the first cosine signal COS1 and the second cosine signal COS2 are phase-shifted by a predetermined phase shift value DPH.

[0320] The sensor 50 is configured to calculate an average angular position PAM of the shaft 11 at a given time t based on the value of the first angle value signal SA1 , the value of the second angle value signal SA2 and a predetermined phase shift value DPH.

[0321] The sensor 50 is configured to calculate the average angular position of the shaft 11 according to the following formula:

[0322] -if

[0323] [Math 49]

[0324] (SA1(t)+SA2(t)+DPH)<360,

[0325] but:

[0326] [Mathematical formula 50]

[0327]

[0328] -if

[0329] [Mathematical formula 51]

[0330] (SA1(t)+SA2(t)+DPH)>360,

[0331] but:

[0332] [Mathematical formula 52]

[0333]

[0334] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0335] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0336] Second embodiment

[0337] In this embodiment, the sensor 50 is configured to simulate (ie, construct) a second sine signal SIN2 and a second cosine signal COS2 based on the first sine signal SIN1 and the first cosine signal COS1 in the same manner as in the previous embodiment.

[0338] The sensor 50 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1 , and transmit the first angle value signal SA1 to the electronic control unit 40 .

[0339] The sensor 50 is configured to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the second sine signal SIN2 and the second cosine signal COS2 and to send the second angle value signal SA2 to the electronic control unit 40 .

[0340] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0341] The electronic control unit 40 is configured to receive the first and second angle value signals SA1 and SA2 and calculate an average angular position PAM of the shaft 11 at a given time t based on the values ​​of the first and second angle value signals SA1 and SA2 and a predetermined phase shift value DPH.

[0342] The electronic control unit 40 is configured to calculate the average angular position of the shaft 11 according to the following formula:

[0343] -if

[0344] [Mathematical formula 53]

[0345] (SA1(t)+SA2(t)+DPH)<360,

[0346] but:

[0347] [Mathematical formula 54]

[0348]

[0349] -if

[0350] [Mathematical formula 55]

[0351] (SA1(t)+SA2(t)+DPH)>360,

[0352] but:

[0353] [Mathematical formula 56]

[0354]

[0355] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0356] The electronic control unit 40 comprises a processor capable of executing a set of instructions allowing these functions to be performed.

[0357] Third embodiment

[0358] In this embodiment, the sensor 50 is configured to simulate (i.e., construct) the second sine signal SIN2 and the second cosine signal COS2 based on the first sine signal SIN1 and the first cosine signal COS1 in the same manner as the first two embodiments, and send the values ​​of the first sine signal SIN1, the first cosine signal COS1, and the second sine signal SIN2 and the second cosine signal COS2 to the electronic control unit 40.

[0359] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0360] The electronic control unit 40 is configured to receive the values ​​of the first sine signal SIN1 , the first cosine signal COS1 , and the second sine signal SIN2 and the second cosine signal COS2 .

[0361] The electronic control unit 40 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SIN1 and the first cosine signal COS1, and to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the values ​​of the second sine signal SIN2 and the second cosine signal COS2.

[0362] The electronic control unit 40 is configured to calculate the average angular position PAM of the shaft 11 at a given time t based on the value of the first angle value signal SA1 at time t, the value of the second angle value signal SA2 at time t and the predetermined phase shift value DPH according to the following formula:

[0363] -if

[0364] [Mathematical formula 57]

[0365] (SA1(t)+SA2(t)+DPH)<360,

[0366] but:

[0367] [Mathematical formula 58]

[0368]

[0369] -if

[0370] [Math 59]

[0371] (SA1(t)+SA2(t)+DPH)>360,

[0372] but:

[0373] [Math 60]

[0374]

[0375] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0376] The electronic control unit 40 comprises a processor capable of executing a set of instructions allowing these functions to be performed.

[0377] Fourth embodiment

[0378] In this embodiment, the sensor 50 is configured to send a first sine signal SIN1 and a first cosine signal COS1 to the electronic control unit 40 .

[0379] The sensor 50 includes a processor capable of executing a set of instructions allowing these functions to be performed.

[0380] The electronic control unit 40 is configured to receive the first sine signal SIN1 and the first cosine signal COS1, and simulate (ie, construct) the second sine signal SIN2 and the second cosine signal COS2 based on the received first sine signal SIN1 and the first cosine signal COS1 in the same manner as the first three embodiments.

[0381] The electronic control unit 40 is configured to generate a first angle value signal SA1 representing a first angular position of the shaft 11 based on the first sine signal SA1 and the first cosine signal COS1, and to generate a second angle value signal SA2 representing a second angular position of the shaft 11 based on the values ​​of the second sine signal SIN2 and the second cosine signal COS2.

[0382] The electronic control unit 40 is configured to calculate the average angular position PAM of the shaft 11 at a given time t based on the value of the first angle value signal SA1 at time t, the value of the second angle value signal SA2 at time t and the predetermined phase shift value DPH according to the following formula:

[0383] -if

[0384] [Mathematical formula 61]

[0385] (SA1(t)+SA2(t)+DPH)<360,

[0386] but:

[0387] [Mathematical formula 62]

[0388]

[0389] -if

[0390] [Mathematical formula 63]

[0391] (SA1(t)+SA2(t)+DPH)>360,

[0392] but:

[0393] [Mathematical formula 64]

[0394]

[0395] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0396] The electronic control unit 40 comprises a processor capable of executing a set of instructions allowing these functions to be performed.

[0397] Exemplary Embodiments

[0398] Three exemplary embodiments of the present invention will now be described.

[0399] First, the shaft 11 is rotated.

[0400] Then, the first generation module 51 generates a first sine signal SIN1 and a first cosine signal COS1, which characterize the angular variation of the target 12 when the shaft 11 rotates. This generation of sine and cosine signals based on the variation in the direction of the electromagnetic field generated by the rotating target 12 is known per se and will not be described in detail here.

[0401] These two steps are common to the three embodiments described below.

[0402] First embodiment (corresponding to the first embodiment of the second configuration)

[0403] The sensor 50 constructs the second sine signal SIN2 and the second cosine signal COS2 as described above, and generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the generated first sine signal SIN1 and the generated first cosine signal COS1, and generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the constructed second sine signal SIN2 and the constructed second cosine signal COS2.

[0404] Then, the sensor 50 calculates the average angular position PAM of the shaft 11 based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0405] -if

[0406] [Mathematical formula 65]

[0407] (SA1(t)+SA2(t)+DPH)<360,

[0408] but:

[0409] [Mathematical formula 66]

[0410]

[0411] -if

[0412] [Mathematical formula 67]

[0413] (SA1(t)+SA2(t)+DPH)>360,

[0414] but:

[0415] [Mathematical formula 68]

[0416]

[0417] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0418] Second Embodiment (Second Embodiment Corresponding to the Second Configuration)

[0419] The sensor 50 constructs the second sine signal SIN2 and the second cosine signal COS2 as described above, and generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the generated first sine signal SIN1 and the generated first cosine signal COS1, and generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the constructed second sine signal SIN2 and the constructed second cosine signal COS2.

[0420] Then, the sensor 50 transmits the first angle value signal SA1 and the second angle value signal SA2 to the electronic control unit 40 .

[0421] The electronic control unit 40 receives the first angle value signal SA1 and the second angle value signal SA2, and then calculates the average angular position PAM of the shaft 11 based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0422] -if

[0423] [Math 69]

[0424] (SA1(t)+SA2(t)+DPH)<360,

[0425] but:

[0426] [Mathematical formula 70]

[0427]

[0428] -if

[0429] [Mathematical formula 71]

[0430] (SA1(t)+SA2(t)+DPH)>360,

[0431] but:

[0432] [Mathematical formula 72]

[0433]

[0434] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0435] Third Embodiment (Third Embodiment Corresponding to the Second Configuration)

[0436] The sensor 50 constructs the second sine signal SIN2 and the second cosine signal COS2 as described above, and sends the generated first sine signal SIN1, the generated first cosine signal COS1, the constructed (ie, simulated) second sine signal SIN2 and the constructed second cosine signal COS2 to the electronic control unit 40.

[0437] Then, the electronic control unit 40 receives the first sine signal SIN1, the first cosine signal COS1, the second sine signal SIN2 and the second cosine signal COS2, and generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the received first sine signal SIN1 and the received first cosine signal COS1, and generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the received second sine signal SIN2 and the received second cosine signal COS2.

[0438] The electronic control unit 40 calculates the average angular position of the shaft 11 based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0439] -if

[0440] [Mathematical formula 73]

[0441] (SA1(t)+SA2(t)+DPH)<360,

[0442] but:

[0443] [Mathematical formula 74]

[0444]

[0445] -if

[0446] [Mathematical formula 75]

[0447] (SA1(t)+SA2(t)+DPH)>360,

[0448] but:

[0449] [Mathematical formula 76]

[0450]

[0451] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0452] Fourth Embodiment (Fourth Embodiment Corresponding to the Second Configuration)

[0453] The sensor 50 sends a first sine signal SIN1 and a first cosine signal COS1 to the electronic control unit 40 .

[0454] The electronic control unit 40 receives the first sine signal SIN1 and the first cosine signal COS1 and then simulates (ie, constructs) the second sine signal SIN2 and the second cosine signal COS2 as described above.

[0455] Then, the electronic control unit 40 generates a first angle value signal SA1 representing the first angular position of the shaft 11 based on the received first sine signal SIN1 and the received first cosine signal COS1, and generates a second angle value signal SA2 representing the second angular position of the shaft 11 based on the simulated second sine signal SIN2 and the simulated second cosine signal COS2.

[0456] The electronic control unit 40 then calculates the average angular position PAM of the shaft 11 based on the first angle value signal SA1, the second angle value signal SA2 and the predetermined phase shift value DPH according to the following formula:

[0457] -if

[0458] [Mathematical formula 77]

[0459] (SA1(t)+SA2(t)+DPH)<360,

[0460] but:

[0461] [Mathematical formula 78]

[0462]

[0463] -if

[0464] [Mathematical formula 79]

[0465] (SA1(t)+SA2(t)+DPH)>360,

[0466] but:

[0467] [Math 80]

[0468]

[0469] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

[0470] According to the present invention, all or part of the functions as described above may be implemented by the sensor 50 and / or the electronic control unit 40. In other words, the steps of the method according to the present invention may be implemented completely by the sensor 50 or completely by the electronic control unit 40 (except for generating the first sine signal SIN1 and the first cosine signal COS1) or by both the sensor 50 and the electronic control unit 40.

[0471] Figure 8 An example of the error Err(inv) obtained by the method according to the invention in a system according to the first configuration is shown. It can be seen that the error Err(inv) is between -0.01 and 0.01°, while the error Err(prior) not compensated by the invention swings between -0.12° and 0.12° within the rotation range of the shaft 11 corresponding to one rotation (360°).

[0472] Fig. 9 An example of the error Err(inv) obtained by using the method according to the present invention in a system according to the second configuration is shown. It can be seen that the error Err(inv) is between -0.08 and 0.08° during the initialization of the first 90 degrees, and then between -0.01 and 0.01° once the initialization is completed, while the error Err(prior) without compensation by the present invention swings between -0.12° and 0.12° within the rotation range of the shaft 11 corresponding to one rotation (360°). The initialization corresponds to such a period during which the first sine signal SIN1 and the first cosine signal COS1 are generated during the first quarter of the shaft rotation, and the values ​​of the second sine signal SIN2 and the second cosine signal COS2 cannot be calculated because these values ​​correspond to the values ​​of the first sine signal SIN1 and the first cosine signal COS1 plus or minus 90° (a phase shift DPH for a quarter of the rotation), respectively.

[0473] According to the invention, by correcting the sine signal SIN and the cosine signal COS according to the steps of the method according to the invention, the error generated by the center misalignment of the sensor 50 with the target 12 is significantly reduced, or even eliminated (because it is equivalent to the ambient electronic noise).

Claims

1. A method for measuring the angular position of a rotating shaft (11) of a motor vehicle (1) by means of a target (12) fixed to the free end (11A) of the shaft and comprising a magnetic element and a magnetoresistive position sensor (50) mounted facing the target (12), the method comprising the following steps: - generating (E1) a first sine signal (SIN1) and a first cosine signal (COS1), the first sine signal and the first cosine signal representing the angular variation of the target (12) relative to the sensor (50) when the shaft (11) rotates, - generating (E2) a second sine signal (SIN2) and a second cosine signal (COS2), the second sine signal and the second cosine signal representing the angular variation of the target (12) relative to the sensor (50) when the shaft (11) rotates, the first sine signal (SIN1) and the second sine signal (SIN2) being phase-shifted by a predetermined phase shift value (DPH), - generating (E3) a first angle value signal (SA1) representing a first angular position of the shaft (11) based on the first sine signal (SIN1) and the first cosine signal (COS1), The sensor (50) comprises at least a first generating module (51), a step (E1) of generating the first sine signal (SIN1) and the first cosine signal (COS1) is performed by the first generating module (51) based on the change in the direction of the electromagnetic field generated by the rotation of the target (12), and a step (E2) of generating the second sine signal (SIN2) and the second cosine signal (COS2) is performed by the first generating module (51) or the electronic control unit (40) based on the first sine signal (SIN1) and the first cosine signal (COS1), - generating (E4) a second angle value signal (SA2) representing a second angular position of the shaft (11) based on the second sine signal (SIN2) and the second cosine signal (COS2), - calculating (E5) the average angular position (PAM) of the shaft (11) at a given time (t) based on the first angular value signal (SA1), the second angular value signal (SA2) and the predetermined phase shift value (DPH) according to the following formula: -if [Mathematical formula 81] (SA1(t)+SA2(t)+DPH)<360, but: [Mathematical formula 82] - Otherwise if, [Mathematical formula 83] (SA1(t)+SA2(t)+DPH)>360, but: [Mathematical formula 84] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value.

2. A computer program product, characterized in that The method comprises a set of program code instructions which, when executed by one or more processors, configure the one or more processors to implement the method as claimed in any one of the preceding claims.

3. A magnetoresistive position sensor (50) adapted to be mounted facing a magnetic target (12) fixed at an end (11A) of a rotating shaft (11) of a motor vehicle (1), the sensor (50) being configured to implement a method as claimed in any one of the preceding claims.

4. The sensor (50) as claimed in any one of claims 5 and 6, comprises at least a first generating module (51), which is configured to generate the first sine signal (SIN1) and the first cosine signal (COS1) based on the change in the direction of the electromagnetic field generated by the rotation of the target (12) and to generate the second sine signal (SIN2) and the second cosine signal (COS2) based on the first sine signal (SIN1) and the first cosine signal (COS1), or to transmit the first sine signal (SIN1) and the first cosine signal (COS1) to an electronic control unit (40), so that the electronic control unit (40) generates the second sine signal (SIN2) and the second cosine signal (COS2) based on the first sine signal (SIN1) and the first cosine signal (COS1).

5. A motor vehicle (1) comprising at least one rotating shaft (11), the at least one rotating shaft comprising a magnetic target (12) fixed at one of the ends (11A) of the rotating shaft; and at least one position sensor (50) as described in any one of claims 3 and 4, the at least one position sensor being installed facing the target (12).

6. A motor vehicle (1) comprising: - an electronic control unit (40), at least one rotating shaft (11) comprising a target (12) fixed at one of its ends (11A), - a position sensor (50), which is installed facing the target (12) and connected to the electronic control unit (40) through at least one communication link, the sensor (50) being configured to generate a first sine signal (SIN1) and a first cosine signal (COS1), the first sine signal and the first cosine signal representing the angular variation of the target (12) when the shaft (11) rotates, and send the first sine signal (SIN1) and the first cosine signal (COS1) to the electronic control unit (40), - The electronic control unit (40) is configured to: - receiving the first sine signal (SIN1) and the first cosine signal (COS1), - based on the first sine signal (SIN1) and the first cosine signal (COS1), a second sine signal (SIN2) and a second cosine signal (COS2) are simulated, which represent the angular change of the target (12) when the shaft (11) rotates, the first sine signal (SIN1) and the second sine signal (SIN2) are phase-shifted by a predetermined phase shift value (DPH), and the first cosine signal (COS1) and the second cosine signal (COS2) are phase-shifted by a predetermined phase shift value (DPH), - generating a first angle value signal (SA1) representing a first angular position of the shaft (11) based on a received first sine signal (SIN1) and a received first cosine signal (COS1), - generating a second angle value signal (SA2) representing a second angular position of the shaft (11) based on the simulated second sine signal (SIN2) and the simulated second cosine signal (COS2), - calculating the average angular position (PAM) of the shaft (11) at a given time (t) based on the value of the first angle value signal (SA1), the value of the second angle value signal (SA2) and the predetermined phase shift value (DPH) according to the following formula: -if [Mathematical formula 89] (SA1(t)+SA2(t)+DPH)<360, but: [Mathematical formula 90] -if [Mathematical formula 91] (SA1(t)+SA2(t)+DPH)>360, but: [Mathematical formula 92] Wherein, SA1(t) is the value of the first angle value signal at time t, SA2(t) is the value of the second angle value signal at time t, and DPH is the predetermined phase shift value (DPH).