A control method and device for a vehicle motor, a driver, and a vehicle

By combining speed proportional integral and current proportional integral control strategies in vehicle motor control, combined with anti-saturation processing technology, the problem of difficult switching of the motor during rapid acceleration and then rapid deceleration is solved, and rapid switching of the motor state and stable braking are achieved.

CN118269700BActive Publication Date: 2024-10-11FANJI TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410712004.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-11
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

When the vehicle decelerates sharply after accelerating to a large speed, the motor is difficult to switch to the braking state quickly, resulting in the vehicle being unable to effectively control the motor speed.

Method used

Using the speed proportional integral control strategy and current proportional integral control strategy, combined with anti-saturation processing technology, the motor is controlled to accelerate when the accelerator is depressed, and gradually decelerates to zero through the speed proportional integral control strategy and current proportional integral control strategy after the accelerator is released. .

Benefits of technology

It realizes rapid switching of motor status and smooth braking, improves the control accuracy of motor speed, and ensures the stability and controllability of the vehicle during acceleration and deceleration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118269700B_ABST
    Figure CN118269700B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method and device for a vehicle motor, a driver, and a vehicle. The control method is executed by a control device for a vehicle motor; the control method for a vehicle motor includes: when the accelerator of the vehicle is stepped on to a preset stroke, the motor acceleration is controlled according to a speed proportional integral control strategy and a current proportional integral control strategy; in each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing, and the motor acceleration is controlled according to the processed speed proportional integral control strategy and the current proportional integral control strategy; after the accelerator is released, the motor is controlled to decelerate according to the speed proportional integral control strategy and the current proportional integral control strategy until the motor speed is zero. The technical solution of the present invention can better control the motor to switch from an acceleration state to a braking state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of new energy technologies, electric vehicles have been widely used. Electric vehicles can include road vehicles and non-road vehicles. Non-road vehicles include, for example, forklifts, shovels, and aerial work platforms. When non-road electric vehicles are driving, the traction motor is controlled by the motor driver. The motor driver can control the motor operation according to the accelerator stroke. When the accelerator is stepped on, the motor driver controls the motor to accelerate to the speed corresponding to the accelerator stroke according to the accelerator stroke; when the accelerator is released, the motor driver controls the motor to decelerate to zero and brake.

[0003] In actual working conditions, there are situations where the vehicle accelerates suddenly and then decelerates suddenly, that is, there are situations where the vehicle needs to accelerate to a higher speed, and after accelerating to the higher speed, it immediately needs to decelerate to zero (that is, it immediately needs to brake).

[0004] When the vehicle needs to accelerate to a higher speed, the acceleration of the motor is large. If the accelerator is released at this time, the motor starts to brake and decelerate, which is difficult to switch quickly. This may cause the vehicle to not decelerate significantly and the motor speed cannot be well controlled. Summary of the invention

[0005] The present invention provides a vehicle motor control method and device, a driver, and a vehicle to solve the problem that when a vehicle switches from an acceleration state to a braking state, it is difficult to switch quickly, which may cause the vehicle to not decelerate significantly and the motor speed cannot be well controlled.

[0006] According to one aspect of the present invention, a control method for a vehicle motor is provided, the control method being executed by a control device for the vehicle motor; the control method comprising:

[0007] When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy;

[0008] In each control cycle of the speed proportional-integral control strategy, if the speed proportional-integral control strategy reaches a saturation condition, anti-saturation processing is performed on the speed proportional-integral control strategy, and the motor acceleration is controlled according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy;

[0009] After the accelerator is released, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero.

[0010] Optionally, anti-saturation processing is performed on the speed proportional-integral control strategy, including:

[0011] Performing anti-saturation processing on the speed integral term of the speed proportional integral control strategy;

[0012] After the speed proportional integral control strategy is subjected to anti-saturation processing, the method further includes:

[0013] If the sign of the updated speed integral term is opposite to the sign of the proportional term of the speed proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, the integral term of the speed proportional-integral control strategy is controlled to be zero; wherein the sign includes a positive sign and a negative sign.

[0014] Optionally, a difference between a voltage value corresponding to the preset stroke and a voltage value corresponding to the maximum stroke of the accelerator is smaller than a preset threshold.

[0015] Optionally, the speed proportional integral control strategy reaches a saturation condition, including:

[0016] The first output value of the speed proportional-integral control strategy is greater than an output threshold.

