Motor control method, device and system and vehicle

By calculating the duty cycle of the PWM wave according to the switching period in a three-phase bridge circuit, the double control of the motor is achieved, and the problem of reducing the motor control effect at high speed is solved, the control effect is improved and engineering practice is simplified.

CN118984104APending Publication Date: 2024-11-19SHANGHAI JUSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310522551.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-09
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

At high speeds, the motor control effect is reduced. Existing methods such as increasing the switching frequency of power switching devices will increase losses, or using complex vector control analysis, which is difficult to engineering practice.

Method used

In a three-phase bridge circuit, the duty cycle of the PWM wave is calculated according to the first and second half cycles of the switching cycle, and the corresponding PWM signal is generated, so as to achieve the single electrical cycle without changing the switching frequency. Double control of the motor.

Benefits of technology

It improves the control effect of the motor in the high speed range, is simple and easy to engineering, and avoids the defects of increased switching losses and complex calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984104A_ABST
    Figure CN118984104A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of motor control, in particular to a motor control method, device and system and a vehicle, and the control method comprises the steps: determining the first duty ratio of the PWM wave of any phase circuit in the lower half period when the starting moment of the upper half period in the current switching period is reached, and further determining the first duty ratio of the PWM wave of any phase circuit in the lower half period when the starting moment of the lower half period is reached. The method comprises the steps of determining a first duty ratio of a PWM wave in a first switching period, generating a PWM signal based on the first duty ratio to control a three-phase bridge circuit to drive a motor, determining a second duty ratio of the PWM wave in an upper half period in a next switching period, and further, generating a PWM signal based on the second duty ratio to control the three-phase bridge circuit to drive the motor when a starting moment of the upper half period in the next switching period is reached. Thus, under the condition that the switching frequency of the power switching device is not changed, PWM waves can be sent twice in one switching period, the number of times of control over the motor in a single electric period is doubled, and therefore the control effect of the motor in the high rotating speed range can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control technology, and in particular to a motor control method, device, system and vehicle. Background Art

[0002] Pulse Width Modulation (PWM) is a very effective technology that uses the digital output of a microprocessor to control analog circuits. PWM technology is widely used in motor control. As various motor application scenarios continue to put forward higher requirements, the motor speed range is also constantly increasing, and the number of electrical cycles of the three-phase sinusoidal current wave per unit time increases. Under the condition that the PWM waveform frequency remains unchanged, this will lead to a significant reduction in the number of motor controls in a single electrical cycle, and the effect of motor control will be significantly reduced.

[0003] Generally, the most direct way to solve the above problems is to increase the frequency of the PWM waveform, that is, to increase the switching frequency of the power switching device, so that the number of controls in a single electrical cycle will increase. However, this will lead to an increase in the switching loss of the power switching device, and due to the limitations of the characteristics of the power switching device, the increase in the switching frequency is limited and cannot fully achieve the expected effect. Another solution is to propose an analysis based on the principle of space vector control, but the analysis and calculation process is too complicated and not conducive to engineering practice. Therefore, at present, there is an urgent need for a new method to improve the control effect of the motor at high speed.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of this, the embodiments of the present application at least provide a method, device, system and vehicle for controlling a motor, which can improve the control effect of the motor in a high speed range without changing the switching frequency of the power switching device.

[0006] This application mainly includes the following aspects:

[0007] In a first aspect, an embodiment of the present application provides a method for controlling a motor, wherein the motor is driven by a three-phase bridge circuit, and the method comprises: when the starting time of the upper half cycle in the current switching cycle is reached, determining a first duty cycle of a PWM wave of any phase circuit in the lower half cycle of the current switching cycle; when the starting time of the lower half cycle in the current switching cycle is reached, generating a PWM signal based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and determining a second duty cycle of the PWM wave of the corresponding phase circuit in the upper half cycle of the next switching cycle; when the starting time of the upper half cycle in the next switching cycle is reached, generating a PWM signal based on the second duty cycle to control the three-phase bridge circuit to drive the motor.

[0008] In a second aspect, an embodiment of the present application further provides a control device for a motor, wherein the motor is driven by a three-phase bridge circuit, and the device comprises: a first determination module, for determining a first duty cycle of a PWM wave of any phase circuit in the second half of the current switching cycle when the starting time of the first half of the current switching cycle is reached; a second determination module, for generating a PWM signal based on the first duty cycle to control the three-phase bridge circuit to drive the motor when the starting time of the second half of the current switching cycle is reached, and determining a second duty cycle of the PWM wave of the corresponding phase circuit in the first half of the next switching cycle; and a control module, for generating a PWM signal based on the second duty cycle to control the three-phase bridge circuit to drive the motor when the starting time of the first half of the next switching cycle is reached.

[0009] In a third aspect, an embodiment of the present application further provides a motor control system, comprising the motor control device, the three-phase bridge circuit and the motor described in the second aspect; wherein the motor control device comprises a microcontroller, the microcontroller comprises six output pins, each pin is connected to the control end of a power switching device of the three-phase bridge circuit, and the three-phase bridge circuit is electrically connected to the motor.

[0010] In a fourth aspect, an embodiment of the present application further provides an electric vehicle, comprising the motor control system described in the third aspect.

[0011] In a fifth aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the motor control method described in the first aspect or any possible implementation manner of the first aspect.

[0012] In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the motor control method described in the first aspect or any possible implementation manner of the first aspect are executed.

