Control method and device of motor controller, motor controller and vehicle

By updating the turn-on time of the power switching device, the problem of high voltage spikes and high-frequency oscillation caused by too short turn-on pulses in the motor controller is solved, the power switching device is protected, and the normal operation of the motor controller is ensured.

CN118739889APending Publication Date: 2024-10-01WUXI INFIMOTION PROPULSION TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410820325.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the motor controller drives the power switching device, a too short turn-on pulse will cause high voltage spikes and high-frequency oscillations, damage the device and affect electromagnetic interference, causing the motor controller to operate abnormally.

Method used

By determining the turn-on time based on the initial duty cycle and PWM cycle time of the power switching device, and updating it based on the minimum turn-on time and dead time, the updated turn-on time is greater than the minimum turn-on time, avoiding too short turn-on pulses.

Benefits of technology

It effectively avoids the problems of high voltage spikes and high-frequency oscillation, protects the power switching devices, and ensures the normal operation of the motor controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118739889A_ABST
    Figure CN118739889A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device of a motor controller, the motor controller and a vehicle, and relates to the technical field of motor control. The control method of the motor controller comprises the following steps: determining the turn-on time of a power switch device according to the initial duty ratio of the power switch device and the PWM period time of the power switch device; updating the turn-on time of the power switch device according to the shortest turn-on time of the power switch device, the PWM period time and the dead time, so that the updated turn-on time is greater than the shortest turn-on time; and determining an output duty ratio according to the updated turn-on time, and driving the power switch device according to the output duty ratio. According to the invention, the problems of high voltage spike and high-frequency oscillation caused by too short turn-on pulse can be avoided, and then the effect of protecting the power switch device is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and in particular to a control method and device for a motor controller, a motor controller and a vehicle. Background Art

[0002] When the motor controller drives the power switch device (such as IGBT, Insulated Gate Bipolar Transistor, insulated gate bipolar transistor), it will send a duty cycle instruction to the power switch device and determine the on and off time of the power switch device according to the size of the duty cycle.

[0003] However, since the power switching device requires a certain reaction time from receiving the gate-level signal to turning the device on and off, when the motor controller sends a very small duty cycle to the power switching device, a too short turn-on pulse will be generated. The high voltage spike caused by the too short turn-on pulse may damage the power switching device and may cause a sudden change in the reverse recovery current of the diode, thereby causing a disconnection phenomenon. In addition, the high-frequency oscillation of the output waveform caused by the too short turn-on pulse will increase electromagnetic interference, which has a great impact on the normal operation of the motor controller. Summary of the invention

[0004] The problem solved by the present invention is how to avoid high voltage spikes and high frequency oscillations caused by too short turn-on pulses.

[0005] In order to solve the above problems, the present invention provides a control method and device of a motor controller, a motor controller and a vehicle.

[0006] In a first aspect, the present invention provides a control method of a motor controller, comprising:

[0007] Determining a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device;

[0008] Updating the on time of the power switch device according to the shortest on time, PWM cycle time and dead time of the power switch device so that the updated on time is greater than the shortest on time;

[0009] An output duty cycle is determined according to the updated on-time, and the power switch device is driven according to the output duty cycle.

[0010] Optionally, updating the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device includes:

[0011] Determine the interval in which the on time of the power switch device is located according to the shortest on time of the power switch device, the PWM cycle time and the dead time;

[0012] The turn-on time of the power switch device is updated according to the restriction conditions of different intervals.

[0013] Optionally, determining the interval of the on-time of the power switch device according to the shortest on-time of the power switch device, the PWM cycle time and the dead time includes:

[0014] When the on-time of the power switch device is less than the dead time, determining that the on-time of the power switch device is in a first interval;

[0015] When the on-time of the power switch device is greater than or equal to the dead time and less than the sum of the dead time and a preset duration, determining that the on-time of the power switch device is in the second interval;

[0016] When the on-time of the power switch device is greater than or equal to the sum of the dead time and the preset duration, and less than the sum of the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the third interval;

