Motor control method, device, storage medium and motor controller
By receiving and demodulating the position sensor signal, diagnosing and calculating the motor angle, the risk of failure caused by the hardware decoding chip is solved, and the reliability and safety of the motor control system are improved.
Patent Information
- Application Number
- CN202211185669.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-27
AI Technical Summary
In existing motor control systems, the failure probability caused by the hardware decoding chip increases the risk of failure in angle resolution, leading to uncertainty in torque output and system oscillation, reducing product reliability and safety.
By receiving the output signal of the position sensor, demodulation and filtering are performed to diagnose the amplitude of the sine signal and cosine signal. When the preset solution conditions are met, the angle is calculated. Otherwise, the signal at the previous moment or the estimated angle is used to calculate the angle. , avoiding the dependence on hardware decoding chips.
It reduces system complexity and cost, avoids angle calculation failure caused by hardware decoding chip failure, and improves product reliability and safety.
Smart Images

Figure CN117833746B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of motor technology, and in particular, to a motor control method, device, storage medium and motor controller. Background Art
[0002] The motor control function of new energy vehicles relies on the angle information of the rotor. At present, the angle resolution scheme is commonly used as follows: a high-frequency sinusoidal excitation signal with a fixed amplitude and frequency is emitted through a dedicated hardware decoding chip combined with an external shaping amplifier circuit, and the high-frequency sinusoidal excitation signal is passed through a rotary transformer fixed at the end of the motor rotor; the sine and cosine signals fed back by the rotary transformer are received through the hardware decoding chip, and the angle and speed are calculated based on the feedback sine and cosine signals, and the calculated angle and speed are sent to the motor main control chip, such as Figure 1 shown.
[0003] The above angle calculation scheme uses a dedicated hardware decoding chip. Since the hardware decoding chip itself will bring additional failure probability, the above angle calculation scheme increases the failure risk of the motor controller in the angle calculation link, adds uncertainty to the subsequent torque output control, and may even cause system oscillation, reducing the reliability and safety of the product. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a motor control method, device, storage medium and motor controller.
[0005] In order to achieve the above object, the present disclosure provides a motor control method, the method comprising:
[0006] Receiving an output signal of a position sensor, and demodulating and filtering the output signal to obtain a first sine signal and a first cosine signal, wherein the position sensor is connected to a motor rotor;
[0007] diagnosing the amplitude of the first sine signal and the amplitude of the first cosine signal;
[0008] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal meet a preset solution condition, performing angle solution on the first sine signal and the first cosine signal through a phase-locked loop to obtain an observed angle and an observed speed;
[0009] The motor is controlled according to the observation angle and the observation speed.
[0010] Optionally, the preset solution condition includes: the amplitude of the first sine signal and the amplitude of the first cosine signal are both within a preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to a preset threshold.
[0011] Optionally, the method further comprises:
[0012] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within a preset amplitude range, determining whether to obtain the observation angle at the previous moment and the amplitude of the first signal, the first signal being the signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range;
[0013] In the case of determining that the observation angle at the previous moment and the amplitude of the first signal are obtained, a second signal at the current moment is obtained according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment, wherein when the first signal is a first sine signal, the second signal is a second cosine signal; when the first signal is a first cosine signal, the second signal is a second sine signal; the amplitude of the second signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the second signal is less than or equal to the preset threshold;
[0014] The first signal at the current moment and the second signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0015] Optionally, when the first signal is the first cosine signal, the step of obtaining the second signal at the current moment according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment includes:
[0016] Obtaining the positive or negative sign of the second signal at the current moment according to the observation angle at the previous moment, the positive or negative sign of the second signal at the current moment being positive or negative;
[0017] The second signal at the current moment is obtained according to that the sum of squares of the first signal and the second signal at the current moment is equal to the sum of squares of the amplitudes of the first signal at the previous moment and the positive and negative signs of the second signal at the current moment.
[0018] Optionally, the method further comprises:
[0019] When it is determined that the observation angle at the previous moment and the amplitude of the first signal at the previous moment are not obtained, obtaining the first estimated angle and the second estimated angle according to the first signal at the current moment;
[0020] Injecting voltage pulse vectors corresponding to a first estimated angle and a second estimated angle of the motor circumference into the motor respectively, and obtaining a first response current and a second response current of the motor respectively;
[0021] Determine the angle of the third signal at the current moment according to the motor inductance characteristic, the first response current and the second response current, wherein the angle of the third signal is equal to the first estimated angle or the second estimated angle, wherein when the first signal is a first sine signal, the third signal is a third cosine signal; when the first signal is a first cosine signal, the third signal is a third sine signal; the amplitude of the third signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the third signal is less than or equal to the preset threshold;
[0022] Obtaining a positive or negative sign of the third signal at the current moment according to the angle of the third signal at the current moment;
[0023] Obtaining the third signal at the current moment according to the positive and negative signs of the third signal at the current moment, the first signal, and the preset amplitude of the first signal;
[0024] The first signal at the current moment and the third signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0025] Optionally, the step of determining the angle of the third signal at the current moment according to the motor inductance characteristic, the first response current and the second response current includes:
[0026] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is less than or equal to the quadrature-axis inductance of the motor stator, the estimated angle corresponding to the larger current of the first response current and the second response current is determined as the angle of the third signal at the current moment;
[0027] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is greater than the quadrature-axis inductance of the motor stator, the difference between the estimated angle corresponding to the smaller current of the first response current and the second response current minus π is determined as the angle of the third signal at the current moment.
[0028] Optionally, the method further comprises:
[0029] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, the amplitude of the first sine signal or the amplitude of the first cosine signal is corrected so that the difference between the amplitude of the corrected first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold.
[0030] The present disclosure also provides a motor control device, the device comprising:
[0031] A signal acquisition module, used for receiving an output signal of a position sensor, and demodulating and filtering the output signal to obtain a first sine signal and a first cosine signal, wherein the position sensor is connected to a motor rotor;
[0032] A signal diagnosis module, used for diagnosing the amplitude of the first sine signal and the amplitude of the first cosine signal;
[0033] An angle calculation module, configured to, when it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal meet a preset calculation condition, perform angle calculation on the first sine signal and the first cosine signal through a phase-locked loop to obtain an observed angle and an observed speed;
[0034] The motor control module is used to control the motor according to the observation angle and the observation speed.
[0035] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the steps of the above motor control method when executed by a processor.
[0036] The present disclosure also provides a motor controller, comprising:
[0037] a memory having a computer program stored thereon;
[0038] A processor is used to execute the computer program in the memory to implement the steps of the above motor control method.
[0039] Through the above technical solution, a position sensor, such as a rotary transformer arranged on the motor rotor, can be used to obtain the observed angle and observed speed of the rotor, eliminating the need for a dedicated hardware decoding chip, reducing system complexity and cost; avoiding angle solution failure caused by hardware decoding chip failure, reducing the risk of hardware failure, and improving product reliability and safety.
[0040] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0042] Figure 1 It is a schematic diagram of using a dedicated hardware decoding chip to control a motor in the related art.
[0043] Figure 2 is a flow chart of a motor control method according to an exemplary embodiment of the present disclosure.
[0044] Figure 3 Is adopted Figure 2 The motor control method shown is a schematic diagram of motor control.
[0045] Figure 4 Is adopted Figure 2 The motor control method shown is a schematic diagram of performing angle calculation to obtain the observed angle and observed speed.
[0046] Figure 5 It is a schematic diagram of a first sine signal and a first cosine signal that meet a preset solution condition according to an exemplary embodiment of the present disclosure.
[0047] Figure 6 It is a schematic diagram showing that the amplitude of the first sine signal is not within a preset amplitude range, and the amplitude of the first cosine signal is within a preset amplitude range according to an exemplary embodiment of the present disclosure.
[0048] Figure 7 is a schematic diagram showing a voltage pulse vector injected into a motor according to an exemplary embodiment of the present disclosure.
[0049] Figure 8 It is a schematic diagram of the current response amplitude trajectory obtained by injecting voltage pulse vectors corresponding to different angles of the motor circumference into a synchronous motor whose stator direct-axis inductance is equal to the stator quadrature-axis inductance of the motor according to an exemplary embodiment of the present disclosure.
[0050] Fig. 9 It is a schematic diagram of the current response amplitude trajectory obtained by injecting voltage pulse vectors corresponding to different angles of the motor circumference into a synchronous motor whose stator direct-axis inductance is smaller than the stator quadrature-axis inductance of the motor according to an exemplary embodiment of the present disclosure.
[0051] Fig.10 It is a schematic diagram of the current response amplitude trajectory obtained by injecting voltage pulse vectors corresponding to different angles of the motor circumference into a synchronous motor in which the direct-axis inductance of the motor stator is greater than the quadrature-axis inductance of the motor stator according to an exemplary embodiment of the present disclosure.
[0052] Fig.11 It is a schematic diagram showing that the amplitude of the first sine signal is smaller than the amplitude of the first cosine signal according to an exemplary embodiment of the present disclosure.
[0053] Fig.12 is a block diagram of a motor control device according to an exemplary embodiment of the present disclosure.
[0054] Fig.13 is a block diagram of a motor controller according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0055] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0056] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0057] An embodiment of the present disclosure provides a vehicle torque control method. Figure 2 FIG. 1 is a flow chart of a motor control method according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method includes:
[0058] Step S10, receiving an output signal of a position sensor, and demodulating and filtering the output signal to obtain a first sine signal and a first cosine signal, wherein the position sensor is connected to a motor rotor.
[0059] Among them, the position sensor can be a rotary transformer fixed to the end of the motor rotor. The output signal of the position sensor can be the feedback of the position sensor to the excitation signal. The excitation signal can be generated by the main control chip of the motor, which can be an excitation square wave, an excitation sine wave, such as kHz or MHz level, or a low-voltage DC power supply signal, such as 5V or other voltage signals. The output signal of the position sensor is mainly in the form of sine signal and cosine signal, such as high-frequency signal or envelope signal.
[0060] Take the position sensor as a rotary transformer as an example: a signal generator can be simulated inside the main control chip, and the pin of the signal generator sends a square wave signal with a fixed frequency, which is shaped into a high-frequency sine wave through a small amount of external circuits to send an excitation signal to the rotary transformer, that is, Figure 3 The excitation signal induces an output signal in the resolver. The output signal is mainly the original sine signal and the original cosine signal, such as Figure 4As shown. The amplitude of the original sine signal and the original cosine signal envelope is related to the rotor angle information. The original sine signal V sin_t_θ and the original cosine signal V cos_t_θ The voltage expressions are:
[0061] V sin_t_θ =K v ·V exc ·sin(ωt)·sin(θ) (Formula 1)
[0062] V cos_t_θ =K v ·V exc ·sin(ωt)·cos(θ) (Formula 2)
[0063] Where K v is the ratio of the resolver, V exc is the excitation signal amplitude, ωt is the excitation signal phase, and θ is the angle of the resolver.
[0064] Please continue reading Figure 4 , the envelope is extracted from the original sine signal and the original cosine signal through the demodulation algorithm, that is, the amplitude information of each carrier cycle is extracted, the high-frequency component with a frequency of (ω / 2π) is eliminated, and only the part related to θ is retained to obtain the first sine signal (voltage signal) V sin And the first cosine signal (voltage signal) V cos :
[0065] V sin =K v ·V exc ·sin(θ) (Formula 3)
[0066] V cos =K v ·V exc ·cos(θ) (Formula 4)
[0067] Step S20: diagnose the amplitude of the first sine signal and the amplitude of the first cosine signal.
[0068] In this step, various amplitude observation algorithms can be used to continuously count the amplitude of the first sine signal and the amplitude of the first cosine signal during the motor rotation process. Specific amplitude measurement methods include but are not limited to square sum calculation, sliding window amplitude statistics, low-pass filter, etc. Ideally, the amplitude of the first sine signal and the amplitude of the first cosine signal are K v ·V exc However, the amplitudes obtained by sampling the first sine signal and the first cosine signal may be different from K v ·V excThey are not equal. In the following calculations, the amplitudes of the first sine signal and the first cosine signal refer to the amplitudes actually obtained by sampling.
[0069] The first sine signal and the first cosine signal can only be used to calculate the precise observed angle and observed speed under ideal conditions. However, when the motor system malfunctions and causes defects in the first sine signal and the first cosine signal, the angle calculation results (observed angle and observed speed) will have large errors or cannot be calculated. Therefore, it is necessary to diagnose the amplitude of the first sine signal and the amplitude of the first cosine signal.
[0070] Step S30, when it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal meet the preset solution condition, the first sine signal and the first cosine signal are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0071] From formula (3) and formula (4), we can get θ = arctan (V sin / V cos ), the angle error Δθ between θ and the observed angle θ0 can be calculated by the following approximate formula:
[0072] Δθ=θ-θ0≈sin(θ-θ0) Formula (5)
[0073] sin(θ-θ0)=sin(θ)cos(θ0)-cos(θ)sin(θ0) (Formula 6)
[0074] According to formula (3) and formula (4), sin(θ) = V sin / (K v ·V exc ), cos(θ)=V cos / (K v ·V exc ), in practical applications, the voltage V of the first sinusoidal signal can be directly used sin and the voltage of the first cosine signal V cos Find K v ·V exc ·Δθ.
[0075] Then use a (second-order or high-order) phase-locked loop to achieve angle tracking. Taking a second-order phase-locked loop as an example, its transfer function is equivalent to a proportional integral regulator and an integrator cascade, which can continuously track the rotary transformer at unit intervals of the excitation cycle to obtain the observed angle θ0 and the observed speed ω0. Among them, the observed speed Observation Angle K p is the proportionality coefficient, K i is the product coefficient, and s is the differential operator.
[0076] Step S40: controlling the motor according to the observed angle and the observed rotation speed.
[0077] After obtaining the observation angle and the observation speed, the motor control signal required by the motor (three-phase inverter) can be output based on the observation angle and the observation speed, thereby achieving controllable operation of the motor.
[0078] Through the above technical solution, a position sensor (such as a rotary transformer arranged on the motor rotor) can be used to obtain the observed angle and observed speed of the rotor, eliminating the need for a dedicated hardware decoding chip, reducing system complexity and cost; avoiding angle solution failure caused by hardware decoding chip failure, reducing the risk of hardware failure, and improving product reliability and safety.
[0079] Optionally, the preset solution condition includes: the amplitude of the first sine signal and the amplitude of the first cosine signal are both within a preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to a preset threshold.
[0080] The difference between the amplitude of the first sine signal and the amplitude of the first cosine signal can be expressed in a variety of ways, such as by the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal, or by the quotient of the difference between the two and the smallest amplitude of the two. The preset amplitude range and the preset threshold value can be flexibly set according to actual conditions. For example, when the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is expressed by the quotient of the difference between the two and the smallest amplitude of the two, the preset threshold value is set to 1%. Take the example that the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is expressed by the quotient of the difference between the two and the smallest amplitude of the two, and the preset threshold value is set to 1%, and the amplitude of the first sine signal is recorded as A1, the amplitude of the first cosine signal is recorded as A2, and the preset amplitude range is recorded as (A min , A max ), then the expression of the preset solution condition is:
[0081]
[0082] The first sine signal and the first cosine signal that meet the preset solution condition can be Figure 5 shown.
[0083] Optionally, the method further comprises:
[0084] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, it is determined whether the observation angle and the amplitude of the first signal at the previous moment are obtained, and the first signal is a signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range.
[0085] In practice, when only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, generally, one of the amplitude of the first sine signal and the amplitude of the first cosine signal is lower than the minimum voltage of the preset amplitude range, that is:
[0086] or
[0087] For example, Figure 6 As shown, Figure 6 The figure shows the case where the amplitude of the first sine signal is not within the preset amplitude range, and the amplitude of the first cosine signal is within the preset amplitude range. In this case, the main control chip can observe (sample) the amplitude of the first sine signal A1≈0, and considers that the first sine signal is lost.
[0088] In the case that only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, it is necessary to determine whether to obtain the observation angle at the previous moment and the amplitude of the first signal at the current moment, so as to restore the lost signal later. The first signal is the signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range, for example Figure 6 The first cosine signal in ( Figure 6 The cosine solid line in the middle right figure); the lost signal that needs to be restored, such as Figure 6 The second sinusoidal signal in ( Figure 6 The first signal may also be a first sine signal, and the lost signal to be restored is recorded as a second cosine signal. For ease of explanation and understanding, the case where the amplitude of the first sine signal and the amplitude of the first cosine signal do not meet the preset solution condition, and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range is recorded as Figure 6 For example, it is assumed that the first signal (satisfies the preset amplitude range) is the first cosine signal, the lost signal (does not meet the preset amplitude range) is the first sine signal, and the second signal is the restored first sine signal, that is, the second signal is the second sine signal.
[0089] When determining the observation angle at the previous moment and the amplitude of the first signal, the second signal at the current moment is obtained according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment. When the first signal is a first sine signal, the second signal is a second cosine signal; when the first signal is a first cosine signal, the second signal is a second sine signal; the amplitude of the second signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the second signal is less than or equal to the preset threshold.
[0090] In this case, before the first sine signal or the first cosine signal is lost, the motor system has been operating normally for a period of time and has obtained a stable observation angle and the amplitude of the first signal. At this time, the second signal at the current moment can be obtained based on the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment. Figure 6 For example, the second signal is the restored first sinusoidal signal, that is, the second signal is the second sinusoidal signal.
[0091] The first signal at the current moment and the second signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0092] This step is similar to the method of obtaining the observation angle and the observation speed in step S30. The difference is that step S30 uses the real first sine signal and the first cosine signal to solve the angle, while this step uses the second signal (second sine signal) to replace the lost first sine signal, and solves the angle with the first signal (real first cosine signal) to obtain the observation angle and the observation speed. Therefore, it will not be elaborated here.
[0093] Optionally, when the first signal is the first cosine signal, the step of obtaining the second signal at the current moment according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment includes:
[0094] The positive and negative signs of the second signal at the current moment are obtained according to the observation angle at the previous moment, and the positive and negative signs of the second signal at the current moment are positive or negative.
[0095] by Figure 6 For example, if the second signal is a second sinusoidal signal, the positive and negative sign of the second signal at the previous moment can be determined according to the sine value of the observation angle at the previous moment, and then the positive and negative sign of the second signal at the current moment can be obtained (the positive and negative sign of the second signal at the current moment can be obtained according to the positive and negative sign of the second signal at the previous moment combined with the sinusoidal waveform characteristics and the sampling period; since the time interval between the current moment and the previous moment is very short, the positive and negative sign of the second signal at the current moment can also be directly made equal to the positive and negative sign of the second signal at the previous moment).
[0096] The second signal at the current moment is obtained according to that the sum of squares of the first signal and the second signal at the current moment is equal to the sum of squares of the amplitudes of the first signal at the previous moment and the positive and negative signs of the second signal at the current moment.
[0097] Likewise Figure 6 For example, the second signal can be obtained by using the following formula:
[0098]
[0099] Where S represents the positive or negative sign of the second signal at the current moment, which is + or -; A2 is the amplitude of the first signal (first cosine signal) at the previous moment, V cos is the first cosine signal; V′ sin1 is the second signal (second sinusoidal signal) at the current moment.
[0100] If the motor system undergoes a process of “stable operation-signal loss-restart”, by storing the historical information of S and A2 before the motor system is shut down, the second sinusoidal signal V′ can be obtained by the same principle after restart. sin1 The second sinusoidal signal V' sin1 And the real first cosine signal V cos The observation angle and the observation speed can be solved, and the motor can be controlled to continue running. It should be noted that the previous moment in this patent is a broad concept, which can be the historical recorded moment before the current moment and closest to the current moment. For example, if the current moment is the first moment after restarting, the previous moment can be the last moment before shutting down.
[0101] Optionally, the method further comprises:
[0102] When it is determined that the observation angle at the previous moment and the amplitude of the first signal at the previous moment are not obtained, the first inferred angle and the second inferred angle are obtained according to the first signal at the current moment.
[0103] This situation may be that the signal is lost after the motor system is started, and the observation angle at the previous moment and the amplitude of the first signal at the previous moment are not obtained; or displacement occurs when the motor system is shut down, resulting in the motor observation angle at startup not being equal to the stored value.
[0104] by Figure 6 For example, if the first signal is a first cosine signal, the arc cosine function can be used to obtain a first estimated angle (denoted as θ1) and a second estimated angle (denoted as θ2) corresponding to the value (voltage value) of the first signal at the current moment.
[0105] Voltage pulse vectors corresponding to a first estimated angle and a second estimated angle of the motor circumference are respectively injected into the motor to obtain a first response current and a second response current of the motor respectively.
[0106] According to the motor inductance characteristics, the first response current and the second response current, the angle of the third signal at the current moment is determined, and the angle of the third signal is equal to the first estimated angle or the second estimated angle, wherein when the first signal is a first sine signal, the third signal is a third cosine signal; when the first signal is a first cosine signal, the third signal is a third sine signal; the amplitude of the third signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the third signal is less than or equal to the preset threshold.
[0107] The angle of the third signal is the same as the angle of the first signal, which is the motor rotor angle. For synchronous motors, the rotor position affects the stator magnetic circuit inductance characteristics. Specifically, the higher the magnetic field density in the ferromagnetic material, the deeper the saturation, and the smaller the corresponding inductance L. This feature can be used to identify the true initial position in θ1 and θ2. Injection Figure 7 The voltage pulse shown, ignoring the effect of resistance, has a current response slope that is inversely proportional to the inductance. The magnitude of the fixed injection voltage is U n , the duration is Δt, the inductance corresponding to the voltage vector direction is L, then the maximum value of the current response I is:
[0108]
[0109] Considering the magnetic saturation effect, if a voltage pulse vector corresponding to different angles of the motor circumference is injected into a synchronous motor whose stator direct axis inductance is equal to the stator quadrature axis inductance of the motor (the inductance is equal everywhere when not powered, such as a surface-mounted permanent magnet synchronous motor), the current response amplitude trajectory obtained is as follows: Figure 8 As shown. When the direction of the input voltage pulse vector is aligned with the motor rotor angle, the generated current magnetic field and rotor magnetic field are superimposed, deepening the magnetic circuit saturation, and the inductance L is minimized. From formula 8, it can be obtained that the current response I amplitude is maximum. Since the motor rotor angle is the first inferred angle θ1 or the second inferred angle θ2, the inferred angle corresponding to the larger current of the first response current and the second response current is the motor rotor angle. For example, the first inferred angle θ1 corresponds to the first response current I1, and the second inferred angle θ2 corresponds to the second response current I2. If I1 is measured to be greater than I2, θ1 is the motor rotor angle; if I2 is measured to be greater than I1, θ2 is the motor rotor angle. It should be noted that Figure 8 In the figure, θ1 is taken as an example to represent the motor rotor angle.
[0110] If a voltage pulse vector corresponding to different angles of the motor circumference is injected into a synchronous motor whose stator direct axis inductance is smaller than the stator quadrature axis inductance (there is a secondary component in its inductance, such as a built-in permanent magnet synchronous motor), the current response amplitude trajectory obtained is as follows: Fig. 9 As shown, the dotted line is the reference line without considering saturation, and the solid line is the current response after the current is passed to cause the saturation to deepen or weaken. Similarly, the estimated angle corresponding to the larger current of the first response current and the second response current is the motor rotor angle. It should be noted that Fig. 9 In the figure, θ1 is taken as an example to represent the motor rotor angle.
[0111] If a voltage pulse vector corresponding to different angles of the motor circumference is injected into a synchronous motor whose stator direct axis inductance is greater than the stator quadrature axis inductance (there is a secondary component in its inductance, such as a salient pole permanent magnet synchronous motor), the current response amplitude trajectory obtained is as follows: Fig.10 As shown, the dotted line is the reference line without considering saturation, and the solid line is the current response after the current is passed to cause the saturation to deepen or weaken. Since the direct axis inductance of the motor stator is greater than the quadrature axis inductance of the motor stator, it is necessary to find the point with smaller current in the first response current and the second response current. This point corresponds to the sum of the motor rotor angle + Π, and then the motor rotor angle is obtained. It should be noted that Fig.10 In the figure, θ1 is taken as an example to represent the motor rotor angle.
[0112] Likewise Figure 6 For example, the third signal is the restored first sinusoidal signal, that is, the third signal is the third sinusoidal signal.
[0113] According to the angle of the third signal at the current moment, the positive and negative signs of the third signal at the current moment are obtained.
[0114] After obtaining the angle of the third signal at the current moment, the positive or negative sign of the third signal at the current moment can be obtained according to the sign of the sine value of the angle of the third signal at the current moment.
[0115] The third signal at the current moment is obtained according to the positive and negative signs of the third signal at the current moment, the first signal, and the preset amplitude of the first signal.
[0116] The preset amplitude of the first signal may be a design value or an offline calibration value of the amplitude of the first signal. This step is similar to the step of obtaining the second signal at the current moment according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment. The difference is that in this step, the preset amplitude A0 of the first signal is used to replace the amplitude A2 of the first signal at the previous moment. Therefore, the third signal can be obtained by the following formula:
[0117]
[0118] Wherein, S′ represents the positive or negative sign of the third signal at the current moment, which is + or -; A0 is the preset amplitude of the first signal, V cos is the first cosine signal; V′ sin2 is the third signal (third sinusoidal signal) at the current moment.
[0119] The first signal at the current moment and the third signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0120] Similarly, this step is similar to the method of obtaining the observation angle and the observation speed in step S30. The difference is that step S30 uses the real first sine signal and the first cosine signal to solve the angle, while this step uses the third signal (the third sine signal) to replace the lost first sine signal, and solves the angle with the first signal (the real first cosine signal) to obtain the observation angle and the observation speed. Therefore, they are not elaborated here.
[0121] From the above analysis, it can be obtained that, optionally, the step of determining the angle of the third signal at the current moment according to the motor inductance characteristics, the first response current and the second response current includes:
[0122] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is less than or equal to the quadrature-axis inductance of the motor stator, the estimated angle corresponding to the larger current of the first response current and the second response current is determined as the angle of the third signal at the current moment.
[0123] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is greater than the quadrature-axis inductance of the motor stator, the difference between the estimated angle corresponding to the smaller current of the first response current and the second response current minus π is determined as the angle of the third signal at the current moment.
[0124] Optionally, the method further comprises:
[0125] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, the amplitude of the first sine signal or the amplitude of the first cosine signal is corrected so that the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold.
[0126] Similarly, the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is expressed as the quotient of the difference between the two and the minimum amplitude of the two, and the preset threshold is set to 1%. The amplitude of the first sine signal is recorded as A1, the amplitude of the first cosine signal is recorded as A2, and the preset amplitude range is recorded as (A min , A max ), the amplitude of the first sine signal and the amplitude of the first cosine signal satisfy the following conditions:
[0127]
[0128] For example, Fig.11 As shown, Fig.11 The case where the amplitude of the first sine signal is less than the amplitude of the first cosine signal is shown. When the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, the amplitude of the first sine signal and / or the amplitude of the first cosine signal need to be corrected so that the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold. Among them, the correction idea can be to correct the smaller amplitude of the amplitude of the first sine signal and the amplitude of the first cosine signal to be equal to the larger amplitude of the two, or to correct the larger amplitude of the amplitude of the first sine signal and the amplitude of the first cosine signal to be equal to the smaller amplitude of the two, or to correct the amplitude of the first sine signal and the amplitude of the first cosine signal to a certain specific value at the same time. Among them, there are many correction methods, which are not limited here. For example, based on the first cosine signal, the ratio of the amplitude of the first cosine signal to the amplitude of the first sine signal is obtained, K=A2 / A1, then the corrected first sine signal is equal to the real-time sampled first sine signal multiplied by K.
[0129] When the difference between the amplitude of the corrected first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold, the observation angle and the observation speed can be obtained by adopting the method of step S30, which will not be elaborated here.
[0130] Optionally, the method further comprises:
[0131] When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not meet the preset solution condition, and the amplitude of the first sine signal and the amplitude of the first cosine signal are both out of the preset amplitude range, information characterizing the fault is output.
[0132] That is, when the amplitude of the first sine signal and the amplitude of the first cosine signal are both outside the preset amplitude range, angle calculation cannot be performed, and the observed angle and observed speed cannot be obtained, then information representing the fault is output to remind relevant personnel to check.
[0133] In the related art, a dedicated hardware decoding chip is used. For the working condition where the output signal of the position sensor is partially attenuated, such as the case where the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, or the working condition where the output signal is partially lost, such as the case where only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, the angle cannot be resolved and the machine can only be shut down for processing. Therefore, in the related art, the use of a dedicated hardware decoding chip cannot maximize the use of effective signals and has limited robustness.
[0134] Through the above technical scheme, for the working conditions where the output signal of the position sensor is partially attenuated, such as the case where the amplitude of the first sine signal and the amplitude of the first cosine signal described above are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, or the working conditions where the output signal is partially lost, such as the case where only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range as described above, the remaining signal can be fully utilized to perform angle resolution, thereby maintaining the operation of the motor, maximizing the utilization of effective signals, and improving the robustness of the system.
[0135] Based on the above technical concept, an embodiment of the present disclosure also provides a motor control device. Fig.12 FIG. 1 is a block diagram of a motor control device according to an exemplary embodiment of the present disclosure. Fig.12 As shown, the motor control device 1 includes:
[0136] The signal acquisition module 10 is used to receive the output signal of the position sensor, and demodulate and filter the output signal to obtain a first sine signal and a first cosine signal. The position sensor is connected to the motor rotor.
[0137] The first signal diagnosis module 20 is used to diagnose the amplitude of the first sine signal and the amplitude of the first cosine signal.
[0138] The first angle calculation module 30 is used to perform angle calculation on the first sine signal and the first cosine signal through a phase-locked loop to obtain an observed angle and an observed rotation speed when the amplitude of the first sine signal and the amplitude of the first cosine signal meet a preset calculation condition.
[0139] The motor control module 40 is used to control the motor according to the observation angle and the observation speed.
[0140] Through the above technical solution, a position sensor (such as a rotary transformer arranged on the motor rotor) can be used to obtain the observed angle and observed speed of the rotor, eliminating the need for a dedicated hardware decoding chip, reducing system complexity and cost; avoiding angle solution failure caused by hardware decoding chip failure, reducing the risk of hardware failure, and improving product reliability and safety.
[0141] Optionally, the preset solution condition includes: the amplitude of the first sine signal and the amplitude of the first cosine signal are both within a preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to a preset threshold.
[0142] Optionally, the device further comprises:
[0143] The second signal diagnosis module is used to determine whether to obtain the observation angle and the amplitude of the first signal at the previous moment when diagnosing that the amplitude of the first sine signal and the amplitude of the first cosine signal do not meet the preset solution condition, and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, wherein the first signal is a signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range.
[0144] A second signal acquisition module, used for obtaining a second signal at a current moment according to the observation angle at a previous moment, the amplitude of the first signal and the first signal at a current moment, when it is determined that the observation angle at a previous moment and the amplitude of the first signal are obtained, wherein when the first signal is a first sine signal, the second signal is a second cosine signal; when the first signal is a first cosine signal, the second signal is a second sine signal; the amplitude of the second signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the second signal is less than or equal to the preset threshold;
[0145] The second angle calculation module is used to perform angle calculation on the first signal at the current moment and the second signal at the current moment through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0146] Optionally, the second signal acquisition module is specifically used to:
[0147] Obtaining the positive or negative sign of the second signal at the current moment according to the observation angle at the previous moment, the positive or negative sign of the second signal at the current moment being positive or negative;
[0148] The second signal at the current moment is obtained according to that the sum of squares of the first signal and the second signal at the current moment is equal to the sum of squares of the amplitudes of the first signal at the previous moment and the positive and negative signs of the second signal at the current moment.
[0149] Optionally, the device further comprises:
[0150] An estimated angle acquisition module, used to obtain a first estimated angle and a second estimated angle according to the first signal at a current moment when it is determined that the observation angle at a previous moment and the amplitude of the first signal at a previous moment have not been obtained;
[0151] A response current acquisition module, used for injecting voltage pulse vectors corresponding to a first estimated angle and a second estimated angle of the motor circumference into the motor, respectively, to obtain a first response current and a second response current of the motor, respectively;
[0152] a motor rotor angle acquisition module, used to determine the angle of the third signal at the current moment according to the motor inductance characteristics, the first response current and the second response current, wherein the angle of the third signal is equal to the first estimated angle or the second estimated angle, wherein when the first signal is a first sine signal, the third signal is a third cosine signal; when the first signal is a first cosine signal, the third signal is a third sine signal; the amplitude of the third signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the third signal is less than or equal to the preset threshold;
[0153] A third signal positive and negative sign acquisition module, used to obtain the positive and negative sign of the third signal at the current moment according to the angle of the third signal at the current moment;
[0154] A third signal acquisition module, used to obtain the third signal at the current moment according to the positive and negative signs of the third signal at the current moment, the first signal and the preset amplitude of the first signal;
[0155] The third angle calculation module is used to perform angle calculation on the first signal at the current moment and the third signal at the current moment through a phase-locked loop to obtain an observed angle and an observed rotation speed.
[0156] Optionally, the motor rotor angle acquisition module is specifically used for:
[0157] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is less than or equal to the quadrature-axis inductance of the motor stator, the estimated angle corresponding to the larger current of the first response current and the second response current is determined as the angle of the third signal at the current moment;
[0158] When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is greater than the quadrature-axis inductance of the motor stator, the difference between the estimated angle corresponding to the smaller current of the first response current and the second response current minus π is determined as the angle of the third signal at the current moment.
[0159] Optionally, the device further comprises:
[0160] A correction module is used to correct the amplitude of the first sine signal or the amplitude of the first cosine signal when it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not meet the preset solution condition, and the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, so that the difference between the amplitude of the corrected first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold.
[0161] Optionally, the device further comprises:
[0162] A fault output module is used to output information characterizing a fault when it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not meet the preset solution condition and the amplitude of the first sine signal and the amplitude of the first cosine signal are both not within a preset amplitude range.
[0163] In the related art, a dedicated hardware decoding chip is used. For the working condition where the output signal of the position sensor is partially attenuated, such as the case where the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, or the working condition where the output signal is partially lost, such as the case where only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range, the angle cannot be resolved and the machine can only be shut down for processing. Therefore, in the related art, the use of a dedicated hardware decoding chip cannot maximize the use of effective signals and has limited robustness.
[0164] Through the above technical scheme, for the working conditions where the output signal of the position sensor is partially attenuated, such as the case where the amplitude of the first sine signal and the amplitude of the first cosine signal described above are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, or the working conditions where the output signal is partially lost, such as the case where only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within the preset amplitude range as described above, the remaining signal can be fully utilized to perform angle resolution, thereby maintaining the operation of the motor, maximizing the utilization of effective signals, and improving the robustness of the system.
[0165] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0166] Based on the above technical concept, the embodiment of the present disclosure further provides a non-temporary computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above motor control method are implemented.
[0167] Based on the above technical concept, an embodiment of the present disclosure also provides a motor controller. Fig.13 FIG. 1 is a block diagram of a motor controller according to an exemplary embodiment. Fig.13 As shown, the motor controller 100 includes:
[0168] A memory 101 on which a computer program is stored;
[0169] The processor 102 is used to execute the computer program in the memory to implement the steps of the above motor control method.
[0170] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above motor control method when executed by the programmable device.
[0171] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0172] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0173] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A motor control method, It is characterized in that The method comprises: Receiving an output signal of a position sensor, and demodulating and filtering the output signal to obtain a first sine signal and a first cosine signal, wherein the position sensor is connected to a motor rotor; diagnosing the amplitude of the first sine signal and the amplitude of the first cosine signal; When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal meet a preset solution condition, performing angle solution on the first sine signal and the first cosine signal through a phase-locked loop to obtain an observed angle and an observed speed; Controlling the motor according to the observation angle and the observation speed; The preset solution conditions include: the amplitude of the first sine signal and the amplitude of the first cosine signal are both within a preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to a preset threshold; The method further comprises: When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within a preset amplitude range, determining whether to obtain the observation angle at the previous moment and the amplitude of the first signal, the first signal being the signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range; In the case of determining that the observation angle at the previous moment and the amplitude of the first signal are obtained, a second signal at the current moment is obtained according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment, wherein when the first signal is a first sine signal, the second signal is a second cosine signal; when the first signal is a first cosine signal, the second signal is a second sine signal; the amplitude of the second signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the second signal is less than or equal to the preset threshold; The first signal at the current moment and the second signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
2. The motor control method according to claim 1, It is characterized in that In the case where the first signal is the first cosine signal, the step of obtaining the second signal at the current moment according to the observation angle at the previous moment, the amplitude of the first signal and the first signal at the current moment comprises: Obtaining the positive or negative sign of the second signal at the current moment according to the observation angle at the previous moment, the positive or negative sign of the second signal at the current moment being positive or negative; The second signal at the current moment is obtained according to that the sum of squares of the first signal and the second signal at the current moment is equal to the sum of squares of the amplitudes of the first signal at the previous moment and the positive and negative signs of the second signal at the current moment.
3. The motor control method according to claim 1, It is characterized in that The method further comprises: When it is determined that the observation angle at the previous moment and the amplitude of the first signal at the previous moment are not obtained, obtaining the first estimated angle and the second estimated angle according to the first signal at the current moment; Injecting voltage pulse vectors corresponding to a first estimated angle and a second estimated angle of the motor circumference into the motor respectively, to obtain a first response current and a second response current of the motor respectively; Determine the angle of the third signal at the current moment according to the motor inductance characteristic, the first response current and the second response current, wherein the angle of the third signal is equal to the first estimated angle or the second estimated angle, wherein when the first signal is a first sine signal, the third signal is a third cosine signal; when the first signal is a first cosine signal, the third signal is a third sine signal; the amplitude of the third signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the third signal is less than or equal to the preset threshold; Obtaining a positive or negative sign of the third signal at the current moment according to the angle of the third signal at the current moment; Obtaining the third signal at the current moment according to the positive and negative signs of the third signal at the current moment, the first signal, and the preset amplitude of the first signal; The first signal at the current moment and the third signal at the current moment are angle-solved through a phase-locked loop to obtain an observed angle and an observed rotation speed.
4. The motor control method according to claim 3, It is characterized in that The step of determining the angle of the third signal at the current moment according to the motor inductance characteristic, the first response current and the second response current comprises: When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is less than or equal to the quadrature-axis inductance of the motor stator, the estimated angle corresponding to the larger current of the first response current and the second response current is determined as the angle of the third signal at the current moment; When the motor inductance characteristic indicates that the direct-axis inductance of the motor stator is greater than the quadrature-axis inductance of the motor stator, the difference between the estimated angle corresponding to the smaller current of the first response current and the second response current minus π is determined as the angle of the third signal at the current moment.
5. The motor control method according to claim 1, It is characterized in that The method further comprises: When it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition, and the amplitude of the first sine signal and the amplitude of the first cosine signal are both within the preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is greater than the preset threshold, the amplitude of the first sine signal and / or the amplitude of the first cosine signal are corrected so that the difference between the amplitude of the corrected first sine signal and the amplitude of the first cosine signal is less than or equal to the preset threshold.
6. A motor control device, It is characterized in that The device comprises: A signal acquisition module, used for receiving an output signal of a position sensor, and demodulating and filtering the output signal to obtain a first sine signal and a first cosine signal, wherein the position sensor is connected to a motor rotor; A signal diagnosis module, used for diagnosing the amplitude of the first sine signal and the amplitude of the first cosine signal; An angle calculation module, used for performing angle calculation on the first sine signal and the first cosine signal through a phase-locked loop to obtain an observed angle and an observed speed when the amplitude of the first sine signal and the amplitude of the first cosine signal meet a preset calculation condition; A motor control module, used for controlling the motor according to the observation angle and the observed speed; The preset solution conditions include: the amplitude of the first sine signal and the amplitude of the first cosine signal are both within a preset amplitude range, and the difference between the amplitude of the first sine signal and the amplitude of the first cosine signal is less than or equal to a preset threshold; The device also includes: a second signal diagnosis module, for determining whether to obtain the observation angle at the last moment and the amplitude of the first signal when it is diagnosed that the amplitude of the first sine signal and the amplitude of the first cosine signal do not satisfy the preset solution condition and only one of the amplitude of the first sine signal and the amplitude of the first cosine signal is within a preset amplitude range, wherein the first signal is a signal of the first sine signal and the first cosine signal whose amplitude is within the preset amplitude range; A second signal acquisition module, used for obtaining a second signal at a current moment according to the observation angle at a previous moment, the amplitude of the first signal and the first signal at a current moment, when it is determined that the observation angle at a previous moment and the amplitude of the first signal are obtained, wherein when the first signal is a first sine signal, the second signal is a second cosine signal; when the first signal is a first cosine signal, the second signal is a second sine signal; the amplitude of the second signal is within a preset amplitude range, and the difference between the amplitude of the first signal and the amplitude of the second signal is less than or equal to the preset threshold; The second angle calculation module is used to perform angle calculation on the first signal at the current moment and the second signal at the current moment through a phase-locked loop to obtain an observed angle and an observed rotation speed.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
8. A motor controller, It is characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.