[0013] The motor control method, device, system and vehicle provided in the embodiments of the present application adopt a method of determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle when the starting time of the first half cycle in the current switching cycle is reached, and then, when the starting time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the starting time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. Compared with the scheme of increasing the switching frequency of the power switching device in the prior art, it will result in The switching loss of the power switching device increases, and due to the limitations of the characteristics of the power switching device, the increase in the switching frequency is limited and the expected effect cannot be fully achieved. In comparison, the present application can achieve double PWM wave transmission in one switching cycle without changing the switching frequency of the power switching device, thereby doubling the number of motor controls in a single electrical cycle, thereby improving the control effect of the motor in a high speed range; compared with the prior art solution that uses the principle of vector control for analysis, but the analysis and calculation process is too complicated and not conducive to engineering practice, the present application can not only improve the control effect of the motor in a high speed range, but also is very easy to practice in engineering due to its simple control method.

[0014] Furthermore, in the control method of the motor provided by the embodiment of the present application, the three-phase bridge circuit includes six power switch devices, and each phase circuit includes an upper bridge power switch device and a lower bridge power switch device; wherein, the first generation time of the rising edge of the upper bridge power switch device is set by the first timer, the second generation time of the falling edge of the upper bridge power switch device is set by the second timer, the third generation time of the falling edge of the lower bridge power switch device is set by the third timer, and the fourth generation time of the rising edge of the lower bridge power switch device is set by the fourth timer. In this way, by setting the generation time of the rising edge and the falling edge of each power switch device respectively by different timers, it is possible to generate corresponding PWM signals in the upper half cycle and the lower half cycle of each switching cycle to control the motor, and double the number of times the motor is controlled in a single electrical cycle, thereby improving the control effect of the motor in a high speed range.

[0015] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of the structure of a motor control system provided in an embodiment of the present application is shown;

[0018] Figure 2 A flow chart of a motor control method provided by an embodiment of the present application is shown;

[0019] Figure 3 shows a PWM waveform diagram of any phase circuit provided in an embodiment of the present application;

[0020] Figure 4 A flow chart showing another motor control method provided in an embodiment of the present application;

[0021] Figure 5 A flow chart showing another motor control method provided in an embodiment of the present application;

[0022] Figure 6 A functional module diagram of a motor control device provided in an embodiment of the present application is shown;

[0023] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application is shown;

[0024] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0026] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0027] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are given in combination with the specific application scenario "motor control". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0028] The following methods, devices, systems, vehicles, electronic devices or computer-readable storage media of the embodiments of the present application can be applied to any scenario requiring motor control. The embodiments of the present application are not limited to specific application scenarios. Any control methods, devices, systems and vehicle solutions using the motors provided in the embodiments of the present application are within the protection scope of the present application.

[0029] It is worth noting that before the present application was proposed, a solution of increasing the switching frequency of the power switching device in a single electrical cycle was provided to address the technical problem that the number of motor controls in a single electrical cycle was significantly reduced and the effect of motor control was significantly reduced due to the increase in motor speed. However, increasing the switching frequency of the power switching device will not only increase the switching loss of the power switching device, which is not conducive to the overall loss and heat dissipation of the system, but also increase the proportion of dead time under the same PWM duty cycle, increase the nonlinearity of motor control, and due to the limitations of the characteristics of the power switching device, the increase in switching frequency is limited and cannot fully achieve the expected effect. There are also solutions that use the space vector control principle for analysis without changing the switching frequency of the power switching device, which is accompanied by complex mathematical calculation processes and is not conducive to engineering practice.

[0030] In view of the above problems, the embodiment of the present application determines the first duty cycle of the PWM wave of any phase circuit in the second half cycle when the starting time of the first half cycle in the current switching cycle is reached, and then, when the starting time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and the second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the starting time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. The present application analyzes the PWM waveform and directly modifies and adjusts the working state of the PWM wave generation module. In this way, without changing the switching frequency of the power switching device, it is possible to achieve double PWM wave generation in one switching cycle, so that the number of motor controls in a single electrical cycle is doubled, thereby improving the control effect of the motor in a high speed range.

[0031] To facilitate the understanding of the present application, the technical solution provided by the present application is described in detail below in conjunction with specific embodiments.

[0032] Figure 1 The structure diagram of a motor control system 1 provided in an embodiment of the present application is shown, wherein the motor control system 1 includes Figure 6 The motor control device, three-phase bridge circuit 20 and motor (M) 30 shown in the figure, the motor control device can be a microcontroller (MCU) 10, the microcontroller 10 includes six output pins, each pin is connected to the control end of a power switching device of the three-phase bridge circuit 20, and the three-phase bridge circuit 20 is electrically connected to the motor 30.

[0033] It can be understood that the microcontroller 10 outputs six PWM signals to control the three-phase bridge circuit 20, thereby the three-phase bridge circuit 20 controls the motor 30, thereby forming a motor control system 1. The three-phase bridge circuit 20 is composed of six power switch devices 21-26, wherein the A-phase circuit includes an upper bridge power switch device 21 and a lower bridge power switch device 22, and the B-phase and C-phase circuits are the same as the A-phase circuit and will not be described again.

