A dual-loop controlled bldc fan motor adaptive robust control system and method
By using a dual-loop control structure, combining an adaptive tracking loop and a robust compensation loop, the contradiction between fast tracking and robust stability in MRAC is resolved, achieving fast response and improved stability of BLDC motors, making it suitable for industrial scenarios involving high-performance motor drives.
Patent Information
- Application Number
- CN202611405048.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional MRAC solutions struggle to balance fast tracking response and robust stability in BLDC motor drive control, and are prone to system instability due to parameter drift. Existing improvements have failed to decouple tracking performance and robust performance at the control architecture level.
A dual-loop control structure is adopted, including an adaptive tracking loop and a robust compensation loop. The adaptive tracking loop achieves fast trajectory tracking through model reference adaptive control, while the robust compensation loop suppresses external disturbances and stability errors through an optimal feedback compensator. The signal superposition unit generates the total control signal, and the gain of the optimal feedback compensator is obtained through offline genetic algorithm optimization.
It achieves a balance between fast tracking and strong anti-disturbance capability, significantly reduces overshoot and settling time, and improves the system's anti-disturbance capability and stability, making it suitable for deployment on resource-constrained industrial microcontroller platforms.
Smart Images

Figure CN123184516A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor control technology, and in particular to an adaptive robust control system and method for a dual-loop controlled BLDC fan motor. Background Technology
[0002] Brushless direct current motors (BLDC) have gained increasingly widespread application in electric vehicles, unmanned aerial vehicles, robots, medical devices, compressors, fans, and industrial automation due to their significant advantages such as high efficiency, long lifespan, low maintenance costs, high power density, and excellent speed regulation performance. As application scenarios place increasingly higher demands on motor control performance, maintaining robust system stability while ensuring rapid dynamic response has become a core technical challenge that urgently needs to be addressed in the field of BLDC motor drive control.
[0003] Model Reference Adaptive Control (MRAC), a classic method for handling system uncertainties, is widely used in BLDC motor speed control. MRAC adjusts controller parameters in real time to make the actual system output track the reference model output, exhibiting a certain degree of adaptability to parameter changes and load disturbances. However, standard MRAC solutions face a fundamental technical contradiction: setting a high adaptive gain to achieve fast tracking response can easily lead to parameter bursting under the influence of measurement noise, unmodeled dynamics, or sudden load disturbances, potentially causing system instability in severe cases. Conversely, reducing the adaptive gain to ensure stability significantly degrades the system's tracking speed and dynamic response performance. This contradiction essentially stems from the fact that MRAC couples the two control objectives of "tracking" and "robustness" into the same adaptive mechanism, making it difficult to fundamentally achieve a balance.
[0004] To address the aforementioned issues, some existing technologies attempt to introduce improvements such as dead-zone correction, σ-correction, or leakage terms into the MRAC framework. However, these methods essentially still involve compromises within a single adaptive loop, failing to decouple tracking performance from robustness at the control architecture level. Other technologies employ a dual-loop control structure (such as an inner current loop and an outer speed loop), but their dual-loop design aims to achieve hierarchical control of current and speed, rather than addressing the inherent contradictions of MRAC through architectural improvements. Therefore, this application proposes a dual-loop control system and method for an adaptive robust control system of a BLDC fan motor that at least partially solves the aforementioned problems. Summary of the Invention
[0005] In view of the aforementioned problems, this application is proposed to provide a dual-loop controlled BLDC fan motor adaptive robust control system and method to overcome or at least partially solve the aforementioned problems, so as to fundamentally resolve the inherent contradiction between adaptive speed and robust stability in traditional MRAC, and achieve both fast tracking and strong anti-disturbance capability.
[0006] A dual-loop controlled BLDC fan motor adaptive robust control system, the system comprising:
[0007] The first control loop, namely the adaptive tracking loop, adopts a model reference adaptive control strategy. It takes the output of the reference model as the target and adjusts the controller parameters in real time according to the tracking error between the actual output of the motor and the output of the reference model to generate the main control signal, which is used to achieve fast and accurate reference trajectory tracking.
[0008] The second control loop, namely the robust compensation loop, is set in parallel with the first control loop. It includes an optimal feedback compensator. The compensator takes the tracking error of the brushless DC motor as input and generates an auxiliary control signal according to a predetermined compensation law to suppress external disturbances and stabilize error dynamics.
[0009] The signal superposition unit is used to superimpose the main control signal output by the first control loop and the auxiliary control signal output by the second control loop to generate a total control signal and output it to the brushless DC motor.
[0010] The compensator gain of the optimal feedback compensator is obtained through offline genetic algorithm optimization and remains fixed during motor operation.
[0011] Furthermore, the optimal feedback compensator employs a PID control law:
[0012] ;
[0013] in, As an auxiliary control signal, To track errors, For reference input, This refers to the actual output speed of the motor. , , These are proportional gain, integral gain, and derivative gain, respectively.
[0014] Furthermore, the process of offline optimization of the compensator gain by the genetic algorithm includes:
[0015] The encoding step involves setting the gain of the compensator [ , , The encoding is for chromosomes, using real number encoding.
[0016] The initialization step generates an initial population containing N individuals, with each individual's genes randomly generated within a preset search range;
[0017] The fitness evaluation step involves substituting the corresponding gain combination into the simulation model of the brushless DC motor for each individual, applying a step reference input, recording the system's overshoot, steady-state error, settling time, and rise time, and calculating the fitness value of the individual based on a preset cost function.
[0018] The selection step involves choosing a subset of individuals from the current population based on their fitness values to serve as parents for generating the next generation of the population.
[0019] The crossover step involves performing a crossover operation on the selected parent pair to generate offspring individuals;
[0020] The mutation step involves performing mutation operations on the genes of offspring individuals with a predetermined probability.
[0021] The iterative process involves repeating the fitness evaluation, selection, crossover, and mutation steps described above until the termination condition is met.
[0022] The output step involves outputting the gain combination corresponding to the best individuals in each generation as the optimal gain of the optimal feedback compensator.
[0023] Furthermore, the cost function is:
[0024] ;
[0025] Where OS is the overshoot. For steady-state error, To adjust the time, For the rising time, and This is the weighting factor.
[0026] Furthermore, the first control loop employs an adaptive law based on MIT rules:
[0027] ;
[0028] in, For adaptive controller parameters, For adaptive gain, To track errors, Output for reference model.
[0029] Furthermore, the main control signal generated by the adaptive tracking loop is:
[0030] ;
[0031] Where R, S, and T are controller polynomials designed based on the reference model.
[0032] This invention also provides an adaptive robust control method for a dual-loop controlled BLDC fan motor, comprising the following steps:
[0033] Step 1: Establish a mathematical model of the brushless DC motor and determine the state-space description or transfer function description of the system;
[0034] Step 2: Design the first control loop, adopt the model reference adaptive control strategy, determine the reference model and adaptive law, and generate the main control signal;
[0035] Step 3: Design the second control loop, construct the optimal feedback compensator, and determine the structure and control law of the compensator;
[0036] Step 4: Optimize the control parameters of the compensator using an offline genetic algorithm to obtain the optimal gain combination;
[0037] Step 5: Write the optimal gain into the compensator, and connect the first control loop and the second control loop in parallel;
[0038] Step 6: Collect the motor speed feedback signal in real time, calculate the main control signal and auxiliary control signal respectively, and output the total control signal after superposition to drive the brushless DC motor.
[0039] Furthermore, the specific process of optimizing the compensator gain using an offline genetic algorithm in step four is as follows:
[0040] In offline mode, a simulation model of the brushless DC motor is established;
[0041] Initialize the genetic algorithm population, with each individual encoding a set of compensator gains. , , ];
[0042] For each individual, its gain is substituted into the simulation model to perform a step response simulation and calculate the cost function value;
[0043] Based on the cost function value, perform selection, crossover, and mutation operations, and iteratively optimize until convergence;
[0044] Output optimal gain combination .
[0045] Furthermore, step six also includes:
[0046] The operating status of the motor is continuously monitored. When a significant change in operating conditions is detected, the re-optimization process of the genetic algorithm is triggered to update the optimal gain of the compensator.
[0047] Furthermore, the method also includes a stability verification step: proving the stability of the control system using the Lyapunov method by constructing a Lyapunov function and proving that its time derivative is negative definite or semi-negative definite, thus ensuring asymptotic convergence of the tracking error. Attached Figure Description
[0048] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a block diagram of the overall architecture of the dual-loop optimal feedback control system provided by the present invention;
[0050] Figure 2 The optimal feedback compensator structure block diagram provided by the present invention;
[0051] Figure 3 The GA optimization flowchart provided by this invention;
[0052] Figure 4 The step response comparison curve provided by the present invention;
[0053] Figure 5 The speed recovery curve under load disturbance provided by the present invention. Detailed Implementation
[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0055] Example 1
[0056] This embodiment provides an adaptive robust control system for a BLDC fan motor with dual-loop control.
[0057] like Figure 1 As shown, the control system includes: a first control loop (adaptive tracking loop), a second control loop (robust compensation loop), and a signal superposition unit.
[0058] The first control loop employs a Model Reference Adaptive Control (MRAC) strategy. Its working principle is as follows:
[0059] Setting a reference model This model characterizes the desired dynamic response properties of the system. The actual output speed y(t) of the motor is acquired in real time, and its relationship with the output of the reference model is calculated. Tracking error between According to MIT rules, and following the adaptive law: Real-time update of controller parameters Then, based on the updated parameters, according to... Generate main control signal Where R, S, and T are controller polynomials designed based on the reference model. This loop focuses on achieving fast and accurate reference trajectory tracking.
[0060] The second control loop is connected in parallel with the first control loop. For example... Figure 2 As shown, the loop includes an optimal feedback compensator. The compensator tracks the error... As input, according to PID control law
[0061] Generate auxiliary control signals The gain of the compensator [ , , The values are not adjusted in real time during motor operation, but rather obtained through offline genetic algorithm optimization.
[0062] The signal superposition unit will combine the main control signal With auxiliary control signals Superimposed to generate the total control signal The output is sent to the brushless DC motor.
[0063] Example 2
[0064] This embodiment provides a specific implementation method for optimizing compensator gain using an offline genetic algorithm.
[0065] like Figure 3 As shown, the offline optimization process of the genetic algorithm includes the following steps:
[0066] Step S201, Initialization: Set the population size N=50, the maximum number of iterations MaxGen=100, and the crossover probability... Probability of mutation The initial population is randomly generated within the search space. Each individual Using real-number encoding, the search ranges for each gene are as follows: , , .
[0067] Step S202, Fitness Assessment: For each individual Substitute the corresponding gain combination into the BLDC motor simulation model (where the transfer function of the simulation model is...). ,in, This refers to the motor speed. (Input voltage), apply a unit step reference input, and record the system's overshoot (OS) and steady-state error. Adjusting time (with an error band of ±2%) and rise time (From 10% to 90%). According to the cost function Calculate the cost function value, where, =10, =0.5. The fitness value is the reciprocal of the cost function value. ,in, To prevent small constants from being divided by zero.
[0068] Step S203: Selection. A combination of elite retention and roulette wheel selection is used. The top 10% (5 individuals) with the highest fitness are directly retained to the next generation; the remaining 90% of individuals are selected according to their fitness ratio. Select the paternal parent from the current population.
[0069] Step S204, crossover, with probability Perform simulated binary crossover (SBX) on the selected parent pair, with distribution index =20.
[0070] Step S205, mutation, with probability Perform polynomial mutation on the genes of offspring individuals, distribution index =100.
[0071] Step S206, Iteration and Termination: Merge elite individuals with new individuals generated through crossover and mutation to form a new generation of population. Repeat steps S202 to S205 until any of the following termination conditions are met: (1) The cost function value of the optimal individual. (2) The number of iterations reaches MaxGen=100.
[0072] Step S207: Output the best individual across all generations. The optimal gain of the compensator.
[0073] Example 3
[0074] This embodiment provides a specific application example of the control system.
[0075] In this embodiment, the controlled object is a MAXON EC 45 flat series BLDC motor with the following parameters: rated speed 3000 rpm, rated torque 59 mNm, terminal inductance 0.72 mH, terminal resistance 1.03 Ω, torque constant 33.5 mNm / A, and mechanical time constant 12.4 ms. The motor transfer function obtained through system identification is as follows: ;
[0076] The above transfer function can be represented in a state-space format as follows:
[0077]
[0078] y(t) = Cx(t);
[0079] in, , , ;
[0080] Following the method described in Example 2 above, the compensator gain is optimized using an offline genetic algorithm. The optimal gain obtained after optimization is: =3.42, =0.87, =0.052.
[0081] After writing the optimal gain into the compensator, a step response experiment was conducted. The experimental results show that compared with the traditional MRAC (overshoot 9.27%, settling time 1.79s), the overshoot of the control system of this invention is reduced to 1.02% (a reduction of about 88.99%), and the settling time is shortened to 1.55s (a reduction of about 13.8%).
[0082] like Figure 4 As shown, the step response curve (red solid line) of the control system of the present invention has significantly smaller overshoot and faster convergence speed compared with the traditional MRAC (black dashed line).
[0083] like Figure 5 As shown, under random load disturbance conditions, the speed drop of the control system of this invention (solid red line) is approximately 55 RPM, with a recovery time of approximately 0.22 s; while the speed drop of the traditional MRAC (dashed black line) is much larger, with a recovery time as long as 0.85 s. This demonstrates that the control system of this invention has excellent disturbance rejection capability.
[0084] Example 4
[0085] This embodiment provides a stability analysis of the control system.
[0086] To demonstrate the stability of the control system of this invention, a Lyapunov function is constructed:
[0087] ;
[0088] in, Let be the state error vector. Let P be the parameter estimation error, and P be a symmetric positive definite matrix. It is a symmetric positive definite adaptive gain matrix.
[0089] Taking the time derivative of V and substituting it into the error dynamic equation, we select the adaptive law:
[0090] We can obtain:
[0091] ;
[0092] Where Q is satisfied A symmetric positive definite matrix, This is the state matrix of the reference model.
[0093] because Since V(t) is bounded, the tracking error e(t) and the parameter error are... Both are bounded.
[0094] Furthermore, according to Barbalat's lemma, since Uniformly continuous and bounded, we can obtain:
[0095] ,thereby That is, the tracking error asymptotically converges to zero.
[0096] The stability analysis above shows that the control system of the present invention theoretically guarantees the asymptotic convergence of the tracking error and has strict stability assurance.
[0097] Example 5
[0098] This embodiment provides an implementation method for deploying the control system on an industrial microcontroller.
[0099] Since the optimization process of the genetic algorithm is completed offline, the real-time control law only involves simple PID calculations and MRAC parameter updates, which requires little computation and is suitable for deployment on resource-constrained industrial microcontroller platforms.
[0100] Specifically, the optimal gain obtained through optimization It is stored in the microcontroller's non-volatile memory. During each control cycle, the microcontroller performs the following operations:
[0101] (1) Read the motor speed feedback signal y(t) through an analog-to-digital converter;
[0102] (2) Calculate the tracking error ;
[0103] (3) Update the controller parameters according to the MRAC adaptive law and calculate the main control signal. ;
[0104] (4) Calculate the auxiliary control signal according to the PID control law. ;
[0105] (5) The total control signal is obtained by superposition. ;
[0106] (6) Drive the motor by outputting control signals through pulse width modulation (PWM).
[0107] The computational load of the entire real-time control process is far less than that of the online optimization algorithm, and it can be completed in microseconds, thus meeting the requirements of real-time control.
[0108] The dual-loop controlled BLDC fan motor adaptive robust control system and method provided by this invention can be widely applied to various industrial scenarios requiring high-performance motor drives, including but not limited to: electric vehicle drive systems, industrial robot joint drives, drone power systems, precision medical devices, CNC machine tool spindle drives, compressor and fan drives, etc. This invention significantly improves the system's anti-disturbance capability and stability while ensuring rapid dynamic response, possessing good industrial practical value and broad application prospects.
[0109] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0110] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0111] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0112] The above provides a detailed description of the adaptive robust control system and method for a dual-loop controlled BLDC fan motor. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are intended to help understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there may be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A dual-loop controlled BLDC fan motor adaptive robust control system, characterized in that, include: The first control loop, namely the adaptive tracking loop, adopts a model reference adaptive control strategy. It takes the output of the reference model as the target and adjusts the controller parameters in real time according to the tracking error between the actual output of the motor and the output of the reference model to generate the main control signal. The second control loop, namely the robust compensation loop, is set in parallel with the first control loop and includes an optimal feedback compensator. The compensator takes the tracking error of the brushless DC motor as input and generates an auxiliary control signal according to a predetermined compensation law. The signal superposition unit is used to superimpose the main control signal output by the first control loop and the auxiliary control signal output by the second control loop to generate a total control signal and output it to the brushless DC motor. The compensator gain of the optimal feedback compensator is obtained through offline genetic algorithm optimization and remains fixed during motor operation.
2. The system according to claim 1, characterized in that, The optimal feedback compensator employs a PID control law: ; in, As an auxiliary control signal, To track errors, For reference input, This represents the actual output speed of the motor. , , These are proportional gain, integral gain, and derivative gain, respectively.
3. The system according to claim 1, characterized in that, The compensator gain of the optimal feedback compensator is obtained through offline genetic algorithm optimization; wherein, the process of offline optimization of the compensator gain by the genetic algorithm includes: The encoding step involves setting the gain of the compensator [ , , ] is encoded as a chromosome; The initialization step generates an initial population containing N individuals, with each individual's genes randomly generated within a preset search range; The fitness evaluation step involves substituting the corresponding gain of each individual into the simulation model of the brushless DC motor, applying a step reference input, recording the system's overshoot, steady-state error, settling time, and rise time, and calculating the fitness value of that individual based on a preset cost function. The selection step involves choosing a subset of individuals from the current population as parents based on their fitness values. The crossover step involves performing a crossover operation on the selected parent pair to generate offspring individuals; The mutation step involves performing mutation operations on the genes of offspring individuals with a predetermined probability. The iterative process involves repeating fitness evaluation, selection, crossover, and mutation steps until the termination condition is met. The output step involves outputting the gain combination corresponding to the best individuals in each generation as the optimal gain of the optimal feedback compensator.
4. The system according to claim 1, characterized in that, The cost function is: ; Where OS is the overshoot. For steady-state error, To adjust the time, For the rising time, and This is the weighting factor.
5. The system according to claim 3, characterized in that, The termination conditions of the iterative steps include: the cost function value of the optimal individual is less than a preset threshold, or the number of iterations reaches a preset maximum number of iterations.
6. The system according to claim 1, characterized in that, The first control loop employs an adaptive law based on the MIT rule: ; in, For adaptive controller parameters, For adaptive gain, To track errors, Output for reference model.
7. The system according to claim 6, characterized in that, The main control signal generated by the adaptive tracking loop is: ; Where R, S, and T are controller polynomials designed based on the reference model.
8. A dual-loop controlled BLDC fan motor adaptive robust control method, characterized in that, Includes the following steps: Establish a mathematical model for a brushless DC motor; Design the first control loop, adopt the model reference adaptive control strategy, determine the reference model and adaptive law, and generate the main control signal; Design the second control loop, construct the optimal feedback compensator, and determine the structure and control law of the compensator; An offline genetic algorithm is used to optimize the control parameters of the compensator to obtain the optimal compensator gain; Write the optimal compensator gain into the compensator, and connect the first control loop and the second control loop in parallel; The motor speed feedback signal is collected in real time, the main control signal and auxiliary control signal are calculated separately, and the total control signal is output after superposition to drive the brushless DC motor.
9. The method according to claim 8, characterized in that, The step of optimizing the control parameters of the compensator using an offline genetic algorithm to obtain the optimal compensator gain specifically includes: In offline mode, a simulation model of the brushless DC motor is established; Initialize the genetic algorithm population, with each individual encoding a set of compensator gains. , , ]; For each individual, its gain is substituted into the simulation model to perform a step response simulation and calculate the cost function value; Based on the cost function value, selection, crossover, and mutation operations are performed iteratively until convergence; Output optimal gain combination .
10. The method according to claim 8, characterized in that, The optimal feedback compensator employs a PID control law: ; in, As an auxiliary control signal, To track errors, For reference input, This represents the actual output speed of the motor. , , These are proportional gain, integral gain, and derivative gain, respectively.
