Method for compensating for interference of a measured angle signal of a magnetic angle sensor of an electric machine, a correspondingly designed microcontroller, an electric machine, and a computer program product
11592280 · 2023-02-28
Assignee
Inventors
Cpc classification
G01D3/08
PHYSICS
G01D5/145
PHYSICS
G01B7/30
PHYSICS
International classification
G01B7/30
PHYSICS
Abstract
A method for compensating interference in a measured angle signal of a magnetic angle sensor of an electrical machine, wherein the method includes: receiving a measured angle signal, estimating a current error and/or a misalignment error in the measured angle signal, calculating an expected rotor angle from the measured angle signal, taking into account the estimated current error and/or the estimated misalignment error, such as during operation of the electrical machine. The present invention furthermore relates to a microcontroller for calculating interference in a measured angle signal of a magnetic angle sensor of an electrical machine, to an electrical machine having a magnetic angle sensor and a microcontroller and to a computer program product.
Claims
1. A method for compensating interference in a measured angle signal of a magnetic angle sensor of an electrical machine, comprising the steps of: providing a measured angle signal; providing a current error being part of the measured angle signal; providing a misalignment error being part of the measured angle signal; and providing an expected rotor angle; providing a measured rotor angle detected by the magnetic angle sensor; providing an estimated rotor angle from an amplitude and an offset of the magnetic angle sensor; receiving the measured angle signal; estimating at least one of the current error or the misalignment error in the measured angle signal by determining a difference from the measured rotor angle minus the estimated rotor angle; calculating the expected rotor angle from the measured angle signal, taking into account at least one of the estimated current error or the estimated misalignment error during operation of the electrical machine.
2. The method as claimed in claim 1, further comprising the steps of: providing a microcontroller; providing a calculation program stored in the microcontroller; and delivering the measured angle signal to the calculation program to estimate the current error and/or the misalignment error.
3. The method as claimed in claim 2, further comprising the steps of: providing the measured angle signal to further comprise at least one error; providing the calculation program to further comprise a model; and providing at least one rotor state; detecting the at least one rotor state by way of the received measured angle signal; mapping at least one of an angle, or an angular velocity, or an angular acceleration onto the current actual rotor state taking into account the at least one error in the measured angle signal.
4. The method of claim 3, further comprising the steps of providing the at least one error to further comprise at least one of an amplitude error, an offset error, the misalignment error, or the current error.
5. The method of claim 2, further comprising the steps of: providing an amplitude error; and providing an offset error; delivering at least one of the amplitude error or the offset error to the calculation program to calculate the expected rotor angle.
6. The method of claim 5, further comprising the steps of: providing at least one observer; providing an observed system; and providing at least one interfering variable; determining the rotor angle error using the at least one observer to reconstruct non-measurable variables from at least one input variable of the observed system and at least one output variable of the observed system.
7. The method of claim 6, further comprising the steps of providing the at least one input variable to further comprise at least one interfering variable.
8. The method of claim 6, further comprising the steps of providing the at least one output variable to further comprise at least one measured variable.
9. The method of claim 6, further comprising the steps of providing the at least one observer to be a Luenberger observer or a Kalman filter.
10. The method of claims 1, further comprising the steps of: providing a rotor angle error; using at least one of the estimated current error or the estimated misalignment error to estimate the rotor angle error by determining a difference from the measured rotor angle minus the estimated rotor angle.
11. The method of claim 10, further comprising the steps of deriving at least one of the actual rotor angle, or the actual angular velocity, or the actual angular acceleration from the estimated rotor angle error.
12. The method of claim 10, further comprising the steps of using the rotor angle error to calculate the expected rotor angle from the received measured angle signal taking into account at least one of the current error or the misalignment error.
13. The method of claim 1, further comprising the steps of: providing three current phases being part of the electrical machine; providing a plurality of errors, each of the plurality of errors corresponding to one of the three current phases; taking into account the plurality of errors when estimating the current error.
14. The method of one of claim 13, further comprising the steps of adding the plurality of errors together to result in one error.
15. The method claim 1, further comprising the steps of calculating the difference from the received measured angle signal affected by current errors to estimate the misalignment error.
16. The method claim 1, further comprising the steps of: providing a microcontroller for receiving the measured angle signal; calculating interference in the measured angle signal of the magnetic angle sensor of the electrical machine using the microcontroller.
17. The method of claim 16, further comprising the steps of: providing a rotor being part of the electrical machine; and providing a permanent magnet arranged on the rotor such that the permanent magnet induces a measureable magnetic field in the angle sensor through a movement of the rotor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Further features and objects of the present invention will become apparent to a person skilled in the art by putting the present teaching into practice and taking into consideration the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(13) The following description of the preferred embodiment(s) is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses.
(14) Further advantages of popular embodiments are explained in a summary of the following
(15)
(16) The magnetic angle sensor 12 preferably contains an alloy in which the measurable resistance in the form of a magnetization M changes as a function of a direction of a magnetic field H. This effect is known as the magnetoresistive effect. Such an alloy may be for example a permalloy alloy. A permalloy alloy preferably contains up to 80% by weight of nickel and up to 20% by weight of iron.
(17)
(18)
(19)
(20) The influence of the offset error is generally the same, whereas the influence of the amplitude error changes with the angle α. A distinction is thereby able to be drawn between the error that contains the offset and the error that contains the amplitude error.
(21)
(22)
(23) In contrast to
(24)
(25) Using the detected current of each phase, the parameters p.sub.xn,p.sub.yn, n=1, 2, 3 are able to be adapted accordingly, as is illustrated schematically in
(26)
(27)
(28)
(29)
(30) The curves 40 in
(31) The description of the invention is merely exemplary in nature and, thus, variations that do not depart from the gist of the invention are intended to be within the scope of the invention. Such variations are not to be regarded as a departure from the spirit and scope of the invention.
LIST OF REFERENCE SIGNS
(32) 10 electrical machine 12 magnetic angle sensor 14 permanent magnet 16 rotor 17 substrate 18 rotor axis 20 movement of the rotor 21 alloy 22, 24 potential difference I current H magnetic field M magnetization α rotor angle α′ angular velocity α″ angular acceleration 29 step 30 rotor angle error calculation step 32 rotor state observer step 34 sensor model 36 loop 40 measured curve 42 calculated curve