A brushless direct current motor speed measurement and control test bench
By using an improved Grey Wolf Optimization Algorithm (CR-GWO) combined with Kent chaotic mapping and sine-cosine random assignment, the speed measurement and control of brushless DC motors are optimized. This solves the problems of low accuracy and poor global search capability in existing technologies, achieving faster convergence speed and higher accuracy, and improving the dynamic response performance of the motor.
Patent Information
- Application Number
- CN202311170425.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-09-12
AI Technical Summary
In existing brushless DC motor speed measurement and control technologies, the Grey Wolf algorithm suffers from low solution accuracy, poor global search capability, and a tendency to get trapped in local optima.
An improved Grey Wolf Optimization (CR-GWO) algorithm is adopted, which combines Kent chaotic mapping and sine and cosine random assignment for population initialization, and incorporates nonlinear inertial decreasing weight factor and random proportional shift strategy of population position to optimize the search process of the algorithm.
It improves the accuracy and speed of brushless DC motor speed measurement and control, shortens rise time, settling time and peak time, and enhances dynamic response performance.
Smart Images

Figure CN117335614B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor speed measurement technology, specifically to a brushless DC motor speed measurement and control test bench. Background Technology
[0002] The Grey Wolf Algorithm is a swarm intelligence optimization algorithm inspired by the hunting behavior of grey wolves. It is an optimization search method characterized by strong convergence performance, few parameters, and ease of implementation. In recent years, it has received widespread attention from scholars and has been successfully applied to fields such as workshop scheduling, parameter optimization, and image classification.
[0003] In order to fully study the speed of brushless DC motors under no-load and load conditions and to realize the control of brushless DC motors through software programming, the Grey Wolf algorithm is incorporated into it to simulate and solve optimization problems and obtain the optimal solution. However, the GWO algorithm has the disadvantages of low solution accuracy, poor global search capability and getting trapped in local optima. To address this problem, we propose a brushless DC motor speed measurement and control test bench. Summary of the Invention
[0004] To address the aforementioned shortcomings of existing technologies, this invention provides a brushless DC motor speed measurement and control test bench.
[0005] The present invention provides the following technical solution: a brushless DC motor speed measurement and control test bench, including a base and two brackets mounted on the base, wherein a brushless DC motor and a magnetic powder brake are respectively mounted on the two brackets, and the output shafts of the brushless DC motor and the magnetic powder brake are connected by a coupling, and a speed sensor is provided in the coupling;
[0006] Furthermore, the brushless DC motor is connected to the function board via wires, and the speed control unit on the function board controls the speed of the brushless DC motor.
[0007] The speed sensor is connected to the function board via wires, and the speed sensor collects speed signals and transmits them to the function board.
[0008] The magnetic powder brake is connected to the function board via wires. Adjusting the magnetic powder brake allows for detection of motor speed under no-load or load conditions.
[0009] Furthermore, the function board uses the CR-GWO algorithm to read the speed information in real time, which can also control the speed of the brushless DC motor;
[0010] The CR-GWO algorithm is as follows:
[0011] S1. A hybrid optimization-based population initialization improvement strategy, which mixes the Kent chaotic map with random assignment of sine and cosine to initialize the population, has the following mathematical model:
[0012] Formula 1:
[0013] Formula 2: x k+1 =[u*cos(p*π)*sin(v*π)]*x k
[0014] The sample value region is divided into a 10×10 grid to calculate the number of points in each unit grid, and then the density distribution value is calculated by kernel density estimation (KDE).
[0015] S2. The nonlinear inertial decreasing weighting factor improvement strategy: When the wolf pack searches for prey, it is influenced by the distance weight A. When |A|>1, the gray wolves move far away from the prey, and a large-scale search means finding the optimal solution globally; when |A|<1, the search range shrinks, and they begin to surround the prey. The expression for the sinusoidal nonlinear decreasing factor is:
[0016]
[0017] In the formula, t is the current iteration number, tmax is the maximum iteration number, and n is the decreasing weight;
[0018] S3. An improved strategy for random proportional movement of population positions, incorporating random proportional weights into the algorithm. The mathematical model expression is:
[0019]
[0020]
[0021]
[0022]
[0023] When this mathematical model is abstracted into a planar image, X1, X2, and X3 are the coordinates of the three vertices of a triangle, where m1, m2, and m3 represent the weights of the distance ratios to any point inside the triangle. X1, X2, and X3 correspond to three gray wolves, alpha, beta, and delta, respectively, which determine the position of the omega wolf as it continuously approaches its prey to attack. Randomly increasing the weight factor ρ∈(0,1) increases the distance ratios of X2 and X3 from the interior points, meaning that the interior points are closer to X1.
[0024] Preferably, in S1, to avoid getting stuck in a short period during initialization, the initial value must be different from the control parameter μ in Formula 1 and μ≠0.5, with parameter μ∈(0,1). At the same time, to avoid the occurrence of duplicate populations, a sine and cosine random allocation strategy is adopted based on the Kent chaotic mapping.
[0025] Preferably, in formula two of S1, the weight coefficient u = 2, the random coefficients p ∈ [0,1] and v ∈ [0,1], and x k This represents the chaotic sequence value at the k-th iteration.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The algorithm proposed in this brushless DC motor speed measurement and control test bench can detect the motor speed by adjusting the brake to achieve no-load or load conditions, and can also control the motor through the control board. Multiple research tests can be carried out through one test bench. Under the control of the CR-GWO control algorithm, the rise time, settling time and peak time of the brushless DC motor can be shortened when it is under no-load or load, making the dynamic response of the brushless DC motor better. Attached Figure Description
[0028] Figure 1 This is a schematic diagram of the structure of the test bench of the present invention;
[0029] Figure 2 This is a comparison diagram of population initialization for the algorithm of this invention;
[0030] Figure 3 This is a distance weight comparison chart for the present invention;
[0031] Figure 4 This is a flowchart of the CR-GWO algorithm of the present invention;
[0032] Figure 5 This is a diagram describing the test function of the present invention;
[0033] Figure 6 This is a graph showing the results of the test function of this invention.
[0034] Figure 7 This is a graph showing the results of the test function of this invention.
[0035] In the diagram: 1. Base; 2. Bracket; 3. Brushless DC motor; 4. Magnetic powder brake; 5. Coupling. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. In order to keep the following description of the embodiments of this disclosure clear and concise, detailed descriptions of known functions and known components are omitted to avoid unnecessarily obscuring the concept of the present invention.
[0037] Please see Figure 1A brushless DC motor speed measurement and control test bench includes a base 1 and two brackets 2 mounted on the base 1. A brushless DC motor 3 and a magnetic powder brake 4 are respectively mounted on the two brackets 2. The output shafts of the brushless DC motor 3 and the magnetic powder brake 4 are connected by a coupling 5, and a speed sensor is provided in the coupling 5.
[0038] Furthermore, the brushless DC motor 3 is connected to the function board via wires, and the speed control unit on the function board controls the speed of the brushless DC motor 3.
[0039] The speed sensor is connected to the function board via wires, and the speed sensor collects speed signals and transmits them to the function board.
[0040] The magnetic powder brake 4 is connected to the function board via wires. Adjusting the magnetic powder brake 4 can detect the motor speed by achieving no-load or load conditions.
[0041] Furthermore, the function board uses the CR-GWO algorithm to read the speed information in real time, and can also control the speed of the brushless DC motor 3;
[0042] The CR-GWO algorithm is as follows:
[0043] S1. A hybrid optimization-based population initialization improvement strategy, which mixes the Kent chaotic map with random assignment of sine and cosine to initialize the population, has the following mathematical model:
[0044] Formula 1:
[0045] Formula 2: x k+1 =[u*cos(p*π)*sin(v*π)]*x k
[0046] To avoid getting stuck in short periods during initialization, the initial value must be different from the control parameter μ in Formula 1 and μ ≠ 0.5, with parameter μ ∈ (0,1). At the same time, to avoid the occurrence of duplicate populations, a sine and cosine random assignment strategy is adopted based on the Kent chaotic mapping.
[0047] Furthermore, in Formula 2, the weight coefficient u = 2, the random coefficients p ∈ [0,1] and v ∈ [0,1], and x k This represents the chaotic sequence value at the k-th iteration.
[0048] like Figure 2 As shown, the region of sample values is divided into a 10×10 grid to calculate the number of points in each unit grid, and then the density distribution value is calculated by kernel density estimation (KDE).
[0049] The density distribution value of the CR-GWO algorithm is 0.020737, while that of the GWO algorithm is 0.0015117. Therefore, compared with the GWO algorithm, the CR-GWO algorithm has a more uniform distribution, higher randomness, and less repetition.
[0050] S2. The nonlinear inertial decreasing weighting factor improvement strategy: When the wolf pack searches for prey, it is influenced by the distance weight A. When |A|>1, the gray wolves move far away from the prey, and a large-scale search means finding the optimal solution globally; when |A|<1, the search range shrinks, and they begin to surround the prey. The expression for the sinusoidal nonlinear decreasing factor is:
[0051]
[0052] In the formula, t is the current iteration number, tmax is the maximum iteration number, and n is the decreasing weight;
[0053] In this study, n=2 was selected. The number of iterations was set to 100. The GWO algorithm was compared with the CR-GWO algorithm, as follows: Figure 3 As shown.
[0054] S3. An improved strategy for random proportional movement of population positions, incorporating random proportional weights into the algorithm. The mathematical model expression is:
[0055]
[0056]
[0057]
[0058]
[0059] When this mathematical model is abstracted into a planar image, X1, X2, and X3 are the coordinates of the three vertices of a triangle, where m1, m2, and m3 represent the weights of the distance ratios to any point inside the triangle. X1, X2, and X3 correspond to three gray wolves: alpha, beta, and delta, respectively. These coordinates determine the position of the omega wolf, which continuously moves closer to its prey to attack. Randomly increasing the weight factor ρ∈(0,1) increases the distance ratios of X2 and X3 from the interior points, meaning the interior points are closer to X1. In the algorithm, this corresponds to the omega wolf being closer to alpha, and alpha being closer to the prey, thus reducing the number of iterations required to find the optimal solution and resulting in faster convergence. Based on this improvement, the CR-GWO algorithm execution steps are as follows: Figure 4 .
[0060] experiment
[0061] To verify the optimization capability of the CR-GWO algorithm, six test functions (three unimodal benchmark functions and three multimodal benchmark functions) were selected. The global solution capability and the ability to escape local optima of the CR-GWO algorithm were tested by comparing it with the GWO algorithm. The test functions are described as follows: Figure 5 .
[0062] The population size was set to 50, and the maximum number of iterations was set to 100. To fully verify the convergence accuracy and stability of the algorithm and avoid randomness, CR-GWO and GWO were run repeatedly 50 times. The average and standard deviation of the optimal fitness were used to measure the algorithm's performance. The results and data comparisons are as follows: Figure 6 and Figure 5 .
[0063] The data results after running 50 times are as follows Figure 7 The results show that, compared to the GWO algorithm, the CR-GWO algorithm improves the solution accuracy for f1-f6 by approximately 25.13%, 13.68%, 32.65%, 39.20%, 30.82%, and 34.46%, respectively, with an average improvement of approximately 29.323%. Furthermore, the CR-GWO algorithm obtains the optimal solution with fewer iterations than the GWO algorithm. This result indicates that the CR-GWO algorithm has a faster convergence speed, higher convergence accuracy, and stronger stability.
[0064] The above embodiments are merely exemplary embodiments of the present invention and are not intended to limit the present invention. The scope of protection of the present invention is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to the present invention within its spirit and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of the present invention.
Claims
1. A test bench for measuring and controlling the speed of a brushless DC motor, characterized in that: Includes a base (1) and two brackets (2) mounted on the base (1), and a brushless DC motor (3) and a magnetic powder brake (4) are respectively mounted on the two brackets (2). The output shafts of the brushless DC motor (3) and the magnetic powder brake (4) are connected by a coupling (5), and a speed sensor is provided in the coupling (5). Furthermore, the brushless DC motor (3) is connected to the function board via wires, and the speed control unit on the function board controls the speed of the brushless DC motor (3); The speed sensor is connected to the function board via wires, and the speed sensor collects speed signals and transmits them to the function board. The magnetic powder brake (4) is connected to the function board via wires. Adjusting the magnetic powder brake (4) can detect the motor speed under no-load or load conditions. Furthermore, the function board uses the CR-GWO algorithm to read the speed information in real time, and can also control the speed of the brushless DC motor (3); The CR-GWO algorithm is as follows: S1. A hybrid optimization-based population initialization improvement strategy, which mixes the Kent chaotic map with random assignment of sine and cosine to initialize the population, has the following mathematical model: Formula 1: Source:x k+1 =[u*cos(p*π)*sin(v*π)]*x k The sample value region is divided into a 10×10 grid to calculate the number of points in each unit grid, and then the density distribution value is calculated by kernel density estimation (KDE). S2. Improved strategy based on nonlinear inertia reduction of weighting factors: When wolves search for prey, they are influenced by the distance weight A. When |A|>1, the gray wolves move away from the prey, and a large-scale search means finding the optimal solution globally. When |A|<1, the search range shrinks, and they begin to surround and attack the prey. The expression for the sinusoidal nonlinear reduction factor is: In the formula, t is the current iteration number, tmax is the maximum iteration number, and n is the decreasing weight; S3. Improved strategy for random proportional movement of population positions: The algorithm incorporates random proportional weights, and the mathematical model expression is as follows: When the mathematical model is abstracted into a planar image, X1, X2, and X3 are the coordinates of the three vertices of a triangle, where m1, m2, and m3 represent the weights of the distance ratios to any point inside the triangle. X1, X2, and X3 correspond to three gray wolves, alpha, beta, and delta, respectively. The position of the omega wolf is determined by these wolves, which continuously approach the prey to attack. The weight factor ρ∈(0,1) is randomly increased, which increases the distance ratios of X2 and X3 from the interior points, meaning that the interior points are closer to X1.
2. The brushless DC motor speed measurement and control test bench according to claim 1, characterized in that: In S1, to avoid getting stuck in a short period during initialization, the initial value must be different from the control parameter μ in Formula 1 and μ≠0.5, with parameter μ∈(0,1). At the same time, to avoid the occurrence of duplicate populations, a sine and cosine random assignment strategy is adopted based on the Kent chaotic mapping.
3. The brushless DC motor speed measurement and control test bench according to claim 1, characterized in that: Formula 2 in S1 has a weight coefficient u = 2, random coefficients p ∈ [0,1] and v ∈ [0,1], and x k This represents the chaotic sequence value at the k-th iteration.