[0017] When the on-time of the power switch device is greater than or equal to the sum of the dead time and the shortest on-time, and less than or equal to the difference between the PWM cycle time and the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the fourth interval;

[0018] When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the shortest on-time, and is less than the difference between the PWM cycle time, the dead time and the preset duration, it is determined that the on-time of the power switch device is in the fifth interval;

[0019] When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the preset time length, and is less than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the sixth interval;

[0020] When the on-time of the power switch device is greater than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the seventh interval.

[0021] Optionally, updating the turn-on time of the power switch device according to the restriction conditions in different intervals includes:

[0022] When the on-time of the power switch device is in the first interval, maintaining the on-time of the power switch device unchanged;

[0023] When the on-time of the power switch device is in the second interval, updating the on-time of the power switch device to the dead time;

[0024] When the on-time of the power switch device is in the third interval, updating the on-time of the power switch device to the sum of the dead time and the shortest on-time;

[0025] When the on-time of the power switch device is in the fourth interval, maintaining the on-time of the power switch device unchanged;

[0026] When the on-time of the power switch device is in the fifth interval, updating the on-time of the power switch device to the difference between the PWM cycle time, the dead time and the shortest on-time;

[0027] When the on-time of the power switch device is in the sixth interval, updating the on-time of the power switch device to the difference between the PWM cycle time and the dead time;

[0028] When the on-time of the power switch device is in the seventh interval, the on-time of the power switch device is maintained unchanged.

[0029] Optionally, determining the output duty cycle according to the updated on-time includes:

[0030] The output duty cycle is determined according to a ratio of the updated on-time to the PWM cycle time.

[0031] Optionally, before determining the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device, the method further includes:

[0032] Determine the requested current based on the motor speed, motor torque, motor temperature and bus voltage;

[0033] transforming the requested current to determine three-phase voltages;

[0034] The initial duty cycle is determined according to the three-phase voltages, a reference voltage and the bus voltage.

[0035] Optionally, transforming the requested current to determine the three-phase voltage includes:

[0036] converting the requested current into a requested voltage according to PID control;

[0037] The request voltage is sequentially subjected to inverse Park transformation and inverse Clarke transformation to determine the three-phase voltage.

[0038] In a second aspect, the present invention provides a control device of a motor controller, comprising:

[0039] An initial module, used to determine the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device;

[0040] An updating module, configured to update the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device, so that the updated on-time is greater than the shortest on-time;

[0041] A driving module is used to determine an output duty cycle according to the updated turn-on time, and drive the power switch device according to the output duty cycle.

[0042] In a third aspect, the present invention provides a motor controller, comprising a memory and a processor;

[0043] The memory is used to store computer programs;

[0044] The processor is used to implement the control method of the motor controller as described in the first aspect when executing the computer program.

[0045] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the control method of the motor controller as described in the first aspect is implemented.

[0046] The beneficial effect of the control method of the motor controller of the present invention is: after determining the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device, the turn-on time of the power switch device is updated according to the shortest turn-on time, PWM cycle time and dead time of the power switch device, so that the updated turn-on time is greater than the shortest turn-on time, thereby making the turn-on time acting on the power switch device always greater than the shortest turn-on time required by the power switch device itself, and the PWM wave output signal will not have a pulse signal with a turn-on time less than the shortest turn-on time, thereby avoiding the high voltage spike and high frequency oscillation problems caused by too short turn-on pulses, and then playing a role in protecting the power switch device. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic flow chart of a control method of a motor controller according to an embodiment of the present invention;

[0048] Figure 2 A schematic diagram of a flow chart of updating the turn-on time of a power switch device according to an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of a process for determining an initial duty cycle according to an embodiment of the present invention;

[0050] Figure 4 A schematic diagram of a process for determining three-phase voltages according to an embodiment of the present invention;

[0051] Figure 5 A system architecture of a control device for a motor controller according to an embodiment of the present invention;