[0017] Optionally, anti-saturation processing is performed on the speed proportional-integral control strategy, including:

[0018] The speed integral term of the speed proportional-integral control strategy is compensated.

[0019] Optionally, compensating the speed integral term of the speed proportional integral control strategy includes:

[0020] The speed integral term is compensated according to the difference between the first output value of the speed proportional-integral control strategy and the output threshold.

[0021] Optionally, after the accelerator is released, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero, including:

[0022] When the accelerator is released, obtaining an actual rotation speed of the motor;

[0023] Based on the actual speed, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero.

[0024] According to another aspect of the present invention, a control device for a vehicle motor is provided, wherein the control device for a vehicle motor is used to execute the control method for a vehicle motor according to any embodiment of the present invention; the control device for a vehicle motor comprises:

[0025] An acceleration control module, configured to control the acceleration of the motor according to a speed proportional-integral control strategy and a current proportional-integral control strategy when the accelerator of the vehicle is depressed to a preset stroke;

[0026] an anti-saturation processing module, configured to perform anti-saturation processing on the speed proportional-integral control strategy if the speed proportional-integral control strategy reaches a saturation condition in each control cycle of the speed proportional-integral control strategy, and control the motor acceleration according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy;

[0027] The deceleration control module is used to control the motor to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy after the accelerator is released, until the motor speed is zero.

[0028] According to another aspect of the present invention, a driver is provided. The driver includes the control device for a vehicle motor according to any embodiment of the present invention.

[0029] According to another aspect of the present invention, a vehicle is provided, the vehicle comprising the driver according to any one of the embodiments of the present invention, and further comprising a motor and an accelerator;

[0030] The driver is connected to the accelerator, and the driver is used to control the acceleration of the motor according to the speed proportional integral control strategy and the current proportional integral control strategy when the accelerator is pressed to a preset stroke; in each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing, and the motor is controlled to accelerate according to the processed speed proportional integral control strategy and the current proportional integral control strategy; after the accelerator is released, the motor is controlled to decelerate according to the speed proportional integral control strategy and the current proportional integral control strategy until the motor speed is zero.

[0031] The technical solution of the embodiment of the present invention is that during the acceleration process of the motor, if the speed proportional integral control strategy reaches the saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing, and the motor is accelerated according to the processed speed proportional integral control strategy and the current proportional integral control strategy, so that the motor is gradually accelerated according to the first output value of the speed proportional integral control strategy and the second output value of the current proportional integral control strategy. After the accelerator is released, the target speed zero and the actual speed of the motor are input into the speed proportional integral control strategy, so that the speed proportional integral control strategy and the current proportional integral control strategy control the motor to gradually decelerate until the speed of the motor is zero. In this way, by performing anti-saturation processing on the speed proportional integral control strategy during the acceleration process, the speed proportional integral control strategy will not be too large, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, achieving the switching of the motor state, and achieving the switching of the motor from the acceleration state to the braking state, which can better control the motor and better control the motor from the acceleration state to the braking state.

[0032] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 is a flow chart of a method for controlling a vehicle motor provided by an embodiment of the present invention;

[0035] Figure 2 is a flow chart of another vehicle motor control method provided by an embodiment of the present invention;

[0036] Figure 3 is a flow chart of another vehicle motor control method provided by an embodiment of the present invention;

[0037] Figure 4 is a flow chart of another vehicle motor control method provided by an embodiment of the present invention;

[0038] Figure 5 is a structural schematic diagram of a vehicle motor control device provided by an embodiment of the present invention;

[0039] Figure 6 It is a schematic diagram of a circuit structure of a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] As mentioned in the background technology, when the vehicle switches from the acceleration state to the braking state, it is difficult to switch quickly, which may cause the vehicle to not decelerate significantly and fail to control the motor speed well. The inventors have found that the reason for this problem is that in the related technology, the speed loop and the current loop are used to control the speed of the motor. The speed loop can be a proportional-integral control strategy, and the current loop can be a proportional-integral control strategy. The speed loop can take the target speed and the actual speed of the motor as input and output the target current value. The current loop takes the target current value and the actual current value fed back as input and outputs the torque voltage value. The output torque voltage value is transmitted to the motor to control the speed of the motor. Among them, the output value of the speed loop is, for example, V out , the proportional term of the speed loop is U p , the integral term of the speed loop is U i , the target speed is V1, the actual speed of the motor is V2, and the proportional coefficient is K p , the integral coefficient is K i , then the proportional term of the speed loop can be expressed as U p = (V1-V2) × K p , the integral term is U i =U i-1 +U p×K i , the output value of the speed loop V out = U p + U i . Wherein, i is an integer greater than 1.

