Self-adaptive adjustment method for motor running speed
By obtaining the motor operating performance parameters in real time and using the motor adjustment model to adjust the modulation signal, the shortcomings of the existing motor control strategy in real-time and robustness are solved, and the adaptive speed adjustment and stability improvement of the motor under different conditions are achieved. .
Patent Information
- Application Number
- CN202410879992.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-18
AI Technical Summary
Existing motor control strategies have shortcomings in real-time, complexity, cost, robustness, energy consumption, software and hardware compatibility, and maintenance and debugging. Especially in high-performance applications, it is difficult to meet the requirements of dynamic performance and control accuracy.
By obtaining the operating performance parameters of the motor in real time, using the motor adjustment model for parameter processing, generating modulation signals to control the motor's operating speed, and dynamically adjusting the duty cycle to achieve adaptive adjustment of the motor under different conditions to ensure robustness and stability. .
It realizes the adaptive speed adjustment of the motor under different operating conditions, improves the robustness and stability, and meets the dynamic performance and control accuracy requirements of high-performance applications.
Smart Images

Figure CN118801765A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor control, and in particular to a method for adaptively adjusting the running speed of a motor. Background Art
[0002] Motor control technology is a core component of modern industrial automation and electric drive systems. As industrial applications continue to increase the performance requirements of motors, motor control strategies are also constantly developing and improving. However, existing motor control strategies still have shortcomings in some aspects. For example, open-loop control, although it has advantages in cost and implementation complexity, has obvious limitations in control accuracy and dynamic response. Although closed-loop control provides higher control accuracy, it places higher requirements on the dynamic performance and control accuracy of motors in some high-performance applications such as robotics, precision machining and electric vehicle drive systems. In addition, motor control strategies also include vector control and direct torque. Among them, although vector control provides high-precision control, its implementation complexity is high and requires precise motor parameters and complex control algorithms. Although direct torque control has a fast response speed, its control performance may be affected under low speed and frequent load changes.
[0003] Existing motor control strategies generally face parameter dependence, nonlinearity and uncertainty, and have varying degrees of shortcomings in real-time, complexity, cost, robustness, energy consumption, software and hardware compatibility, and maintenance and debugging. Summary of the invention
[0004] The embodiment of the present invention provides an adaptive adjustment method for the running speed of a motor to solve the problem that the existing motor control strategy has shortcomings to varying degrees in terms of real-time performance, complexity, cost, robustness, energy consumption, software and hardware compatibility, and maintenance and debugging.
[0005] The embodiment of the present invention discloses a method for adaptively adjusting the running speed of a motor, characterized in that the method comprises:
[0006] Acquire in real time a first operating performance parameter of a motor in a vehicle, and a motor adjustment model for the motor, wherein the motor adjustment model is used to output adjustment information corresponding to an operating speed of the motor;
[0007] Inputting the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter;
[0008] Acquire a modulation signal corresponding to the motor, wherein the modulation signal is used to control the running speed of the motor;
[0009] The modulation signal is adjusted according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
[0010] It is characterized in that the motor regulation model is generated in the following manner:
[0011] Monitor the operating performance parameters of the motor in real time to obtain training data, wherein the training data at least includes a first operating speed, a load, and a temperature of the motor;
[0012] Acquire an initial model, define a reward function in the initial model, and use the reward function to represent the immediate feedback obtained when the motor takes a specific action in a specific state;
[0013] Combining a plurality of preset weight coefficients with the training data to obtain a plurality of input data;
[0014] Calculating each set of the input data according to the reward function to generate several sets of adjustment information corresponding to the input data;
[0015] Obtaining a modulation signal corresponding to the motor;
[0016] Adjust the modulation signal according to the adjustment information to obtain a second operating speed of the motor after adjustment;
[0017] Calculating the error between the second running speed and a preset target running speed, and determining the second running speed having the smallest error with the target running speed as the target adjustment speed;
[0018] The weight coefficient combination corresponding to the target adjustment speed is determined as the target weight coefficient combination, and the motor adjustment model is generated based on the target weight coefficient combination and the reward function.
[0019] Characterized in that the motor adjustment model includes a reward function, and the step of inputting the first operating performance parameter into the motor adjustment model for parameter processing includes:
[0020] Acquiring a current operating speed of the motor from the first operating performance parameter;
[0021] A first error value between the current running speed and a preset target running speed is calculated, and a first reward function value corresponding to the motor is calculated according to the first error value.
[0022] Characterized in that the method further comprises:
[0023] Calculating the speed change rate of the current running speed and a second error value between the speed change rate and a preset target speed change rate in combination with the running time of the motor;
[0024] A second reward function value corresponding to the motor is calculated according to the second error value.
[0025] Characterized in that the step of inputting the first operating performance parameter into the motor adjustment model for parameter processing further comprises:
[0026] Acquire the current operating energy consumption of the motor from the first operating performance parameter;
[0027] Obtaining a duty cycle of the modulation signal;
[0028] A third reward function value corresponding to the motor is calculated according to a proportional relationship between the duty cycle and the current operating energy consumption.
[0029] The step of inputting the first operating performance parameter into the motor adjustment model for parameter processing further includes:
[0030] defining a plurality of safety indicators, wherein the safety indicators are used to represent the extreme operating performance parameters of the motor, wherein the extreme operating performance parameters at least include the maximum operating speed, the maximum operating current, the maximum input voltage and the maximum operating temperature of the motor;
[0031] A third error value between a first parameter value corresponding to the first operating performance parameter and a second parameter value corresponding to the limit operating performance parameter is calculated, and a fourth reward function value corresponding to the motor is calculated according to the third error value.
[0032] The adjusting the modulated signal according to the target adjustment information further includes:
[0033] Calculating a target duty cycle of the modulation signal according to the target adjustment information;
[0034] Applying the target duty cycle to the modulation signal to generate a target modulation signal for the motor;
[0035] Applying the target modulation signal to a power input terminal corresponding to the motor to control an average voltage received by the motor;
[0036] Monitoring the regulated running speed of the motor under the average voltage, and determining whether an error between the regulated running speed and a preset target running speed satisfies a preset condition;
[0037] If the preset condition is still not satisfied between the adjusted running speed and the preset target running speed, the duty cycle of the target modulation signal is adjusted according to the error value between the adjusted running speed and the target running speed until the adjusted running speed reaches the target running speed.
[0038] The present invention also discloses a self-adaptive regulating device for motor running speed, characterized in that the device comprises:
[0039] A parameter acquisition module, used for acquiring in real time a first operating performance parameter of a motor in a vehicle, and a motor adjustment model for the motor, wherein the motor adjustment model is used for outputting adjustment information corresponding to an operating speed of the motor;
[0040] a parameter processing module, configured to input the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter;
[0041] A signal acquisition module, used to acquire a modulation signal corresponding to the motor, wherein the modulation signal is used to control the running speed of the motor;
[0042] The signal adjustment module is used to adjust the modulation signal according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
[0043] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0044] The memory is used to store computer programs;
[0045] The processor is used to implement the method for adaptively adjusting the running speed of the motor as described in the embodiment of the present invention when executing the program stored in the memory.
[0046] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method for adaptively adjusting the running speed of a motor as described in the embodiment of the present invention.
[0047] The embodiments of the present invention include the following advantages:
[0048] The embodiment of the present invention obtains the first operating performance parameter of the motor in the vehicle in real time, and the motor adjustment model for the motor, inputs the first operating performance parameter into the motor adjustment model for parameter processing, obtains the target adjustment information for the first operating performance parameter, and then obtains the modulation signal for controlling the motor operating speed, and adjusts the modulation signal according to the target adjustment information so that the motor operating speed reaches the preset target operating speed. The embodiment of the present invention outputs a corresponding motor control strategy according to the motor operating performance data, and dynamically adjusts the duty cycle of the modulation signal according to the motor control strategy to accurately control the speed output of the motor, thereby realizing that the motor adaptively adjusts its speed under different operating conditions, and ensures the robustness and stability of the motor during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flowchart of a method for adaptively adjusting the running speed of a motor provided in an embodiment of the present invention;
[0050] Figure 2 is a structural block diagram of a device for adaptively adjusting the running speed of a motor provided in an embodiment of the present invention;
[0051] Figure 3 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0054] The power supply of the motor, especially the voltage and current, has a direct impact on the running speed of the motor. For DC motors, an increase in voltage usually leads to an increase in the motor speed, because the voltage provides the torque to drive the motor to rotate. The higher the voltage, the greater the torque generated by the motor, and thus the higher the speed. For AC motors, such as induction motors, changes in voltage will also affect the speed. At rated voltage, the motor can reach its designed synchronous speed. If the voltage is reduced, the torque of the motor will decrease, which may cause the motor to fail to reach the synchronous speed, thereby reducing the actual running speed. Current is the direct factor in the torque generated by the motor. In DC motors, an increase in current will lead to an increase in torque. If the load remains unchanged, the speed may increase. In AC motors, changes in current will affect the magnetic field strength of the motor, which in turn affects the torque and speed of the motor. For AC motors, changes in the supply frequency will also affect the speed of the motor. For example, in induction motors, an increase in the supply frequency will lead to an increase in the synchronous speed of the motor. If the motor can follow this change, the actual speed will also increase. The stability of the power supply, including fluctuations in voltage and frequency, will also affect the running speed of the motor. Unstable power supply may cause the motor speed to fluctuate, affecting the stable operation of the motor. In applications where a modulated signal (Pulse Width Modulation, PWM) is used to control a motor, changes in the duty cycle will change the average voltage supplied to the motor, thereby affecting the motor's speed. The larger the duty cycle, the higher the average power received by the motor, and the higher the speed will usually be. In short, the power supply conditions of the motor, including voltage, current, frequency and stability, will affect the running speed of the motor. In practical applications, it is necessary to accurately control the power supply parameters according to the type of motor and control requirements to ensure that the motor can run stably and efficiently.
[0055] Reference Figure 1 , shows a flowchart of a method for adaptively adjusting the running speed of a motor provided in an embodiment of the present invention, which may specifically include the following steps:
[0056] Step 101 , obtaining in real time a first operating performance parameter of a motor in a vehicle and a motor adjustment model for the motor, where the motor adjustment model is used to output adjustment information corresponding to an operating speed of the motor.
[0057] In order to monitor the operating performance of the motor in the vehicle in real time, it is first necessary to collect key performance parameters such as current, voltage, temperature and operating speed in real time through sensors installed on the motor, and transmit these data to the data processing unit in real time through the communication protocol. In the data processing unit, the raw data of the collected performance parameters are preprocessed, including noise removal, outlier detection and data calibration, and then key features are extracted from the preprocessed data. These features are then input into the pre-trained motor regulation model, and the model outputs corresponding regulation information such as control signals or adjustment suggestions based on the real-time operating speed of the motor. This regulation information is used to adjust the operating parameters of the motor in real time, and the regulation effect is continuously optimized through the feedback mechanism. The entire system has been tested and verified in the actual operating environment to ensure its performance and stability to meet the strict requirements of vehicle operation.
[0058] In the process of preprocessing the collected raw data, the noise is first removed by filtering technology, which usually involves the use of a low-pass filter to smooth the data and reduce the impact of high-frequency noise. Next, outlier detection is performed, which can be done through statistical methods such as Z-scores or IQR (interquartile range) to identify and eliminate values that deviate significantly from the normal data range. Data calibration involves converting sensor readings into actual physical quantities, which requires the use of calibration curves or lookup tables to ensure the accuracy of the data. After completing these steps, key features are extracted from the preprocessed data, including calculating statistics (such as mean, variance, peak, etc.), or applying more complex feature extraction techniques such as principal component analysis or wavelet transform. These features will be used as input to the motor regulation model to achieve precise control of the motor's operating performance.
[0059] Step 102: Input the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter.
[0060] In a feasible embodiment of the present invention, a state space S is established in the motor regulation model. Specifically, the state space S is defined as:
[0061] S={V(t),L(t),T(t)}
[0062] The time when the motor starts running is t0=0, V(t) represents the speed of the motor at time t, L(t) represents the load of the motor at time t, and T(t) represents the temperature of the motor at time t.
[0063] An action space A is established in the motor regulation model. The action space A is used to represent a continuous range of the duty cycle of the modulation signal. It is necessary to select the optimal duty cycle within the continuous range to control the speed of the motor. Specifically, the action space A is defined as:
[0064] A={PWMoutputs}
[0065] Among them, PWM outputs are the duty cycle outputs of the modulation signal, and the continuous range is from 0% to 100%.
[0066] PWM signal is a technique to control the average power of a signal by adjusting the width (i.e. duration) of each pulse in a pulse train. In a PWM signal, the frequency of the pulse is usually kept constant, while the width (or duty cycle) of the pulse is adjusted as needed to achieve the purpose of controlling the output power or simulating an analog signal.
[0067] The duty cycle of a PWM signal refers to the ratio of the duration of the high level (or "on" state) to the entire cycle time within a pulse cycle. The duty cycle can be expressed as a percentage or a decimal. The specific calculation formula is as follows:
[0068] Duty cycle (%) = (high level time / cycle time) × 100%
[0069] or,
[0070] Duty cycle (decimal) = high level time / cycle time
[0071] In a specific example, if the period of a PWM signal is 20 milliseconds, wherein the high level duration is 10 milliseconds, then the duty cycle of the signal is:
[0072] Duty cycle (%) = (10 ms / 20 ms) × 100% = 50%
[0073] or,
[0074] Duty cycle (decimal) = 10 ms / 20 ms = 0.5
[0075] The change of duty cycle can be used to control the power or brightness of devices connected to PWM signals (such as motors, LED lights or power supplies). The larger the duty cycle, the longer the high level time, and the corresponding device receives more average power. Conversely, the smaller the duty cycle, the smaller the average power received by the device.
[0076] In a feasible embodiment of the present invention, the motor regulation model also includes a reward function R (RewardFunction), which refers to a function of instant feedback obtained when the generator takes a specific action under a specific state, and the instant feedback includes rewards and penalties. Its purpose is to guide the model to generate the optimal adjustment strategy for the motor based on the input data, thereby maximizing the cumulative reward.
[0077] In a feasible embodiment of the present invention, the reward function includes several reward items such as tracking speed curve, energy efficiency, stability and safety. Specifically, the reward function R is defined as:
[0078] R(s,a)=β1·r tra (s,a)+β2·r eff (s,a)+β3·r sta (s,a)-β4·r saf (s,a)
[0079] Among them, s∈S is the current operating state of the motor, a∈A refers to the action taken by the motor, and r tra (s,a) refers to the tracking reward of the motor, r tra (s,a) is proportional to the negative value of the motor speed error e(t), r eff (s,a) refers to the energy efficiency bonus of the motor, r eff (s,a) is proportional to the energy efficiency of the modulation signal duty cycle D(t), r sta (s,a) is the stability reward of the motor, r sta (s,a) is proportional to the smoothness of the motor's speed change rate, r saf (s,a) is the security penalty, r saf (s, a) is proportional to the part of the motor's operating temperature T(t) that exceeds the threshold, and β1, β2, β3, and β4 are weight coefficients used to balance the importance of different reward items.
[0080] The motor speed error e(t) refers to the motor preset target speed V set The difference between the running speed V(t) and the current running speed V(t) is defined as follows:
[0081] e(t)=V set (t)-V(t)
[0082] In the motor regulation model, the reward function distributes rewards based on the relationship between the duty cycle of the PWM signal and the energy efficiency of the motor. Specifically, when the change in duty cycle leads to an improvement in the energy efficiency of the motor, the reward function will give a positive reward; conversely, if the change in duty cycle leads to a decrease in energy efficiency, the reward function may give a negative reward or no reward.
[0083] In PWM control, the duty cycle is a key parameter for controlling the motor power. The larger the duty cycle, the higher the average power received by the motor, and vice versa. Therefore, by adjusting the duty cycle, the energy consumption of the motor can be affected. If the motor runs most efficiently at a certain duty cycle, then at this duty cycle, the energy consumption efficiency of the motor will reach the best state.
[0084] The stability reward is proportional to the smoothness of the motor speed change rate, which means that in the motor regulation model, the reward function will distribute rewards according to the smoothness of the motor speed change rate. Specifically, when the motor speed change rate is smoother, that is, the speed changes more slowly and steadily, the reward function will give more positive rewards; conversely, if the speed change rate fluctuates greatly, the reward function may give less rewards or even negative rewards.
[0085] The safety penalty is proportional to the motor temperature exceeding the threshold value, which means that in the motor regulation model, if reinforcement learning is used to ensure the safety of the motor, the reward function will assign penalties based on the extent to which the motor temperature exceeds the preset safety threshold. Specifically, the more the motor temperature exceeds the safety threshold, the more negative rewards (i.e., penalties) the reward function will give; conversely, if the motor temperature remains within the safety threshold, the reward function may give less or no penalties.
[0086] Step 103, obtaining a modulation signal corresponding to the motor, where the modulation signal is used to control the running speed of the motor.
[0087] In a feasible embodiment of the present invention, the duty cycle of the PWM signal is dynamically adjusted according to the output of the motor regulation model to change the power supply condition of the motor, thereby affecting the running speed of the motor.
[0088] Step 104, adjusting the modulation signal according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
[0089] Specifically, after adjusting the duty cycle of the modulation signal according to the target adjustment information output by the model, the running speed of the motor is monitored again, and it is determined whether the adjusted running speed of the motor matches the preset target running speed. If the two match, the adaptive adjustment process of the motor running speed is completed. If the two do not match, it means that the motor has not reached the optimal operating state at this time, and it is necessary to re-monitor the performance parameters of the motor at this moment to perform a new round of running speed adjustment.
[0090] In addition, in a feasible embodiment of the present invention, adjustment feedback data may be collected, and the model may be fine-tuned and optimized according to the adjustment feedback data. The fine-tuning and optimization of the model may be specifically performed as follows:
[0091]
[0092] Among them, θ t is the model parameter at time t, α is the learning rate of the model, is the gradient of the reward function with respect to the model parameters.
[0093] In a feasible embodiment, the motor regulation model is generated in the following manner:
[0094] The operating performance parameters of the motor are monitored in real time to obtain training data, where the training data at least includes a first operating speed, a load, and a temperature of the motor.
[0095] Get an initial model and define a reward function in the initial model. The reward function is used to represent the immediate feedback obtained by the motor when taking a specific action in a specific state.
[0096] Combining several sets of preset weight coefficients with the training data, several sets of input data are obtained.
[0097] Each set of input data is calculated according to the reward function to generate several sets of adjustment information corresponding to the input data.
[0098] Get the modulation signal corresponding to the motor.
[0099] The modulation signal is adjusted according to the adjustment information to obtain a second operating speed of the motor after adjustment.
[0100] The error between the second running speed and the preset target running speed is calculated, and the second running speed having the smallest error with the target running speed is determined as the target adjustment speed.
[0101] The weight coefficient combination corresponding to the target adjustment speed is determined as the target weight coefficient combination, and a motor adjustment model is generated based on the target weight coefficient combination and the reward function.
[0102] In a feasible embodiment of the present invention, the determination of the target weight coefficients β1, β2, β3, and β4 can be converted into multi-objective optimization. First, a candidate set of weight coefficients is created. The combination of these weight coefficients should cover the trade-offs between different optimization objectives. For example, a grid search can be used to generate candidate values for each target weight coefficient in the interval [0,1]. For each set of weight coefficients, the model is trained and its performance is evaluated in a test set or test environment. The optimal solution set is determined based on the performance evaluation results of each weight combination. If a weight combination is not surpassed by other weight combinations on all target weight combinations at the same time, this weight combination is considered to be the optimal solution and is used as the final target weight coefficient.
[0103] The embodiment of the present invention constructs a state space in the motor regulation model, and by defining a reward function, distributes rewards according to factors such as speed error, smoothness of speed change rate, and energy efficiency, so that the model learns how to select the optimal action in different states to maximize the cumulative reward. This process involves a large number of iterations, and the model adjusts its strategy based on actual feedback in each iteration. During the model training process, it is necessary to evaluate the performance of the model regularly, and adjust the model parameters or reward function based on the evaluation results to ensure that the model can learn an effective control strategy. Once the model training is completed, it can be used to control the motor in real time. The model will predict the optimal action based on the current state and apply it to the motor controller to adjust the operating parameters of the motor, such as the duty cycle of the PWM signal.
[0104] In practical applications, the model needs to be continuously fine-tuned and optimized to adapt to environmental changes, motor aging or other external factors. In this way, the reinforcement learning model can continuously learn from the actual performance of the motor speed and optimize its control strategy, thereby achieving precise control of the motor speed and performance improvement.
[0105] In a feasible embodiment of the present invention, step 102 further includes:
[0106] The motor regulation model includes a reward function R, and the reward function includes a first reward function R tra , the second reward function R eff , the third reward function R sta And the fourth reward function R saf ,in:
[0107] First reward function: R tra =β1·r tra (s,a)
[0108] Second reward function: R eff =β2·r eff (s,a)
[0109] The third reward function: R sta =β3·r sta (s,a)
[0110] Fourth reward function: R saf =-β4·r saf (s,a)
[0111] After calculating the reward function values corresponding to the four reward functions respectively, merging them can obtain the complete reward function value for the motor, where the first reward function value represents the reward function value corresponding to the tracking speed, the second reward function value represents the reward function value corresponding to the stability, the third reward function value represents the reward function value corresponding to the energy efficiency, and the fourth reward function value represents the reward function value corresponding to the safety. The specific process is as follows:
[0112] The current operating speed of the motor is obtained from the first operating performance parameter.
[0113] A first error value between the current running speed and a preset target running speed is calculated, and a first reward function value corresponding to the motor is calculated according to the first error value.
[0114] The speed change rate of the current running speed and a second error value between the speed change rate and a preset target speed change rate are calculated in combination with the running time of the motor.
[0115] A second reward function value corresponding to the motor is calculated according to the second error value.
[0116] The current operating energy consumption of the motor is obtained from the first operating performance parameter.
[0117] Obtaining a duty cycle of the modulation signal;
[0118] A third reward function value corresponding to the motor is calculated according to a proportional relationship between the duty cycle and the current operating energy consumption.
[0119] A number of safety indicators are defined, and the safety indicators are used to represent the extreme operating performance parameters of the motor. The extreme operating performance parameters at least include the maximum operating speed, maximum operating current, maximum input voltage and maximum operating temperature of the motor.
[0120] In the field of motor control technology, defining safety indicators is a key step in ensuring the safe operation of the motor. These indicators usually reflect the motor's extreme operating performance parameters, that is, the parameter values that the motor should not exceed under normal operating conditions. Safety indicators can include:
[0121] Maximum Operating Speed: The highest speed at which a motor can safely operate, usually expressed in revolutions per minute. Exceeding this speed may cause damage to the motor or unstable operation.
[0122] Maximum operating current: The maximum current value allowed to pass through the motor during operation. Exceeding this current may cause the motor to overheat or be damaged.
[0123] Maximum input voltage: The maximum voltage input that the motor can safely accept. Exceeding this voltage may cause motor insulation damage or electrical failure.
[0124] Maximum operating temperature: The maximum temperature that the motor is allowed to reach during operation. Exceeding this temperature may cause motor material degradation, reduced insulation performance or damage.
[0125] In addition to the above indicators, other safety indicators can be defined according to the specific application and design requirements of the motor, such as: Maximum acceleration: the maximum acceleration that the motor can safely withstand, exceeding this acceleration may cause excessive mechanical stress or control system instability; Maximum load: the maximum load that the motor can safely drive, exceeding this load may cause motor overload or damage; Maximum vibration level: the maximum vibration level allowed when the motor is running, exceeding this level may cause wear or damage to mechanical parts; Maximum noise level: the maximum allowable noise level generated by the motor when it is running, exceeding this level may affect the working environment or equipment performance. In practical applications, the design and operation of the control system must ensure that the motor operates within these safety indicators to avoid potential safety risks and equipment damage.
[0126] A third error value between a first parameter value corresponding to the first operating performance parameter and a second parameter value corresponding to the limit operating performance parameter is calculated, and a fourth reward function value corresponding to the motor is calculated according to the third error value.
[0127] In a feasible embodiment of the present invention, step 104 includes:
[0128] The target duty cycle of the modulation signal is calculated according to the target adjustment information.
[0129] A target duty cycle is applied to the modulation signal to generate a target modulation signal for the motor.
[0130] The target modulation signal is applied to the power input terminal corresponding to the motor to control the average voltage received by the motor.
[0131] Monitor the regulated running speed of the motor under the average voltage, and determine whether the error between the regulated running speed and the preset target running speed meets the preset conditions.
[0132] In a feasible embodiment of the present invention, an adjusted running speed curve corresponding to the adjusted running speed can be generated, and the target running speed curve corresponding to the target running speed can be compared with the adjusted running speed curve. If the target running speed curve matches the adjusted running speed curve, it means that the adjusted running speed has reached the target running speed. Alternatively, the error between the target running speed and the adjusted running speed is directly calculated. If the error is less than or equal to a preset error threshold, it can also be said that the adjusted running speed has reached the target running speed.
[0133] If the preset condition is still not satisfied between the adjusted running speed and the preset target running speed, the duty cycle of the target modulation signal is adjusted according to the error value between the adjusted running speed and the target running speed until the adjusted running speed reaches the target running speed.
[0134] In another feasible embodiment of the present invention, if the adjusted operating speed still does not reach the target operating speed, it means that it still needs to be adjusted. At this time, it is necessary to re-monitor the operating performance parameters of the motor and generate new adjustment information for adjusting the current operating speed of the motor.
[0135] The embodiment of the present invention obtains the first operating performance parameter of the motor in the vehicle in real time, and the motor adjustment model for the motor, inputs the first operating performance parameter into the motor adjustment model for parameter processing, obtains the target adjustment information for the first operating performance parameter, and then obtains the modulation signal for controlling the motor operating speed, and adjusts the modulation signal according to the target adjustment information so that the motor operating speed reaches the preset target operating speed. The embodiment of the present invention outputs a corresponding motor control strategy according to the motor operating performance data, and dynamically adjusts the duty cycle of the modulation signal according to the motor control strategy to accurately control the speed output of the motor, thereby enabling the motor to adaptively adjust its speed under different operating conditions, and ensuring the robustness and stability of the motor during operation.
[0136] Reference Figure 2 , shows a structural block diagram of a motor speed adaptive adjustment device provided in an embodiment of the present invention, which may specifically include the following modules:
[0137] The parameter acquisition module 201 is used to acquire in real time a first operating performance parameter of a motor in a vehicle, and a motor adjustment model for the motor, where the motor adjustment model is used to output adjustment information corresponding to the operating speed of the motor.
[0138] The parameter processing module 202 is used to input the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter.
[0139] The signal acquisition module 203 is used to acquire a modulation signal corresponding to the motor, and the modulation signal is used to control the running speed of the motor.
[0140] The signal adjustment module 204 is used to adjust the modulation signal according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
[0141] Optionally, the device further comprises:
[0142] Model training module, the model training module specifically includes:
[0143] The parameter monitoring unit is used to monitor the operating performance parameters of the motor in real time and obtain training data, which at least includes the first operating speed, load and temperature of the motor.
[0144] The function definition unit is used to obtain an initial model and define a reward function in the initial model. The reward function is used to represent the immediate feedback obtained by the motor taking a specific action in a specific state.
[0145] The input generation unit is used to combine several sets of preset weight coefficients with the training data to obtain several sets of input data.
[0146] The input calculation unit is used to calculate each set of input data according to the reward function to generate several sets of adjustment information corresponding to the input data.
[0147] The signal acquisition unit is used to acquire the modulation signal corresponding to the motor.
[0148] The signal adjustment unit is used to adjust the modulation signal according to the adjustment information to obtain the second operating speed of the motor after adjustment.
[0149] The error calculation unit is used to calculate the error between the second running speed and a preset target running speed, and determine the second running speed with the smallest error with the target running speed as the target adjustment speed.
[0150] The model generation unit is used to determine the weight coefficient combination corresponding to the target adjustment speed as the target weight coefficient combination, and generate a motor adjustment model based on the target weight coefficient combination and the reward function.
[0151] Optionally, the motor regulation model includes a reward function, and the parameter processing module 202 further includes:
[0152] The first acquisition submodule is used to acquire the current running speed of the motor from the first running performance parameter.
[0153] The first calculation submodule is used to calculate a first error value between a current running speed and a preset target running speed, and calculate a first reward function value corresponding to the motor according to the first error value.
[0154] The second calculation submodule is used to calculate the speed change rate of the current running speed and a second error value between the speed change rate and a preset target speed change rate in combination with the running time of the motor.
[0155] The third calculation submodule is used to calculate a second reward function value corresponding to the motor according to the second error value.
[0156] The second acquisition submodule is used to acquire the current operating energy consumption of the motor from the first operating performance parameter.
[0157] A third acquisition submodule is used to acquire the duty cycle of the modulation signal;
[0158] The fourth calculation submodule is used to calculate the third reward function value corresponding to the motor according to the proportional relationship between the duty cycle and the current operating energy consumption.
[0159] The first definition submodule is used to define several safety indicators, which are used to represent the extreme operating performance parameters of the motor. The extreme operating performance parameters at least include the maximum operating speed, maximum operating current, maximum input voltage and maximum operating temperature of the motor.
[0160] The fifth calculation submodule is used to calculate a third error value between a first parameter value corresponding to the first operating performance parameter and a second parameter value corresponding to the limit operating performance parameter, and calculate a fourth reward function value corresponding to the motor according to the third error value.
[0161] Optionally, the signal conditioning module 204 further includes:
[0162] The target duty cycle calculation module is used to calculate the target duty cycle of the modulation signal according to the target adjustment information.
[0163] The target modulation signal generation module is used to apply the target duty cycle to the modulation signal to generate a target modulation signal for the motor.
[0164] The average voltage control module is used to apply the target modulation signal to the power input terminal corresponding to the motor to control the average voltage received by the motor.
[0165] The error judgment module is used to monitor the regulated running speed of the motor under the average voltage and judge whether the error between the regulated running speed and the preset target running speed meets the preset conditions.
[0166] The feedback regulation module is used to adjust the duty cycle of the target modulation signal according to the error value between the regulated operating speed and the target operating speed if the regulated operating speed still does not meet the preset condition, until the regulated operating speed reaches the target operating speed.
[0167] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0168] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, it includes: a processor 301, an interface 302, a memory 303 and a bus 304, wherein:
[0169] Memory 503, used for storing computer programs;
[0170] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0171] A first operating performance parameter of a motor in a vehicle and a motor adjustment model for the motor are acquired in real time, where the motor adjustment model is used to output adjustment information corresponding to the operating speed of the motor.
[0172] The first operating performance parameter is input into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter.
[0173] Get the modulation signal corresponding to the motor, which is used to control the running speed of the motor.
[0174] The modulation signal is adjusted according to the target adjustment information so that the running speed of the motor reaches the preset target running speed.
[0175] The bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0176] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the aforementioned processor.
[0177] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0178] The present invention also provides a storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for adaptively adjusting the motor running speed of the aforementioned embodiment.
[0179] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0180] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. According to the above description, it is obvious that the structure required for constructing this type of device is. In addition, the present invention is not directed to any specific programming language. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific language is to disclose the best mode of the present invention.
[0181] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0182] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all of the features of the individual embodiments disclosed above. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.
[0183] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0184] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the sorting device according to the present invention. The present invention may also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. It should be noted that the above embodiments illustrate rather than limit the present invention, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation of the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim listing several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
[0185] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, apparatuses and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0186] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0187] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0188] It should be noted that the various data-related processes in the embodiments of the present application are all carried out in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.
Claims
1. A method for adaptively adjusting the running speed of a motor, characterized in that: The method comprises: Acquire in real time a first operating performance parameter of a motor in a vehicle, and a motor adjustment model for the motor, wherein the motor adjustment model is used to output adjustment information corresponding to an operating speed of the motor; Inputting the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter; Acquire a modulation signal corresponding to the motor, wherein the modulation signal is used to control the running speed of the motor; The modulation signal is adjusted according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
2. The method according to claim 1, characterized in that The motor regulation model is generated in the following way: Monitor the operating performance parameters of the motor in real time to obtain training data, wherein the training data at least includes a first operating speed, a load, and a temperature of the motor; Acquire an initial model, define a reward function in the initial model, and use the reward function to represent the immediate feedback obtained when the motor takes a specific action in a specific state; Combining a plurality of preset groups of weight coefficients with the training data to obtain a plurality of groups of input data; Calculating each set of the input data according to the reward function to generate several sets of adjustment information corresponding to the input data; Obtaining a modulation signal corresponding to the motor; Adjust the modulation signal according to the adjustment information to obtain a second operating speed of the motor after adjustment; Calculating the error between the second running speed and a preset target running speed, and determining the second running speed having the smallest error with the target running speed as the target adjustment speed; The weight coefficient combination corresponding to the target adjustment speed is determined as the target weight coefficient combination, and the motor adjustment model is generated based on the target weight coefficient combination and the reward function.
3. The method according to claim 1, characterized in that The motor adjustment model includes a reward function, and the inputting the first operating performance parameter into the motor adjustment model for parameter processing includes: Acquiring a current operating speed of the motor from the first operating performance parameter; A first error value between the current running speed and a preset target running speed is calculated, and a first reward function value corresponding to the motor is calculated according to the first error value.
4. The method according to claim 3, characterized in that The method further comprises: Calculating the speed change rate of the current running speed and a second error value between the speed change rate and a preset target speed change rate in combination with the running time of the motor; A second reward function value corresponding to the motor is calculated according to the second error value.
5. The method according to claim 1, characterized in that The step of inputting the first operating performance parameter into the motor adjustment model for parameter processing further includes: Acquire the current operating energy consumption of the motor from the first operating performance parameter; Obtaining a duty cycle of the modulation signal; A third reward function value corresponding to the motor is calculated according to a proportional relationship between the duty cycle and the current operating energy consumption.
6. The method according to claim 1, characterized in that The step of inputting the first operating performance parameter into the motor adjustment model for parameter processing further includes: defining a plurality of safety indicators, wherein the safety indicators are used to represent the extreme operating performance parameters of the motor, wherein the extreme operating performance parameters at least include the maximum operating speed, the maximum operating current, the maximum input voltage and the maximum operating temperature of the motor; A third error value between a first parameter value corresponding to the first operating performance parameter and a second parameter value corresponding to the limit operating performance parameter is calculated, and a third reward function value corresponding to the motor is calculated according to the fourth error value.
7. The method according to claim 1, characterized in that The adjusting the modulated signal according to the target adjustment information further includes: Calculating a target duty cycle of the modulation signal according to the target adjustment information; Applying the target duty cycle to the modulation signal to generate a target modulation signal for the motor; Applying the target modulation signal to a power input terminal corresponding to the motor to control an average voltage received by the motor; Monitoring the regulated running speed of the motor under the average voltage, and determining whether an error between the regulated running speed and a preset target running speed satisfies a preset condition; If the preset condition is still not satisfied between the adjusted running speed and the preset target running speed, the duty cycle of the target modulation signal is adjusted according to the error value between the adjusted running speed and the target running speed until the adjusted running speed reaches the target running speed.
8. An adaptive regulating device for motor running speed, characterized in that: The device comprises: A parameter acquisition module, used for acquiring in real time a first operating performance parameter of a motor in a vehicle, and a motor adjustment model for the motor, wherein the motor adjustment model is used for outputting adjustment information corresponding to an operating speed of the motor; a parameter processing module, configured to input the first operating performance parameter into the motor adjustment model for parameter processing to obtain target adjustment information for the first operating performance parameter; A signal acquisition module, used to acquire a modulation signal corresponding to the motor, wherein the modulation signal is used to control the running speed of the motor; The signal adjustment module is used to adjust the modulation signal according to the target adjustment information so that the running speed of the motor reaches a preset target running speed.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method for adaptively adjusting the motor running speed according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method for adaptively adjusting the running speed of a motor according to any one of claims 1 to 7.