[0052] Figure 6 The system architecture of the motor controller according to the embodiment of the present invention;

[0053] Figure 7 Schematic diagram of a three-phase inverter bridge according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0055] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0056] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention 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.

[0057] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention 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".

[0058] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.

[0059] like Figure 1 As shown, a control method of a motor controller provided by an embodiment of the present invention includes:

[0060] S100: Determine a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device.

[0061] Specifically, the initial duty cycle (Duty1) of the power switch device is calculated according to the DC bus voltage (Udc), and the initial duty cycle (Duty1) of the power switch device is multiplied by the PWM (pulse width modulation) cycle time (Tpwm) of the power switch device to obtain the turn-on time (Ton) of the power switch device.

[0062] Among them, the wave generation conditions of the upper and lower bridges of the PWM wave can be mapped to the turn-on time of the power switch device in a switching cycle; the power switch device is at a high level when it is turned on and at a low level when it is turned off.

[0063] Among them, the PWM cycle time refers to the time required for a complete pulse signal cycle.

[0064] S200: updating the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device, so that the updated on-time is greater than the shortest on-time.

[0065] Specifically, the on-time (Ton) of the power switch device is segmentedly limited according to the shortest on-time (Tmin), PWM cycle time (Tpwm) and dead time (Td) of the power switch device to obtain an updated on-time, and the updated on-time is greater than the shortest on-time.

[0066] Among them, different power switching devices have certain requirements for their turn-on time. The turn-on time cannot be less than the sum of the switching times required by their specifications. In engineering applications, it is necessary to limit it according to actual test conditions and requirements; high-frequency switching means that the device can respond to control signals faster, but it will also lead to higher switching losses.

[0067] Among them, since the upper and lower bridge arms of the IGBT cannot be turned on at the same time (for example Figure 7 Q2 and Q5 in the circuit cannot be turned on at the same time), so a dead time is added when turning on to prevent the upper and lower bridges from being turned on at the same time, causing a short circuit and subsequently damaging the power switch device.