[0043] When the target speed is high during acceleration, the target speed differs greatly from the actual speed, which will cause the proportional term U p is larger, so that the integral term U i is large, which makes the output value of the speed loop large and exceeds the output threshold. If the accelerator is released at this time, the target speed becomes zero, and the proportional term is less than zero. However, due to the excessive integral term, the output value of the speed loop is large. After decelerating for a period of time, the output value of the speed loop may reach the output threshold, so that the motor speed is still large, so that the vehicle does not decelerate significantly, it is difficult to quickly switch the motor state, and the motor speed cannot be well controlled. In addition, when the vehicle load is large, during acceleration, even if the output value of the speed loop is large and the output value of the current loop is large, the actual speed of the vehicle cannot reach the speed (target speed) corresponding to the output value of the speed loop. If it is switched to the braking state and deceleration starts based on the target speed, the output value of the speed loop may be larger during deceleration, and the motor deceleration cannot be controlled, and braking cannot be achieved.

[0044] In view of the above technical problems, an embodiment of the present invention provides a control method for a vehicle motor, which is executed by a driving device of the vehicle motor. For example, the driver of the vehicle motor includes a driving device of the vehicle motor, the driver is connected to the motor, drives the motor to run, and enables the motor to drive the wheels to travel.

[0045] Figure 1 is a flow chart of a method for controlling a vehicle motor provided by an embodiment of the present invention, with reference to Figure 1 , the control method of the vehicle motor includes:

[0046] S110 . When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy.

[0047] The vehicle may be, for example, an electric vehicle, a non-road vehicle such as a forklift and an aerial work platform, or a road vehicle. The accelerator of the vehicle may be, for example, an accelerator pedal. The preset stroke may be 10% to 100% of the maximum stroke of the accelerator, for example, 50% of the maximum stroke, or 60% of the maximum stroke, or 70% of the maximum stroke, or 80% of the maximum stroke, or 90% of the maximum stroke, or 100% of the maximum stroke, which is not limited in this embodiment. In practice, the maximum stroke may be when the accelerator is stepped on to the bottom.

[0048] Specifically, the stroke of the accelerator and the speed of the motor have a corresponding relationship, so the target speed of the motor can be determined according to the preset stroke corresponding to the accelerator. The target speed and the actual speed of the motor are input into the speed proportional integral control strategy, and the speed proportional integral control strategy outputs a first output value according to the target speed and the actual speed. The first output value is input into the current integral control strategy, and the current integral control strategy takes the first output value as a target, outputs a second output value to the motor, and controls the speed of the motor so that the speed of the motor is close to the target speed, thereby realizing the control of the motor acceleration.

[0049] Among them, the speed proportional integral control strategy and the current proportional integral control strategy can continuously adjust the motor speed according to the target speed and actual speed of the motor through multiple control cycles until the motor speed reaches the target speed. Among them, the speed proportional integral control strategy outputs a first output value once for a control cycle of the speed proportional integral control strategy, and the current proportional integral control strategy outputs a second output value once for a control cycle of the current proportional integral control strategy. Among them, the first output value is, for example, a current value, which is the target current of the current proportional integral control strategy. The second output value is, for example, a torque voltage value, which can control the motor speed.

[0050] S120. In each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, anti-saturation processing is performed on the speed proportional integral control strategy, and the motor acceleration is controlled according to the updated speed proportional integral control strategy and the current proportional integral control strategy.

[0051] The speed proportional integral control strategy reaches a saturation condition, for example, the output value of the speed proportional integral control strategy is large and exceeds the current range of the driver and the motor.

[0052] Specifically, in each control cycle of the speed proportional integral control strategy, the first output value of the speed proportional integral control strategy is judged. If the speed proportional integral control strategy reaches the saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing so that the first output value of the speed proportional integral control strategy does not exceed the current range of the driver and the motor. The motor is controlled to accelerate according to the processed speed proportional integral control strategy and the current proportional integral control strategy, so that the motor gradually accelerates according to the first output value of the speed proportional integral control strategy and the second output value of the current proportional integral control strategy.