[0034] It should be noted that, usually, in the control method of the motor 30, most of them are at the starting point or the middle point of the PWM cycle, the duty cycle requirement of the next PWM cycle is calculated and the corresponding PWM signal is generated and given to the three-phase bridge circuit 20. Specifically, each calculation will output the constantly changing PWM waveform duty cycle requirement according to a specific rule, and according to the requirement, the upper bridge and the lower bridge of each phase will output the PWM signal that meets the requirement in the next PWM cycle, and this will be repeated continuously. Under the control of the above continuous PWM signal, the three-phase bridge circuit 20 composed of six power switching devices will flow through the three-phase sinusoidal current wave to realize energy exchange with the motor 30 to control the motor 30. The above method calculates the PWM duty cycle only once in one PWM cycle, that is, the motor 30 is controlled only once in one PWM cycle.

[0035] Here, one cycle of the three-phase sinusoidal current wave is an electrical cycle, and each electrical cycle contains several PWM cycles, that is, the power switch device completes several switching actions, the motor 30 control algorithm runs several times, and the duty cycle is calculated several times. The more calculations are made, the better the control effect. Among them, the above-mentioned one PWM cycle is equivalent to a switching cycle in the present application. In one switching cycle, each power switch device in the three-phase bridge circuit 20 is only turned on and off once.

[0036] However, as the speed of the motor 30 increases, the number of electrical cycles per unit time increases, and the time of a single electrical cycle becomes shorter. When the frequency of the PWM signal (the switching frequency of the power device) remains unchanged, the number of controls in a single electrical cycle decreases, resulting in a worse control effect of the motor 30. In related control methods, increasing the switching frequency will lead to increased switching losses, and the proportion of dead time in a PWM cycle will increase.

[0037] Based on this, in order to address the problem that the control effect of the motor 30 deteriorates as the speed of the motor 30 increases, the embodiment of the present application can implement a solution of sending PWM waves twice within a switching cycle without changing the switching frequency of the power switching device, thereby doubling the number of controls on the motor 30 within a single power cycle, thereby improving the control effect of the motor 30 within a high speed range. For a detailed implementation plan, see the content of the control method of the motor 30 below.

[0038] Figure 2 A flow chart of a motor control method provided in an embodiment of the present application, Figure 3The PWM waveform diagram of any phase circuit provided by the embodiment of the present application is shown. From the waveform shape analysis, the PWM waveform is divided into two parts, the upper half cycle a and the lower half cycle b, in the middle of the original PWM cycle. The upper half cycle a and the lower half cycle b appear alternately. For the power device, the switching frequency does not change, that is, the upper half cycle a and the lower half cycle b constitute a switching cycle. Figure 2 As shown, the motor control method provided in the embodiment of the present application is applied to a microcontroller, and the method comprises the following steps:

[0039] S201: When the start time of the first half cycle in the current switching cycle is reached, determine the first duty cycle of the PWM wave of any phase circuit in the second half cycle in the current switching cycle.

[0040] In the specific implementation, Figure 3 As shown, taking the A-phase circuit as an example, when the starting time of the upper half cycle a1 in the current switching cycle is reached, the first duty cycle d1 of the PWM wave of the A-phase circuit in the lower half cycle b1 in the current switching cycle is calculated once, wherein the starting time of the upper half cycle in the current switching cycle is equivalent to the starting time of the original PWM cycle, that is, the starting point.

[0041] It should be noted that the upper half cycle and the lower half cycle in the same switching cycle in the present application are different from the upper half cycle and the lower half cycle of the original PWM cycle. The upper half cycle and the lower half cycle of the original PWM cycle are from the same PWM cycle, so the original PWM cycle has only one duty cycle, that is, the duty cycles corresponding to the upper half cycle and the lower half cycle of the original PWM cycle are the same. Since the motor control method of the present application calculates the duty cycle of the PWM wave at the start time of the upper half cycle of the switching cycle and the start time of the lower half cycle, respectively, the duty cycles calculated twice will vary, so the upper half cycle and the lower half cycle in the same switching cycle of the present application actually correspond to half cycles of different PWM cycles, that is, T 开关周期 =T PWM1 +T PWM2 , PWM1 is the first half cycle a of the switching cycle, PWM2 is the second half cycle b of the switching cycle, and the duty cycle of the first half cycle a and the duty cycle of the second half cycle b of the same switching cycle are different. Usually, when the switching frequency is fixed, T PWM1 =T PWM2 ; When the switching frequency is a variable frequency, T PWM1 With T PWM2 May be different.

[0042] S202: When the start time of the second half cycle in the current switching cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the corresponding phase circuit in the first half cycle of the next switching cycle is determined.

[0043] In a specific implementation, when the start time of the second half cycle in the current switching cycle is reached, the second duty cycle d2 of the PWM wave of any phase circuit in the first half cycle of the next switching cycle is calculated, and at the same time, a PWM signal is generated based on the first duty cycle d1 of the PWM wave of each phase circuit in the second half cycle of the current switching cycle to control the three-phase bridge circuit to drive the motor. Among them, the start time of the second half cycle in the current switching cycle is equivalent to the middle time of the original PWM cycle, that is, the middle point.

[0044] S203: When the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor.

[0045] In an embodiment of the present application, when the start time of the first half cycle of the next switching cycle is reached, a PWM signal is generated based on the second duty cycle d2 of the PWM wave of each phase circuit in the first half cycle of the next switching cycle to control the three-phase bridge circuit to drive the motor.

