Control method suitable for electric vehicle motor
By combining the control method of Hall position sensor and sensorless observer, the problem of position accuracy and stability of traditional electric moped drive motors at different speeds is solved, and the precise driving of the motor at different speeds is realized and the Hall faults are achieved. Redundant control improves riding comfort and safety.
Patent Information
- Application Number
- CN202210192443.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-03-01
AI Technical Summary
When the traditional electric moped drive motor is running at high speed, the Hall position sensor has fewer return pulses and is noisy, which cannot meet the position accuracy requirements. The back electromotive force signal at low speed cannot extract the effective rotor position signal, resulting in unstable operation of the motor and loss of steps.
Using a control method combining Hall position sensor and sensorless observer, the drive mode is switched through hysteresis switching, and the rotor angle signal is obtained at different speeds to ensure the precise driving of the motor at different speeds. Switch to sensorless observer redundant control in case of Hall failure.
It realizes precise driving of the motor at different speeds, reduces riding noise, improves driving comfort and functional safety, keeps the vehicle running normally in the event of Hall failure, and achieves redundant control.
Smart Images

Figure CN114826039B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor control, and in particular, to a control method applicable to a motor of an electric vehicle. Background Art
[0002] With the continuous development of economy, the requirements for travel are getting higher and higher. Electric power-assisted bicycles are becoming more and more popular due to their small size, lightness, environmental protection and economy. As one of the core components of electric power-assisted bicycles, the performance of the drive motor determines whether the power, driving comfort, endurance and other aspects of the vehicle meet the use requirements. At present, most of the drive motors used in the market are SPMSM (surface-mounted permanent magnet synchronous motor), and their control method is FOC (field-oriented control). Field-oriented control requires real-time acquisition of the current three-phase current and rotor position signals of the motor.
[0003] In the control method of the driving motor of the electric power-assisted bicycle, the traditional rotor angle acquisition method is obtained through the Hall position sensor. However, the Hall position sensor cannot meet the position accuracy requirements of the motor during high-speed operation due to the small number of return pulses and large sampling noise during the operation of the motor. The inductive sensor is a method of designing a back-EMF observer based on the fundamental voltage equation, and then extracting the motor rotor position signal from the back-EMF signal. However, since the back-EMF signal is small when the motor runs at low speed, it is impossible to extract a valid rotor position signal from it. Therefore, the inductive observer is generally used in occasions where the motor runs at medium and high speeds. At low speeds, it is generally operated in a voltage open-loop forced dragging manner. However, in this manner, the motor running current is too large and it is easy to enter a lost-step state. Summary of the invention
[0004] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0005] Some embodiments of the present application provide a control method applicable to an electric vehicle motor. The control method applicable to an electric vehicle motor is executed by a motor control system. The motor control system includes:
[0006] A first type of position sensor, which detects the rotor position of the motor based on the Hall effect to output a first type of rotor angle signal;
[0007] a second type position sensor, which detects the rotor position of the motor according to the back electromotive force of the motor to output a second type rotor angle signal;
[0008] a controller, configured to output a driving signal for driving the motor according to the first type of rotor angle signal and / or the second type of rotor angle signal;
[0009] The control method comprises the following steps:
[0010] The controller collects the first type of rotor angle signal of the first type of position sensor;
[0011] The controller collects the second type of rotor angle signal of the second type of position sensor;
[0012] determining whether the rotation speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value according to the first type of rotor angle signal or / and the second type of rotor angle signal, and if the rotation speed satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value, switching between the first driving mode and the second driving mode is achieved by adopting a hysteresis switching method;
[0013] Wherein, in the first driving mode, the controller outputs the driving signal according to the first type of rotor angle signal; in the second driving mode, the controller outputs the driving signal according to the second type of rotor angle signal.
[0014] Furthermore, the first type of position sensor includes three Hall position sensors; wherein the controller collects the first type of rotor angle signal of the first type of position sensor and specifically includes the following steps:
[0015] S1, the Hall position sensor processes the acquired three Hall levels to obtain the motor rotor angle signal in each switching cycle.
[0016] Further, wherein the motor is a surface permanent magnet synchronous motor, the second type of position sensor includes a sensorless observer;
[0017] The controller collecting the second type of rotor angle signal of the second type of position sensor specifically includes the following steps:
[0018] S2. Based on the fundamental voltage equations of the alfa and beta axes of the surface permanent magnet synchronous motor, operations are performed on the input quantities U_alfa, i_alfa, U_beta, and i_beta to obtain the output angle signal of the sensorless observer.
[0019] Further, judging whether the rotation speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value according to the first type of rotor angle signal or / and the second type of rotor angle signal, and if the rotation speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value, switching between the first driving mode and the second driving mode is realized by adopting a hysteresis switching method, specifically comprising:
[0020] S3, setting the speed threshold hysteresis switching mode, including the first switching threshold and the second switching threshold, to achieve smooth switching between the two angle acquisition modes of the sensorless observer and the Hall position sensor.
[0021] Further, judging whether the rotation speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value according to the first type of rotor angle signal or / and the second type of rotor angle signal, and if the rotation speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value, switching between the first driving mode and the second driving mode by means of hysteresis switching specifically includes:
[0022] S4. During the whole operation of the motor, the health status of the Hall position sensor is monitored online. If a fault occurs, it is switched to the non-sensing mode to achieve redundant control under the Hall fault of the motor.
[0023] Furthermore, the step S1 specifically includes the following steps:
[0024] S11, set the initial calculation signal of the angle of the Hall three-level to 0;
[0025] S12, according to the current state of the Hall three-level, determine the sector where the rotor position signal is currently located, and set the rotor angle to the central angle of the current sector to maximize the approximation to the actual current angle of the rotor;
[0026] S13, according to the rotor angle determined in the previous step, the three-phase current of the motor is obtained at the same time, and the Clark transformation is performed to obtain the components i_alfa and i_beta of the stator winding current on the alfa and beta axes, and the components of the stator winding current on the dq axes are obtained, and the d-axis current and the q-axis current are controlled respectively to obtain the d-axis voltage and the q-axis voltage, and the dq-axis voltage and the current angle of the rotor are used as inputs to perform the inverse park transformation to obtain the components U_alfa and U_beta of the inverter output voltage on the alfa and beta axes;
[0027] S14, update the current angle in real time; take the time difference between two sector changes as delta_t, delta_t=t1-t2; where t1 is the time node of the last sector change, and t2 is the time node of the current sector change; the angle difference between the two sector changes is delta_theta=pi / 3, and based on the above derivation, the angular velocity w=delta_theta / delta_t of the motor is obtained; perform equivalent operation on the angular velocity w to obtain the change value w_dpp of the angle signal within the switching cycle;
[0028] S15. In each switching cycle, the current angle signal is updated in real time, theta_hall=theta_hall+w_dpp.
[0029] Furthermore, the step S2 specifically includes the following steps:
[0030] S21, after performing sine and cosine processing on theta_hall, theta_hall is used as a substitute signal to replace the original sin(theta_est) and cos(theta_est) in the back electromotive force observer, so as to accelerate the convergence speed of the back electromotive force observer for back electromotive force observation; wherein theta_est is the angle estimation value of the observer;
[0031] S22, substituting the theta_hall signal calculated in step S15 into the estimated angle calculation integral feedback module to accelerate the estimated angle convergence speed of the entire PLL module.
[0032] Furthermore, the step S3 specifically includes the following steps:
[0033] S31, during the operation of the motor, compare the output signal of the Hall position sensor signal processing module with the output angle signal of the sensorless observer, set the speed point speed1 after the output signal of the sensorless observer is stable as the first switching threshold, and add a fixed speed delta_speed to speed1 to obtain the second switching threshold speed2; wherein delta_speed=speed / 3;
[0034] S32, using the angle signal w_dpp obtained after Hall processing as an input signal, judging the values of theta_hall_dpp and speed1;
[0035] S33, if the current motor operation mode is the sensory drive mode mode1 driven according to the output signal of the Hall position sensor, when w_dpp is less than or equal to speed2, the current motor operation mode is still mode1, otherwise the operation mode is switched to mode2;
[0036] S34, if the current motor operation mode is the sensorless driving mode mode2 that is driven according to the sensorless observer output signal, when w_dpp is less than or equal to speed1, the current operation mode of the motor is switched to mode2, otherwise the current operation mode is maintained at mode2.
[0037] Furthermore, the step S4 specifically includes the following steps:
[0038] S41, judging the Hall three-level signal collected in real time, if the three levels are all high or all low, the controller executes the Hall fault processing step, writes the Hall fault flag into the memory, and switches the motor operation mode to mode2.
[0039] Furthermore, the step S4 specifically includes the following steps:.
[0040] S42, detecting the Hall level signal. If the Hall three-level signal does not appear at a high level or is at a low level for n consecutive judgment cycles, the Hall fault flag in the memory is cleared, the controller releases the Hall fault state, and switches to switching the motor operation mode according to step S32 or S33.
[0041] The beneficial effect of the present application is to provide a control method suitable for an electric vehicle motor that can effectively achieve precise driving of the motor at different speeds. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The illustrative embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application.
[0043] In addition, throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the components and elements are not necessarily drawn to scale.
[0044] In the attached picture:
[0045] Figure 1 It is a schematic diagram of the main steps of a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0046] Figure 2 It is a schematic diagram of some specific steps of a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0047] Figure 3 It is a schematic diagram of a part of specific steps of step S1 in a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0048] Figure 4 It is a schematic diagram of a part of specific steps of step S2 in a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0049] Figure 5 It is a schematic diagram of a part of specific steps of step S3 in a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0050] Figure 6 It is a schematic diagram of a part of specific steps of step S4 in a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0051] Figure 7 It is a schematic diagram of a specific logic judgment process in a control method applicable to an electric vehicle motor according to an embodiment of the present application;
[0052] Figure 8 It is another specific logic judgment process schematic diagram in a control method applicable to an electric vehicle motor according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0054] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0055] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0056] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0057] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0058] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0059] Reference Figures 1 to 8 As shown, the present application is applicable to a control method for an electric vehicle motor executed by a motor control system, which includes: a first type of position sensor, which detects the rotor position of the motor based on the Hall effect to output a first type of rotor angle signal; a second type of position sensor, which detects the rotor position of the motor according to the back electromotive force of the motor to output a second type of rotor angle signal; and a controller, which is used to output a drive signal for driving the motor according to the first type of rotor angle signal and / or the second type of rotor angle signal.
[0060] As a more schematic solution, the control system may specifically include: a Hall position sensor signal processing module, a dq-abc transformation module, an SVM module, an IGBT switch module, a current sampling circuit, an abc-dq transformation module, and a sensorless observer module.
[0061] As a specific scheme, the control method of the present application includes the following steps: the controller collects the first type of rotor angle signal of the first type of position sensor; the controller collects the second type of rotor angle signal of the second type of position sensor; based on the first type of rotor angle signal and / or the second type of rotor angle signal, it is judged whether the rotational speed of the electronic rotor satisfies the speed range defined by the first switching threshold and / or the second switching threshold, and if it satisfies the speed range defined by the first switching threshold and / or the second switching threshold, the hysteresis switching method is adopted to realize the switching between the first drive mode and the second drive mode; wherein, in the first drive mode, the controller outputs the drive signal according to the first type of rotor angle signal; in the second drive mode, the controller outputs the drive signal according to the second type of rotor angle signal.
[0062] Specifically, the first type of position sensor includes three Hall position sensors; wherein the controller collects the first type of rotor angle signal of the first type of position sensor and specifically includes the following steps:
[0063] S1, the Hall position sensor processes the acquired three Hall levels to obtain the motor rotor angle signal in each switching cycle.
[0064] Specifically, the motor is a surface permanent magnet synchronous motor, and the second type of position sensor includes a sensorless observer. The controller collects the second type of rotor angle signal of the second type of position sensor and specifically includes the following steps:
[0065] S2. Based on the fundamental voltage equations of the alfa and beta axes of the surface permanent magnet synchronous motor, operations are performed on the input quantities U_alfa, i_alfa, U_beta, and i_beta to obtain the output angle signal of the sensorless observer.
[0066] Specifically, judging whether the speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or the second switching threshold value according to the first type of rotor angle signal or the second type of rotor angle signal, and if the speed range defined by the first switching threshold value or the second switching threshold value is satisfied, switching between the first driving mode and the second driving mode is realized by adopting a hysteresis switching method, which specifically includes:
[0067] S3, setting the speed threshold hysteresis switching mode, including the first switching threshold and the second switching threshold, to achieve smooth switching between the two angle acquisition modes of the sensorless observer and the Hall position sensor.
[0068] Specifically, judging whether the speed of the electronic rotor satisfies the speed range defined by the first switching threshold value or the second switching threshold value according to the first type of rotor angle signal or the second type of rotor angle signal, and if the speed range defined by the first switching threshold value or the second switching threshold value is satisfied, switching between the first driving mode and the second driving mode is achieved by adopting a hysteresis switching method, which specifically includes:
[0069] S4. During the whole operation of the motor, the health status of the Hall position sensor is monitored online. If a fault occurs, it is switched to the non-sensing mode to achieve redundant control under the Hall fault of the motor.
[0070] Specifically, step S1 includes the following steps:
[0071] S11, setting the initial calculation signal of the Hall three-level angle to 0.
[0072] S12. According to the current state of the Hall three-level, determine the sector where the rotor position signal is currently located, and set the rotor angle to the central angle of the current sector to maximize the approximation to the current actual angle of the rotor.
[0073] S13. According to the rotor angle determined in the previous step, the three-phase current of the motor is obtained at the same time, and the Clark transformation is performed to obtain the components i_alfa and i_beta of the stator winding current on the alfa and beta axes, and the components of the stator winding current on the dq axes are obtained. The d-axis current and the q-axis current are controlled respectively to obtain the d-axis voltage and the q-axis voltage. With the dq-axis voltage and the current angle of the rotor as input, an inverse park transformation is performed to obtain the components U_alfa and U_beta of the inverter output voltage on the alfa and beta axes.
[0074] S14. Control the components of the stator winding current on the dq axis separately, which is traditionally called FOC control; let the motor slowly accelerate from zero speed; obtain the real-time state quantity of the current Hall three-level signal changing with the rotor angle. Update the current angle in real time. Take the time difference between two sector changes as delta_t, delta_t=t1-t2. Among them, t1 is the time node of the last sector change, and t2 is the time node of this sector change. The angle difference between the two sector changes is delta_theta=pi / 3. Based on the above derivation, the angular velocity w=delta_theta / delta_t of the motor is obtained. Perform equivalent operations on the angular velocity w to obtain the change value w_dpp of the angle signal within the switching cycle.
[0075] S15. In each switching cycle, the current angle signal is updated in real time, theta_hall=theta_hall+w_dpp.
[0076] Specifically, step S2 includes the following steps:
[0077] S21, after performing sine and cosine processing on theta_hall, theta_hall is used as a substitute signal to replace the original sin(theta_est) and cos(theta_est) in the back electromotive force observer, thereby accelerating the convergence speed of the back electromotive force observer for back electromotive force observation. Wherein, theta_est is the angle estimation value of the observer.
[0078] The sensorless observer is composed of two parts, namely, the back electromotive force observer part and the PLL (phase-locked loop) part; the phase-locked loop module is also composed of three parts, namely, the angle error calculation module, the PI regulator module, and the estimated angle calculation integral feedback module. Preferably, the PI module included in the PLL includes two parameter variables Kp and Ki, a first multiplier M1, a first integrator S2 and a first adder, wherein Kp is a proportional gain and Ki is an integral gain.
[0079] S22, substituting the theta_hall signal calculated in step S15 into the estimated angle calculation integral feedback module to accelerate the estimated angle convergence speed of the entire PLL module.
[0080] Specifically, step S3 includes the following steps:
[0081] S31, during the operation of the motor, compare the output signal of the Hall position sensor signal processing module with the output angle signal of the sensorless observer, set the speed point speed1 after the output signal of the sensorless observer is stable as the first switching threshold, and add a fixed speed delta_speed to speed1 to obtain the second switching threshold speed2, where delta_speed=speed / 3.
[0082] S32, using the angle signal w_dpp obtained after Hall processing as an input signal, to determine the size of theta_hall_dpp and speed1.
[0083] S33, if the current motor operation mode is the sensory drive mode mode1 driven according to the output signal of the Hall position sensor, when w_dpp is less than or equal to speed2, the current motor operation mode is still mode1, otherwise the operation mode is switched to mode2.
[0084] S34, if the current motor operation mode is the sensorless driving mode mode2 that is driven according to the sensorless observer output signal, when w_dpp is less than or equal to speed1, the current operation mode of the motor is switched to mode2, otherwise the current operation mode is maintained at mode2.
[0085] Specifically, step S4 includes the following steps:
[0086] S41, judging the Hall three-level signal collected in real time, if the three levels are all high or all low, the controller executes the Hall fault processing step, writes the Hall fault flag into the memory, and switches the motor operation mode to mode2.
[0087] Specifically, step S4 further includes the following steps:
[0088] S42, detect the Hall level signal. If the Hall three-level signal does not appear at a high level or is at a low level for n consecutive judgment cycles, clear the Hall fault flag in the memory, and the controller releases the Hall fault state and switches to the motor operation mode according to step S32 or S33.
[0089] The present application discloses a switching strategy between a Hall position sensor and a sensorless observer; the algorithm controls the three-phase current of a motor by controlling the three-phase voltage of an IPMSM; at low speed, the position signal of the motor rotor is obtained based on the Hall position sensor; when running at medium and high speeds, the mode is switched to the sensorless observer to obtain the position signal; the optimal acquisition of the rotor position signal is achieved through a permanent magnet synchronous motor rotor position detection switching system; at the same time, after detecting that a Hall fault has occurred, the controller writes the fault status into the flash memory of the controller chip for permanent storage, and at the same time, the subsequent operation status is switched to the sensorless observer until the Hall position sensor returns to normal after repair.
[0090] The above scheme reduces riding noise at medium and high speeds and improves the riding comfort of the rider. The functional safety level of the software is improved, and the normal riding of the vehicle can still be maintained after a Hall failure, thereby realizing redundant control of components. The output angle of the Hall processing module is used as the initial setting value of the sensorless observer, which improves the convergence speed and convergence accuracy of the sensorless observer. The switching control algorithm disclosed in the present invention can achieve a balance between the stability and reaction speed of the vehicle and provide a comfortable riding experience.
[0091] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A control method for an electric vehicle motor, characterized in that: The control method for the electric vehicle motor is performed by a motor control system, and the motor control system includes: A first type of position sensor, which detects the rotor position of the motor based on the Hall effect to output a first type of rotor angle signal; a second type position sensor, which detects the rotor position of the motor according to the back electromotive force of the motor to output a second type rotor angle signal; a controller, configured to output a driving signal for driving the motor according to the first type of rotor angle signal and / or the second type of rotor angle signal; The control method comprises the following steps: The controller collects the first type of rotor angle signal of the first type of position sensor; The controller collects the second type of rotor angle signal of the second type of position sensor; determining, according to the first type of rotor angle signal or / and the second type of rotor angle signal, whether the rotational speed of the rotor of the motor satisfies a speed range defined by a first switching threshold or / and a second switching threshold, and if the rotational speed satisfies the speed range defined by the first switching threshold or / and the second switching threshold, switching between the first driving mode and the second driving mode is achieved by adopting a hysteresis switching method; Wherein, in the first driving mode, the controller outputs the driving signal according to the first type of rotor angle signal; in the second driving mode, the controller outputs the driving signal according to the second type of rotor angle signal; Wherein, judging whether the rotation speed of the motor rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value according to the first type of rotor angle signal or / and the second type of rotor angle signal, and if the rotation speed of the motor rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value, switching between the first driving mode and the second driving mode is realized by adopting a hysteresis switching method, specifically comprising: S3, setting the speed threshold hysteresis switching mode, including the first switching threshold and the second switching threshold, to achieve smooth switching between the two angle acquisition modes of the sensorless observer and the Hall position sensor; The step S3 specifically includes the following steps: S31, during the operation of the motor, compare the output signal of the Hall position sensor signal processing module with the output angle signal of the sensorless observer, set the speed point speed1 after the output signal of the sensorless observer is stable as the first switching threshold, and add a fixed speed delta_speed to speed1 to obtain the second switching threshold speed2; wherein delta_speed=speed / 3; S32, using the angle signal w_dpp obtained after Hall processing as an input signal, judging the values of theta_hall_dpp and speed1; S33, if the current motor operation mode is the sensory drive mode mode1 driven according to the output signal of the Hall position sensor, when w_dpp is less than or equal to speed2, the current motor operation mode is still mode1, otherwise the operation mode is switched to mode2; S34, if the current motor operation mode is the sensorless driving mode mode2 that is driven according to the sensorless observer output signal, when w_dpp is less than or equal to speed1, the current operation mode of the motor is switched to mode2, otherwise the current operation mode is maintained at mode2.
2. The control method for electric vehicle motor according to claim 1, characterized in that: in, The first type of position sensor includes three Hall position sensors; The controller collecting the first type of rotor angle signal of the first type of position sensor specifically includes the following steps: S1, the Hall position sensor processes the acquired three Hall levels to obtain the motor rotor angle signal in each switching cycle.
3. The control method for electric vehicle motor according to claim 2, characterized in that: in, The motor is a surface permanent magnet synchronous motor, and the second type of position sensor includes a sensorless observer; The controller collecting the second type of rotor angle signal of the second type of position sensor specifically includes the following steps: S2. Based on the fundamental voltage equations of the alfa and beta axes of the surface permanent magnet synchronous motor, operations are performed on the input quantities U_alfa, i_alfa, U_beta, and i_beta to obtain the output angle signal of the sensorless observer.
4. The control method for electric vehicle motor according to claim 3, characterized in that: in, Determining whether the rotation speed of the motor rotor satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value according to the first type of rotor angle signal or / and the second type of rotor angle signal, and if the rotation speed satisfies the speed range defined by the first switching threshold value or / and the second switching threshold value, switching between the first driving mode and the second driving mode is realized by adopting a hysteresis switching method, which specifically includes: S4. During the whole operation of the motor, the health status of the Hall position sensor is monitored online. If a fault occurs, it is switched to the non-sensing mode to achieve redundant control under the Hall fault of the motor.
5. The control method for electric vehicle motor according to claim 4, characterized in that: The step S1 specifically includes the following steps: S11, set the initial calculation signal of the angle of the Hall three-level to 0; S12, according to the current state of the Hall three-level, determine the sector where the rotor position signal is currently located, and set the rotor angle to the central angle of the current sector to maximize the approximation to the current actual angle of the rotor; S13, according to the rotor angle determined in the previous step, the three-phase current of the motor is obtained at the same time, and the Clark transformation is performed to obtain the components i_alfa and i_beta of the stator winding current on the alfa and beta axes, and the components of the stator winding current on the dq axes are obtained, and the d-axis current and the q-axis current are controlled respectively to obtain the d-axis voltage and the q-axis voltage, and the dq-axis voltage and the current angle of the rotor are used as inputs to perform the inverse park transformation to obtain the components U_alfa and U_beta of the inverter output voltage on the alfa and beta axes; S14, update the current angle in real time; take the time difference between two sector changes as delta_t, delta_t=t1-t2; where t1 is the time node of the last sector change, and t2 is the time node of the current sector change; the angle difference between the two sector changes is delta_theta=pi / 3, and the angular velocity w=delta_theta / delta_t of the motor is obtained; perform equivalent operation on the angular velocity w to obtain the change value w_dpp of the angle signal within the switching cycle; S15. In each switching cycle, the current angle signal is updated in real time, theta_hall=theta_hall+w_dpp.
6. The control method for electric vehicle motor according to claim 5, characterized in that: The step S2 specifically includes the following steps: S21, after performing sine and cosine processing on theta_hall, theta_hall is used as a substitute signal to replace the original sin(theta_est) and cos(theta_est) in the back electromotive force observer, so as to accelerate the convergence speed of the back electromotive force observer for back electromotive force observation; wherein theta_est is the angle estimation value of the observer; S22, substituting the theta_hall signal calculated in step S15 into the estimated angle calculation integral feedback module to accelerate the estimated angle convergence speed of the entire PLL module.
7. The control method for electric vehicle motor according to claim 6, characterized in that: The step S4 specifically includes the following steps: S41, judging the Hall three-level signal collected in real time, if the three levels are all high or all low, the controller executes the Hall fault processing step, writes the Hall fault flag into the memory, and switches the motor operation mode to mode2.
8. The control method for electric vehicle motor according to claim 7, characterized in that: The step S4 specifically includes the following steps: S42, detecting the Hall level signal. If the Hall three-level signal does not appear at a high level or is at a low level for n consecutive judgment cycles, the Hall fault flag in the memory is cleared, the controller releases the Hall fault state, and switches to switching the motor operation mode according to step S32 or S33.