[0053] If the speed proportional-integral control strategy has not reached the saturation condition, the motor acceleration is controlled according to the speed proportional-integral control strategy and the current proportional-integral control strategy at the beginning of acceleration.

[0054] S130: After the accelerator is released, the motor is controlled to decelerate according to the speed proportional-integral control strategy and the current proportional-integral control strategy until the motor speed is zero.

[0055] Specifically, after the accelerator is released, the motor needs to be converted from an acceleration state to a braking state. The target speed of the motor is zero, and the target speed zero and the actual speed of the motor are input into the speed proportional integral control strategy, so that the speed proportional integral control strategy and the current proportional integral control strategy control the motor to gradually decelerate until the speed of the motor is zero. Among them, by performing anti-saturation processing on the speed proportional integral control strategy during the acceleration process, the speed proportional integral control strategy will not be too large, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, achieving the switching of the motor state, and better controlling the motor.

[0056] The technical solution of this embodiment is that during the acceleration process of the motor, if the speed proportional integral control strategy reaches the saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing, and the motor acceleration is controlled according to the processed speed proportional integral control strategy and the current proportional integral control strategy, so that the motor is gradually accelerated according to the first output value of the speed proportional integral control strategy and the second output value of the current proportional integral control strategy. After the accelerator is released, the target speed zero and the actual speed of the motor are input into the speed proportional integral control strategy, so that the speed proportional integral control strategy and the current proportional integral control strategy control the motor to gradually decelerate until the speed of the motor is zero. In this way, by performing anti-saturation processing on the speed proportional integral control strategy during the acceleration process, the speed proportional integral control strategy will not be too large, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, achieving the switching of the motor state, and achieving the switching of the motor from the acceleration state to the braking state, which can better control the motor and better control the motor from the acceleration state to the braking state.

[0057] Based on the above technical solutions, Figure 2 is a flowchart of another vehicle motor control method provided by an embodiment of the present invention. Figure 2 , the control method of the vehicle motor includes:

[0058] S210: When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy.

[0059] S220. In each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, anti-saturation processing is performed on the speed integral term of the speed proportional integral control strategy.

[0060] Specifically, when the speed proportional-integral control strategy is subjected to anti-saturation processing, the speed integral term can be subjected to anti-saturation processing so that the speed proportional term will not be changed. The speed proportional term is then only related to the target speed of the motor, the actual speed of the motor and the speed proportional coefficient, so that the output of the speed proportional-integral control strategy can follow the target speed of the motor, thereby facilitating the acceleration of the motor to the target speed.

[0061] S230. If the sign of the updated speed integral term is opposite to the sign of the proportional term of the speed proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, then the integral term of the speed proportional-integral control strategy is controlled to zero; and the motor acceleration is controlled according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy; wherein the sign includes positive and negative signs.

[0062] Among them, the speed proportional integral control strategy includes a speed integral term and a speed proportional term. The sign of the speed integral term can be positive or negative. The sign of the speed proportional term can be positive or negative. During the motor acceleration process, when the sign of the speed proportional term is positive, it indicates that the difference between the target speed of the motor and the actual speed of the motor is greater than zero, then the motor can be accelerated in the forward direction; when the sign of the speed proportional term is negative, it indicates that the difference between the target speed of the motor and the actual speed of the motor is less than zero, then the motor is accelerated in the reverse direction.

[0063] Specifically, the speed proportional term is U p , the speed integral term is U i , the speed integral coefficient is K i , then the speed integral term U i =U i-1 +U p ×K i , then when the sign of the speed proportional term is negative, the sign of the accumulated speed integral term is also negative.

[0064] During acceleration, if the target speed of the motor is very large and the load of the motor is large, the actual speed of the motor will be very small. Then, the difference between the target speed and the actual speed of the motor is very large, resulting in a large absolute value of the speed proportional term, which may exceed the current range of the driver and the motor. At this time, after the anti-saturation treatment of the speed integral term of the speed proportional integral control strategy, the sign of the speed integral term may be changed from positive to negative, so that the sign of the speed integral term is opposite to the sign of the proportional integral term. By controlling the speed integral term to zero when the sign of the updated speed integral term is opposite to the sign of the proportional term of the speed proportional integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, it can be avoided that when the speed integral term is negative, switching to the braking state (accelerator is released), the speed integral term and the speed proportional term are both negative, resulting in excessive braking, so that the motor speed can change smoothly and the motor can be better controlled to switch states.