[0046] It can be understood that the motor control method of the present application can be understood as dividing the original PWM cycle into two new cycles (corresponding to the upper half cycle and the lower half cycle), and calculating the duty cycle once for the upper half cycle and the lower half cycle respectively, so as to achieve the control of the motor twice in one switching cycle without changing the switching frequency of the power device, and repeat this process in each switching cycle. In this way, compared with related schemes, the number of motor control times per unit time can be doubled, thereby improving the motor control effect at high speed.

[0047] In one example, for example Figure 3 In the embodiment, if the current switching cycle is 150us, the upper half cycle a1 and the lower half cycle b1 of the current switching cycle are both 75us, the pulse width time of the upper half cycle a1 is 37.5us, the duty cycle of the upper half cycle a = 37.5 / 75 = 50%, the pulse width time of the lower half cycle b1 is 50us, and the duty cycle of the lower half cycle b = 50 / 75 = 75%.

[0048] In an embodiment of the present application, when the start time of the first half cycle in the current switching cycle is reached, the first duty cycle of the PWM wave of any phase circuit in the second half cycle is determined, and then, when the start time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and the second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. In this way, the present application can achieve double PWM wave generation in one switching cycle without changing the switching frequency of the power switching device, so that the number of times the motor is controlled in a single electrical cycle is doubled, thereby improving the control effect of the motor in a high speed range.

[0049] In one possible implementation, the three-phase bridge circuit includes six power switching devices, and each phase circuit includes an upper bridge power switching device and a lower bridge power switching device; wherein, the first generation time of the rising edge of the upper bridge power switching device is set by a first timer, the second generation time of the falling edge of the upper bridge power switching device is set by a second timer, the third generation time of the falling edge of the lower bridge power switching device is set by a third timer, and the fourth generation time of the rising edge of the lower bridge power switching device is set by a fourth timer.

[0050] In a specific implementation, the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switch device in each phase circuit, the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switch device are all set by different timers, that is, through the timing moment of the timer, so that at the corresponding moment, a PWM signal can be generated to control the three-phase bridge circuit to drive the motor. For example, when the starting moment of the second half cycle in the current switching cycle is reached, the timer corresponding to each power switch device is set based on the first duty cycle of the PWM wave of the second half cycle in the current switching cycle calculated in advance, and the set timers are used to control the opening time and the closing time of the power switch device accordingly, so as to generate a PWM signal to control the three-phase bridge circuit to drive the motor.

[0051] Figure 4 A flow chart of another motor control method provided in an embodiment of the present application is shown. Figure 4 As shown, the control method of the motor comprises the following steps:

[0052] S401: When the start time of the first half cycle in the current switching cycle is reached, determine the first duty cycle of the PWM wave of any phase circuit in the second half cycle in the current switching cycle.

[0053] S402: Based on the third duty cycle of the PWM wave in the upper half of the current switching cycle and the first duty cycle, calculate the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switching device of the corresponding phase circuit in the lower half of the current switching cycle, as well as the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switching device.

[0054] In a specific implementation, when determining the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switching device in the second half of the current switching cycle, as well as the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switching device, the PWM wave of the first half of the current switching cycle can be determined based on the third duty cycle of the PWM wave of the first half of the current switching cycle, and the above-mentioned generation time can be calculated based on the first duty cycle of the PWM wave of the second half of the current switching cycle.

[0055] S403: When the starting time of the second half cycle in the current switching cycle is reached, the first timer and the third timer are controlled to be in an invalid working state, and the second timer and the fourth timer are controlled to be in a valid working state, a PWM signal is generated to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the corresponding phase circuit in the first half cycle of the next switching cycle is determined.

[0056] In a specific implementation, for the second half of the current switching cycle, the first timer and the third timer are set to an invalid working state, that is, the rising edge of the upper bridge and the falling edge of the lower bridge do not appear, and the second timer and the fourth timer are set to corresponding timing moments according to the requirements of the first duty cycle, so that the requirements for the PWM shape of the second half of the current switching cycle are met.

[0057] S404: When the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor.

[0058] Among them, the description of S401 and S404 can refer to the description of S201 and S204, and can achieve the same technical effect, which is not repeated here.

[0059] Figure 5 A flow chart of another motor control method provided in an embodiment of the present application is shown. Figure 5 As shown, the control method of the motor comprises the following steps:

[0060] S501: When the start time of the first half cycle in the current switching cycle is reached, determine the first duty cycle of the PWM wave of any phase circuit in the second half cycle in the current switching cycle.

[0061] S502: When the start time of the second half cycle in the current switching cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the first half cycle of the corresponding phase circuit in the next switching cycle is determined.

[0062] S503: Calculate, based on the first duty cycle and the second duty cycle, a first generation time of a rising edge and a second generation time of a falling edge of an upper bridge power switch device of a corresponding phase circuit in an upper half cycle of the next switching cycle, as well as a third generation time of a falling edge and a fourth generation time of a rising edge of a lower bridge power switch device.

[0063] In a specific implementation, when calculating the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switching device in the upper half of the next switching cycle, as well as the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switching device, the PWM wave of the lower half of the current switching cycle can be determined based on the first duty cycle of the PWM wave of the lower half of the current switching cycle, and the above-mentioned generation time can be calculated based on the second duty cycle of the PWM wave of the upper half of the next switching cycle.

[0064] S504: When the start time of the first half cycle in the next switching cycle is reached, the second timer and the fourth timer are controlled to be in an invalid working state, and the first timer and the third timer are controlled to be in a valid working state, and a PWM signal is generated to control the three-phase bridge circuit to drive the motor.

