Vehicle motor control method, device and equipment and storage medium
By calculating the voltage zero-sequence component and adjusting the output comparison value to control the vehicle motor, the problem of narrow pulses and DC ripple in the SVPWM control of the permanent magnet synchronous motor is solved, and the NVH performance of the vehicle is improved.
Patent Information
- Application Number
- CN202410715425.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-01
AI Technical Summary
When the permanent magnet synchronous motor is controlled by SVPWM, the upper and lower bridge power switching devices cannot be turned on at the same time, resulting in the existence of a dead zone and the generation of narrow pulses, which in turn results in a DC ripple of six times the frequency, worsening the NVH of the vehicle.
By determining the first voltage value, the second voltage value and the third voltage value according to the initial output voltage of the motor's orthogonal axis, calculating the voltage zero sequence component, and adjusting the target output comparison value according to the component to control the vehicle motor and avoid narrow pulses of production.
While avoiding narrow pulses, the output voltage remains unchanged, reducing DC ripple and improving the vehicle's noise and vibration performance.
Smart Images

Figure CN118739927A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle motor control method, device, equipment and storage medium. Background Art
[0002] The motors used in electric vehicles generally use synchronous motors or asynchronous motors. Permanent magnet synchronous motors are widely used in domestic new energy vehicles due to their high efficiency and high power density. The motor controller of the permanent magnet synchronous motor controls the size of the three-phase current by outputting three-phase voltage, and the three-phase voltage is usually generated by the SVPWM space vector pulse width modulation method. Since the power switch devices of the upper and lower bridges cannot be turned on at the same time during SVPWM control, there is an inevitable dead zone. This leads to the situation that even if the dead zone compensation is performed when the output voltage is large, the excessive or too small pwm signal will produce an uncompleted opening and closing situation on the power device of the inverter, and narrow pulses will be generated in this process. The commonly used strategy for eliminating narrow pulses is: that is, based on the processing of the pwm comparison value of each phase, according to the pwm comparison value of each phase, if the pwm comparison value of the phase is less than the minimum limit value or greater than the maximum limit value, it is considered that a narrow pulse may occur, and its comparison value is given to the minimum value or maximum value, but the problem with this strategy is that the output voltage will produce 6 bumps in each electrical cycle, which will cause a 6-fold DC ripple, which will worsen the NVH of the vehicle. Therefore, how to avoid the vehicle motor from generating narrow pulses while ensuring that the output voltage remains unchanged has become a problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of this application is to provide a vehicle motor control method, device, equipment and storage medium, aiming to solve the technical problem of how to prevent the vehicle motor from generating narrow pulses and ensure that the output voltage remains unchanged.
[0004] To achieve the above objectives, the present application proposes a vehicle motor control method, the vehicle motor control method comprising:
[0005] Determine a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value;
[0006] Determine a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value;
[0007] Determining a target output comparison value according to the voltage zero-sequence component;
[0008] The vehicle motor is controlled according to the target output comparison value.
[0009] In one embodiment, determining the first voltage value, the second voltage value, and the third voltage value according to the initial output voltage of the orthogonal axis of the motor includes:
[0010] Performing coordinate transformation on the initial output voltage of the orthogonal axis of the motor to obtain a first transformation voltage, a second transformation voltage, and a third transformation voltage;
[0011] Comparing the first conversion voltage, the second conversion voltage, and the third conversion voltage to obtain a voltage comparison result;
[0012] A first voltage value, a second voltage value and a third voltage value are determined according to the voltage comparison result.
[0013] In one embodiment, determining the voltage zero-sequence component according to the first voltage value, the second voltage value, and the third voltage value includes:
[0014] Get the current bus voltage, carrier cycle comparison value, dead time comparison value and narrow pulse extreme time;
[0015] Determine a counter threshold according to the dead time comparison value and the narrow pulse extreme time;
[0016] A voltage zero-sequence component is determined according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value, and the counter threshold.
[0017] In one embodiment, determining the voltage zero-sequence component according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value, and the counter threshold value includes:
[0018] Determine a carrier cycle midpoint value and a carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0019] Determine a target counter comparison value according to the current bus voltage, the carrier cycle midpoint value, the carrier cycle reference value, the first voltage value, and the third voltage value;
[0020] determining a target comparison result according to the target counter comparison value and the counter threshold;
[0021] A voltage zero-sequence component is determined according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value.
[0022] In one embodiment, determining the voltage zero-sequence component according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value includes:
[0023] When the target comparison result is that the target counter comparison value is greater than the counter threshold, determining a voltage zero-sequence component according to the first voltage value and the third voltage value;
[0024] When the target comparison result is that the target counter comparison value is less than or equal to the counter threshold, the voltage zero-sequence component is determined according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value.
[0025] In one embodiment, determining the voltage zero-sequence component according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value includes:
[0026] When the second voltage value is greater than or equal to a preset voltage value, determining a voltage zero-sequence component according to the first voltage value, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value;
[0027] When the second voltage value is less than the preset voltage value, the voltage zero-sequence component is determined according to the third voltage value, the current bus voltage, the carrier cycle midpoint value and the carrier cycle reference value.
[0028] In one embodiment, determining the target output comparison value according to the voltage zero-sequence component includes:
[0029] Acquire a first conversion voltage, a second conversion voltage, and a third conversion voltage;
[0030] Determine a first adjustment voltage, a second adjustment voltage and a third adjustment voltage according to the first conversion voltage, the second conversion voltage, the third conversion voltage and the voltage zero-sequence component;
[0031] Determine the carrier cycle midpoint value and the carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0032] A target output comparison value is determined according to the first adjustment voltage, the second adjustment voltage, the third adjustment voltage, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle motor control device, the vehicle motor control device comprising:
[0034] A processing module, configured to determine a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value;
[0035] The processing module is further used to determine a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value;
[0036] The processing module is further used to determine a target output comparison value according to the voltage zero-sequence component;
[0037] A control module is used to control the vehicle motor according to the target output comparison value.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle motor control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle motor control method described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle motor control method described above are implemented.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle motor control method described above are implemented.
[0041] The present application determines the first voltage value, the second voltage value and the third voltage value according to the initial output voltage of the orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; determines the voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; determines the target output comparison value according to the voltage zero-sequence component; and controls the vehicle motor according to the target output comparison value. By determining the value of the zero-sequence component according to the magnitude of the three-phase voltage for the obtained three-phase voltage value, a new three-phase voltage value is obtained, thereby achieving the goal of avoiding the vehicle motor from generating narrow pulses while ensuring that the output voltage remains unchanged. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the vehicle motor control method of the present application;
[0045] Figure 2 A flow chart of the second embodiment of the vehicle motor control method of the present application;
[0046] Figure 3 This is a schematic diagram of the module structure of the vehicle motor control device according to an embodiment of the present application;
[0047] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle motor control method in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: determine a first voltage value, a second voltage value and a third voltage value according to the initial output voltage of the orthogonal axis of the motor, the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; determine a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; determine a target output comparison value according to the voltage zero-sequence component; and control the vehicle motor according to the target output comparison value.
[0052] The motors used in electric vehicles generally use synchronous motors or asynchronous motors. Permanent magnet synchronous motors are widely used in domestic new energy vehicles due to their high efficiency and high power density. The motor controller of the permanent magnet synchronous motor controls the size of the three-phase current by outputting three-phase voltage, and the three-phase voltage is usually generated by the SVPWM space vector pulse width modulation method. Since the power switch devices of the upper and lower bridges cannot be turned on at the same time during SVPWM control, there is an inevitable dead zone. This leads to the situation that even if the dead zone compensation is performed when the output voltage is large, the excessive or too small pwm signal will produce an uncompleted opening and closing situation on the power device of the inverter, and narrow pulses will be generated in this process. The commonly used strategy for eliminating narrow pulses is: that is, based on the processing of the pwm comparison value of each phase, according to the pwm comparison value of each phase, if the pwm comparison value of the phase is less than the minimum limit value or greater than the maximum limit value, it is considered that a narrow pulse may occur, and its comparison value is given to the minimum value or maximum value, but the problem with this strategy is that the output voltage will produce 6 bumps in each electrical cycle, which will cause a 6-fold DC ripple, which will worsen the NVH of the vehicle. Therefore, how to avoid the vehicle motor from generating narrow pulses while ensuring that the output voltage remains unchanged has become a problem that needs to be solved urgently.
[0053] The present application determines the first voltage value, the second voltage value and the third voltage value according to the initial output voltage of the orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; determines the voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; determines the target output comparison value according to the voltage zero-sequence component; and controls the vehicle motor according to the target output comparison value. By determining the value of the zero-sequence component according to the magnitude of the three-phase voltage for the obtained three-phase voltage value, a new three-phase voltage value is obtained, thereby achieving the goal of avoiding the vehicle motor from generating narrow pulses while ensuring that the output voltage remains unchanged.
[0054] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a vehicle motor control device capable of realizing the above functions, etc. The following takes the vehicle motor control as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0055] Based on this, the embodiment of the present application provides a vehicle motor control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle motor control method of the present application.
[0056] In this embodiment, the vehicle motor control method includes steps S10 to S40:
[0057] Step S10, determining a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value;
[0058] It should be noted that the initial output voltage refers to the d-axis voltage V d and q-axis voltage V q , the first voltage value refers to the maximum voltage among the three-phase voltages, the second voltage value refers to the middle voltage among the three-phase voltages, and the third voltage value refers to the minimum voltage among the three-phase voltages.
[0059] In the specific implementation, the PI current closed-loop control outputs the d-axis voltage V d and q-axis voltage V q , and then V d and V q After coordinate transformation, it is converted into three-phase voltages Vu0, Vv0, Vw0, and then the maximum value, minimum value and intermediate value of the three-phase voltage are obtained.
[0060] In a feasible implementation, step S10 may include steps A11 to A13:
[0061] Step A11, performing coordinate transformation on the initial output voltage of the orthogonal axis of the motor to obtain a first transformation voltage, a second transformation voltage and a third transformation voltage;
[0062] It should be noted that the first conversion voltage refers to the u-axis voltage value after coordinate conversion, the second conversion voltage refers to the v-axis voltage after coordinate conversion, and the third conversion voltage refers to the w-axis voltage after coordinate conversion.
[0063] In the specific implementation, the PI current closed-loop control outputs the d-axis voltage V d and q-axis voltage V q , and then convert the d-axis voltage and the q-axis voltage into three-phase voltage, and specifically perform coordinate transformation on the d-axis voltage and the q-axis voltage to obtain the u-axis, v-axis and w-axis voltage values after coordinate transformation.
[0064] Step A12, comparing the first conversion voltage, the second conversion voltage and the third conversion voltage to obtain a voltage comparison result;
[0065] It can be understood that the voltage comparison result refers to the voltage value comparison result, and the voltage values of the first conversion voltage, the second conversion voltage and the third conversion voltage are compared by bubbling to obtain the voltage value comparison result.
[0066] Step A13, determining a first voltage value, a second voltage value, and a third voltage value according to the voltage comparison result.
[0067] It can be understood that the maximum, minimum and middle values obtained by using the bubble method are V max 、V min 、V mid , and then get the size comparison result of the voltage value. For example, the first conversion voltage is 2v, the second conversion voltage is 5v, and the third conversion voltage is 1v. The bubbling method is used to determine that the second conversion voltage is the maximum voltage, the first conversion voltage is the middle voltage, and the third conversion voltage is the minimum voltage, thereby obtaining the size comparison result of the voltage value.
[0068] Step S20, determining a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value;
[0069] It can be understood that the voltage zero-sequence component refers to the zero-sequence component in the voltage signal caused by unbalanced load or system fault in a three-phase power system.
[0070] In a specific implementation, the SVPWM of this embodiment is implemented using SPWM+zero-sequence component, the voltage zero-sequence component is set to Vzero, and the counter comparison value is set to:
[0071]
[0072] Make the following comparison: compare t_cmp and t. If t_cmp is greater than t, then:
[0073]
[0074] If t_cmp is less than or equal to t, then make the following judgment: If Vmid ≥ 0, then:
[0075]
[0076] otherwise:
[0077]
[0078] It can be seen that the zero-sequence component of the voltage is obtained by calculating the maximum value, minimum value and intermediate value of the voltage.
[0079] Step S30, determining a target output comparison value according to the voltage zero-sequence component;
[0080] It can be understood that the target output comparison value refers to the processed SVPWM comparison value, the adjusted voltage value is calculated according to the voltage zero-sequence component, and the processed SVPWM comparison value is obtained according to the adjusted voltage value.
[0081] In a feasible implementation, step S30 may include steps A31 to A34:
[0082] Step A31, obtaining a first conversion voltage, a second conversion voltage, and a third conversion voltage;
[0083] It can be understood that the PI current closed-loop control outputs the d-axis voltage V d and q-axis voltage V q , and then convert the d-axis voltage and the q-axis voltage into three-phase voltages, specifically, perform coordinate transformation on the d-axis voltage and the q-axis voltage to obtain the u-axis, v-axis and w-axis voltage values after coordinate transformation, that is, obtain the first conversion voltage, the second conversion voltage and the third conversion voltage.
[0084] Step A32, determining a first adjustment voltage, a second adjustment voltage and a third adjustment voltage according to the first conversion voltage, the second conversion voltage, the third conversion voltage and the voltage zero-sequence component;
[0085] It can be understood that the first adjusted voltage refers to the adjusted voltage value corresponding to the first conversion voltage, the second adjusted voltage refers to the adjusted voltage value corresponding to the second conversion voltage, and the third adjusted voltage refers to the adjusted voltage value corresponding to the third conversion voltage.
[0086] In a specific implementation, the voltage after adjustment is
[0087] Vu1=Vu0-Vzero
[0088] Vv1=Vv0-Vzero
[0089] Vw1=Vw0-Vzero
[0090] Among them, Vu1 is the first adjustment voltage, Vv1 is the second adjustment voltage, Vw1 is the third adjustment voltage, and Vzero is the voltage zero-sequence component.
[0091] Step A33, determining the carrier cycle midpoint value and the carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0092] Step A34, determining a target output comparison value according to the first adjustment voltage, the second adjustment voltage, the third adjustment voltage, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value.
[0093] It can be understood that the current bus voltage (Vbus) refers to the voltage value on the power supply bus in the power system, the carrier cycle midpoint value (Tzero) refers to the signal value at the middle time point in a complete carrier cycle, and the carrier cycle base value (Tbase) refers to the fixed signal value at a certain time point within a complete carrier cycle.
[0094] In the specific implementation, the final output comparison value of the three phases is:
[0095]
[0096]
[0097]
[0098] Among them, Tzero is the midpoint value of the carrier cycle, Tbase is the base value of the carrier cycle, Vbus refers to the current bus voltage, and Tv_cnt and Tw_cnt are output as the processed SVPWM comparison values.
[0099] Step S40: controlling the vehicle motor according to the target output comparison value.
[0100] It can be understood that the motor duty cycle is calculated by obtaining the processed SVPWM comparison value to obtain the corresponding motor duty cycle, thereby controlling the vehicle motor according to the motor duty cycle.
[0101] It should be noted that after the PI current closed-loop control output d-axis voltage V d and q-axis voltage V q After that, V d and V q After coordinate transformation, it is converted into three-phase voltages Vu0, Vv0, and Vw0, and the three-phase voltage values are compared. The maximum, minimum, and intermediate values are obtained by using the bubbling method, namely Vmax, Vmin, and Vmid; the current bus voltage is set to Vbus, the counter comparison value corresponding to the carrier cycle is Cycle_cnt, the software sets the comparison value corresponding to the dead time to DT_cnt, the midpoint value of the carrier cycle is set to Tzero = (Cycle_cnt + DT_cnt) / 2, and the carrier cycle reference value is set to Tbase = Cycle_cnt / 2; according to the power module test results, the minimum allowable time of the narrow pulse is set to t0, in units of s, and then the counter threshold t = DT_cnt + t0 * Fosc for narrow pulse processing is set, where Fosc is the crystal oscillator frequency of the single-chip microcomputer; the SVPWM of this embodiment is implemented using SPWM + zero-sequence component, the voltage zero-sequence component is set to Vzero, and the counter comparison value is set:
[0102]
[0103] Make the following comparison: compare t_cmp and t. If tcmp is greater than t, then:
[0104]
[0105] If t_cmp is less than or equal to t, then make the following judgment: If Vmid ≥ 0, then:
[0106]
[0107] otherwise:
[0108]
[0109] The voltage after adjustment is:
[0110] Vu1=Vu0-Vzero
[0111] Vv1=Vv0-Vzero
[0112] Vw1=Vw0-Vzero
[0113] Finally, the three-phase output comparison value is:
[0114]
[0115]
[0116]
[0117] Tu_cnt and Tw_cnt are output as the processed SVPWM comparison values.
[0118] This embodiment determines the first voltage value, the second voltage value and the third voltage value according to the initial output voltage of the orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; determines the voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; determines the target output comparison value according to the voltage zero-sequence component; and controls the vehicle motor according to the target output comparison value. By determining the value of the zero-sequence component according to the magnitude of the three-phase voltage for the obtained three-phase voltage value, a new three-phase voltage value is obtained, thereby achieving the goal of avoiding the vehicle motor from generating narrow pulses while ensuring that the output voltage remains unchanged.
[0119] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , step S20, the vehicle motor control method further includes steps S21 to S23:
[0120] Step S21, obtaining the current bus voltage, carrier cycle comparison value, dead time comparison value and narrow pulse extreme time;
[0121] It can be understood that the dead time comparison value (DT_cnt) refers to the time interval used in the control signal to compare and determine the turn-on or turn-off of two switches (such as the upper tube and the lower tube), and the narrow pulse extreme time refers to the minimum allowed time (t0) of the narrow pulse.
[0122] In a specific implementation, the dead time comparison value is set by software, and the minimum allowable time of the narrow pulse is set according to the power module test result.
[0123] Step S22, determining a counter threshold according to the dead time comparison value and the narrow pulse extreme time;
[0124] It can be understood that the counter threshold refers to the counter threshold (t) for narrow pulse processing.
[0125] In a specific implementation, the counter threshold (t) for narrow pulse processing is calculated according to the dead time comparison value (DT_cnt) and the minimum allowed time of the narrow pulse (t0). Specifically, t=DT_cnt+t0*Fosc, where Fosc is the crystal oscillator frequency of the single-chip microcomputer.
[0126] Step S23, determining a voltage zero-sequence component according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value and the counter threshold.
[0127] It can be understood that the voltage zero-sequence component is set to Vzero and the counter comparison value is set to:
[0128]
[0129] Make the following comparison: compare t_cmp and t. If t_cmp is greater than t, then:
[0130]
[0131] If t_cmp is less than or equal to t, then make the following judgment: If Vmid ≥ 0, then:
[0132]
[0133] otherwise:
[0134]
[0135] Through the above calculation method, the voltage zero-sequence component is obtained.
[0136] In a feasible implementation, step S23 may include steps A231 to A234:
[0137] Step A231, determining a carrier cycle midpoint value and a carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0138] It can be understood that the carrier cycle comparison value refers to the counter comparison value (Cycle_cnt) corresponding to the carrier cycle.
[0139] In a specific implementation, the carrier cycle midpoint value is set to Tzero=(Cycle_cnt+DT_cnt) / 2, and the carrier cycle reference value is set to Tbase=Cycle_cnt / 2.
[0140] Step A232, determining a target counter comparison value according to the current bus voltage, the carrier cycle midpoint value, the carrier cycle reference value, the first voltage value, and the third voltage value;
[0141] It can be understood that the target counter comparison value refers to the set counter comparison value (t_cmp).
[0142] In the specific implementation, the counter comparison value is set to
[0143] Step A233, determining a target comparison result according to the target counter comparison value and the counter threshold;
[0144] It can be understood that the target comparison result refers to the comparison result between the counter comparison value and the counter threshold.
[0145] In a specific implementation, the counter comparison value is compared with the counter threshold value to obtain a result that the counter comparison value is greater than the counter threshold value and a result that the counter comparison value is less than the counter threshold value.
[0146] Step A234, determining the voltage zero-sequence component according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value.
[0147] It can be understood that the method for calculating the zero-sequence component of the voltage is determined according to the target comparison result, and then the calculation is performed according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the midpoint value of the carrier cycle and the carrier cycle reference value to obtain the zero-sequence component of the voltage.
[0148] In a feasible implementation manner, step A234 may include steps B2341-B2342:
[0149] Step B2341, when the target comparison result is that the target counter comparison value is greater than the counter threshold, determining a voltage zero-sequence component according to the first voltage value and the third voltage value;
[0150] It can be understood that when the target comparison result is t_cmp greater than t, then
[0151] Step B2342, when the target comparison result is that the target counter comparison value is less than or equal to the counter threshold, determine the voltage zero-sequence component according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value.
[0152] It can be understood that when the counter comparison value is less than or equal to the counter threshold, it is necessary to judge the size of the second voltage value, and then calculate based on the judgment result and the current bus voltage, the first voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value to obtain the voltage zero-sequence component.
[0153] In a feasible implementation manner, step B2342 may include steps C23421-C23422:
[0154] Step C23421, when the second voltage value is greater than or equal to a preset voltage value, determining a voltage zero-sequence component according to the first voltage value, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value;
[0155] It can be understood that the preset voltage value refers to a voltage critical value for determining the magnitude of a voltage intermediate value, and in this embodiment, the preset voltage value is taken as 0 for illustration.
[0156] In a specific implementation, if Vmid ≥ 0, then
[0157] Step C23422, when the second voltage value is less than the preset voltage value, determine the voltage zero-sequence component according to the third voltage value, the current bus voltage, the carrier cycle midpoint value and the carrier cycle reference value.
[0158] In a specific implementation, if Vmid<0, then
[0159] This embodiment obtains the current bus voltage, carrier cycle comparison value, dead time comparison value and narrow pulse extreme time; determines the counter threshold according to the dead time comparison value and the narrow pulse extreme time; determines the voltage zero-sequence component according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value and the counter threshold. By processing the output three-phase voltage, the value of the zero-sequence component is adjusted according to the different three-phase voltage values obtained, so that the SVPWM automatically switches between the seven-segment type and the two five-segment types to avoid narrow pulses and ensure that the output voltage remains unchanged.
[0160] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle motor control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0161] This application also provides a vehicle motor control device, please refer to Figure 3 , the vehicle motor control device comprises:
[0162] A processing module 10, configured to determine a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value;
[0163] The processing module 10 is further configured to determine a voltage zero-sequence component according to the first voltage value, the second voltage value, and the third voltage value;
[0164] The processing module 10 is further used to determine a target output comparison value according to the voltage zero-sequence component;
[0165] The control module 20 is used to control the vehicle motor according to the target output comparison value.
[0166] Optionally, the processing module 10 is further used for:
[0167] Performing coordinate transformation on the initial output voltage of the orthogonal axis of the motor to obtain a first transformation voltage, a second transformation voltage, and a third transformation voltage;
[0168] Comparing the first conversion voltage, the second conversion voltage, and the third conversion voltage to obtain a voltage comparison result;
[0169] A first voltage value, a second voltage value and a third voltage value are determined according to the voltage comparison result.
[0170] Optionally, the processing module 10 is further used for:
[0171] Get the current bus voltage, carrier cycle comparison value, dead time comparison value and narrow pulse extreme time;
[0172] Determine a counter threshold according to the dead time comparison value and the narrow pulse extreme time;
[0173] A voltage zero-sequence component is determined according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value, and the counter threshold.
[0174] Optionally, the processing module 10 is further used for:
[0175] Determine a carrier cycle midpoint value and a carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0176] Determine a target counter comparison value according to the current bus voltage, the carrier cycle midpoint value, the carrier cycle reference value, the first voltage value, and the third voltage value;
[0177] determining a target comparison result according to the target counter comparison value and the counter threshold;
[0178] A voltage zero-sequence component is determined according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value.
[0179] Optionally, the processing module 10 is further used for:
[0180] When the target comparison result is that the target counter comparison value is greater than the counter threshold, determining a voltage zero-sequence component according to the first voltage value and the third voltage value;
[0181] When the target comparison result is that the target counter comparison value is less than or equal to the counter threshold, the voltage zero-sequence component is determined according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value.
[0182] Optionally, the processing module 10 is further used for:
[0183] When the second voltage value is greater than or equal to a preset voltage value, determining a voltage zero-sequence component according to the first voltage value, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value;
[0184] When the second voltage value is less than the preset voltage value, the voltage zero-sequence component is determined according to the third voltage value, the current bus voltage, the carrier cycle midpoint value and the carrier cycle reference value.
[0185] Optionally, the processing module 10 is further used for:
[0186] Acquire a first conversion voltage, a second conversion voltage, and a third conversion voltage;
[0187] Determine a first adjustment voltage, a second adjustment voltage and a third adjustment voltage according to the first conversion voltage, the second conversion voltage, the third conversion voltage and the voltage zero-sequence component;
[0188] Determine the carrier cycle midpoint value and the carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value;
[0189] A target output comparison value is determined according to the first adjustment voltage, the second adjustment voltage, the third adjustment voltage, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value.
[0190] The vehicle motor control device provided by the present application adopts the vehicle motor control method in the above embodiment, which can solve the technical problem of how to avoid the vehicle motor from generating narrow pulses and ensure that the output voltage remains unchanged. Compared with the prior art, the beneficial effects of the vehicle motor control device provided by the present application are the same as the beneficial effects of the vehicle motor control method provided by the above embodiment, and other technical features in the vehicle motor control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0191] The present application provides a vehicle motor control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle motor control method in the above-mentioned embodiment one.
[0192] Reference below Figure 4, which shows a schematic diagram of the structure of a vehicle motor control device suitable for implementing an embodiment of the present application. The vehicle motor control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The vehicle motor control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0193] like Figure 4 As shown, the vehicle motor control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle motor control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle motor control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle motor control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0194] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0195] The vehicle motor control device provided by the present application adopts the vehicle motor control method in the above embodiment, which can solve the technical problem of how to avoid the vehicle motor from generating narrow pulses and ensure that the output voltage remains unchanged. Compared with the prior art, the beneficial effects of the vehicle motor control device provided by the present application are the same as the beneficial effects of the vehicle motor control method provided by the above embodiment, and the other technical features in the vehicle motor control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0196] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0197] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0198] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle motor control method in the above-mentioned embodiment.
[0199] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0200] The computer-readable storage medium may be included in the vehicle motor control device; or may exist independently without being assembled into the vehicle motor control device.
[0201] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by a vehicle motor control device, the vehicle motor control device: determines a first voltage value, a second voltage value and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; determines a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; determines a target output comparison value according to the voltage zero-sequence component; and controls the vehicle motor according to the target output comparison value.
[0202] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0203] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0204] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0205] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle motor control method, and can solve the technical problem of how to avoid the vehicle motor from generating narrow pulses and ensure that the output voltage remains unchanged. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle motor control method provided by the above-mentioned embodiment, and will not be repeated here.
[0206] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the vehicle motor control method as described above are implemented.
[0207] The computer program product provided by the present application can solve the technical problem of how to prevent the vehicle motor from generating narrow pulses and ensure that the output voltage remains unchanged. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle motor control method provided by the above embodiment, which will not be repeated here.
[0208] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle motor control method, characterized in that: The vehicle motor control method comprises: Determine a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; Determine a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; Determining a target output comparison value according to the voltage zero-sequence component; The vehicle motor is controlled according to the target output comparison value.
2. The method according to claim 1, characterized in that The method of determining the first voltage value, the second voltage value, and the third voltage value according to the initial output voltage of the orthogonal axis of the motor includes: Performing coordinate transformation on the initial output voltage of the orthogonal axis of the motor to obtain a first transformation voltage, a second transformation voltage, and a third transformation voltage; Comparing the first conversion voltage, the second conversion voltage, and the third conversion voltage to obtain a voltage comparison result; A first voltage value, a second voltage value and a third voltage value are determined according to the voltage comparison result.
3. The method according to claim 1, characterized in that The determining of the voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value comprises: Get the current bus voltage, carrier cycle comparison value, dead time comparison value and narrow pulse extreme time; Determine a counter threshold according to the dead time comparison value and the narrow pulse extreme time; A voltage zero-sequence component is determined according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value, and the counter threshold.
4. The method according to claim 3, characterized in that The determining of the voltage zero-sequence component according to the first voltage value, the second voltage value, the third voltage value, the current bus voltage, the carrier cycle comparison value, the dead time comparison value and the counter threshold value comprises: Determine a carrier cycle midpoint value and a carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value; Determine a target counter comparison value according to the current bus voltage, the carrier cycle midpoint value, the carrier cycle reference value, the first voltage value, and the third voltage value; determining a target comparison result according to the target counter comparison value and the counter threshold; A voltage zero-sequence component is determined according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value.
5. The method according to claim 4, characterized in that The determining of the voltage zero-sequence component according to the current bus voltage, the target comparison result, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value, and the carrier cycle reference value includes: When the target comparison result is that the target counter comparison value is greater than the counter threshold, determining a voltage zero-sequence component according to the first voltage value and the third voltage value; When the target comparison result is that the target counter comparison value is less than or equal to the counter threshold, the voltage zero-sequence component is determined according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value.
6. The method according to claim 5, characterized in that The determining of the voltage zero-sequence component according to the current bus voltage, the first voltage value, the second voltage value, the third voltage value, the carrier cycle midpoint value and the carrier cycle reference value comprises: When the second voltage value is greater than or equal to a preset voltage value, determining a voltage zero-sequence component according to the first voltage value, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value; When the second voltage value is less than the preset voltage value, the voltage zero-sequence component is determined according to the third voltage value, the current bus voltage, the carrier cycle midpoint value and the carrier cycle reference value.
7. The method according to claim 1, characterized in that The step of determining a target output comparison value according to the voltage zero-sequence component comprises: Acquire a first conversion voltage, a second conversion voltage, and a third conversion voltage; Determine a first adjustment voltage, a second adjustment voltage and a third adjustment voltage according to the first conversion voltage, the second conversion voltage, the third conversion voltage and the voltage zero-sequence component; Determine the carrier cycle midpoint value and the carrier cycle reference value according to the carrier cycle comparison value and the dead time comparison value; A target output comparison value is determined according to the first adjustment voltage, the second adjustment voltage, the third adjustment voltage, the current bus voltage, the carrier cycle midpoint value, and the carrier cycle reference value.
8. A vehicle motor control device, characterized in that: The device comprises: A processing module, configured to determine a first voltage value, a second voltage value, and a third voltage value according to an initial output voltage of an orthogonal axis of the motor, wherein the first voltage value is greater than the second voltage value, and the second voltage value is greater than the third voltage value; The processing module is further used to determine a voltage zero-sequence component according to the first voltage value, the second voltage value and the third voltage value; The processing module is further used to determine a target output comparison value according to the voltage zero-sequence component; A control module is used to control the vehicle motor according to the target output comparison value.
9. A vehicle motor control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle motor control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle motor control method according to any one of claims 1 to 7 are implemented.