[0065] After the speed integral term of the speed proportional-integral control strategy is zero, the motor acceleration is controlled according to the speed proportional-integral control strategy and the current proportional-integral control strategy updated after the speed integral term is zero, so as to control the motor speed close to the target speed during acceleration.

[0066] It should be noted that if the sign of the speed integral term of the speed proportional-integral control strategy does not change after anti-saturation processing is performed on the speed integral term, the motor is accelerated and controlled according to the speed proportional-integral control strategy and current proportional-integral control strategy updated after anti-saturation processing.

[0067] S240: After the accelerator is released, the motor is controlled to decelerate according to the speed proportional-integral control strategy and the current proportional-integral control strategy until the motor speed is zero.

[0068] On the basis of the above technical solution, optionally, a difference between a voltage value corresponding to a preset stroke and a voltage value corresponding to a maximum stroke of the accelerator is smaller than a preset threshold.

[0069] Specifically, the preset threshold is relatively small, for example, it can be 0.5V, or 0.3V, or other values. The difference between the voltage value corresponding to the preset stroke and the voltage value corresponding to the maximum stroke of the accelerator is less than the preset threshold, indicating that the preset stroke is close to or equal to the maximum stroke of the accelerator. In this way, when the accelerator is stepped on to the preset stroke, the target speed of the motor is relatively large. By performing anti-saturation processing on the speed proportional integral control strategy when the speed proportional integral control strategy reaches the saturation condition, the speed proportional integral control strategy can be prevented from being too large, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, achieving the switching of the motor state, and better controlling the motor.

[0070] Based on the above technical solutions, Figure 3 is a flowchart of another vehicle motor control method provided by an embodiment of the present invention. Optionally, refer to Figure 3 , the control method of the vehicle motor includes:

[0071] S310: When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy.

[0072] S320. In each control cycle of the speed proportional-integral control strategy, if the first output value of the speed proportional-integral control strategy is greater than the output threshold, the speed integral term of the speed proportional-integral control strategy is compensated.

[0073] Specifically, the output threshold can be determined based on the maximum current that the driver and the motor can withstand, for example, a value close to the maximum current that the driver and the motor can withstand. When the motor accelerates, if the first output value of the speed proportional integral control strategy is greater than the output threshold, it indicates that the current range of the driver and the motor is exceeded, that is, the speed proportional integral control strategy has reached a saturation condition. By compensating the speed integral term of the speed proportional integral control strategy, that is, adjusting the speed integral term, so that the first output value of the speed proportional integral control strategy is equal to the output threshold, the speed proportional integral control strategy is avoided from being saturated. In addition, it can be avoided that when the motor accelerates, the first output value of the speed proportional integral control strategy is too large (greater than the output threshold), which makes it difficult to reduce the speed when switching to the braking state, and better control of the motor operation can be achieved.

[0074] S330. If the sign of the updated speed integral term is opposite to the sign of the proportional term of the proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, the integral term of the proportional-integral control strategy is controlled to be zero; and the motor acceleration is controlled according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy; wherein the sign includes positive and negative signs.

[0075] Exemplarily, the speed proportional term is U p , the speed proportional coefficient is K p , the target speed during acceleration is V ref1 , the actual speed of the motor is V fab1 , then the speed proportional term is U p =(V ref1 -V fab1 )×K p , the speed integral term is U i , the speed integral coefficient is K i , then the speed integral term is U i =U i-1+U p ×K i When the motor accelerates in the forward direction, the speed proportional term U p >0, speed integral term U i >0.

[0076] When the target speed during acceleration is large and the load is large, the actual speed of the motor is small, so that the difference between the target speed and the actual speed is large, and the speed proportional term is greater than the speed threshold, then the first output value of the speed proportional integral control strategy is larger, so that after compensating the speed integral term of the speed proportional integral control strategy, the sign of the speed integral term changes. For example, if the motor is moving forward, the updated speed integral term U i <0. Then after the accelerator is released, the speed proportional term is U p = (0-V fab1 )×K p , speed proportional term U p <0, and the speed integral term U i <0, resulting in a faster drop in motor speed. The technical solution of this embodiment controls the integral term of the proportional-integral control strategy to be zero when the sign of the updated speed integral term is opposite to the sign of the proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, so as to avoid a large speed change during deceleration, which is conducive to smooth braking, so that the motor can smoothly switch from the acceleration state to the braking state.