[0065] In a specific implementation, for the first half of the next switching cycle, the second timer and the fourth timer are set to an invalid working state, that is, the falling edge of the upper bridge and the rising edge of the lower bridge do not appear, and the first timer and the third timer are set to corresponding timing moments according to the requirements of the second duty cycle, so that the requirements for the PWM shape of the first half of the next switching cycle are met.

[0066] Among them, the description of S501 and S502 can refer to the description of S201 and S202, and can achieve the same technical effect, which is not repeated here.

[0067] In a possible implementation manner, the timing times of the upper half cycle and the lower half cycle in the switching cycle are both set by a fifth timer.

[0068] In a specific implementation, if the switching frequency required by the motor is a fixed frequency, the upper half cycle and the lower half cycle in any switching cycle are the same. In this case, since the cycle length of the upper half cycle and the lower half cycle are the same, the timing time is the same, and the same timer can be used for timing. Moreover, since the three-phase cycle of the three-phase bridge circuit is the same, the timer can be shared by the three phases, which can greatly reduce the number of timers used and reduce the difficulty of setting the timing moment.

[0069] In addition, if the switching frequency required by the motor is a variable frequency, the cycle lengths of each switching cycle may be different, and the upper half cycle and the lower half cycle in the same switching cycle may also be different. When the cycle lengths of the upper half cycle and the lower half cycle in the same switching cycle are different, although the timing times are different, since the timer usage time does not overlap, the same timer can also be used for timing, which can save resources.

[0070] In another possible implementation, if the upper half cycle and the lower half cycle in any switching cycle are different, the timing time of the upper half cycle in the switching cycle is set by the sixth timer, and the timing time of the lower half cycle in the switching cycle is set by the seventh timer.

[0071] In a specific implementation, if the switching frequency required by the motor is a variable frequency, the cycle lengths of each switching cycle may be different, and the upper half cycle and the lower half cycle in the same switching cycle may also be different. In the case where the cycle lengths of the upper half cycle and the lower half cycle in the same switching cycle are different, the timing times are different, and different timers can be used for timing respectively. In this way, the timing requirements of the motor can be met.

[0072] It can be understood that the present application corresponds to a first timer, a second timer, a third timer and a fourth timer for each phase of the three phases ABC, and the above timers are used to control the PWM waveform duty cycle of each phase. When the upper half cycle and the lower half cycle are the same in any switching cycle, the fifth timer is used to control the switching cycle and the upper half cycle and the lower half cycle; when the upper half cycle and the lower half cycle are different in any switching cycle, the switching cycle and the upper half cycle and the lower half cycle are controlled by different timers respectively.

[0073] It should be noted that the motor control method provided by the present application can realize setting the working state of each timer twice within a switching cycle of the power device, and running the motor control algorithm at the start time of the upper half cycle and the lower half cycle of any switching cycle, which is equivalent to running the motor control algorithm at the starting point and the middle point of the original PWM waveform, and each time the algorithm will output the duty cycle requirement, realize the above-mentioned adjustment of the working state of each timer, and realize the alternating appearance of the upper half cycle and the lower half cycle PWM waveform. In this way, the present application can double the number of motor control times per unit time without increasing the switching frequency of the power device, increase the number of controls within a single electrical cycle, and thus improve the control effect of the motor under high speed state.

[0074] In a possible implementation manner, the falling edge of each power switch device corresponds to a shutdown state, and the rising edge of each power switch device corresponds to a switch-on state.

[0075] In a specific implementation, usually, the power switch device is turned on at the rising edge of the PWM signal and turned off at the falling edge, and vice versa.

[0076] In a possible implementation manner, during the motor control process, when any one of the upper bridge power switch device and the lower bridge power switch device of each phase circuit is turned on, the other is turned off.

[0077] In the specific implementation, the upper bridge and the lower bridge cannot be turned on at the same time during the motor control process, otherwise it will cause the DC power supply to short-circuit. When one is turned on, the other must be turned off. Therefore, when the PWM waveform of the upper bridge is high, the lower bridge must be low, and vice versa, when the PWM waveform of the lower bridge is high, the upper bridge must be low. In this way, it can be ensured that there will be no DC power supply short-circuit, thereby improving the safety of the motor control process.

[0078] In a possible implementation manner, a first preset time period is separated from the first generation time and the third generation time; and a second preset time period is separated from the second generation time and the fourth generation time.

[0079] In the specific implementation, considering that the power device is not an ideal device, there is a delay in opening and closing, so the upper bridge and the lower bridge must be turned off in advance before one of them is turned on. The time interval in advance is the dead time, such as Figure 3 The dead time is shown, and different dead time settings are available for different power devices, and the dead time refers to the first preset time period and the second preset time period. In this way, by setting the dead time, the DC power supply short circuit can be avoided, thereby further improving the safety of the motor control process.

[0080] In a possible implementation, the motor control method provided in the present application can be applied to a scenario where the motor requires a fixed frequency, and the fixed frequency scenario, that is, the number of switching cycles in any unit time is constant. If the switching frequency required by the motor is a fixed frequency, when the start time of the first half cycle in the current switching cycle is reached in step S201, determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle of the current switching cycle includes the following steps:

[0081] Step 2011a: When the start time of the first half cycle in the current switching cycle is reached, the physical parameter information of the motor is obtained.

