Motor control method and device, equipment, storage medium and program product
By adopting a segmented control strategy in the electromechanical braking system and selecting single-current closed-loop or three-closed-loop control according to the size of the motor's angle, the problem of poor braking effect in the traditional motor control strategy is solved and a faster and more stable system is achieved. braking effect.
Patent Information
- Application Number
- CN202410631131.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-21
AI Technical Summary
Traditional motor control strategies have poor braking effects in electromechanical braking systems, making it difficult to generate target braking force quickly, accurately and safely.
A segmented control strategy based on the relationship between the current target motor angle and the preset angle is adopted. If the angle is small, single current closed-loop control is used. If the angle is greater than the preset value, three-closed-loop control is used to avoid infinite increase and improve the braking effect.
It significantly enhances the braking effect of the electromechanical braking system, reduces the braking response time, and ensures the stability of the motor angle and the good performance of the braking force.
Smart Images

Figure CN118528997A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle braking technology, and in particular to a method, device, equipment, storage medium and program product for controlling a motor. Background Art
[0002] The Electro-mechanical Braking System (EMB) is a wire-controlled braking system that uses wires as a medium for transmitting signals and energy; uses electrical energy as the energy source for the entire braking system; uses a motor to drive the brake actuator through a motion direction conversion device; and uses an electronic brake pedal that only receives control signal input and can be placed at any position to detect the operator's braking intention.
[0003] The EMB actuator is composed of a motor, a reduction mechanism, a motion direction conversion device, a brake block, a brake disc, etc. R&D personnel need to adopt appropriate motor control strategies to enable the EMB actuator to generate the target braking force quickly, accurately and safely.
[0004] However, the traditional motor control strategy has the problem of poor EMB braking effect. Summary of the invention
[0005] Based on this, it is necessary to provide a control method, device, equipment, storage medium and program product for a motor that can enhance the EMB braking effect in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for controlling a motor, which is applied to a controller in an electronic mechanical brake system EMB, wherein the EMB further comprises a motor, and the controller comprises a rotation angle loop, a speed loop and a current loop, including:
[0007] Get the current target motor angle of the motor;
[0008] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0009] In one embodiment, the step of obtaining the current target motor angle of the motor includes:
[0010] Get the current target clamping force of EMB;
[0011] Convert the current target clamping force into the current target motor angle.
[0012] In one embodiment, the above-mentioned single current closed-loop control strategy is used to control the motor to generate the first target braking force, including:
[0013] Perform coordinate transformation on the three-phase current in the motor to obtain the two-phase current;
[0014] Input the target current of the motor and the difference between the two-phase currents into the current loop;
[0015] The output value of the current loop is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0016] In one embodiment, the current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and coordinate transformation is performed on the three-phase current in the motor to obtain a two-phase current, including:
[0017] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0018] The difference between the motor's target current and the two-phase current is input into the current loop, including:
[0019] A first difference between a target q-axis current and the q-axis current of the motor is input into the q-axis sub-current loop, and a second difference between a target d-axis current and the d-axis current of the motor is input into the d-axis sub-current loop.
[0020] In one embodiment, the above-mentioned transmitting the output value of the current loop to the three-phase voltage inverter in the EMB to control the motor to generate the first target braking force according to the output value includes:
[0021] Generate a control signal with a preset duty cycle according to the output value;
[0022] The three-phase voltage inverter is controlled based on the control signal to control the motor to generate a first target braking force according to the control signal.
[0023] In one embodiment, the method of generating a control signal with a preset duty cycle according to the output value includes:
[0024] Performing coordinate transformation on the output value to obtain the output value after coordinate transformation;
[0025] Modulating the output value after coordinate transformation to obtain a control signal of an initial duty cycle;
[0026] The control signal of the initial duty cycle is converted from AC to DC to obtain a control signal of a preset duty cycle.
[0027] In one embodiment, the current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and the three-closed-loop control strategy is used to control the motor to generate the second target braking force, including:
[0028] Determining a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle;
[0029] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0030] Inputting the angle difference between the target angle and the current target motor angle into the angle loop;
[0031] The speed difference between the output value of the angle loop and the current speed of the motor is input into the speed loop;
[0032] The difference between the q-axis current and the output value of the speed loop is input into the q-axis sub-current loop;
[0033] Inputting the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop;
[0034] The output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0035] In a second aspect, the present application further provides a motor control device, which is applied to a controller in an electronic mechanical brake system EMB, wherein the EMB further includes a motor, and the controller includes a rotation angle loop, a speed loop, and a current loop, including:
[0036] An acquisition module is used to acquire the current target motor angle of the motor;
[0037] The control module is used to determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0038] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Get the current target motor angle of the motor;
[0040] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0041] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0042] Get the current target motor angle of the motor;
[0043] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0044] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0045] Get the current target motor angle of the motor;
[0046] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0047] The control method, device, equipment, storage medium and program product of the above-mentioned motor, the above-mentioned method adopts different control strategies in segments to control the motor based on the relationship between the current target motor angle and the preset angle, that is, when the current target motor angle is small, a single current closed-loop control strategy is adopted to ensure good motor braking when the motor angle increases rapidly, and when the current target motor angle increases to be greater than the preset angle, a three-closed-loop control strategy can be adopted to ensure good motor braking when the motor angle is avoided to increase infinitely. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A diagram showing an application environment of a method for controlling a motor in an embodiment;
[0050] Figure 2 is a flow chart of a method for controlling a motor in one embodiment;
[0051] Figure 3 A schematic diagram of the relationship between the target motor rotation angle and the actual motor rotation angle in one embodiment;
[0052] Figure 4 is a flow chart of a method for controlling a motor in another embodiment;
[0053] Figure 5 is a flow chart of a method for controlling a motor in another embodiment;
[0054] Figure 6 is a flow chart of a method for controlling a motor in another embodiment;
[0055] Figure 7 is a flow chart of a method for controlling a motor in another embodiment;
[0056] Figure 8 is a flow chart of a method for controlling a motor in another embodiment;
[0057] FIG9 is a schematic diagram of the control effects of a conventional three-closed-loop control strategy and a segmented control strategy of the present application in one embodiment;
[0058] FIG10 is a block diagram of a control device for a motor in one embodiment;
[0059] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0062] In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically limited. The reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0063] The Electro-mechanical Braking System (EMB) is a wire-controlled braking system that uses wires as a medium for transmitting signals and energy; uses electrical energy as the energy source for the entire braking system; uses a motor to drive the brake actuator through a motion direction conversion device; and uses an electronic brake pedal that only receives control signal input and can be placed at any position to detect the operator's braking intention.
[0064] The EMB actuator generally consists of a motor, a reduction mechanism, a motion direction conversion device, a brake block, a brake disc, etc. In order to enable the EMB actuator to generate the target braking force quickly, accurately and safely, researchers need to adopt appropriate motor control strategies. Then, how to design appropriate motor control strategies has become an urgent problem to be solved. The traditional EMB motor control strategy generally adopts a three-closed-loop control strategy of clamping force - rotational speed - current or a motor angle - rotational speed - current control strategy to obtain better control accuracy. However, the traditional motor control strategy has the problem of poor EMB braking effect. This application aims to solve this problem.
[0065] After introducing the background technology of the motor control method provided by the embodiments of this application above, below, the implementation environment involved in the motor control method provided by the embodiments of this application will be briefly described. The motor control method provided by the embodiments of this application can be applied to, for example, Figure 1 the electronic mechanical braking system EMB shown in the figure. The EMB includes a controller, a motor, an angle loop, a speed loop and a current loop. Among them, a preset angle (this preset angle can be x times the target angle of the motor, where 0 < x < 1) can be preset in the controller, and the actual angle of the motor during the clamping force rising process can be monitored at any time. Then, according to the relationship between the actual angle of the motor and the preset angle, the angle loop, the speed loop and the current loop are controlled in sequence to control the motor to generate braking force.
[0066] Among them, both Park transformation and Park inverse transformation can achieve coordinate conversion. Park transformation mainly realizes the conversion of three-phase current into two-phase current, and Park inverse transformation mainly realizes the conversion of two-phase current into three-phase current. Clark transformation also converts three-phase current into two-phase current to facilitate motor control, but it is necessary to ensure that the magnetomotive force remains unchanged. The main idea of Space Vector Pulse Width Modulation (SVPWM) is to use the ideal magnetic flux circle of the stator of a three-phase symmetric motor powered by three-phase symmetric sinusoidal voltages as a reference standard, and make appropriate switching of different switching modes of the three-phase inverter, so as to form a Pulse Width Modulation (PWM) wave, and use the formed actual magnetic flux vector to track its accurate magnetic flux circle.
[0067] Among them, the three-phase voltage inverter can convert the DC voltage into a three-phase AC voltage. Permanent Magnet Synchronous Motor (PMSM) can run at variable speeds and is controlled by adjusting the frequency of the electrical power supplied to the motor or using a variable voltage source. It includes surface mount PMSM (permanent magnets are mounted on the surface of the rotor) and embedded PMSM (permanent magnets are embedded inside the rotor iron).
[0068] Among them, the planetary gear reducer is a common type of reducer, which uses a set of planetary gears to reduce speed and increase torque. This reducer is usually composed of a sun gear, several planetary gears and an inner ring gear, where the sun gear is the input shaft, the planetary gears rotate around the sun gear and are connected to the output shaft through the planet carrier, and the inner ring gear is usually fixed to the chassis as the inner track of the planetary gear. When the sun gear drives the planetary gear, since the planetary gear rolls on the inner ring gear and slides on the sun gear at the same time, their motion synthesis enables the planetary gear to transmit a larger torque at a smaller angular velocity. In this way, the planetary gear reducer can achieve high-efficiency deceleration and torque amplification.
[0069] Among them, the ball screw is a mechanical element that converts rotational motion into linear motion, or a transmission device that converts linear motion into rotational motion. It is mainly composed of a screw (or lead screw), a nut and a ball. The working principle of the ball screw is to use the ball to roll in the spiral groove between the screw and the nut to achieve relative motion between the two.
[0070] Among them, the brake pad is an important component of the brake system, which is used to generate friction with the brake disc (or brake drum) when braking, thereby slowing down or stopping the movement of the vehicle or mechanical equipment.
[0071] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0072] In one embodiment, Figure 2 As shown, a method for controlling a motor is provided, and the method is applied to Figure 1 The controller in the electronic mechanical brake system EMB is used as an example to illustrate. The EMB also includes a motor, an angle loop, a speed loop and a current loop, including the following steps:
[0073] S201. Obtain the current target motor angle of the motor.
[0074] In an embodiment of the present application, when the clamping force is in the process of increasing, the controller sends an angle acquisition instruction to the motor to instruct the motor to feed back its current motor angle to the controller, so that the controller obtains the current target motor angle of the motor.
[0075] S202, determine whether the current target motor rotation angle is greater than the preset rotation angle, if not, execute S203, if greater, execute S204.
[0076] The preset angle is set in the controller in advance according to the actual state of the motor. The preset angle can be x times the target angle of the motor, where 0 <x<1。
[0077] In the embodiment of the present application, after the current target motor angle of the motor is obtained, it can be determined whether the current target motor angle is greater than the preset angle. Figure 3 As shown, the relationship between the current target rotation angle of the motor and the actual rotation angle of the motor is provided.
[0078] S203: Use a single current closed-loop control strategy to control the motor to generate a first target braking force.
[0079] Among them, the single current closed-loop control strategy refers to using only the current loop to process the two-phase current after the three-phase current in the motor is converted.
[0080] In an embodiment of the present application, when it is determined that the current target motor angle is not greater than the preset angle, a current loop is used to process the two-phase current after the three-phase current in the motor is converted, and the processed output value is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate the first target braking force.
[0081] S204: Use a three-closed-loop control strategy to control the motor to generate a second target braking force.
[0082] Among them, the three-closed-loop control strategy refers to using the angle loop, speed loop and current loop to process the two-phase current after the three-phase current in the motor is converted.
[0083] In an embodiment of the present application, when it is determined that the current target motor angle is greater than the preset angle, the angle loop, speed loop and current loop are used to process the two-phase current after the three-phase current in the motor is converted, and the processed output value is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force.
[0084] The control method of the motor provided in the embodiment of the present application is applied to the controller in the electronic mechanical brake system EMB, the EMB also includes a motor, the controller includes an angle loop, a speed loop and a current loop, and obtains the current target motor angle of the motor; determines whether the current target motor angle is greater than the preset angle, if not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force, if greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force. The above method is based on the relationship between the current target motor angle and the preset angle, and adopts different control strategies to control the motor in sections, that is, when the current target motor angle is small, a single current closed-loop control strategy is used to ensure that the motor brakes well when the motor angle increases rapidly, and when the current target motor angle increases to be greater than the preset angle, a three-closed-loop control strategy can be used to ensure that the motor brakes well while avoiding the motor angle from increasing infinitely.
[0085] In one embodiment, Figure 2 Based on the embodiment shown, the process of obtaining the current motor angle of the motor can be described as follows: Figure 4 As shown, the above S201 "obtaining the current motor angle of the motor" includes:
[0086] S301, obtaining the current target clamping force of the EMB.
[0087] In the embodiment of the present application, when the clamping force is in the process of increasing, the controller sends a clamping force acquisition instruction to the EMB to instruct the EMB to feed back its current target clamping force to the controller, so that the controller obtains the current clamping force of the EMB.
[0088] S302, converting the current target clamping force into the current target motor rotation angle.
[0089] In the embodiment of the present application, after the current target clamping force of the EMB is obtained as described above, the current target clamping force of the EMB can be converted into the current target motor angle corresponding to the current target clamping force based on the correspondence between the clamping force and the angle.
[0090] The motor angle conversion method provided in the embodiment of the present application provides a data basis for subsequently determining whether to use a single current closed-loop control strategy or a three-closed-loop control strategy to control the motor based on the current target motor angle.
[0091] In one embodiment, Figure 2 or Figure 4 Based on the embodiment shown, the process of controlling the motor to generate the second target braking force can be described as follows: Figure 5 As shown, the above S202 “using a single current closed-loop control strategy to control the motor to generate a first target braking force” includes:
[0092] S401. Perform coordinate transformation on the three-phase current in the motor to obtain a two-phase current.
[0093] Among them, three-phase current refers to the AC current normally used in the motor. Generally, when controlling the motor for braking, the three-phase current in the motor will be converted into two-phase current and input into different current loops to obtain output values, and then the motor will be controlled based on the output values.
[0094] Among them, the two-phase current includes q-axis current and d-axis current; among them, d-axis current (Id) refers to the current flowing along the d-axis, which is parallel to the direction of the magnetic field of the motor. In the permanent magnet synchronous motor, since the magnetic field is provided by the permanent magnet, the d-axis current is mainly related to the reactive power and electromagnetic torque of the motor. In vector control, the d-axis current is usually controlled to maintain the magnetic flux of the motor constant; q-axis current (Iq) refers to the current flowing along the q-axis, which is perpendicular to the direction of the magnetic field of the motor. The q-axis current is the main factor for the motor to generate electromagnetic torque and is related to the active power output of the motor. In vector control, the q-axis current is controlled to adjust the speed and torque of the motor.
[0095] In an embodiment of the present application, a current acquisition instruction can be first sent to the motor. After receiving the current acquisition instruction, the motor can feed back its own current (three-phase current) to the controller so that the controller receives the three-phase current in the motor. After receiving the three-phase current in the motor, the controller performs coordinate transformation on the three-phase current in the motor to obtain a two-phase current.
[0096] The following provides a method for performing coordinate transformation on the three-phase current in the motor to obtain two currents, that is, the above S401 "performing coordinate transformation on the three-phase current in the motor to obtain two-phase current", including:
[0097] S401. Perform coordinate transformation on the three-phase current in the motor to obtain q-axis current and d-axis current.
[0098] In an embodiment of the present application, a current acquisition instruction can be first sent to the motor. After receiving the current acquisition instruction, the motor can feed back its own current (three-phase current) to the controller so that the controller receives the three-phase current in the motor. After receiving the three-phase current in the motor, the controller performs coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current.
[0099] S402: Input the target current of the motor and the difference between the two-phase currents into the current loop.
[0100] The target current of the motor includes a target q-axis current of the motor and a target d-axis current of the motor. The target q-axis current refers to a maximum q-axis current that the motor can withstand, and the target d-axis current is generally 0.
[0101] In the embodiment of the present application, after the two-phase currents (q-axis current and d-axis current) are acquired as mentioned above, the difference between the target q-axis current and the q-axis current, as well as the difference between the target d-axis current and the d-axis current can be determined, and the difference between the target q-axis current and the q-axis current, as well as the difference between the target d-axis current and the d-axis current are input into the current loop to instruct the current loop to determine the output value of the current loop according to the difference between the target q-axis current and the q-axis current, as well as the difference between the target d-axis current and the d-axis current.
[0102] The following provides a method for performing coordinate transformation on the three-phase current in the motor to obtain two currents, that is, the above S402 "inputting the difference between the target current of the motor and the two-phase current into the current", including:
[0103] S402 , inputting a first difference between the target q-axis current of the motor and the q-axis current into the q-axis sub-current loop, and inputting a second difference between the target d-axis current of the motor and the d-axis current into the d-axis sub-current loop.
[0104] In an embodiment of the present application, after the q-axis current and the d-axis current are acquired as described above, a first difference between the target q-axis current and the q-axis current of the motor can be determined, as well as a second difference between the target d-axis current and the d-axis current of the motor can be determined, and the first difference can be input into the q-axis sub-current loop to instruct the q-axis sub-current loop to determine the output value of the q-axis sub-current loop based on the first difference, and the second difference can be input into the d-axis sub-current loop to instruct the d-axis sub-current loop to determine the output value of the d-axis sub-current loop based on the second difference.
[0105] S403: Transmit the output value of the current loop to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0106] In the embodiment of the present application, after the output value of the current loop is obtained as described above, the output value of the current loop can be transmitted to the three-phase voltage inverter in the EMB to control the motor to generate the first target braking force according to the output value of the current loop.
[0107] The method for controlling a motor to generate a first target braking force provided in an embodiment of the present application adopts a single current closed-loop control strategy to rapidly increase the motor angle when the current motor angle is not greater than a preset angle, so as to ensure good motor braking.
[0108] In one embodiment, Figure 5 Based on the embodiment shown, the process of obtaining the first target braking force can be described as follows: Figure 6 As shown, the above S403 "transmitting the output value of the current loop to the motor to control the motor to generate the first target braking force according to the output value" includes:
[0109] S501 , generating a control signal with a preset duty cycle according to an output value.
[0110] In the embodiment of the present application, after the output value of the current loop is obtained as described above, the output value of the current loop can be input into the SVPWM in the controller for modulation to generate a control signal with a preset duty cycle.
[0111] Optionally, a method for generating a control signal with a preset duty cycle is provided below, such as Figure 7 As shown, the above S501 "generating a control signal with a preset duty cycle according to the output value" includes:
[0112] S601, performing coordinate transformation on the output value to obtain the output value after coordinate transformation.
[0113] The coordinate transformation includes Park transformation.
[0114] In the embodiment of the present application, after the output value of the current loop is obtained as described above, the output value of the current loop may be transformed by Park to obtain an output value after Park transformation.
[0115] S602 , modulate the output value after coordinate transformation to obtain a control signal of an initial duty cycle.
[0116] In the embodiment of the present application, after the output value after Park transformation is obtained, the output value after Park transformation can be input into the SVPWM in the controller for modulation to obtain a control signal of the modulated initial duty cycle.
[0117] S603 , performing AC-DC conversion on the control signal of the initial duty cycle to obtain a control signal of a preset duty cycle.
[0118] In the embodiment of the present application, after the control signal of the initial duty cycle is obtained as described above, the control signal of the initial duty cycle can be input into the three-phase voltage inverter in the controller for AC-DC conversion to obtain a control signal of a preset duty cycle.
[0119] S502 : Control the three-phase voltage inverter based on the control signal to control the motor to generate a first target braking force according to the control signal.
[0120] In an embodiment of the present application, after the control signal of the preset duty cycle is obtained as mentioned above, the control signal of the preset duty cycle can be transmitted to the three-phase voltage inverter to instruct the motor to generate the first target braking force according to the control signal of the preset duty cycle.
[0121] The method for controlling a motor to generate a first target braking force provided in an embodiment of the present application adopts a single current closed-loop control strategy to rapidly increase the motor angle when the current motor angle is not greater than a preset angle, so as to ensure good motor braking.
[0122] In one embodiment, Figure 2 or Figure 4 Based on the embodiment shown, the process of controlling the motor to generate the second target braking force can be described as follows: Figure 8 As shown, the above S202 "using a three-closed-loop control strategy to control the motor to generate a second target braking force" includes:
[0123] S701. Determine a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle.
[0124] In an embodiment of the present application, when the clamping force is in the process of rising, the controller sends a target clamping force acquisition instruction to the motor to instruct the motor to feed back its own target clamping force to the controller, so that the controller obtains the target clamping force of the motor, and after obtaining the target clamping force of the motor as mentioned above, the target clamping force of the motor can be converted into a target angle corresponding to the target clamping force based on the correspondence between the clamping force and the angle of rotation.
[0125] S702, performing coordinate transformation on the three-phase current in the motor to obtain q-axis current and d-axis current.
[0126] Among them, three-phase current refers to the AC current normally used in the motor. Generally, when controlling the motor for braking, the three-phase current in the motor will be converted into two-phase current and input into different current loops to obtain output values, and then the motor will be controlled based on the output values.
[0127] Among them, the d-axis current (Id) refers to the current flowing along the d-axis, which is parallel to the direction of the motor's magnetic field. In a permanent magnet synchronous motor, since the magnetic field is provided by a permanent magnet, the d-axis current is mainly related to the reactive power and electromagnetic torque of the motor. In vector control, the d-axis current is usually controlled to maintain the magnetic flux of the motor constant; the q-axis current (Iq) refers to the current flowing along the q-axis, which is perpendicular to the direction of the motor's magnetic field. The q-axis current is the main factor for the motor to generate electromagnetic torque and is related to the motor's active power output. In vector control, the q-axis current is controlled to adjust the speed and torque of the motor.
[0128] In an embodiment of the present application, a current acquisition instruction can be first sent to the motor. After receiving the current acquisition instruction, the motor can feed back its own current (three-phase current) to the controller so that the controller receives the three-phase current in the motor. After receiving the three-phase current in the motor, the controller performs coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current.
[0129] S703: Input the angle difference between the target angle and the current target motor angle into the angle loop.
[0130] In the embodiment of the present application, after the target rotation angle is obtained, the current clamping force acquisition instruction can continue to be sent to the motor to instruct the motor to feed back its current clamping force to the controller, so that the controller can obtain the current clamping force of the motor, and after the current clamping force of the motor is obtained, the target clamping force of the motor can be converted into the target rotation angle corresponding to the target clamping force based on the corresponding relationship between the clamping force and the rotation angle. Then, the rotation angle difference between the target rotation angle and the current motor rotation angle is determined, and the rotation angle difference is input into the rotation angle ring to instruct the rotation angle ring to determine the output value of the rotation angle ring according to the rotation angle difference.
[0131] S704: Input the speed difference between the output value of the angle loop and the current speed of the motor into the speed loop.
[0132] In an embodiment of the present application, after the output value of the angle loop is obtained as mentioned above, the current speed of the motor can be obtained, and the speed difference between the output value of the angle loop and the current speed of the motor can be input into the speed loop to instruct the speed loop to determine the output value of the speed loop based on the speed difference.
[0133] S705 , input the difference between the q-axis current and the output value of the speed loop into the q-axis sub-current loop.
[0134] In an embodiment of the present application, after the output value of the speed loop is obtained as mentioned above, the q-axis difference between the output value of the speed loop and the q-axis current can be input into the q-axis sub-current loop to instruct the q-axis sub-current loop to determine the output value of the q-axis sub-current loop according to the q-axis difference.
[0135] S706 , input the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop.
[0136] In an embodiment of the present application, after the output value of the speed loop is obtained as mentioned above, the d-axis difference between the target d-axis current and the d-axis current of the motor can be input into the d-axis sub-current loop to instruct the d-axis sub-current loop to determine the output value of the d-axis sub-current loop based on the d-axis difference.
[0137] S707, transmitting the output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0138] In an embodiment of the present application, after the output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are determined as above, the output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are respectively input into SVPWM through Park transformation to generate a duty cycle input to the three-phase voltage inverter, thereby controlling the motor.
[0139] The method for controlling a motor to generate a second target braking force provided in an embodiment of the present application adopts a three-closed-loop control strategy to ensure good motor braking while avoiding unlimited increase of the motor angle when the current motor angle is greater than the preset angle.
[0140] In one embodiment, as shown in FIG. 9 , a schematic diagram of control results of a conventional motor control strategy and the motor control strategy of this solution is provided. Figure 8 It can be clearly seen that compared with the traditional three-closed-loop control strategy, the segmented control strategy provided by the present application can reduce the braking response speed by half and significantly enhance the EMB braking effect.
[0141] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0142] Based on the same inventive concept, the embodiment of the present application also provides a motor control device for implementing the motor control method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the control device for one or more motors provided below can refer to the limitations of the motor control method above, and will not be repeated here.
[0143] In an exemplary embodiment, as shown in FIG10 , a motor control device is provided, which is applied to a controller in an electronic mechanical brake system EMB, wherein the EMB further comprises a motor, and the controller comprises a rotation angle loop, a speed loop and a current loop, and comprises: an acquisition module 10 and a control module 11, wherein:
[0144] The acquisition module 10 is used to acquire the current target motor rotation angle of the motor.
[0145] The control module 11 is used to determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0146] In an exemplary embodiment, the acquisition module 10 includes: an acquisition unit and a conversion unit, wherein:
[0147] An acquisition unit, specifically used to acquire the current target clamping force of the EMB;
[0148] The conversion unit is specifically used to convert the current target clamping force into the current target motor rotation angle.
[0149] In an exemplary embodiment, the control module comprises: a first coordinate transformation unit, a first input unit and a first control unit, wherein:
[0150] A first coordinate transformation unit is specifically used to perform coordinate transformation on the three-phase current in the motor to obtain a two-phase current;
[0151] A first input unit, specifically used to input the target current of the motor and the difference between the two-phase currents into the current loop;
[0152] The first control unit is specifically used to transmit the output value of the current loop to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0153] In an exemplary embodiment, the current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and the first coordinate transformation unit is further used to perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0154] The above-mentioned first input unit is specifically used to input the first difference between the target q-axis current of the motor and the q-axis current into the q-axis sub-current loop, and input the second difference between the target d-axis current of the motor and the d-axis current into the d-axis sub-current loop.
[0155] In an exemplary embodiment, the control unit is further configured to generate a control signal with a preset duty cycle according to the output value; and control the three-phase voltage inverter based on the control signal to control the motor to generate a first target braking force according to the control signal.
[0156] In an exemplary embodiment, the above-mentioned control unit is specifically used to perform coordinate transformation on the output value to obtain the output value after coordinate transformation; modulate the output value after coordinate transformation to obtain a control signal of an initial duty cycle; and perform AC-DC conversion on the control signal of the initial duty cycle to obtain a control signal of a preset duty cycle.
[0157] In an exemplary embodiment, the current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and the control module includes: a determination unit, a second coordinate conversion unit, a second input unit, a third input unit, a fourth input unit, a fifth input unit and a second control unit, wherein:
[0158] A determination unit, specifically used to determine a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle;
[0159] A second coordinate conversion unit is specifically used to perform coordinate conversion on the three-phase current in the motor to obtain a q-axis current and a d-axis current;
[0160] A second input unit is specifically used to input the angle difference between the target angle and the current target motor angle into the angle loop;
[0161] a third input unit, specifically used to input a speed difference between an output value of the angle loop and a current speed of the motor into the speed loop;
[0162] a fourth input unit, specifically used to input the difference between the q-axis current and the output value of the speed loop into the q-axis sub-current loop;
[0163] a fifth input unit, specifically used to input the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop;
[0164] The control unit is specifically used to transmit the output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0165] Each module in the above motor control device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0166] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store motor angle data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for controlling a motor is implemented.
[0167] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0168] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0169] Get the current target motor angle of the motor;
[0170] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0172] Get the current target clamping force of EMB;
[0173] Convert the current target clamping force into the current target motor angle.
[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0175] Perform coordinate transformation on the three-phase current in the motor to obtain the two-phase current;
[0176] Input the target current of the motor and the difference between the two-phase currents into the current loop;
[0177] The output value of the current loop is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0180] The difference between the motor's target current and the two-phase current is input into the current loop, including:
[0181] A first difference between a target q-axis current and the q-axis current of the motor is input into the q-axis sub-current loop, and a second difference between a target d-axis current and the d-axis current of the motor is input into the d-axis sub-current loop.
[0182] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0183] Generate a control signal with a preset duty cycle according to the output value;
[0184] The three-phase voltage inverter is controlled based on the control signal to control the motor to generate a first target braking force according to the control signal.
[0185] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0186] Performing coordinate transformation on the output value to obtain the output value after coordinate transformation;
[0187] Modulating the output value after coordinate transformation to obtain a control signal of an initial duty cycle;
[0188] The control signal of the initial duty cycle is converted from AC to DC to obtain a control signal of a preset duty cycle.
[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0190] Determining a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle;
[0191] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0192] Inputting the angle difference between the target angle and the current target motor angle into the angle loop;
[0193] The speed difference between the output value of the angle loop and the current speed of the motor is input into the speed loop;
[0194] The difference between the q-axis current and the output value of the speed loop is input into the q-axis sub-current loop;
[0195] Inputting the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop;
[0196] The output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0197] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0198] Get the current target motor angle of the motor;
[0199] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] Get the current target clamping force of EMB;
[0202] Convert the current target clamping force into the current target motor angle.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] Perform coordinate transformation on the three-phase current in the motor to obtain the two-phase current;
[0205] Input the target current of the motor and the difference between the two-phase currents into the current loop;
[0206] The output value of the current loop is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0209] The difference between the motor's target current and the two-phase current is input into the current loop, including:
[0210] A first difference between a target q-axis current and the q-axis current of the motor is input into the q-axis sub-current loop, and a second difference between a target d-axis current and the d-axis current of the motor is input into the d-axis sub-current loop.
[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0212] Generate a control signal with a preset duty cycle according to the output value;
[0213] Based on the control signal, the control signal is transmitted to the three-phase voltage inverter to control the motor to generate the first target braking force according to the control signal.
[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0215] Performing coordinate transformation on the output value to obtain the output value after coordinate transformation;
[0216] Modulating the output value after coordinate transformation to obtain a control signal of an initial duty cycle;
[0217] The control signal of the initial duty cycle is converted from AC to DC to obtain a control signal of a preset duty cycle.
[0218] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0219] Determining a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle;
[0220] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0221] Inputting the angle difference between the target angle and the current target motor angle into the angle loop;
[0222] The speed difference between the output value of the angle loop and the current speed of the motor is input into the speed loop;
[0223] The difference between the q-axis current and the output value of the speed loop is input into the q-axis sub-current loop;
[0224] Inputting the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop;
[0225] The output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0226] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0227] Get the current target motor angle of the motor;
[0228] Determine whether the current target motor angle is greater than the preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
[0229] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0230] Get the current target clamping force of EMB;
[0231] Convert the current target clamping force into the current target motor angle.
[0232] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0233] Perform coordinate transformation on the three-phase current in the motor to obtain the two-phase current;
[0234] Input the target current of the motor and the difference between the two-phase currents into the current loop;
[0235] The output value of the current loop is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a first target braking force according to the output value.
[0236] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0237] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0238] The difference between the motor's target current and the two-phase current is input into the current loop, including:
[0239] A first difference between a target q-axis current and the q-axis current of the motor is input into the q-axis sub-current loop, and a second difference between a target d-axis current and the d-axis current of the motor is input into the d-axis sub-current loop.
[0240] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0241] Generate a control signal with a preset duty cycle according to the output value;
[0242] Based on the control signal, the control signal is transmitted to the three-phase voltage inverter to control the motor to generate the first target braking force according to the control signal.
[0243] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0244] Performing coordinate transformation on the output value to obtain the output value after coordinate transformation;
[0245] Modulating the output value after coordinate transformation to obtain a control signal of an initial duty cycle;
[0246] The control signal of the initial duty cycle is converted from AC to DC to obtain a control signal of a preset duty cycle.
[0247] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0248] Determining a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle;
[0249] Perform coordinate transformation on the three-phase current in the motor to obtain the q-axis current and the d-axis current;
[0250] Inputting the angle difference between the target angle and the current target motor angle into the angle loop;
[0251] The speed difference between the output value of the angle loop and the current speed of the motor is input into the speed loop;
[0252] The difference between the q-axis current and the output value of the speed loop is input into the q-axis sub-current loop;
[0253] Inputting the difference between the target d-axis current and the d-axis current of the motor into the d-axis sub-current loop;
[0254] The output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are transmitted to the three-phase voltage inverter in the EMB to control the motor to generate a second target braking force according to the output value of the current loop.
[0255] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0256] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0257] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling a motor, characterized in that: The control method is applied to a controller in an electronic mechanical brake system EMB, the EMB further comprising a motor, the controller comprising a rotation angle loop, a speed loop and a current loop, and the method comprises: Obtaining a current target motor angle of the motor; Determine whether the current target motor rotation angle is greater than a preset rotation angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
2. The method according to claim 1, characterized in that: The obtaining of the current target motor rotation angle of the motor comprises: Obtaining the current target clamping force of the EMB; The current target clamping force is converted into the current target motor rotation angle.
3. The method according to claim 1 or 2, characterized in that: The adopting of a single current closed-loop control strategy to control the motor to generate a first target braking force includes: Performing coordinate transformation on the three-phase current in the motor to obtain a two-phase current; inputting the target current of the motor and the difference between the two-phase currents into the current loop; The output value of the current loop is transmitted to the three-phase voltage inverter in the EMB to control the motor to generate the first target braking force according to the output value.
4. The method according to claim 3, characterized in that The current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and the coordinate transformation of the three-phase current in the motor to obtain the two-phase current includes: Performing coordinate transformation on the three-phase current in the motor to obtain a q-axis current and a d-axis current; The step of inputting the target current of the motor and the difference between the two-phase currents into the current loop comprises: A first difference between a target q-axis current of the motor and the q-axis current is input to the q-axis sub-current loop, and a second difference between a target d-axis current of the motor and the d-axis current is input to the d-axis sub-current loop.
5. The method according to claim 3, characterized in that: The step of transmitting the output value of the current loop to the three-phase voltage inverter in the EMB to control the motor to generate the first target braking force according to the output value includes: generating a control signal with a preset duty cycle according to the output value; The three-phase voltage inverter is controlled based on the control signal to control the motor to generate the first target braking force according to the control signal.
6. The method according to claim 5, characterized in that The step of generating a control signal with a preset duty cycle according to the output value comprises: Performing coordinate transformation on the output value to obtain an output value after coordinate transformation; Modulating the output value after the coordinate transformation to obtain a control signal of an initial duty cycle; The control signal of the initial duty cycle is converted from AC to DC to obtain the control signal of the preset duty cycle.
7. The method according to claim 1 or 2, characterized in that: The current loop includes a d-axis sub-current loop and a q-axis sub-current loop, and the three-closed-loop control strategy is used to control the motor to generate a second target braking force, including: Determining a target rotation angle corresponding to a target clamping force of the motor according to a corresponding relationship between the clamping force and the rotation angle; Performing coordinate transformation on the three-phase current in the motor to obtain a q-axis current and a d-axis current; inputting a rotation angle difference between the target rotation angle and the current target motor rotation angle into the rotation angle loop; Inputting the speed difference between the output value of the rotation angle loop and the current speed of the motor into the speed loop; inputting the difference between the q-axis current and the output value of the speed loop into the q-axis sub-current loop; inputting a difference between a target d-axis current of the motor and the d-axis current into the d-axis sub-current loop; The output value of the q-axis sub-current loop and the output value of the d-axis sub-current loop are transmitted to the three-phase voltage inverter in the EMB to control the motor to generate the second target braking force according to the output value of the current loop.
8. A control device for a motor, characterized in that: A controller used in an electronic mechanical brake system EMB, wherein the EMB further comprises a motor, the controller comprises a rotation angle loop, a rotation speed loop and a current loop, and the device comprises: An acquisition module, used for acquiring a current target motor rotation angle of the motor; The control module is used to determine whether the current target motor angle is greater than a preset angle. If not, a single current closed-loop control strategy is used to control the motor to generate a first target braking force. If greater, a three-closed-loop control strategy is used to control the motor to generate a second target braking force.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Controller PI parameter tuning method based on rotational inertia of motor
CN105871282A
Control method and device of braking motor, storage medium and vehicle
CN110550012A
Dual-motor intelligent steer-by-wire system and synchronous control method
CN111017010A
EMB system control method based on three closed loops and load observer
CN117341644A
Control method for anti-lock braking stability through cooperation of beam angle and anti-lock braking
CN117922511A