[0077] S340: After the accelerator is released, the motor is controlled to decelerate according to the speed proportional-integral control strategy and the current proportional-integral control strategy until the motor speed is zero.

[0078] On the basis of the above technical solution, optionally, the speed integral term of the speed proportional integral control strategy is compensated, including:

[0079] The speed integral term is compensated according to the difference between the first output value of the speed proportional integral control strategy and the output threshold.

[0080] Specifically, the output threshold value can be subtracted from the first output value to obtain a difference, and the speed integral term can be added to the obtained difference. The output threshold value can also be subtracted from the first output value to obtain a difference, and the speed integral term can be subtracted from the obtained difference. Alternatively, the absolute value of the difference between the output threshold value and the first output value is calculated, and the absolute value of the difference is subtracted from the speed integral term. In this way, the speed integral term is compensated, and the portion of the first output value that exceeds the output threshold value is subtracted from the speed integral term, which can ensure that the first output value is equal to the output threshold value, so that the speed proportional integral control strategy will not be too large, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, achieving the switching of the motor state, and better controlling the motor.

[0081] For example, the output threshold is V max , the first output value is V out The difference between the output threshold and the first output value is V sa , then V sa =V max -V out , then the speed integral term is U i =U i-1 +V sa , to achieve compensation for the speed integral term, so that the first output value is equal to the output threshold.

[0082] In summary, when the motor is accelerated, in each control cycle of the speed proportional integral control strategy, if the first output value of the speed proportional integral control strategy is greater than the output threshold, it indicates that the speed proportional integral control strategy has reached the saturation condition, and the speed integral term is added to the output threshold minus the difference of the first output value to achieve compensation for the speed integral term, that is, to achieve anti-saturation processing. However, when the load of the motor is large and the target speed during acceleration is greatly different from the actual speed of the motor, the value of the speed proportional term will be large, resulting in the value of the speed proportional term being greater than the output threshold. Then, the absolute value of the difference between the first output value and the output threshold is large. After the speed integral term is subtracted from the absolute value of the larger difference, the sign of the speed integral term will change. For example, when the motor is accelerated in the forward direction, the signs of the speed proportional term and the speed integral term are positive. When the speed integral term is added to the output threshold minus the difference of the first output value, the sign of the speed integral term becomes negative, that is, the updated speed integral term is opposite to the sign of the speed integral term before the update, that is, the updated speed integral term is opposite to the sign of the speed proportional term. When the motor accelerates in the reverse direction, the signs of the speed proportional term and the speed integral term are negative. When the speed integral term is added to the difference between the output threshold and the first output value, the sign of the speed integral term becomes positive, that is, the updated speed integral term is opposite in sign to the speed integral term before the update, that is, the updated speed integral term is opposite in sign to the speed proportional term.

[0083] For example, when the motor is running forward, after the sign of the speed integral item changes, if the accelerator is released and the target speed during deceleration is zero, the sign of the speed proportional item is negative, and the signs of the speed integral item and the speed proportional item are both negative, and the speed change is large, which will cause severe braking. The technical solution of this embodiment controls the integral item of the proportional integral control strategy to be zero when the sign of the updated speed integral item is opposite to the sign of the proportional integral control strategy, or the sign of the updated speed integral item is opposite to the sign of the speed integral item before the update, so as to avoid the situation where the speed changes greatly when the accelerator is released, thereby achieving a smooth switch from the acceleration state to the braking state.

[0084] Based on the above technical solutions, Figure 4 is a flow chart of another vehicle motor control method provided by an embodiment of the present invention. Optionally, refer to Figure 4 , the control method of the vehicle motor includes:

[0085] S410: When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy.

[0086] S420. In each control cycle of the speed proportional-integral control strategy, if the first output value of the speed proportional-integral control strategy is greater than the output threshold, the speed integral term of the speed proportional-integral control strategy is compensated.

[0087] S430. If the sign of the updated speed integral term is opposite to the sign of the proportional term of the proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, the integral term of the proportional-integral control strategy is controlled to be zero; and the motor acceleration is controlled according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy; wherein the sign includes positive and negative signs.

[0088] S440: When the accelerator is released, obtain the actual rotation speed of the motor.