[0068] Among them, Figure 7 In the motor controller ( Figure 7 The three-phase inverter bridge is composed of six power switching devices (such as IGBT); each phase is controlled by two power switching devices (such as Q1 and Q4); three-phase AC power is generated by alternating switching of the power switching devices; the motor is connected to the output end of the three-phase inverter bridge, receives the three-phase AC power and runs; when the power switching device is turned off, a freewheeling path can be provided by a freewheeling diode to prevent voltage transients.

[0069] S300: Determine an output duty cycle according to the updated on-time, and drive the power switch device according to the output duty cycle.

[0070] Specifically, the output duty cycle (Duty2) is determined according to the updated on-time, and the output duty cycle (Duty2) is output to the driving module, thereby driving the power switch device. Since the on-time acting on the power switch device is always greater than the shortest on-time (Tmin) required by the power switch device itself, the PWM wave output signal will not have a pulse signal with an on-time less than the shortest on-time (Tmin), thereby avoiding the high voltage spike and high-frequency oscillation problems caused by too short on-pulses, and then protecting the power switch device.

[0071] In this embodiment, after determining the on-time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device, the on-time of the power switch device is updated according to the shortest on-time, PWM cycle time and dead time of the power switch device, so that the updated on-time is greater than the shortest on-time, thereby making the on-time acting on the power switch device always greater than the shortest on-time required by the power switch device itself, and the PWM wave output signal will not have a pulse signal with an on-time less than the shortest on-time, thereby avoiding the high voltage spike and high frequency oscillation problems caused by too short on-pulses, and then protecting the power switch device.

[0072] Optionally, updating the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device includes:

[0073] S210: Determine the interval in which the turn-on time of the power switch device is located according to the shortest turn-on time of the power switch device, the PWM cycle time and the dead time.

[0074] Specifically, combined Figure 2 As shown, the interval of the on-time (Ton) is divided according to the shortest on-time (Tmin), PWM cycle time (Tpwm) and dead time (Td) of the power switch device, so as to determine the current update strategy.

[0075] S220: updating the turn-on time of the power switch device according to the restriction conditions of different intervals.

[0076] Specifically, combined Figure 2 As shown, in different intervals, the on-time (Ton) is updated according to the restriction conditions corresponding to the different intervals, so that the on-time (Ton) can always be greater than the shortest on-time (Tmin) required by the power switch device itself.

[0077] In this optional embodiment, the turn-on time interval is divided according to the shortest turn-on time, PWM cycle time and dead time of the power switch device, and the turn-on time is updated according to the restriction conditions of different intervals. This can ensure that the turn-on time acting on the power switch device is always greater than the shortest turn-on time required by the power switch device itself, and the PWM wave output signal will not have a pulse signal with a turn-on time less than the shortest turn-on time, thereby avoiding the high voltage spike and high frequency oscillation problems caused by too short turn-on pulses, thereby protecting the power switch device.

[0078] Optionally, determining the interval of the on-time of the power switch device according to the shortest on-time of the power switch device, the PWM cycle time and the dead time includes:

[0079] When the turn-on time of the power switch device is less than the dead time, it is determined that the turn-on time of the power switch device is in a first interval.

[0080] Specifically, when the on time (Ton) is less than the dead time (Td), the on time is defined as being in the first interval.

[0081] When the turn-on time of the power switch device is greater than or equal to the dead time and less than the sum of the dead time and a preset duration, it is determined that the turn-on time of the power switch device is in the second interval.

[0082] Specifically, when 0us≤on time (Ton)-dead time (Td)<preset duration, it is defined that the on time is in the second interval.

[0083] Among them, the preset time length can be 1us.

[0084] When the on-time of the power switch device is greater than or equal to the sum of the dead time and the preset duration, and less than the sum of the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the third interval.

[0085] Specifically, when the preset time length ≤ the on time (Ton) - the dead time (Td) < the shortest on time (Tmin), it is defined that the on time is in the third interval.

[0086] When the on-time of the power switch device is greater than or equal to the sum of the dead time and the shortest on-time, and less than or equal to the difference between the PWM cycle time and the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the fourth interval.

[0087] Specifically, when the shortest on-time (Tmin)≤on-time (Ton)-dead time (Td)≤PWM cycle time (Tpwm)-2*dead time (Td)-shortest on-time (Tmin), the on-time is defined as being in the fourth interval.

[0088] When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the shortest on-time, and is less than the difference between the PWM cycle time, the dead time and the preset duration, it is determined that the on-time of the power switch device is in the fifth interval.

[0089] Specifically, when dead time (Td)+preset time length<PWM cycle time (Tpwm)-on time (Ton)≤dead time (Td)+shortest on time (Tmin), it is defined that the on time is in the fifth interval.

[0090] When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the preset duration, and less than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the sixth interval.

[0091] Specifically, when the dead time (Td)<PWM cycle time (Tpwm)-on time (Ton)≤dead time (Td)+preset duration, it is defined that the on time is in the sixth interval.

[0092] When the on-time of the power switch device is greater than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the seventh interval.

[0093] Specifically, when the PWM cycle time (Tpwm)-the on time (Ton)<the dead time (Td), it is defined that the on time is in the seventh interval.

[0094] Among them, the dead time (Td) is greater than the shortest turn-on time (Tmin); the shortest turn-on time (Tmin) is usually determined by the sum of the turn-on delay time, the rise time, the turn-off delay time and the fall time under the worst ambient temperature condition; the dead time (Td) is usually determined by subtracting the minimum turn-on delay time from the maximum turn-off delay time to determine the first value, and by subtracting the minimum drive signal transmission delay time from the maximum drive signal transmission delay time to determine the second value, and the first value and the second value are added and multiplied by a safety margin (empirical value, usually 1.2).

[0095] In this optional embodiment, the turn-on time interval is divided according to the shortest turn-on time, PWM cycle time and dead time of the power switching device, thereby avoiding the high voltage spike and high frequency oscillation problems caused by too short turn-on pulses, thereby protecting the power switching device.

[0096] Optionally, updating the turn-on time of the power switch device according to the restriction conditions in different intervals includes:

[0097] When the on-time of the power switch device is in the first interval, the on-time of the power switch device is maintained unchanged.

[0098] Specifically, when the turn-on time of the power switch device is in the first interval, the turn-on time (Ton) remains unchanged.

[0099] When the on-time of the power switch device is in the second interval, the on-time of the power switch device is updated to the dead time.

[0100] Specifically, when the on-time of the power switch device is in the second interval, the updated on-time (Ton)=the dead time (Td).

[0101] When the on-time of the power switch device is in the third interval, the on-time of the power switch device is updated to the sum of the dead time and the shortest on-time.

[0102] Specifically, when the on-time of the power switch device is in the third interval, the updated on-time (Ton)=dead time (Td)+shortest on-time (Tmin).

[0103] When the on-time of the power switch device is in the fourth interval, the on-time of the power switch device is maintained unchanged.

[0104] Specifically, when the turn-on time of the power switch device is in the fourth interval, the turn-on time (Ton) remains unchanged.

[0105] When the on-time of the power switch device is in the fifth interval, the on-time of the power switch device is updated to the difference between the PWM cycle time, the dead time and the shortest on-time.

[0106] Specifically, when the on-time of the power switch device is in the fifth interval, the updated on-time (Ton)=PWM cycle time (Tpwm)-dead time (Td)-shortest on-time (Tmin).

[0107] When the on-time of the power switch device is in the sixth interval, the on-time of the power switch device is updated to the difference between the PWM cycle time and the dead time.

[0108] Specifically, when the on-time of the power switch device is in the sixth interval, the updated on-time (Ton)=PWM cycle time (Tpwm)-dead time (Td).

[0109] When the on-time of the power switch device is in the seventh interval, the on-time of the power switch device is maintained unchanged.

[0110] Specifically, when the turn-on time of the power switch device is in the seventh interval, the turn-on time (Ton) remains unchanged.

[0111] In this optional embodiment, the turn-on time of the power switch device is updated according to the restriction conditions of different intervals, thereby avoiding the high voltage spike and high frequency oscillation problems caused by too short turn-on pulses, thereby playing a role in protecting the power switch device.

[0112] Optionally, determining the output duty cycle according to the updated on-time includes:

[0113] The output duty cycle is determined according to a ratio of the updated on-time to the PWM cycle time.

[0114] Specifically, the output duty ratio is determined according to the ratio of the updated on time and the PWM cycle time, that is, the output duty ratio (Duty2)=on time (Ton) / PWM cycle time (Tpwm).

[0115] In this optional embodiment, the output duty cycle is determined according to the ratio of the updated turn-on time and the PWM cycle time, and the turn-on time of the power switching device can be controlled according to the output duty cycle, avoiding the high voltage spikes and high-frequency oscillation problems caused by too short turn-on pulses, thereby protecting the power switching device.

[0116] Optionally, before determining the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device, the control method of the motor controller further includes:

[0117] S010: Determine the requested current based on the motor speed, motor torque, motor temperature and bus voltage.

[0118] Specifically, combined Figure 3 As shown, firstly, the requested currents of the D-axis and the Q-axis are determined by looking up a table according to the motor speed, motor torque, motor temperature and bus voltage.

[0119] S020: Transform the requested current to determine a three-phase voltage.

[0120] Specifically, combined Figure 3 As shown, the requested current can be subjected to PID control, inverse Park transformation and inverse Clarke transformation to obtain UVW three-phase voltages.

[0121] S030: Determine the initial duty cycle according to the three-phase voltage, the reference voltage and the bus voltage.

[0122] Specifically, combined Figure 3 As shown, the reference voltage is subtracted from the three-phase voltage UVW, and then divided by the bus voltage to obtain the duty cycle of the three phases UVW, that is, the initial duty cycle. Among them, the U phase duty cycle is determined by the duty cycle of the power switches Q1 and Q4. Assuming that when Q1 is turned on, the U phase outputs a positive DC bus voltage, if the duty cycle of Q1 is D1 and the duty cycle of Q4 is 1-D1, then the U phase duty cycle is D1, and the V phase duty cycle and W phase duty cycle can be obtained by analogy.

[0123] The range of the initial duty cycle is [0, 1].

[0124] The reference voltage includes a neutral point voltage, that is, an average value of instantaneous values ​​of the three-phase voltages. For example, the reference voltage is obtained by taking the average value of the maximum value and the minimum value of the three-phase voltages.

[0125] In this optional embodiment, after the requested current is determined based on the motor speed, motor torque, motor temperature and bus voltage, the three-phase voltage is obtained through transformation, and the initial duty cycle is determined in combination with the reference voltage and the bus voltage, thereby determining the turn-on time of the power switching device.

[0126] Optionally, transforming the requested current to determine the three-phase voltage includes:

[0127] S021: Convert the requested current into a requested voltage according to PID control.

[0128] Specifically, combined Figure 4 As shown, according to PID control, the requested currents of the D-axis and the Q-axis are converted into requested voltages of the D-axis and the Q-axis.

[0129] S022: Perform inverse Park transformation and inverse Clarke transformation on the requested voltage in sequence to determine the three-phase voltage.

[0130] Specifically, the UVW three-phase voltages can be obtained by performing inverse Park transformation and inverse Clarke transformation on the requested voltages of the D axis and the Q axis.

[0131] In this optional embodiment, PID control, inverse Park transformation and inverse Clarke transformation are performed on the requested current to achieve conversion of the requested current into UVW three-phase voltage.

[0132] like Figure 5 As shown, a control device 500 of a motor controller provided by an embodiment of the present invention includes:

[0133] An initial module 510, configured to determine a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device;

[0134] An updating module 520, configured to update the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device, so that the updated on-time is greater than the shortest on-time;

[0135] The driving module 530 is used to determine an output duty cycle according to the updated turn-on time, and drive the power switch device according to the output duty cycle.

[0136] like Figure 6 As shown, a motor controller 600 provided in an embodiment of the present invention includes a memory 610 and a processor 620; the memory 610 is used to store a computer program; the processor 620 is used to implement the control method of the motor controller as described above when executing the computer program.

[0137] In other words, a motor controller 600 includes a memory 610 and a processor 620 coupled to the memory 610; the memory 610 is configured to store a computer program; and the processor 620 is configured to perform the following operations when executing the computer program:

[0138] Determining a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device;

[0139] Updating the on time of the power switch device according to the shortest on time, PWM cycle time and dead time of the power switch device so that the updated on time is greater than the shortest on time;

[0140] An output duty cycle is determined according to the updated on-time, and the power switch device is driven according to the output duty cycle.

[0141] A vehicle provided by an embodiment of the present invention includes the motor controller 600 as described above.

[0142] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control method of the motor controller as described above is implemented.

[0143] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:

[0144] Determining a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device;

[0145] Updating the on time of the power switch device according to the shortest on time, PWM cycle time and dead time of the power switch device so that the updated on time is greater than the shortest on time;

[0146] An output duty cycle is determined according to the updated on-time, and the power switch device is driven according to the output duty cycle.

[0147] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0148] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A control method for a motor controller, characterized in that: include: Determining a turn-on time of the power switch device according to an initial duty cycle of the power switch device and a PWM cycle time of the power switch device; Updating the on time of the power switch device according to the shortest on time, PWM cycle time and dead time of the power switch device so that the updated on time is greater than the shortest on time; An output duty cycle is determined according to the updated on-time, and the power switch device is driven according to the output duty cycle.