[0082] Step 2012a: Determine a first duty cycle of a PWM wave of any phase circuit in the second half of the current switching cycle according to the physical parameter information of the motor, the fixed frequency and a preset motor control algorithm.

[0083] It can be understood that if the switching frequency required by the motor is a fixed frequency, the present application only needs to collect at least one physical parameter information such as the motor's current information, rotor position information, power supply voltage information, temperature information, etc. when the starting time of the first half cycle in the current switching cycle is reached, and then input these physical parameter information and the pre-recorded fixed frequency required by the motor into the preset motor control algorithm, and then the preset motor control algorithm calculates the desired first duty cycle requirement of the second half cycle of the current switching cycle.

[0084] In a possible implementation manner, the motor control method provided in the present application can also be applied to a scenario where the motor requires a variable frequency, that is, the number of switching cycles per unit time is variable. If the switching frequency required by the motor is a variable frequency, when the start time of the first half cycle in the current switching cycle is reached in step S201, determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle of the current switching cycle includes the following steps:

[0085] Step 2011b: when reaching the start time of the first half cycle in the current switching cycle, obtaining the physical parameter information of the motor and the required frequency of the motor corresponding to the current switching cycle;

[0086] Step 2012b: Determine a first duty cycle of a PWM wave of any phase circuit in the second half of the current switching cycle according to the physical parameter information of the motor, the required frequency and a preset motor control algorithm.

[0087] It can be understood that if the switching frequency required by the motor is a changing frequency, when the starting time of the first half of the current switching cycle is reached, the present application not only needs to collect at least one physical parameter information of the motor, such as the current information, rotor position information, power supply voltage information, temperature information, etc., but also needs to obtain the required frequency corresponding to the current switching cycle, and then input these physical parameter information and the required frequency into the preset motor control algorithm, and then the preset motor control algorithm calculates the first duty cycle requirement of the second half of the current switching cycle.

[0088] It should be understood that, for the scenario where the switching frequency required by the above motor is a fixed frequency or a variable frequency, the same is also applicable to determining the second duty cycle of the PWM wave of any phase circuit in the first half of the next switching cycle.

[0089] Here, the physical parameter information includes at least one of the following information: current information, rotor position information, supply voltage information, and temperature information.

[0090] In an embodiment of the present application, when the start time of the first half cycle in the current switching cycle is reached, the first duty cycle of the PWM wave of any phase circuit in the second half cycle is determined, and then, when the start time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. The present application directly modifies and adjusts the working state of the PWM wave generation module by analyzing the PWM waveform, so that without changing the switching frequency of the power switching device, it is possible to achieve double PWM wave generation in one switching cycle, so that the number of motor controls in a single electrical cycle is doubled, thereby improving the control effect of the motor in a high speed range.

[0091] Based on the same application concept, the embodiments of the present application also provide a motor control device corresponding to the motor control method provided in the above embodiments. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the motor control method in the above embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0092] Figure 6 1 shows a functional module diagram of a motor control device provided in an embodiment of the present application; Figure 6As shown, the control device 600 of the motor includes: a first determination module 610, which is used to determine the first duty cycle of the PWM wave of any phase circuit in the second half cycle of the current switching cycle when the starting time of the first half cycle in the current switching cycle is reached; a second determination module 620, which is used to generate a PWM signal based on the first duty cycle to control the three-phase bridge circuit to drive the motor when the starting time of the second half cycle in the current switching cycle is reached, and determine the second duty cycle of the PWM wave of the corresponding phase circuit in the first half cycle in the next switching cycle; a control module 630, which is used to generate a PWM signal based on the second duty cycle to control the three-phase bridge circuit to drive the motor when the starting time of the first half cycle in the next switching cycle is reached.

[0093] In one possible implementation, the three-phase bridge circuit includes six power switching devices, and each phase circuit includes an upper bridge power switching device and a lower bridge power switching device; wherein, the first generation time of the rising edge of the upper bridge power switching device is set by a first timer, the second generation time of the falling edge of the upper bridge power switching device is set by a second timer, the third generation time of the falling edge of the lower bridge power switching device is set by a third timer, and the fourth generation time of the rising edge of the lower bridge power switching device is set by a fourth timer.

[0094] In a possible implementation, Figure 6 As shown, the first determination module 610 is also used to calculate the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switch device of the corresponding phase circuit in the second half of the current switching cycle, and the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switch device, after determining the first duty cycle of the PWM wave of the second half of the current switching cycle of any phase circuit, before reaching the starting time of the second half of the current switching cycle, based on the third duty cycle of the PWM wave of the first half of the current switching cycle and the first duty cycle; the second determination module 620 is specifically used to control the first timer and the third timer to be in an invalid working state, and control the second timer and the fourth timer to be in a valid working state when reaching the starting time of the second half of the current switching cycle, and generate a PWM signal to control the three-phase bridge circuit to drive the motor.

[0095] In a possible implementation, Figure 6As shown, the second determination module 620 is also used to calculate the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switch device of the corresponding phase circuit in the upper half of the next switching cycle, and the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switch device in the upper half of the next switching cycle, according to the first duty cycle and the second duty cycle, after determining the second duty cycle of the PWM wave of the corresponding phase circuit in the upper half of the next switching cycle, before reaching the starting time of the upper half of the next switching cycle; the control module 630 is specifically used to control the second timer and the fourth timer to be in an invalid working state, and control the first timer and the third timer to be in a valid working state when reaching the starting time of the upper half of the next switching cycle, so as to generate a PWM signal to control the three-phase bridge circuit to drive the motor.

