Motor drive control method and device, medium and vehicle
By monitoring the position feedback of the motor and the target request voltage, setting the voltage difference threshold and driving mode, the problem of the motor passing through the target position under inertia is solved, the accuracy and speed of the motor drive control is improved, and the motor reaches the target position at one time is achieved. .
Patent Information
- Application Number
- CN202310603610.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2024-11-26
AI Technical Summary
The motor is prone to crossing the target position under inertia, resulting in poor driving control accuracy and slow response speed. A method is needed to improve the motor driving control accuracy and response speed.
By monitoring the target request voltage and the motor position feedback voltage, the first voltage difference threshold is set, and the motor is stopped when the absolute value reaches the threshold, so that the motor continues to rotate under the action of inertia until the difference between the position feedback voltage and the target request voltage meets the voltage Deviate the need and determine the driving mode and speed according to the relationship between the position feedback voltage and the target request voltage, and correct the voltage difference threshold to improve the next driving accuracy.
The motor is driven at one time to the position deviation control range, which improves the driving control accuracy and response speed, and saves back and forth driving time.
Smart Images

Figure CN119030370A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and in particular to a motor drive control method, device, medium and vehicle. Background Art
[0002] With the accelerated pace of social and economic development, various electric devices have been developed and applied to various fields. Among them, motors as key equipment have been widely used in many fields, such as the vehicle field.
[0003] As an actuator, the motor can rotate to the target position according to the control signal of the controller. However, in actual applications, the motor stops driving when it reaches the target position. However, at this time, the motor will pass the target position under the action of inertia and continue to rotate for a distance before stopping; at this time, the position of the motor will exceed the position deviation control range, causing the motor to be driven in the opposite direction again. Similarly, the motor stops driving when the motor returns to the target position, and the motor passes the target position again under the action of inertia. In this way, the motor is driven back and forth until the rotation stop position of the motor is within the position deviation control range, resulting in poor motor drive control accuracy and slow response speed. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a motor drive control method, device, medium and vehicle to improve the motor drive control accuracy and response speed.
[0005] The present disclosure provides a motor drive control method, comprising:
[0006] Monitoring a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent a current position of the motor, and the target request voltage is used to represent a target position to which the motor is to rotate;
[0007] When the target requested voltage changes, driving the motor to rotate;
[0008] When the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches a first voltage difference threshold, driving the motor is stopped. The first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target request voltage meet the voltage deviation requirement when the motor stops rotating.
[0009] In the present disclosure, driving the motor to rotate includes:
[0010] Determining a driving mode of the motor based on a magnitude relationship between the current position feedback voltage and the target request voltage, wherein the driving mode includes forward rotation or reverse rotation;
[0011] The motor is driven to rotate according to the driving mode.
[0012] In the present disclosure, driving the motor to rotate includes:
[0013] When the absolute value of the first voltage difference is greater than the second voltage difference threshold, the driving motor rotates at a first speed;
[0014] When the absolute value of the first voltage difference is less than or equal to the second voltage difference threshold, the motor is driven to rotate at a second speed, wherein the second voltage difference threshold is greater than the first voltage difference threshold, and the second speed is less than the first speed.
[0015] In the present disclosure, after stopping driving the motor, the method further includes:
[0016] After the motor stops rotating, the first voltage difference threshold is corrected based on the position feedback voltage and the target request voltage to reduce the absolute value of the second voltage difference after the motor is driven next time.
[0017] In the present disclosure, the step of correcting the first voltage difference threshold based on the position feedback voltage and the target request voltage includes:
[0018] When the position feedback voltage is less than the target request voltage, obtaining a third voltage difference threshold based on the difference between the absolute values of the first voltage difference threshold and the second voltage difference;
[0019] If the third voltage difference threshold is greater than or equal to the voltage difference threshold lower limit, the third voltage difference threshold is used as the first voltage difference threshold;
[0020] and / or, when the position feedback voltage is greater than or equal to the target request voltage, obtaining a fourth voltage difference threshold based on the sum of the absolute values of the first voltage difference threshold and the second voltage difference;
[0021] If the fourth voltage difference threshold is less than or equal to the upper limit value of the voltage difference threshold, the fourth voltage difference threshold is used as the first voltage difference threshold, wherein the lower limit value of the voltage difference threshold and the upper limit value of the voltage difference threshold are used to constrain the absolute value of the second voltage difference after the motor is driven next time to be smaller than the absolute value of the second voltage difference after the motor is driven that time.
[0022] In the present disclosure, the method further comprises:
[0023] If the third voltage difference threshold is less than the voltage difference threshold lower limit, the voltage difference threshold lower limit is used as the first voltage difference threshold;
[0024] If the fourth voltage difference threshold is greater than the voltage difference threshold upper limit value, the voltage difference threshold upper limit value is used as the first voltage difference threshold value.
[0025] In the present disclosure, the method further comprises:
[0026] Obtaining the motor model of the motor and the driving voltage for driving the motor to rotate;
[0027] Based on a pre-constructed stall time threshold model, determining the stall time threshold corresponding to the motor model and the drive voltage, wherein the stall time threshold model is used to characterize the mapping relationship between the motor model, the drive voltage and the stall time threshold, and the stall time threshold includes a first time threshold and / or a second time threshold;
[0028] When any of the following conditions exists, it is determined that the motor is stalled:
[0029] During the process of driving the motor to rotate, the position feedback voltage does not change and the duration exceeds the first time threshold;
[0030] When the time for driving the motor to rotate exceeds the second time threshold, the difference between the position feedback voltage and the target request voltage does not meet the voltage deviation requirement.
[0031] The present disclosure provides a motor drive control device, comprising:
[0032] A voltage monitoring module, used for monitoring a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent the current position of the motor, and the target request voltage is used to represent the target position to which the motor is to rotate;
[0033] A first motor driving module, configured to drive the motor to rotate when the target requested voltage changes;
[0034] The second motor driving module is used to stop driving the motor when the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches a first voltage difference threshold, and the first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target request voltage meet the voltage deviation requirement when the motor stops rotating.
[0035] The present disclosure also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute the steps of any of the above methods.
[0036] The present disclosure also provides a vehicle, comprising:
[0037] one or more processors;
[0038] A memory for storing one or more programs or instructions;
[0039] The processor is used to execute the steps of any of the above methods by calling the program or instruction stored in the memory.
[0040] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0041] The technical solution provided by the embodiment of the present disclosure sets a first voltage difference threshold value, monitors the target request voltage and the position feedback voltage of the motor during the process of driving the motor to rotate, and judges in real time whether the absolute value of the first voltage difference between the position feedback voltage and the target request voltage has reached the first voltage difference threshold value. When it is determined that the first voltage difference between the position feedback voltage and the target request voltage has reached the first voltage difference threshold value, the motor is stopped from being driven, that is, when the motor is still a certain distance away from the target position, the driving voltage is stopped for the motor, and then the motor continues to rotate forward under the action of inertia until the motor stops rotating completely, and the second voltage difference between the position feedback voltage and the target request voltage meets the voltage deviation requirement, that is, the rotation stop position of the motor is within the position deviation control range, so that the motor is rotated to the target position or close to the target position. In this way, the technical solution provided by the embodiment of the present disclosure only needs to drive the motor once to rotate the motor into the position deviation control range, which not only improves the accuracy of the motor drive control, but also saves the time of driving the motor back and forth, and improves the response speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A flow chart of a motor drive control method provided by an embodiment of the present disclosure;
[0045] Figure 2 A structural block diagram of a motor drive control device provided in an embodiment of the present disclosure;
[0046] Figure 3 A schematic diagram of the structure of a vehicle provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0049] In response to the problems pointed out in the background technology, the embodiment of the present disclosure sets a first voltage difference threshold so that the driving of the motor is stopped when the motor is still a certain distance away from the target position, thereby allowing the motor to continue to rotate to the target position or close to the target position under the action of inertia, that is, within the position deviation control range.
[0050] Specifically, Figure 1 This is a flow chart of a motor drive control method provided by an embodiment of the present disclosure. This method is applicable to the case of driving and controlling a motor with a feedback function, and can be applied to motors on vehicles, such as the damper motor of a vehicle air conditioner, an electronic steering motor, a headlight follow-up steering motor, and an electric door and window motor. This method can be executed by a motor drive control device, which can be implemented in software and / or hardware. Figure 1 As shown, the method comprises the following steps:
[0051] S110 , monitoring the target request voltage and the position feedback voltage of the motor.
[0052] The position feedback voltage is used to represent the current position of the motor, and the target request voltage is used to represent the target position to which the motor is to rotate.
[0053] In the disclosed embodiment, the motor has a feedback function, that is, when the motor rotates to any position, it will feedback a position feedback voltage used to characterize any position of the motor, thereby determining the rotation position of the motor and judging whether the motor is rotating according to the position feedback voltage. The target request voltage indicates the final position to be reached by the motor in the current motor drive cycle, that is, the target position, and then the distance between the current position of the motor and the target position can be determined according to the position feedback voltage and the target request voltage.
[0054] S120 . When the target requested voltage changes, the motor is driven to rotate.
[0055] The user sets the vehicle equipment (such as the air conditioning system) according to the needs (such as the air outlet direction of the air conditioner, internal and external circulation, and heating and cooling adjustment). Correspondingly, the vehicle equipment controller generates the target request voltage of each motor according to the settings. For example, the air conditioning controller generates the target request voltage of the corresponding damper motor according to the air outlet direction of the air conditioner. Therefore, the target request voltage can be monitored, and whether to start driving the motor to rotate is determined by judging whether the target request voltage changes. Specifically, when the target request voltage does not change, it means that the position of the motor remains unchanged and there is no need to drive the motor; when the target request voltage changes, it means that the position of the motor needs to be adjusted and the motor should be driven to rotate.
[0056] In addition, in order to drive the motor to rotate toward the target position and improve the driving efficiency, the driving mode should be determined first, that is, whether the motor is driven to rotate forward or reverse. Accordingly, in some embodiments, driving the motor to rotate includes: determining the driving mode of the motor based on the magnitude relationship between the current position feedback voltage and the target request voltage, wherein the driving mode includes forward or reverse rotation; driving the motor to rotate according to the driving mode. The magnitude relationship between the position feedback voltage and the target request voltage reflects the relative position relationship between the current position of the motor and the target position, and then based on the magnitude relationship between the position feedback voltage and the target request voltage, the rotation direction of the motor can be determined, thereby determining the driving mode. Specifically, when the target request voltage is greater than the position feedback voltage, the driving mode of the motor is determined to be forward rotation; when the target request voltage is less than the position feedback voltage, the driving mode of the motor is determined to be reverse rotation.
[0057] In addition, in some working conditions, there may be a situation where the target request voltage changes very little. At this time, the first voltage difference between the current position feedback voltage and the target request voltage is very small (meets the voltage deviation requirement), and it can be considered that the motor drive is in place and there is no need to drive the motor to rotate. Therefore, in order to avoid invalid drive control, when the target request voltage changes, it can be first determined whether the first voltage difference between the current position feedback voltage and the target request voltage meets the voltage deviation requirement; if the first voltage difference meets the voltage deviation requirement, the motor is not driven; if the first voltage difference does not meet the voltage deviation requirement, the motor is driven to rotate. Among them, the voltage deviation requirement is used to characterize that the rotation position of the motor is within the position deviation control range, that is, the motor has been driven in place. Specifically, the voltage difference threshold can be set according to the position deviation control range. When the first voltage difference is greater than the voltage difference threshold, the voltage deviation requirement is not met and the motor is driven to rotate; when the first voltage difference is less than or equal to the voltage difference threshold, the voltage deviation requirement is met and the motor is not driven.
[0058] S130. When the absolute value of the first voltage difference between the position feedback voltage and the target requested voltage reaches a first voltage difference threshold, stop driving the motor. The first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target requested voltage meet the voltage deviation requirement when the motor stops rotating.
[0059] In this embodiment, the first voltage difference threshold can be a unified voltage difference threshold obtained by performing driving experiments on motors of different models at different driving voltages, or it can be a voltage difference threshold corresponding to the motor model obtained by performing driving experiments on motors of each model at different driving voltages. The first voltage difference threshold is used to constrain the forward distance of the motor under the action of inertia, so that after the motor advances a certain distance from the position where the drive stops, the rotation position of the motor is within the position deviation control range. Therefore, as long as the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches the first voltage difference threshold, the motor is stopped from being driven, and the rotation position of the motor can reach or approach the target position when the motor stops rotating.
[0060] The motor drive control method provided by the embodiment of the present disclosure sets a first voltage difference threshold value, monitors the target request voltage and the position feedback voltage of the motor during the process of driving the motor to rotate, and judges in real time whether the absolute value of the first voltage difference between the position feedback voltage and the target request voltage has reached the first voltage difference threshold value. When it is determined that the first voltage difference between the position feedback voltage and the target request voltage has reached the first voltage difference threshold value, the motor is stopped from being driven, that is, when the motor is still a certain distance away from the target position, the drive voltage is stopped for the motor, and then the motor continues to rotate forward under the action of inertia until the motor completely stops rotating, and the second voltage difference between the position feedback voltage and the target request voltage meets the voltage deviation requirement, that is, the rotation stop position of the motor is within the position deviation control range, so that the motor is rotated to the target position or close to the target position. In this way, the technical solution provided by the embodiment of the present disclosure only needs to drive the motor once to rotate the motor into the position deviation control range, which not only improves the accuracy of the motor drive control, but also saves the time of driving the motor back and forth, and improves the response speed.
[0061] At present, the motor is usually driven to rotate at a fixed speed, but if the driving speed is too fast, it is easy to make the motor pass the target position, and if the driving speed is too slow, there will be problems such as inadequate driving and long driving time, resulting in poor stability of the motor drive. In order to ensure the stability of the motor drive, the embodiment of the present disclosure adds a variable driving speed strategy. Accordingly, in some embodiments, driving the motor to rotate includes: when the absolute value of the first voltage difference is greater than the second voltage difference threshold, driving the motor to rotate at a first speed; when the absolute value of the first voltage difference is less than or equal to the second voltage difference threshold, driving the motor to rotate at a second speed, wherein the second voltage difference threshold is greater than the first voltage difference threshold, and the second speed is less than the first speed. In this way, when the current position of the motor is far from the target position, the motor is driven to rotate at a faster speed, thereby reducing the driving time; when the current position of the motor is close to the target position, the motor is driven to rotate at a slower speed, thereby avoiding the motor passing the target position due to excessive driving speed.
[0062] In some embodiments, driving the motor to rotate at a first speed includes: driving the motor to rotate at a first driving voltage duty cycle; driving the motor to rotate at a second speed includes: driving the motor to rotate at a second driving voltage duty cycle, wherein the second driving voltage duty cycle is smaller than the first driving voltage duty cycle.
[0063] Specifically, the second voltage difference threshold is used to divide the entire drive cycle into two stages, such as the first drive stage and the second drive stage. The drive stage in which the absolute value of the first voltage difference is greater than the second voltage difference threshold is the first drive stage. In the first drive stage, the position feedback voltage differs greatly from the target request voltage, that is, the current position of the motor is far from the target position. The motor can be driven to rotate at a faster speed according to a larger drive voltage duty cycle, that is, the first drive voltage duty cycle, thereby reducing the drive time. The drive stage in which the absolute value of the first voltage difference is less than or equal to the second voltage difference threshold is the second drive stage. In the second drive stage, the position feedback voltage differs less from the target request voltage, that is, the current position of the motor is close to the target position. The motor can be driven to rotate at a slower speed according to a smaller drive voltage duty cycle, that is, the second drive voltage duty cycle, thereby avoiding the motor passing the target position due to excessive driving speed.
[0064] In some embodiments, after stopping driving the motor, the method further includes: after the motor stops rotating, based on the position feedback voltage and the target request voltage, correcting the first voltage difference threshold to reduce the absolute value of the second voltage difference after the motor is driven next time.
[0065] After each motor drive cycle, the embodiment of the present disclosure will correct the first voltage difference threshold based on the position feedback voltage and the target request voltage, so that the corrected first voltage difference threshold is used in the next motor drive cycle, so that the absolute value of the second voltage difference after the motor is driven next time is further reduced. In this way, the first voltage difference threshold is continuously updated and iterated, further improving the motor drive control accuracy and making the motor drive more accurate.
[0066] Specifically, based on the position feedback voltage and the target request voltage, the first voltage difference threshold is corrected, including: when the position feedback voltage is less than the target request voltage, based on the difference between the absolute values of the first voltage difference threshold and the second voltage difference, a third voltage difference threshold is obtained; if the third voltage difference threshold is greater than or equal to the voltage difference threshold lower limit, the third voltage difference threshold is used as the first voltage difference threshold; and / or, when the position feedback voltage is greater than or equal to the target request voltage, based on the sum of the absolute values of the first voltage difference threshold and the second voltage difference, a fourth voltage difference threshold is obtained; if the fourth voltage difference threshold is less than or equal to the voltage difference threshold upper limit, the fourth voltage difference threshold is used as the first voltage difference threshold, wherein the voltage difference threshold lower limit and the voltage difference threshold upper limit are used to constrain the absolute value of the second voltage difference after the motor is driven next time to be less than the absolute value of the second voltage difference after the motor is driven this time.
[0067] In the above embodiment, after the motor stops rotating, if the position feedback voltage is less than the target request voltage, it means that the motor stops rotating before reaching the target position, and the position of the stopped driving motor should be moved backward to make the position feedback voltage closer to the target request voltage, that is, the position of the motor when it stops rotating is closer to the target position. Therefore, the third voltage difference threshold obtained by the difference between the absolute value of the first voltage difference threshold and the second voltage difference can be used as the first voltage difference threshold; at the same time, in order to avoid the situation where the third voltage difference threshold is used as the first voltage difference threshold, and the distance the motor moves forward after passing the target position the next time the motor is driven to rotate is greater than the absolute value of the second voltage difference, the third voltage difference threshold is used as the first voltage difference threshold only when the third voltage difference threshold is greater than or equal to the lower limit of the voltage difference threshold. Similarly, after the motor stops rotating, if the position feedback voltage is greater than the target request voltage, it means that the motor stops rotating after passing the target position, and the position of the motor that stops driving should be moved forward to make the position feedback voltage closer to the target request voltage, that is, the position of the motor when it stops rotating is closer to the target position. Therefore, the fourth voltage difference threshold obtained by the sum of the absolute values of the first voltage difference threshold and the second voltage difference can be used as the first voltage difference threshold. Correspondingly, only when the fourth voltage difference threshold is less than or equal to the upper limit of the voltage difference threshold, the fourth voltage difference threshold is used as the first voltage difference threshold. In addition, if the third voltage difference threshold is less than the lower limit of the voltage difference threshold, the lower limit of the voltage difference threshold is used as the first voltage difference threshold; if the fourth voltage difference threshold is greater than the upper limit of the voltage difference threshold, the upper limit of the voltage difference threshold is used as the first voltage difference threshold. In this way, the absolute value of the second voltage difference after the motor is driven next time is guaranteed to be reduced.
[0068] In addition, if the motor encounters an obstacle during operation, it will be blocked, and the motor will remain in the driving state, which will cause motor failure. Therefore, it is necessary to set the blocking judgment condition. When it is judged that the motor is in a blocked state, the motor should be stopped in time to protect the motor from damage. At present, the motor blocking judgment method is mostly based on the fixed time threshold method. For example, when the position feedback voltage remains unchanged for a certain period of time, the motor is judged to be blocked; for another example, although the motor is rotating, it has not been driven in place for a long time, it is judged that the motor is blocked. However, the existing time threshold is set to a fixed value calculated by obtaining the time for the motor to reach the specified position under all working conditions and leaving a certain margin when the driving voltage at both ends of the motor is relatively stable. If the time threshold is set too large, it will cause the blocking to occur but cannot be judged in time. If the time threshold is set too small, it will cause false alarms of blocking in some cases. For example, due to the fluctuation of the vehicle voltage, the power supply voltage at both ends of the motor becomes smaller, and the motor speed becomes smaller, which will cause the driving time to easily accumulate to reach the time threshold; or if the motor model changes, the driving torque and speed will also change, which is easy to cause misjudgment, forcing the program to mistakenly believe that the current motor is in a blocked state, thereby stopping driving. Therefore, an unreasonable setting of the fixed time threshold may easily lead to the failure to timely determine the stall, or misjudgment of the stall.
[0069] In view of the above technical problems, in some embodiments, the method further includes:
[0070] Obtain the motor model of the motor and the driving voltage for driving the motor to rotate;
[0071] Based on a pre-built stall time threshold model, determine the stall time threshold corresponding to the motor model and the drive voltage, wherein the stall time threshold model is used to characterize the mapping relationship between the motor model, the drive voltage and the stall time threshold, and the stall time threshold includes a first time threshold and / or a second time threshold;
[0072] The motor is determined to be stalled when any of the following conditions exist:
[0073] During the rotation of the driving motor, the position feedback voltage does not change and the duration exceeds a first time threshold;
[0074] When the rotation time of the driving motor exceeds the second time threshold, the difference between the position feedback voltage and the target request voltage does not meet the voltage deviation requirement.
[0075] In the disclosed embodiment, pre-constructing a stall time threshold model includes: testing the operating cycle of each motor model under different driving voltages; taking the sum of the operating cycle and the set time margin (empirical value) as the stall time threshold; constructing a mapping relationship between the motor model, the driving voltage and the stall time threshold. Specifically, the set time margin includes the first time margin and / or the second time margin, and accordingly, the first time threshold = operating cycle + first time margin (empirical value), and the second time threshold = operating cycle + second time margin (empirical value). In this way, when the motor model of the motor and / or the driving voltage that drives the motor to rotate changes, it is possible to select an appropriate stall time threshold to judge the motor stall state based on the stall time threshold model, thereby timely identifying the stall state and effectively avoiding the occurrence of stall false alarms. In addition, when it is determined that the motor is stalled, stop driving the motor to prevent damage to the motor.
[0076] The above mapping relationship is specifically stored in the form of a mapping table. The mapping table can refer to Table 1, where T1 is the first time threshold and T2 is the second time threshold.
[0077] Table 1 Mapping table of motor model, drive voltage and stall time threshold
[0078]
[0079] Corresponding to the motor drive control method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a motor drive control device. Figure 2 The structure block diagram of the motor drive control device provided by the embodiment of the present disclosure is as follows: Figure 2 As shown, the motor drive control device includes:
[0080] A voltage monitoring module 21 is used to monitor a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent the current position of the motor, and the target request voltage is used to represent the target position to which the motor is to rotate;
[0081] A first motor driving module 22, used to drive the motor to rotate when the target requested voltage changes;
[0082] The second motor driving module 23 is used to stop driving the motor when the absolute value of the first voltage difference between the position feedback voltage and the target requested voltage reaches a first voltage difference threshold. The first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target requested voltage meet the voltage deviation requirement when the motor stops rotating.
[0083] In some embodiments, the first motor driving module 22 is specifically used for:
[0084] Determine the driving mode of the motor based on the magnitude relationship between the current position feedback voltage and the target request voltage, wherein the driving mode includes forward rotation or reverse rotation;
[0085] The motor is driven to rotate according to the driving mode.
[0086] In some embodiments, the first motor driving module 22 is specifically used for:
[0087] When the absolute value of the first voltage difference is greater than the second voltage difference threshold, the driving motor rotates at a first speed;
[0088] When the absolute value of the first voltage difference is less than or equal to the second voltage difference threshold, the drive motor rotates at a second speed, wherein the second voltage difference threshold is greater than the first voltage difference threshold, and the second speed is less than the first speed.
[0089] In some embodiments, the device further comprises a voltage difference threshold correction module, configured to:
[0090] After the motor stops driving, after the motor stops rotating, the first voltage difference threshold is corrected based on the position feedback voltage and the target request voltage to reduce the absolute value of the second voltage difference after the motor is driven next time.
[0091] In some embodiments, the voltage difference threshold correction module is specifically used to:
[0092] When the position feedback voltage is less than the target request voltage, a third voltage difference threshold is obtained based on the difference between the absolute values of the first voltage difference threshold and the second voltage difference value;
[0093] If the third voltage difference threshold is greater than or equal to the voltage difference threshold lower limit, the third voltage difference threshold is used as the first voltage difference threshold;
[0094] and / or, when the position feedback voltage is greater than or equal to the target request voltage, obtaining a fourth voltage difference threshold value based on the sum of the absolute values of the first voltage difference threshold value and the second voltage difference value;
[0095] If the fourth voltage difference threshold is less than or equal to the upper limit value of the voltage difference threshold, the fourth voltage difference threshold is used as the first voltage difference threshold, wherein the lower limit value of the voltage difference threshold and the upper limit value of the voltage difference threshold are used to constrain the absolute value of the second voltage difference after the next drive of the motor to be smaller than the absolute value of the second voltage difference after the current drive of the motor.
[0096] In some embodiments, the voltage difference threshold correction module is further configured to:
[0097] If the third voltage difference threshold is less than the voltage difference threshold lower limit, the voltage difference threshold lower limit is used as the first voltage difference threshold;
[0098] If the fourth voltage difference threshold is greater than the voltage difference threshold upper limit value, the voltage difference threshold upper limit value is used as the first voltage difference threshold.
[0099] In some embodiments, the device further includes a stall determination module, which is used to:
[0100] Obtain the motor model of the motor and the driving voltage for driving the motor to rotate;
[0101] Based on a pre-built stall time threshold model, determine the stall time threshold corresponding to the motor model and the drive voltage, wherein the stall time threshold model is used to characterize the mapping relationship between the motor model, the drive voltage and the stall time threshold, and the stall time threshold includes a first time threshold and / or a second time threshold;
[0102] The motor is determined to be stalled when any of the following conditions exist:
[0103] During the rotation of the driving motor, the position feedback voltage does not change and the duration exceeds a first time threshold;
[0104] When the rotation time of the driving motor exceeds the second time threshold, the difference between the position feedback voltage and the target request voltage does not meet the voltage deviation requirement.
[0105] The motor drive control device disclosed in the above embodiments can execute the motor drive control method disclosed in the above embodiments, and has the same or corresponding beneficial effects, which will not be described again here to avoid repetition.
[0106] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of any of the above methods.
[0107] Exemplarily, the program or instruction enables a computer to execute a motor drive control method, the method comprising:
[0108] Monitoring a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent a current position of the motor, and the target request voltage is used to represent a target position to which the motor is to rotate;
[0109] When the target requested voltage changes, the drive motor rotates;
[0110] When the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches a first voltage difference threshold, the driving of the motor is stopped. The first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target request voltage meet the voltage deviation requirement when the motor stops rotating.
[0111] Optionally, when executed by a computer processor, the computer executable instructions can also be used to execute the technical solution of any of the above-mentioned motor drive control methods provided in the embodiments of the present disclosure to achieve corresponding beneficial effects.
[0112] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the embodiments of the present disclosure can be implemented with the help of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the embodiments of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0113] The embodiment of the present disclosure also provides a vehicle, comprising: one or more processors; a memory for storing one or more programs or instructions; the processor calls the programs or instructions stored in the memory to execute the steps of any of the above methods to achieve corresponding beneficial effects.
[0114] Figure 3 Schematic diagram of the hardware structure of a vehicle provided in an embodiment of the present disclosure. Figure 3 As shown, the vehicle includes one or more processors 301 and memory 302 .
[0115] The processor 301 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the vehicle to perform desired functions.
[0116] The memory 302 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 301 may run the program instructions to implement the motor drive control method of the embodiment of the present disclosure described above, and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0117] In one example, the vehicle may further include: an input device 303 and an output device 304 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0118] In addition, the input device 303 may also include, for example, a keyboard, a mouse, and the like.
[0119] The output device 304 can output various information to the outside, including the determined distance information, direction information, etc. The output device 304 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0120] Of course, to simplify, Figure 3 Only some of the components in the vehicle related to the present disclosure are shown, and components such as buses, input / output interfaces, etc. are omitted. In addition, the vehicle may further include any other appropriate components according to specific application scenarios.
[0121] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0122] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A motor drive control method, characterized in that: include: Monitoring a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent a current position of the motor, and the target request voltage is used to represent a target position to which the motor is to rotate; When the target requested voltage changes, driving the motor to rotate; When the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches a first voltage difference threshold, driving the motor is stopped. The first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target request voltage meet the voltage deviation requirement when the motor stops rotating.
2. The method according to claim 1, characterized in that: The driving the motor to rotate comprises: Determining a driving mode of the motor based on a magnitude relationship between the current position feedback voltage and the target request voltage, wherein the driving mode includes forward rotation or reverse rotation; The motor is driven to rotate according to the driving mode.
3. The method according to claim 1, characterized in that The driving the motor to rotate comprises: When the absolute value of the first voltage difference is greater than the second voltage difference threshold, the driving motor rotates at a first speed; When the absolute value of the first voltage difference is less than or equal to the second voltage difference threshold, the motor is driven to rotate at a second speed, wherein the second voltage difference threshold is greater than the first voltage difference threshold, and the second speed is less than the first speed.
4. The method according to claim 1, characterized in that: After stopping driving the motor, the method further includes: After the motor stops rotating, the first voltage difference threshold is corrected based on the position feedback voltage and the target request voltage to reduce the absolute value of the second voltage difference after the motor is driven next time.
5. The method according to claim 4, characterized in that The modifying the first voltage difference threshold based on the position feedback voltage and the target request voltage includes: When the position feedback voltage is less than the target request voltage, obtaining a third voltage difference threshold based on the difference between the absolute values of the first voltage difference threshold and the second voltage difference; If the third voltage difference threshold is greater than or equal to the voltage difference threshold lower limit, the third voltage difference threshold is used as the first voltage difference threshold; and / or, when the position feedback voltage is greater than or equal to the target request voltage, obtaining a fourth voltage difference threshold based on the sum of the absolute values of the first voltage difference threshold and the second voltage difference; If the fourth voltage difference threshold is less than or equal to the upper limit value of the voltage difference threshold, the fourth voltage difference threshold is used as the first voltage difference threshold, wherein the lower limit value of the voltage difference threshold and the upper limit value of the voltage difference threshold are used to constrain the absolute value of the second voltage difference after the motor is driven next time to be smaller than the absolute value of the second voltage difference after the motor is driven that time.
6. The method according to claim 5, characterized in that The method further comprises: If the third voltage difference threshold is less than the voltage difference threshold lower limit, the voltage difference threshold lower limit is used as the first voltage difference threshold; If the fourth voltage difference threshold is greater than the voltage difference threshold upper limit value, the voltage difference threshold upper limit value is used as the first voltage difference threshold value.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining the motor model of the motor and the driving voltage for driving the motor to rotate; Based on a pre-constructed stall time threshold model, determining the stall time threshold corresponding to the motor model and the drive voltage, wherein the stall time threshold model is used to characterize the mapping relationship between the motor model, the drive voltage and the stall time threshold, and the stall time threshold includes a first time threshold and / or a second time threshold; When any of the following conditions exists, it is determined that the motor is stalled: During the process of driving the motor to rotate, the position feedback voltage does not change and the duration exceeds the first time threshold; When the time for driving the motor to rotate exceeds the second time threshold, the difference between the position feedback voltage and the target request voltage does not meet the voltage deviation requirement.
8. A motor drive control device, characterized in that: include: A voltage monitoring module, used for monitoring a target request voltage and a position feedback voltage of the motor, wherein the position feedback voltage is used to represent the current position of the motor, and the target request voltage is used to represent the target position to which the motor is to rotate; A first motor driving module, configured to drive the motor to rotate when the target requested voltage changes; The second motor driving module is used to stop driving the motor when the absolute value of the first voltage difference between the position feedback voltage and the target request voltage reaches a first voltage difference threshold, and the first voltage difference threshold is used to make the second voltage difference between the position feedback voltage and the target request voltage meet the voltage deviation requirement when the motor stops rotating.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 7.
10. A vehicle, characterized in that: include: one or more processors; A memory for storing one or more programs or instructions; The processor is used to execute the steps of the method according to any one of claims 1 to 7 by calling the program or instruction stored in the memory.