2. The control method of the motor controller according to claim 1, characterized in that: The updating of the on time of the power switch device according to the shortest on time, PWM cycle time and dead time of the power switch device comprises: Determine the interval in which the on time of the power switch device is located according to the shortest on time of the power switch device, the PWM cycle time and the dead time; The turn-on time of the power switch device is updated according to the restriction conditions of different intervals.

3. The control method of the motor controller according to claim 2, characterized in that: The determining of the interval of the on-time of the power switch device according to the shortest on-time of the power switch device, the PWM cycle time and the dead time includes: When the on-time of the power switch device is less than the dead time, determining that the on-time of the power switch device is in a first interval; When the on-time of the power switch device is greater than or equal to the dead time and less than the sum of the dead time and a preset duration, determining that the on-time of the power switch device is in the second interval; When the on-time of the power switch device is greater than or equal to the sum of the dead time and the preset duration, and less than the sum of the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the third interval; When the on-time of the power switch device is greater than or equal to the sum of the dead time and the shortest on-time, and less than or equal to the difference between the PWM cycle time and the dead time and the shortest on-time, it is determined that the on-time of the power switch device is in the fourth interval; When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the shortest on-time, and is less than the difference between the PWM cycle time, the dead time and the preset duration, it is determined that the on-time of the power switch device is in the fifth interval; When the on-time of the power switch device is greater than or equal to the difference between the PWM cycle time, the dead time and the preset time length, and is less than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the sixth interval; When the on-time of the power switch device is greater than the difference between the PWM cycle time and the dead time, it is determined that the on-time of the power switch device is in the seventh interval.