[0096] In a possible implementation manner, the timing times of the upper half cycle and the lower half cycle in the switching cycle are both set by a fifth timer.

[0097] In a possible implementation, if the upper half cycle and the lower half cycle in any switching cycle are different, the timing time of the upper half cycle in the switching cycle is set by the sixth timer, and the timing time of the lower half cycle in the switching cycle is set by the seventh timer.

[0098] In a possible implementation manner, the falling edge of each power switch device corresponds to a shutdown state, and the rising edge of each power switch device corresponds to a switch-on state.

[0099] In a possible implementation manner, during the motor control process, when any one of the upper bridge power switch device and the lower bridge power switch device of each phase circuit is turned on, the other is turned off.

[0100] In a possible implementation manner, a first preset time period is separated from the first generation time and the third generation time; and a second preset time period is separated from the second generation time and the fourth generation time.

[0101] In a possible implementation, Figure 6 As shown, if the switching frequency required by the motor is a fixed frequency, the first determination module 610 is specifically used to obtain the physical parameter information of the motor when the starting time of the upper half cycle in the current switching cycle is reached; according to the physical parameter information of the motor, the fixed frequency and the preset motor control algorithm, determine the first duty cycle of the PWM wave of any phase circuit in the lower half cycle of the current switching cycle.

[0102] In a possible implementation, Figure 6As shown, if the switching frequency required by the motor is a variable frequency, the first determination module 610 is specifically used to obtain the physical parameter information of the motor and the required frequency corresponding to the motor in the current switching cycle when the starting time of the upper half cycle in the current switching cycle is reached; according to the physical parameter information of the motor, the required frequency and the preset motor control algorithm, determine the first duty cycle of the PWM wave of any phase circuit in the lower half cycle of the current switching cycle.

[0103] In a possible implementation manner, the physical parameter information includes at least one of the following information: current information, rotor position information, supply voltage information, and temperature information.

[0104] In an embodiment of the present application, when the start time of the first half cycle in the current switching cycle is reached, the first duty cycle of the PWM wave of any phase circuit in the second half cycle is determined, and then, when the start time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and the second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. In this way, the present application can achieve double PWM wave generation in one switching cycle without changing the switching frequency of the power switching device, so that the number of times the motor is controlled in a single electrical cycle is doubled, thereby improving the control effect of the motor in a high speed range.

[0105] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application is shown. Figure 7 As shown, the vehicle 700 includes Figure 1 The motor control system 1 is shown.

[0106] Based on the same application concept, see Figure 8 As shown, it is a structural schematic diagram of an electronic device 800 provided in an embodiment of the present application, including: a processor 810, a memory 820 and a bus 830, the memory 820 stores machine-readable instructions executable by the processor 810, when the electronic device 800 is running, the processor 810 and the memory 820 communicate with each other through the bus 830, and the machine-readable instructions are executed by the processor 810 when running to perform the steps of the motor control method as described in any of the above embodiments.

[0107] Specifically, when the machine-readable instructions are executed by the processor 810, the following processing can be performed: when the starting time of the upper half cycle in the current switching cycle is reached, the first duty cycle of the PWM wave of any phase circuit in the lower half cycle of the current switching cycle is determined; when the starting time of the lower half cycle in the current switching cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the upper half cycle of the corresponding phase circuit in the next switching cycle is determined; when the starting time of the upper half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor.

[0108] In an embodiment of the present application, when the start time of the first half cycle in the current switching cycle is reached, the first duty cycle of the PWM wave of any phase circuit in the second half cycle is determined, and then, when the start time of the second half cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and the second duty cycle of the PWM wave of the first half cycle in the next switching cycle is determined, and further, when the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor. In this way, the present application can achieve double PWM wave generation in one switching cycle without changing the switching frequency of the power switching device, so that the number of times the motor is controlled in a single electrical cycle is doubled, thereby improving the control effect of the motor in a high speed range.

[0109] Based on the same application concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the motor control method provided in the above embodiment are executed.

[0110] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the above-mentioned motor control method can be executed. Without changing the switching frequency of the power switching device, it is possible to achieve double PWM wave generation in one switching cycle, thereby doubling the number of motor control times in a single electrical cycle, thereby improving the control effect of the motor in a high speed range.

[0111] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

[0112] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0114] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0115] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0116] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0117] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for controlling a motor, characterized in that: The motor is driven by a three-phase bridge circuit, and the method comprises: When the start time of the first half cycle in the current switching cycle is reached, determining the first duty cycle of the PWM wave of the second half cycle in the current switching cycle of any phase circuit; When the start time of the second half cycle in the current switching cycle is reached, a PWM signal is generated based on the first duty cycle to control the three-phase bridge circuit to drive the motor, and a second duty cycle of the PWM wave of the first half cycle of the corresponding phase circuit in the next switching cycle is determined; When the start time of the first half cycle in the next switching cycle is reached, a PWM signal is generated based on the second duty cycle to control the three-phase bridge circuit to drive the motor.

2. The method according to claim 1, characterized in that: The three-phase bridge circuit includes six power switching devices, and each phase circuit includes an upper bridge power switching device and a lower bridge power switching device; wherein, the first generation time of the rising edge of the upper bridge power switching device is set by a first timer, the second generation time of the falling edge of the upper bridge power switching device is set by a second timer, the third generation time of the falling edge of the lower bridge power switching device is set by a third timer, and the fourth generation time of the rising edge of the lower bridge power switching device is set by a fourth timer.

