METHOD FOR DETERMINING THE ANGULAR POSITION OF A SHAFT OF A MOTOR VEHICLE

20240044673 ยท 2024-02-08

    Inventors

    Cpc classification

    International classification

    Abstract

    A method for determining the angular position of a shaft of a motor vehicle, including in particular the calculation of a first virtual angle on the basis of the values of the measured angle calculated since the zero crossing of the sine signal, plus 90, the calculation of an intermediate compensated angle by finding the mean of the measured angle value stored for the instant and of the first virtual angle value stored for the instant, the calculation of a second virtual angle on the basis of the values of the intermediate compensated angle calculated, plus 45, and the calculation of a final compensated angle by finding the mean of the intermediate compensated angle value stored for the instant and of the second virtual angle value stored for the instant.

    Claims

    1. A method for determining the angular position of a shaft of a motor vehicle by means of a target fixed to a free end of said shaft and comprising a magnetic element, and a magnetoresistive position sensor mounted facing said target, said method comprising: at each instant: rotating the shaft, generating a sine signal and a cosine signal, compensating for the amplitude and offset of the signals generated, storing the compensated sine signal values in a first memory area, storing the compensated cosine signal values in a second memory area, calculating the so-called measured angle in real time on the basis of the compensated sine and cosine signals, storing the measured angle calculated in a third memory area, during a first rotation of the shaft: detecting the zero crossing of the compensated sine signal characterizing a first angular position of the shaft, detecting the zero crossing of the compensated cosine signal characterizing a second angular position of the shaft offset by 90 relative to the first angular position, on the basis of the detection of the zero crossing of the cosine signal, at each instant: calculating a first virtual angle on the basis of the calculated measured angle values stored in the third memory area since the zero crossing of the sine signal, plus 90, calculating an intermediate compensated angle by finding the mean of the measured angle value stored for said instant and of the first virtual angle value stored for said instant, storing the intermediate compensated angle values in a fourth memory area, during a second rotation of the shaft: detecting the zero crossing of the compensated sine signal characterizing the first angular position of the shaft, detecting the zero crossing of the difference between the compensated sine signal and the compensated cosine signal characterizing a third angular position of the shaft offset by 45 relative to the first angular position, on the basis of the zero crossing of the difference between the compensated sine signal and the compensated cosine signal, at each instant: calculating a second virtual angle on the basis of the calculated intermediate compensated angle values stored in the fourth memory area since the zero crossing of the sine signal, plus 45, calculating a final compensated angle by finding the mean of the intermediate compensated angle value stored for said instant and of the second virtual angle value stored for said instant.

    2. The method as claimed in claim 1, wherein the zero crossing of the compensated sine signal detected is a crossing from negative to positive of the amplitude of said compensated sine signal.

    3. The method as claimed in claim 1, wherein the zero crossing of the compensated cosine signal detected is a crossing from positive to negative of the amplitude of said compensated cosine signal.

    4. The method as claimed in claim 1, wherein the zero crossing of the difference between the compensated sine signal value and the compensated cosine signal value detected is a crossing from negative to positive.

    5. A computer program product, comprising a set of program code instructions that, when executed by one or more processors, configure the one or more processors to implement a method as claimed in claim 1.

    6. A system for determining the angular position of a shaft of a motor vehicle by means of a target fixed to a free end of said shaft and comprising a magnetic element, and a magnetoresistive position sensor mounted facing said target, said system comprising said sensor, said sensor being configured to generate a sine signal and a cosine signal representative of the angular position of the shaft, the system being configured to: at each instant: compensate for the amplitude and offset of the signals generated by the sensor, store the compensated sine signal values in a first memory area, store the compensated cosine signal values in a second memory area, calculate the so-called measured angle in real time on the basis of the compensated sine and cosine signals, store the measured angle calculated in a third memory area, during a first rotation of the shaft: detect the zero crossing of the compensated sine signal characterizing a first angular position of the shaft, detect the zero crossing of the compensated cosine signal characterizing a second angular position of the shaft offset by 90 relative to the first angular position, on the basis of the detection of the zero crossing of the cosine signal, at each instant: calculate a first virtual angle on the basis of the calculated measured angle values stored in the third memory area since the zero crossing of the sine signal, plus 90, calculate an intermediate compensated angle by finding the mean of the measured angle value stored for said instant and of the first virtual angle value stored for said instant, store the intermediate compensated angle values in a fourth memory area, during a second rotation of the shaft: detect the zero crossing of the compensated sine signal characterizing the first angular position of the shaft, detect the zero crossing of the difference between the compensated sine signal and the compensated cosine signal characterizing a third angular position of the shaft offset by 45 relative to the first angular position, on the basis of the zero crossing of the difference between the compensated sine signal and the compensated cosine signal, at each instant: calculate a second virtual angle on the basis of the calculated intermediate compensated angle values stored since the zero crossing of the sine signal, plus 45, calculate a final compensated angle by finding the mean of the intermediate compensated angle value stored for said instant and of the second virtual angle value stored for said instant.

    7. The system as claimed in claim 6, configured to detect the zero crossing of the compensated sine signal by detecting a crossing from negative to positive of the amplitude of said compensated sine signal.

    8. The system as claimed in claim 6, wherein the system is configured to detect the zero crossing of the compensated cosine signal by detecting a crossing from positive to negative of the amplitude of said compensated cosine signal.

    9. The system as claimed in claim 6, wherein the system is configured to detect the zero crossing of the difference between the compensated sine signal value and the compensated cosine signal value by detecting a crossing from negative to positive.

    10. A motor vehicle comprising a drive shaft and a system as claimed in claim 6.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0069] Other features and advantages of aspects of the invention will become more apparent upon reading the description that follows. This description is purely illustrative and should be read with reference to the appended drawings, in which:

    [0070] FIG. 1 illustrates 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 in the absence of correction.

    [0071] FIG. 2 illustrates 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 with an eccentricity offset of 0.25 mm.

    [0072] FIG. 3 schematically illustrates one embodiment of the system according to the invention.

    [0073] FIG. 4 schematically illustrates one arrangement of the position sensor and drive shaft.

    [0074] FIG. 5 schematically illustrates one embodiment of the method according to the invention.

    DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

    [0075] FIG. 3 shows an example of a vehicle 1 according to an aspect of the invention.

    [0076] In this non-limiting 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 an electric battery 30 and is controlled by an electronic control unit 40 via a converter 25 and using a sensor 50.

    [0077] The rotor 10 comprises a rotating central shaft 11 making it possible to drive the wheels 2 of the vehicle 1 via a transmission line (not shown for the sake of clarity). It will be noted that in this example, the shaft 11 is a shaft of a rotor 10 but this in no way limits the scope of an aspect of the present invention, and the shaft 11 can be any type of rotating shaft of a motor vehicle.

    [0078] With reference to FIG. 4, the shaft 11 takes the form of a rod extending in a longitudinal direction from the body of the rotor 10 and comprising a free end 11A. In this example, the shaft 11 is a transmission shaft, but it could equally be, in one embodiment, a crankshaft, a camshaft, a steering shaft of any shaft of the vehicle 1 the angular position of which must be measured, for example in order to allow the satisfactory operation of the motor of the vehicle 1.

    [0079] The free end 11A of the shaft 11 comprises a target 12, taking the form of a disk for example, mounted coaxially with the shaft 11, that is, the center of the target 12 is coincident with the longitudinal axis of the shaft 11. The target 12 comprises a centered magnetic element at its center. This magnetic element can be a portion of the target 12 or an additional element fixed in the center of the target 12.

    [0080] The vehicle 1 also comprises a system 100 according to an aspect of the invention.

    [0081] In this example, the system 100 comprises the electronic control unit 40, the sensor 50 and a plurality of memory areas (not visible) that can be implemented in the electronic control unit 40 and/or in the sensor 50 and/or in another location in the system 100.

    [0082] The sensor 50 is a magnetoresistive sensor, for example a TMR (tunneling magnetoresistive) sensor. The sensor 50 is mounted facing the magnetic element of the target 12 of the shaft 11, substantially centered and coaxial therewith.

    [0083] The sensor 50, which is placed on support 51, is configured to generate a sinusoidal signal, known as a sine signal, and a cosinusoidal signal, known as a cosine signal, representative of the electromagnetic variations of the magnet when the shaft 11 is rotated.

    [0084] The system 100, that is the electronic control unit 40 and/or the sensor 50, is configured to, at each instant, compensate for the amplitude and offset of the signals generated by the sensor, to store the compensated sine signal values in a first memory area, to store compensated cosine signal values in a second memory area, to calculate the so-called measured angle in real time on the basis of the compensated sine and cosine signals, and to store the measured angle calculated in a third memory area.

    [0085] At each instant is given to mean continuously or in real time, electronically by periodic time samples, in a manner known per se, for example every N milliseconds where N is a natural number.

    [0086] During the first rotation of the shaft 11, the system 100 is configured to detect the zero crossing of the compensated sine signal characterizing a first angular position of the shaft 11 and to detect the zero crossing of the compensated cosine signal characterizing a second angular position of the shaft 11 offset by 90 relative to the first angular position.

    [0087] On the basis of the detection of the zero crossing of the cosine signal, the system 100 is configured to, at each instant: calculate a first virtual angle on the basis of the measured angle values stored in the third memory zone since the zero crossing of the sine signal, plus 90, calculate a calculate an intermediate compensated angle by finding the mean of the measured angle value stored for said instant and of the first virtual angle value stored for said instant, and store the intermediate compensated angle values in a fourth memory area.

    [0088] During a second rotation of the shaft 11, the system 100 is configured to detect the zero crossing of the compensated sine signal characterizing the first angular position of the shaft 11 and to detect the zero crossing of the difference between the compensated sine signal and the compensated cosine signal characterizing a third angular position of the shaft 11 offset by 45 relative to the first angular position.

    [0089] On the basis of the zero crossing of the difference between the compensated sine signal and the compensated cosine signal, the system 100 is configured to, at each instant: calculate a second virtual angle on the basis of the calculated intermediate compensated angle values stored in the fourth memory zone since the zero crossing of the sine signal, plus 45, and calculate a final compensated angle by finding the mean of the intermediate compensated angle value stored for said instant and of the second virtual angle value stored for said instant.

    [0090] The system 100 comprises at least one processor capable of implementing a set of instructions allowing these functions to be performed.

    EXEMPLARY EMBODIMENT

    [0091] An exemplary embodiment of the method according to the invention will now be described with reference to FIG. 5.

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

    [0093] As soon as the shaft 11 is rotated, at each instant, the sensor 50 starts to generate a sine signal and a cosine signal in a step E2.

    [0094] As the shaft 11 rotates and the sine and cosine signals are generated, the amplitude and offset of the sine and cosine signals are compensated for at each instant in a step E3. Since amplitude and offset compensation is known per se, it will not be described in more detail here.

    [0095] Next, each value of the measured compensated sine signal is stored in a first storage area of the system 100 in a step E4 and each value of the measured compensated cosine signal is stored in a second storage area of the system 100 in a step E5.

    [0096] The so-called measured angle is calculated by the system 100 in real time on the basis of the compensated sine and cosine signals in a step E6. The measured angle is determined by calculating the arc tangent of the compensated sine and cosine signals.

    [0097] The measured angle calculated is stored in a third memory area of the system 100 in a step E7.

    [0098] During the first rotation of the shaft 11, the zero crossing of the compensated sine signal characterizing a first angular position of the shaft 11 is detected in a step E8. During this time, steps E2 to E7 are implemented.

    [0099] Next, the zero crossing of the compensated cosine signal characterizing a second angular position of the shaft 11 offset by 90 relative to the first angular position is detected in a step E9.

    [0100] On the basis of the detection of the zero crossing of the cosine signal, at each instant, with steps E2 to E7 still being carried out in parallel, in a step E10 a first virtual angle is calculated on the basis of the values of the measured angle calculated in step E6 stored in the third memory area since the zero crossing of the sine signal, plus 90.

    [0101] Each value (i.e. at each instant) of the first virtual angle calculated can optionally be stored in a fourth memory area of the system 100 in a step E11.

    [0102] Then, an intermediate compensated angle is calculated at each instant by finding the mean of the measured angle value stored for said instant and of the first virtual angle value stored for said instant in a step E12.

    [0103] The values of the intermediate compensated angle calculated at each instant are stored in a fourth memory area of the system 100 in a step E13.

    [0104] Next, during a second rotation of the shaft 11, with steps E2 to E7 still being implemented, the zero crossing of the compensated sine signal characterizing the first angular position of the shaft 11 is detected in a step E14, then the zero crossing of the difference between the compensated sine signal and the compensated cosine signal characterizing a third angular position of the shaft 11 offset by 45 relative to the first angular position is detected in a step E15.

    [0105] On the basis of the zero crossing of the difference between the compensated sine signal and the compensated cosine signal, at each instant, in a step E16, the system 100 calculates a second virtual angle on the basis of the calculated intermediate compensated angle values stored in the fourth memory area since the zero crossing of the sine signal, plus 45.

    [0106] Next, the system 100 calculates a final compensated angle by finding the mean of the intermediate compensated angle value stored for said instant and of the second virtual angle value stored for said instant in a step E17.

    [0107] As set out above, steps E3 to E17 can be implemented entirely by the sensor 50 or entirely by the electronic control unit 40. As a variant, some of steps E3 to E17 can be implemented by the sensor 50 and the subsequent steps by the electronic control unit 40.