[0089] Specifically, for example, the actual speed of the motor can be obtained through a speed sensor or encoder, and the speed sensor may include an infrared speed sensor, a radar speed sensor, a DC speed meter or an AC speed meter, etc. When the accelerator is released, the actual speed of the motor is also the maximum actual speed reached when the motor is accelerated.

[0090] S450, based on the actual speed, the motor is controlled to decelerate according to the speed proportional-integral control strategy and the current proportional-integral control strategy until the motor speed is zero.

[0091] Specifically, based on the actual speed, that is, the speed proportional integral control strategy decelerates the motor from the actual speed, rather than decelerating the motor at the target speed during acceleration, that is, the target speed zero during deceleration and the actual speed of the motor are input into the speed proportional integral control strategy, and the speed proportional integral control strategy decelerates the motor according to the target speed zero during deceleration and the actual speed of the motor. In this way, when the load of the motor is large and it cannot be accelerated to the target speed, it is avoided that the output value of the speed proportional integral control strategy is still greater than the output threshold value due to deceleration from the target speed, so that when the accelerator is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking.

[0092] An embodiment of the present invention further provides a control device for a vehicle motor, and the control device for a vehicle motor is used to execute a control method for a vehicle motor provided by any embodiment of the present invention. Figure 5 is a schematic diagram of a control device for a vehicle motor provided by an embodiment of the present invention, with reference to Figure 5 , the control device of the vehicle motor includes: an acceleration control module 510, an anti-saturation processing module 520 and a deceleration control module 530;

[0093] The acceleration control module 510 is used to control the motor acceleration according to the speed proportional integral control strategy and the current proportional integral control strategy when the accelerator of the vehicle is depressed to a preset stroke;

[0094] The anti-saturation processing module 520 is used to perform anti-saturation processing on the speed proportional integral if the speed proportional integral control strategy reaches a saturation condition in each control cycle of the speed proportional integral control strategy, and control the motor acceleration according to the processed speed proportional integral control strategy and current proportional integral control strategy;

[0095] The deceleration control module 530 is used to control the motor to decelerate according to the speed proportional-integral control strategy and the current proportional-integral control strategy after the accelerator is released, until the motor speed is zero.

[0096] The control device for a vehicle motor provided in an embodiment of the present invention can execute the control method for a vehicle motor provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0097] The embodiment of the present invention further provides a driver, which includes the control device for the vehicle motor provided by any embodiment of the present invention. The driver can be connected to the motor to drive the motor to run, so that the motor drives the wheels to travel. Because the driver includes the control device for the vehicle motor provided by any embodiment of the present invention, the driver has the same beneficial effects as the control device for the vehicle motor provided by any embodiment of the present invention, which will not be described in detail here.

[0098] An embodiment of the present invention further provides a vehicle, Figure 6 is a schematic diagram of a circuit structure of a vehicle provided by an embodiment of the present invention, with reference to Figure 6 The vehicle includes a driver 100 provided by any embodiment of the present invention, and also includes a motor 200 and an accelerator 300; the driver 100 is connected to the motor 200, and the driver 100 is used to control the acceleration of the motor 200 according to the speed proportional integral control strategy and the current proportional integral control strategy when the accelerator 300 is stepped on to a preset stroke; in each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, the speed proportional integral is subjected to anti-saturation processing, and the motor 200 is controlled to accelerate according to the processed speed proportional integral control strategy and the current proportional integral control strategy; after the accelerator 300 is released, the motor 200 is controlled to decelerate according to the speed proportional integral control strategy and the current proportional integral control strategy until the speed of the motor 200 is zero.

[0099] In some embodiments, the driver 100 may be connected to the accelerator 300, and the driver 100 obtains the stroke and state of the accelerator 300. In other embodiments, the driver 100 may also obtain the stroke and state of the accelerator 300 from a controller of the vehicle. Figure 6 2 shows a case where the driver 100 is connected to the accelerator 300 , but this is not limiting.