3. The method according to claim 2, characterized in that After determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle of the current switching cycle, and before reaching the starting time of the second half cycle of the current switching cycle, the method further includes: Based on the third duty cycle of the PWM wave in the upper half cycle of the current switching cycle and the first duty cycle, calculate the first generation time of the rising edge and the second generation time of the falling edge of the upper bridge power switch device of the corresponding phase circuit in the lower half cycle of the current switching cycle, as well as the third generation time of the falling edge and the fourth generation time of the rising edge of the lower bridge power switch device; When the start time of the second half cycle in the current switching cycle is reached, generating a PWM signal based on the first duty cycle to control the three-phase bridge circuit to drive the motor includes: When the starting time of the second half cycle in the current switching cycle is reached, the first timer and the third timer are controlled to be in an invalid working state, and the second timer and the fourth timer are controlled to be in a valid working state, and a PWM signal is generated to control the three-phase bridge circuit to drive the motor.

4. The method according to claim 2, characterized in that: After determining the second duty cycle of the PWM wave of the corresponding phase circuit in the first half cycle of the next switching cycle, and before reaching the starting time of the first half cycle of the next switching cycle, the method further includes: Calculate, according to the first duty cycle and the second duty cycle, a first generation time of a rising edge and a second generation time of a falling edge of an upper bridge power switch device of a corresponding phase circuit in an upper half cycle of the next switching cycle, and a third generation time of a falling edge and a fourth generation time of a rising edge of a lower bridge power switch device; When reaching the start time of the first half cycle in the next switching cycle, generating a PWM signal based on the second duty cycle to control the three-phase bridge circuit to drive the motor comprises: When the starting time of the first half cycle in the next switching cycle is reached, the second timer and the fourth timer are controlled to be in an invalid working state, and the first timer and the third timer are controlled to be in a valid working state, and a PWM signal is generated to control the three-phase bridge circuit to drive the motor.

5. The method according to any one of claims 1 to 4, characterized in that: The timing times of the upper half cycle and the lower half cycle in the switching cycle are both set by the fifth timer.

6. The method according to any one of claims 1 to 4, characterized in that: If the upper half cycle and the lower half cycle in any switching cycle are different, the timing time of the upper half cycle in the switching cycle is set by the sixth timer, and the timing time of the lower half cycle in the switching cycle is set by the seventh timer.

7. The method according to any one of claims 2 to 4, characterized in that: The falling edge of each power switch device corresponds to a shutdown condition, and the rising edge of each power switch device corresponds to a switch-on condition.

8. The method according to any one of claims 2 to 4, characterized in that: During the motor control process, when any one of the upper bridge power switch device and the lower bridge power switch device of each phase circuit is turned on, the other is turned off.

9. The method according to any one of claims 2 to 4, characterized in that: The first generation time and the third generation time are separated by a first preset time period; the second generation time and the fourth generation time are separated by a second preset time period.

10. The method according to claim 1, characterized in that If the switching frequency required by the motor is a fixed frequency, when reaching the start time of the first half cycle in the current switching cycle, determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle in the current switching cycle includes: When the start time of the first half cycle in the current switching cycle is reached, obtaining the physical parameter information of the motor; According to the physical parameter information of the motor, the fixed frequency and a preset motor control algorithm, a first duty cycle of the PWM wave of any phase circuit in the second half of the current switching cycle is determined.

11. The method according to claim 1, characterized in that: If the switching frequency required by the motor is a variable frequency, when reaching the start time of the first half cycle in the current switching cycle, determining the first duty cycle of the PWM wave of any phase circuit in the second half cycle in the current switching cycle includes: When the start time of the first half cycle in the current switching cycle is reached, obtaining the physical parameter information of the motor and the required frequency of the motor corresponding to the current switching cycle; According to the physical parameter information of the motor, the required frequency and a preset motor control algorithm, a first duty cycle of the PWM wave of any phase circuit in the second half of the current switching cycle is determined.

12. The method according to claim 10 or 11, characterized in that: The physical parameter information includes at least one of the following information: Current information, rotor position information, supply voltage information, temperature information.

13. A control device for a motor, characterized in that: The motor is driven by a three-phase bridge circuit, and the device comprises: A first determination module is used to determine a first duty cycle of a PWM wave of a second half cycle of any phase circuit in the current switching cycle when the start time of the first half cycle in the current switching cycle is reached; a second determination module, configured to generate a PWM signal based on the first duty cycle to control the three-phase bridge circuit to drive the motor when the start time of the second half cycle in the current switching cycle is reached, and determine a second duty cycle of the PWM wave of the first half cycle of the corresponding phase circuit in the next switching cycle; A control module is used to generate a PWM signal based on the second duty cycle to control the three-phase bridge circuit to drive the motor when the start time of the first half cycle in the next switching cycle is reached.

14. A motor control system, characterized in that: It comprises a control device for a motor as claimed in claim 13, a three-phase bridge circuit and a motor; wherein the control device for the motor comprises a microcontroller, the microcontroller comprises six output pins, each pin is connected to the control end of a power switching device of the three-phase bridge circuit, and the three-phase bridge circuit is electrically connected to the motor.

15. An electric vehicle, characterized in that: Comprising the motor control system as claimed in claim 14.