4. The control method of the motor controller according to claim 3, characterized in that: The updating of the turn-on time of the power switch device according to the restriction conditions of different intervals includes: When the on-time of the power switch device is in the first interval, maintaining the on-time of the power switch device unchanged; When the on-time of the power switch device is in the second interval, updating the on-time of the power switch device to the dead time; When the on-time of the power switch device is in the third interval, updating the on-time of the power switch device to the sum of the dead time and the shortest on-time; When the on-time of the power switch device is in the fourth interval, maintaining the on-time of the power switch device unchanged; When the on-time of the power switch device is in the fifth interval, updating the on-time of the power switch device to the difference between the PWM cycle time, the dead time and the shortest on-time; When the on-time of the power switch device is in the sixth interval, updating the on-time of the power switch device to the difference between the PWM cycle time and the dead time; When the on-time of the power switch device is in the seventh interval, the on-time of the power switch device is maintained unchanged.

5. The control method of the motor controller according to claim 1, characterized in that: Determining the output duty cycle according to the updated on-time includes: The output duty cycle is determined according to a ratio of the updated on-time to the PWM cycle time.

6. The control method of the motor controller according to any one of claims 1 to 5, characterized in that: Before determining the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device, the method further includes: Determine the requested current based on the motor speed, motor torque, motor temperature and bus voltage; transforming the requested current to determine three-phase voltages; The initial duty cycle is determined according to the three-phase voltages, a reference voltage and the bus voltage.

7. The control method of the motor controller according to claim 6, characterized in that: The transforming the requested current to determine the three-phase voltage comprises: converting the requested current into a requested voltage according to PID control; The request voltage is sequentially subjected to inverse Park transformation and inverse Clarke transformation to determine the three-phase voltage.

8. A control device for a motor controller, characterized in that: include: An initial module, used to determine the turn-on time of the power switch device according to the initial duty cycle of the power switch device and the PWM cycle time of the power switch device; An updating module, configured to update the on-time of the power switch device according to the shortest on-time, PWM cycle time and dead time of the power switch device, so that the updated on-time is greater than the shortest on-time; A driving module is used to determine an output duty cycle according to the updated turn-on time, and drive the power switch device according to the output duty cycle.

9. A motor controller, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the control method of the motor controller according to any one of claims 1 to 7 when executing the computer program.

10. A vehicle, characterized in that: Includes the motor controller as described in claim 9.

Citation Information

Cited By

  • Current correction circuit and method for motor driving and driving circuit

    CN121000106A