[0100] The technical solution of this embodiment is that during the acceleration process of the motor 200, if the speed proportional integral control strategy of the driver 100 reaches the saturation condition, the driver 100 performs anti-saturation processing on the speed proportional integral control strategy, and controls the motor acceleration according to the processed speed proportional integral control strategy and the current proportional integral control strategy, so that the motor 200 gradually accelerates according to the first output value of the speed proportional integral control strategy and the second output value of the current proportional integral control strategy. After the accelerator 300 is released, the driver 100 inputs the target speed zero and the actual speed of the motor 200 into the speed proportional integral control strategy, so that the speed proportional integral control strategy and the current proportional integral control strategy control the motor 200 to gradually decelerate until the speed of the motor 200 is zero. In this way, by performing anti-saturation processing on the speed proportional integral control strategy during the acceleration process, the speed proportional integral control strategy will not be too large, so that when the accelerator 300 is released, the first output value of the speed proportional integral control strategy can be reduced quickly, and the motor speed can be reduced, thereby achieving braking, and switching the state of the motor 200, and switching the motor 200 from the acceleration state to the braking state, which can better control the motor 200 and better control the motor 200 to switch from the acceleration state to the braking state.

[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling a vehicle motor, characterized in that: The control method is executed by a control device of a vehicle motor; the control method comprises: When the accelerator of the vehicle is depressed to a preset stroke, the motor is controlled to accelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy; In each control cycle of the speed proportional-integral control strategy, if the speed proportional-integral control strategy reaches a saturation condition, anti-saturation processing is performed on the speed proportional-integral control strategy, and the motor acceleration is controlled according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy; After the accelerator is released, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero; The speed proportional integral control strategy is subjected to anti-saturation processing, including: Performing anti-saturation processing on the speed integral term of the speed proportional integral control strategy; After the speed proportional integral control strategy is subjected to anti-saturation processing, the method further includes: If the sign of the updated speed integral term is opposite to the sign of the proportional term of the speed proportional-integral control strategy, or the sign of the updated speed integral term is opposite to the sign of the speed integral term before the update, the integral term of the speed proportional-integral control strategy is controlled to be zero; wherein the sign includes a positive sign and a negative sign.

2. The method according to claim 1, characterized in that A difference between a voltage value corresponding to the preset stroke and a voltage value corresponding to a maximum stroke of the accelerator is smaller than a preset threshold.

3. The method according to claim 1, characterized in that The speed proportional integral control strategy reaches a saturation condition, including: The first output value of the speed proportional-integral control strategy is greater than an output threshold.

4. The method according to claim 1, characterized in that: The speed proportional integral control strategy is subjected to anti-saturation processing, including: The speed integral term of the speed proportional-integral control strategy is compensated.

5. The method according to claim 4, characterized in that Compensating the speed integral term of the speed proportional integral control strategy includes: The speed integral term is compensated according to the difference between the first output value of the speed proportional-integral control strategy and the output threshold.

6. The method according to claim 1, characterized in that After the accelerator is released, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero, including: When the accelerator is released, obtaining an actual rotation speed of the motor; Based on the actual speed, the motor is controlled to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy until the motor speed is zero.

7. A control device for a vehicle motor, characterized in that: The vehicle motor control device is used to execute the vehicle motor control method according to any one of claims 1 to 6; The control device of the vehicle motor comprises: An acceleration control module, configured to control the acceleration of the motor according to a speed proportional-integral control strategy and a current proportional-integral control strategy when the accelerator of the vehicle is depressed to a preset stroke; an anti-saturation processing module, configured to perform anti-saturation processing on the speed proportional-integral control strategy if the speed proportional-integral control strategy reaches a saturation condition in each control cycle of the speed proportional-integral control strategy, and control the motor acceleration according to the updated speed proportional-integral control strategy and the current proportional-integral control strategy; The deceleration control module is used to control the motor to decelerate according to a speed proportional-integral control strategy and a current proportional-integral control strategy after the accelerator is released, until the motor speed is zero.

8. A driver, characterized in that: A control device for a vehicle motor comprising the control device of claim 7.

9. A vehicle, characterized in that: The driver according to claim 8 further comprises a motor and an accelerator; The driver is connected to the motor, and is used to control the acceleration of the motor according to the speed proportional integral control strategy and the current proportional integral control strategy when the accelerator is pressed to a preset stroke; in each control cycle of the speed proportional integral control strategy, if the speed proportional integral control strategy reaches a saturation condition, the speed proportional integral control strategy is subjected to anti-saturation processing, and the motor is controlled to accelerate according to the processed speed proportional integral control strategy and the current proportional integral control strategy; after the accelerator is released, the motor is controlled to decelerate according to the speed proportional integral control strategy and the current proportional integral control strategy until the motor speed is zero.