A full-process anti-interference control method and system for a brushless DC motor
By using angular velocity sensors and inverter self-tests in brushless DC motors, the commutation process and zero-crossing point judgment are optimized to solve the problem of inaccurate pre-start detection, acceleration start failure, uneven speed switching and high noise during high-speed operation. problem, achieving higher stability and efficiency.
Patent Information
- Application Number
- CN202410179868.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-02-18
AI Technical Summary
The existing brushless DC motor does not detect the initial position of the rotor accurately before starting, the inverter may have a short circuit or open circuit, the commutation fails during the accelerated start process, the speed switching is not smooth, the noise and heat are too large during high-speed operation, and the zero point is crossed. The judgment is imprecise.
By connecting the angular velocity sensor to determine the rotor angular velocity, determine the rotor direction and accelerate or brake operations, perform inverter self-test, optimize the commutation process, correct the commutation time, filter out high-frequency clutter, and improve the zero-crossing point judgment accuracy.
It improves the accuracy of rotor initial position detection, prevents inverter fault interference, enhances the stability of the commutation process, and ensures efficient stability and smooth speed switching of the motor during high-speed operation.
Smart Images

Figure CN118473262B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of motor control and fault-tolerant algorithms, and more specifically, relates to a full-process anti-interference control method and system for a brushless DC motor. Background Art
[0002] With the development of science and technology and the improvement of people's quality of life, the traditional application market of motors has gradually become saturated. The market demand for motors has gradually shifted to emerging fields such as smart homes, new energy vehicles, robots, drones, wearable devices, etc. This requires the performance of motors to develop in the direction of high reliability, high precision, intelligence, and lightness. The brushless DC motor controls the rotation of the motor shaft through the input control signal, has good speed regulation performance, and a large speed regulation range, and can be well used in the above application scenarios.
[0003] However, existing brushless DC motors have some defects that cannot be ignored:
[0004] First, during the detection of the initial position of the rotor before the brushless DC motor starts, the rotor is often in a rotating state due to external forces, which will cause inaccurate detection of the initial position of the rotor. At the same time, the inverter of the brushless DC motor may also have a short circuit or open circuit before starting;
[0005] Second, during the acceleration start of the brushless DC motor, the commutation process of the brushless DC motor is very short, and only 10 to 15 commutations will be performed. If commutation errors occur continuously, it is very likely to cause commutation failure. In this process, long and short pulses will be used simultaneously to accelerate the rotor, and the judgment of the commutation time node will be interfered at this time.
[0006] Third, in the speed switching stage of the brushless DC motor, the program call jump time is not considered during the commutation time calculation process, resulting in errors in the commutation time and the motor speed switching is not smooth enough;
[0007] Fourth, during the high-speed operation stage of the brushless DC motor, the judgment of the zero-crossing point is not accurate enough, and there is an error in the commutation time, which causes the brushless DC motor to produce excessive noise and heat. Summary of the invention
[0008] In view of the above defects or improvement needs of the prior art, the present invention provides a full-process anti-interference control method and system for a brushless DC motor, the purpose of which is to solve the technical problems that during the detection stage of the initial position of the rotor before the brushless DC motor is started, the rotor is often in a rotating state due to external force, which will cause inaccurate detection of the initial position of the rotor, and the inverter of the brushless DC motor may also be short-circuited or open-circuited before starting, and during the acceleration start-up process of the brushless DC motor, the commutation process of the brushless DC motor is very short, and only 10 to 15 commutations are performed. If commutation errors occur continuously, it is very likely to lead to commutation failure, and in this process, long and short pulses will be used simultaneously to accelerate the rotor. At this time, there is a technical problem of interference in the judgment of the commutation time node, and in the speed switching stage of the brushless DC motor, in the commutation time calculation process, there is a lack of consideration for the program call jump time, etc., resulting in errors in the commutation time and technical problems such as insufficient smoothness in the motor speed switching, and in the high-speed operation stage of the brushless DC motor, the judgment of the zero crossing point is not accurate enough, resulting in errors in the commutation time, resulting in technical problems such as excessive noise and heat generation of the brushless DC motor.
[0009] To achieve the above object, according to one aspect of the present invention, a full-process anti-interference control method for a brushless DC motor is provided, comprising the following steps:
[0010] (1) obtaining the angular velocity of the rotor in the brushless DC motor by connecting to an angular velocity sensor, and determining whether the angular velocity is zero. If so, proceed to step (5); otherwise, proceed to step (2);
[0011] (2) determining whether the rotor of the brushless DC motor is rotating forward or reversely; if it is rotating forward, proceeding to step (3); if it is rotating reversely, proceeding to step (4);
[0012] (3) accelerating the brushless DC motor according to the angular velocity of the rotor in the brushless DC motor obtained by the angular velocity sensor in step (1), and then proceeding to step (8);
[0013] (4) braking the brushless DC motor, and then proceeding to step (5);
[0014] (5) Performing a short-circuit self-check on the inverter of the brushless DC motor to determine whether the inverter is short-circuited. If so, proceed to step (7); otherwise, proceed to step (6);
[0015] (6) Performing a circuit breaker self-check on the inverter of the brushless DC motor to determine whether the brushless DC motor is in a circuit breaker state. If so, proceed to step (7); otherwise, proceed to step (8);
[0016] (7) Stop the brushless DC motor and the process ends;
[0017] (8) Optimize the commutation process of the brushless DC motor.
[0018] (9) Optimizing the commutation time of the brushless DC motor after the commutation process is optimized in step (8) to obtain an optimized commutation time of the brushless DC motor.
[0019] (10) Correcting the commutation time of the brushless DC motor optimized in step (9) to obtain a corrected commutation time of the brushless DC motor.
[0020] (11) The commutation time of the brushless DC motor corrected in step (10) is subjected to high-frequency noise filtering to obtain a final commutation time of the brushless DC motor.
[0021] Preferably, step (5) performs a short-circuit self-check on the brushless DC motor inverter by sequentially turning on each switch tube in the inverter and turning off other switch tubes when they are turned on, while detecting the DC bus current and comparing the measured DC bus current with a set current. If the measured current is greater than the set comparison current, it indicates that a MOSFET device is short-circuited; otherwise, it indicates that there is no short-circuit fault.
[0022] Preferably, in step (6), the inverter of the brushless DC motor is subjected to a circuit-break self-check by turning on the three phases of the brushless DC motor in pairs, each with a turn-on time of 1 ms, and sampling the corresponding DC bus current at the same time, setting ten sampling times, each with a sampling interval of 100 us, setting a comparison current, and comparing the sampled DC bus current with the comparison current. If the DC bus current is less than the comparison current, it is determined that the inverter of the brushless DC motor is circuit-break; otherwise, it indicates that there is no circuit-break fault.
[0023] Preferably, step (8) includes the following sub-steps.
[0024] (8-1) Set counter i=0;
[0025] (8-2) Determine whether the brushless DC motor is successfully commutated. If so, the process ends; otherwise, proceed to step (8-3);
[0026] (8-3) Set counter i=i+1;
[0027] (8-4) Determine whether the counter i is greater than or equal to a preset threshold value. If so, proceed to step (8-6); otherwise, proceed to step (8-5);
[0028] (8-5) Correct the pulse width modulation (PWM) duty cycle of the brushless DC motor, that is, set the PWM 占空比 =PWM 占空比+x, and then return to step (8-2); wherein the value range of x is between 0.01 and 0.03, preferably 0.02;
[0029] (8-6) Turn off all the switch tubes in the brushless DC motor and stop the brushless DC motor from working. The process ends.
[0030] Preferably, step (9) comprises the following sub-steps.
[0031] (9-1) performing long pulse current sampling and short pulse current sampling on the brushless DC motor after the optimized commutation process obtained in step (8) to obtain n groups of long pulse sampling currents and n groups of short pulse sampling currents; wherein the value range of n is 40 to 60, preferably 50;
[0032] Specifically, the sampling process is to divide the sampling period T into n equal parts, and sample the brushless DC motor once every t = T / n time, so as to obtain n groups of short pulse sampling current i 1A 、i 2A ……i nA , and n groups of long pulse sampling current i 1B 、i 2B ……i nB ;
[0033] (9-2) Discretizing the n groups of short pulse sampling currents and the n groups of long pulse sampling currents obtained in step (9-1) to obtain a plurality of first areas S enclosed by the short pulse sampling currents and the sampling time interval t=T / n 11 , S 21 ,…,S n1 , and a plurality of second areas S enclosed by the long pulse sampling current and the sampling time interval t=T / n 12 , S 22 ,…S n2 ;
[0034] (9-3) summing up the multiple first areas and the multiple second areas calculated in step (9-2) to obtain a first total area S1 corresponding to the short pulse current and a second total area S2 corresponding to the long pulse current within the sampling period T;
[0035] (9-4) Determine whether the first total area S1 obtained in step (9-3) is smaller than the second total area S2. If so, it means that the brushless DC motor can switch phases in the next working state, and the current time node is the switching time node of the brushless DC motor. The process ends. Otherwise, return to step (9-1).
[0036] Preferably, step (10) adopts the following formula:
[0037]
[0038] t is the commutation time of the brushless DC motor after correction, n is the rotation speed of the brushless DC motor, p is the number of pole pairs of the brushless DC motor, and t0 is the correction time, which ranges from 0.04ms to 0.06ms, preferably 0.05ms.
[0039] Preferably, step (11) comprises the following sub-steps:
[0040] (11-1) Perform the first back electromotive force detection on the brushless DC motor in the high-speed operation stage to obtain the back electromotive force zero-crossing point of the brushless DC motor as a temporary zero-crossing point (such as Figure 7 Points a and c in );
[0041] (11-2) performing a second detection on the back electromotive force signal of the brushless DC motor at a subsequent time after the temporary zero crossing point obtained in step (11-1) to determine whether the electromotive force signal is in a zero crossing state. If so, it indicates that the temporary zero crossing point obtained in step (11-1) is the final zero crossing point, and the process proceeds to step (11-3). Otherwise, it indicates that the temporary zero crossing point obtained in step (11-1) is not the final zero crossing point, but a pseudo zero crossing point, and the process returns to step (11-1);
[0042] (11-3) obtaining the position information of the rotor of the brushless DC motor according to the final zero-crossing point of the brushless DC motor obtained in step (11-2), and obtaining the commutation time of the brushless DC motor in the high-speed operation stage through the obtained rotor position information;
[0043] (11-4) Determine whether the commutation time of the brushless DC motor in the high-speed operation stage obtained in step (11-3) is greater than twice the commutation time of the previous commutation cycle of the brushless DC motor. If so, proceed to step (11-5); otherwise, proceed to step (11-6);
[0044] (11-5) Using the commutation time of the previous commutation cycle of the brushless DC motor as the commutation time of the high-speed operation stage of the brushless DC motor, and proceeding to step (11-6);
[0045] (11-6) The commutation time of the brushless DC motor during high-speed operation is processed by adding trade-off factors to obtain the final commutation time of the brushless DC motor.
[0046] Preferably, step (11-3) adopts the following formula:
[0047]
[0048] t nis the commutation time of the brushless DC motor in the high-speed operation stage, θ2 is the current position of the brushless DC motor's rotor, θ1 is the position of the brushless DC motor's rotor in the previous commutation cycle, ω n is the current angular velocity of the brushless DC motor's rotor.
[0049] Step (11-6) uses the following formula:
[0050]
[0051] where Y n is the final commutation time of the brushless DC motor, Y n-1 is the commutation time of the brushless DC motor in the previous commutation cycle, X n It is the commutation time of the brushless DC motor during high-speed operation. Both a and b are trade-off factors.
[0052] According to another aspect of the present invention, there is provided a full-process anti-interference control system for a brushless DC motor, comprising:
[0053] The first module is used to obtain the angular velocity of the rotor in the brushless DC motor by connecting to the angular velocity sensor, and determine whether the angular velocity is zero. If so, it will be transferred to the fifth module, otherwise it will be transferred to the second module;
[0054] The second module is used to determine whether the rotor in the brushless DC motor is rotating forward or reversely. If it is rotating forward, it will be transferred to the third module; if it is rotating reversely, it will be transferred to the fourth module;
[0055] The third module is used to accelerate the brushless DC motor according to the angular velocity of the rotor in the brushless DC motor obtained by the angular velocity sensor of the first module, and then transfer to the eighth module;
[0056] The fourth module is used for performing a braking operation on the brushless DC motor, and then transferring to the fifth module;
[0057] The fifth module is used to perform short-circuit self-check on the inverter of the brushless DC motor to determine whether the inverter has a short circuit, and if so, transfer to the seventh module, otherwise transfer to the sixth module;
[0058] The sixth module is used to perform a circuit-breaking self-check on the inverter of the brushless DC motor to determine whether the brushless DC motor has a circuit-breaking condition. If so, the seventh module is entered, otherwise, the eighth module is transferred;
[0059] The seventh module is used to stop the brushless DC motor from working, and the process ends;
[0060] The eighth module is used to optimize the commutation process of the brushless DC motor.
[0061] The ninth module is used to optimize the commutation time of the brushless DC motor after the commutation process is optimized in the eighth module, so as to obtain the optimized commutation time of the brushless DC motor.
[0062] The tenth module is used to correct the commutation time of the brushless DC motor optimized by the ninth module to obtain the corrected commutation time of the brushless DC motor.
[0063] The eleventh module is used to filter out high-frequency noise from the commutation time of the brushless DC motor corrected by the tenth module, so as to obtain the final commutation time of the brushless DC motor.
[0064] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0065] (1) Since the present invention adopts steps (1) to (7), the inaccurate detection of the initial position of the rotor caused by the early rotation of the rotor in the rotor pre-positioning stage before the brushless DC motor is started is eliminated, and the interference caused by the failure of the brushless DC motor inverter is eliminated by the short circuit and open circuit self-check of the brushless DC motor inverter, so as to more accurately determine the initial position of the rotor of the brushless DC motor.
[0066] (2) Since the present invention adopts steps (8) to (9), during the acceleration and starting stage of the brushless DC motor, a judgment step is added to prevent the motor from continuously failing to commutate and causing the motor to vibrate, and a "one-sided point" anti-interference algorithm is adopted to reduce the error in the calculation of the commutation time of the brushless DC motor, so as to ensure the smooth starting of the rotor, better grasp the commutation situation of the motor, and enhance the anti-interference ability of the motor.
[0067] (3) Since the present invention adopts step (10), during the speed switching stage of the brushless DC motor, by adding correction processing in the commutation time calculation process, the time of program calling and jumping is offset, so that the brushless DC motor can switch more smoothly and the motor operation is more stable.
[0068] (4) Since the present invention adopts step (11), during the high-speed operation stage of the brushless DC motor, the influence of high-frequency noise on the commutation time is eliminated by eliminating the pseudo zero-crossing point generated by high-frequency noise and adding a trade-off factor when calculating the final commutation time, and the final commutation time is obtained, thereby ensuring the high efficiency and high stability of the motor under high-speed operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is a flow chart of the whole process anti-interference control method of the brushless DC motor of the present invention;
[0070] Figure 2 It is a structural schematic diagram of the zero-crossing detection circuit in the present invention;
[0071] Figure 3 This is the schematic diagram of a brushless DC motor;
[0072] Figure 4 It is a schematic diagram of a short-circuit equivalent detection circuit of a switching device of the present invention;
[0073] Figure 5 This is a schematic diagram of the long and short pulse commutation acceleration principle of the present invention;
[0074] Figure 6 It is a schematic diagram of the discretization processing principle of the present invention;
[0075] Figure 7 It is a principle diagram of the zero-crossing circuit capture process of the present invention. DETAILED DESCRIPTION
[0076] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0077] Table 1 Parameters of the brushless DC motor selected in the present invention
[0078]
[0079] The present invention proposes a full-process anti-interference control method and system for a brushless DC motor. Table 1 shows the parameters of the brushless DC motor selected by the present invention. The present invention divides the operation process of the brushless DC motor into four stages: rotor position detection stage before starting, acceleration start stage, speed switching stage, and high-speed operation stage. The present invention comprehensively considers the possible faults of the brushless DC motor in various stages of operation, and avoids the interference that these faults may cause to the motor operation process, thereby ensuring the high-speed, efficient and stable operation of the brushless DC motor.
[0080] like Figure 1 As shown, the present invention discloses a full-process anti-interference control method for a brushless DC motor, comprising the following steps:
[0081] (1) obtaining the angular velocity of the rotor in the brushless DC motor by connecting to an angular velocity sensor, and determining whether the angular velocity is zero. If so, proceed to step (5); otherwise, proceed to step (2);
[0082] (2) determining whether the rotor of the brushless DC motor is rotating forward or reversely; if it is rotating forward, proceeding to step (3); if it is rotating reversely, proceeding to step (4);
[0083] Specifically, in this step, the determination of whether the rotor is in forward or reverse rotation is achieved by performing two zero-crossing detections on the rotor and querying a pre-established list (Table 2 below) for the two zero-crossing detection results. Specifically, the zero-crossing detection circuit is as follows: Figure 2 As shown, the first detection is to compare the three-phase voltages UA, UB, and UC of the rotor with the neutral point voltage respectively. If the former is greater than the latter, the value is 1, and if the former is less than the latter, the value is 0; the second detection is still to compare the three-phase voltages UA, UB, and UC of the rotor with the neutral point voltage respectively. If the former is greater than the latter, the value is 1, and if the former is less than the latter, the value is 0; finally, 6 test results are obtained. By querying these 6 test results in Table 2, the rotation direction of the rotor can be determined, whether it is forward or reverse.
[0084] Table 2 Voltage comparison results and rotor rotation status comparison
[0085]
[0086] (3) accelerating the brushless DC motor according to the angular velocity of the rotor in the brushless DC motor obtained by the angular velocity sensor in step (1), and then proceeding to step (8);
[0087] (4) braking the brushless DC motor, and then proceeding to step (5);
[0088] Specifically, the braking operation of the brushless DC motor in this step is completed by using a controller, such as Figure 3 This is the schematic diagram of a brushless DC motor. During braking, the upper arms of the three bridges of the inverter are all turned off, and the lower arms are turned on in the form of pulse width modulation (PWM). During PWM modulation, the initial PWM duty cycle is set at 20%. As braking progresses, the duty cycle gradually increases until the motor stops.
[0089] The advantage of this step is that the heat generated by the switch device can be reduced by adopting this on-off mode, and the motor stop eliminates the interference of the brushless DC motor's early rotation on the detection of the rotor's initial position.
[0090] (5) Performing a short-circuit self-check on the inverter of the brushless DC motor to determine whether the inverter is short-circuited. If so, proceed to step (7); otherwise, proceed to step (6);
[0091] Specifically, this step performs a short-circuit self-check on the brushless DC motor inverter by turning on each switch tube in the inverter in turn and turning off other switch tubes when they are turned on, while detecting the DC bus current, and comparing the measured DC bus current with a set current (the set current value is 70% to 80% of the short-circuit current, preferably 75%). If the measured current is greater than the set comparison current, it indicates that a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) device is short-circuited, otherwise it indicates that there is no short-circuit fault.
[0092] When the inverter short-circuit self-test is performed, the six power tubes are turned on in turn. When one is turned on, the other five are all turned off. The schematic diagram of the switch device short-circuit equivalent detection circuit is as follows: Figure 4 shown.
[0093]
[0094] The short-circuit current is obtained by formula (1), where I is the short-circuit current, V is the total voltage of the phase, and Rd v1 (on), Rd v2 (on) is the equivalent resistance of the upper and lower bridge arms, R1 is the detection resistor. The comparison current is set to 75%I. If the detection current exceeds the set current value, it is a short circuit.
[0095] At the same time, the time scale of turning on the switch tube is taken into consideration during the conduction. According to the existing experimental data, the conduction time is set to 300us in this step. By applying a short pulse, the heat generation can be reduced to prevent the switch tube from burning out.
[0096] (6) Performing a circuit breaker self-check on the inverter of the brushless DC motor to determine whether the brushless DC motor is in a circuit breaker state. If so, proceed to step (7); otherwise, proceed to step (8);
[0097] Specifically, in this step, the inverter of the brushless DC motor is self-checked by turning on the three phases of the brushless DC motor in pairs, each time for 1ms, and sampling the corresponding DC bus current at the same time. Ten samplings are set, each sampling interval is 100us, and a comparison current is set (the size of the comparison current should be a current close to zero, preferably set to 0.001I 额定电流 ), compare the sampled DC bus current with the comparison current. If the sampled DC bus current during the comparison process is less than the set value, it is determined that the inverter of the brushless DC motor is short-circuited, otherwise there is no short-circuit fault.
[0098] (7) Stop the brushless DC motor and the process ends;
[0099] (8) Optimize the commutation process of the brushless DC motor.
[0100] Specifically, this step includes the following sub-steps.
[0101] (8-1) Set counter i=0;
[0102] (8-2) Determine whether the brushless DC motor is successfully commutated. If so, the process ends; otherwise, proceed to step (8-3);
[0103] (8-3) Set counter i=i+1;
[0104] (8-4) Determine whether the counter i is greater than or equal to a preset threshold value. If so, proceed to step (8-6); otherwise, proceed to step (8-5);
[0105] Specifically, the threshold value preset in this step ranges from 3 to 7, preferably 5.
[0106] (8-5) Correct the pulse width modulation (PWM) duty cycle of the brushless DC motor, that is, set the PWM 占空比 =PWM 占空比 +x (wherein the value of x ranges from 0.01 to 0.03, preferably 0.02), and then returns to step (8-2);
[0107] (8-6) Turn off all the switch tubes in the brushless DC motor and stop the brushless DC motor from working. The process ends.
[0108] (9) Optimizing the commutation time of the brushless DC motor after the commutation process is optimized in step (8) to obtain an optimized commutation time of the brushless DC motor.
[0109] Specifically, this step includes the following sub-steps.
[0110] (9-1) After the optimized commutation process obtained in step (8), the brushless DC motor is subjected to long pulse current sampling and short pulse current sampling respectively to obtain n groups of long pulse sampling currents and n groups of short pulse sampling currents. The long and short pulse commutation acceleration principle diagram is shown in FIG. Figure 5 As shown;
[0111] Specifically, the sampling process is to divide the sampling period T into n equal parts (the value range of n is 40 to 60, preferably 50), and sample the brushless DC motor once every t = T / n time, so as to obtain n groups of short pulse sampling current i 1A 、i 2A ……i nA, and n groups of long pulse sampling current i 1B 、i 2B ……i nB ;
[0112] (9-2) Discretizing the n groups of short pulse sampling currents and the n groups of long pulse sampling currents obtained in step (9-1) to obtain a plurality of first areas S enclosed by the short pulse sampling currents and the sampling time interval t=T / n 11 , S 21 ,…,S n1 , and a plurality of second areas S enclosed by the long pulse sampling current and the sampling time interval t=T / n 12 , S 22 ,…S n2 , the discretization processing principle diagram is as follows Figure 6 As shown;
[0113] (9-3) summing up the multiple first areas and the multiple second areas calculated in step (9-2) to obtain a first total area S1 corresponding to the short pulse current and a second total area S2 corresponding to the long pulse current within the sampling period T;
[0114] Specifically, in this step, S1=S 11 +S 21 +……+S n1 , S2=S 12 +S 22 +……+S n2 .
[0115] (9-4) Determine whether the first total area S1 obtained in step (9-3) is smaller than the second total area S2. If so, it means that the brushless DC motor can switch phases in the next working state, and the current time node is the switching time node of the brushless DC motor. The process ends. Otherwise, return to step (9-1).
[0116] The advantage of this step is that the commutation time node is determined by comparing the area instead of comparing the sampled current values, so as to obtain an accurate commutation time starting node, eliminate the advance or lag of the commutation of the brushless DC motor caused by the sudden change of current due to external interference, and increase the anti-interference ability of the commutation of the brushless DC motor in the acceleration stage.
[0117] (10) Correcting the commutation time of the brushless DC motor optimized in step (9) to obtain a corrected commutation time of the brushless DC motor.
[0118] Specifically, in the commutation time calculation, a small time scale t0 is subtracted from the original calculation process to offset the time of program calls and jumps.
[0119] This step uses the following formula (2):
[0120]
[0121] t is the commutation time of the brushless DC motor after correction, n is the rotation speed of the brushless DC motor, p is the number of pole pairs of the brushless DC motor, and t0 is the correction time, which ranges from 0.04ms to 0.06ms, preferably 0.05ms.
[0122] The advantage of this step is that, through the correction step, the error caused by the calculation is corrected, the speed switching stability of the brushless DC motor is improved, and the speed switching process of the brushless DC motor can be performed more smoothly.
[0123] (11) The commutation time of the brushless DC motor corrected in step (10) is subjected to high-frequency noise filtering to obtain a final commutation time of the brushless DC motor.
[0124] Specifically, this step includes the following sub-steps:
[0125] (11-1) Perform the first back electromotive force detection on the brushless DC motor in the high-speed operation stage to obtain the back electromotive force zero-crossing point of the brushless DC motor as a temporary zero-crossing point (such as Figure 7 Points a and c in );
[0126] (11-2) performing a second detection on the back electromotive force signal of the brushless DC motor at a subsequent time after the temporary zero crossing point obtained in step (11-1) to determine whether the electromotive force signal is in a zero crossing state. If so, it indicates that the temporary zero crossing point obtained in step (11-1) is the final zero crossing point, and the process proceeds to step (11-3). Otherwise, it indicates that the temporary zero crossing point obtained in step (11-1) is not the final zero crossing point, but a pseudo zero crossing point, and the process returns to step (11-1);
[0127] (11-3) obtaining the position information of the rotor of the brushless DC motor according to the final zero-crossing point of the brushless DC motor obtained in step (11-2), and obtaining the commutation time of the brushless DC motor in the high-speed operation stage through the obtained rotor position information;
[0128] Specifically, in this step, the commutation time of the brushless DC motor in the high-speed operation stage is calculated by the following formula through the acquired rotor position information:
[0129]
[0130] t n is the commutation time of the brushless DC motor in the high-speed operation stage, θ2 is the current position of the brushless DC motor's rotor, θ1 is the position of the brushless DC motor's rotor in the previous commutation cycle, ωn is the current angular velocity of the brushless DC motor's rotor.
[0131] (11-4) Determine whether the commutation time of the brushless DC motor in the high-speed operation stage obtained in step (11-3) is greater than twice the commutation time of the previous commutation cycle of the brushless DC motor. If so, proceed to step (11-5); otherwise, proceed to step (11-6);
[0132] (11-5) Using the commutation time of the previous commutation cycle of the brushless DC motor as the commutation time of the high-speed operation stage of the brushless DC motor, and proceeding to step (11-6);
[0133] (11-6) The commutation time of the brushless DC motor during high-speed operation is processed by adding trade-off factors to obtain the final commutation time of the brushless DC motor.
[0134] This step uses the following formula (4):
[0135]
[0136] Y n is the final commutation time of the brushless DC motor, Y n-1 is the commutation time of the brushless DC motor in the previous commutation cycle, X n is the commutation time of the brushless DC motor in the high-speed operation stage. a and b are both trade-off factors, where the value range of a is 10 to 30, preferably 20; the value range of b is 20 to 40, preferably 30.
[0137] The advantage of this step is that it eliminates the interference of the pseudo zero-crossing point (point a) generated by high-frequency noise on the calculation of the commutation time, compares the commutation time calculation data, discards the commutation time with too large error, and increases the trade-off factor to obtain the commutation time of the brushless DC motor with high-frequency noise filtered out, ensuring efficient and accurate commutation of the motor under high-speed operation and more stable operation.
[0138] The above steps analyze the possible fault interference in each stage of the brushless DC motor operation, provide ideas for reducing interference, and ensure the safe and stable operation of the brushless DC motor from various time scales.
[0139] The present invention, from step (1) to step (11), each step is to eliminate faults and perform anti-interference operations, wherein steps (1) to step (7) are anti-interference operations in the stage before the brushless DC motor is started; steps (8) and (9) are anti-interference operations in the acceleration stage of the brushless DC motor; step (10) is the anti-interference operation in the speed switching stage of the brushless DC motor; and step (11) is the anti-interference operation in the high-speed operation stage of the brushless DC motor.
[0140] It will be easily understood by those skilled in the art that 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.
Claims
1. A full-process anti-interference control method for a brushless DC motor, characterized in that: The following steps are involved: (1) obtaining the angular velocity of the rotor in the brushless DC motor by connecting to an angular velocity sensor, and determining whether the angular velocity is zero. If so, proceed to step (5); otherwise, proceed to step (2); (2) determining whether the rotor of the brushless DC motor is rotating forward or reversely; if it is rotating forward, proceeding to step (3); if it is rotating reversely, proceeding to step (4); (3) accelerating the brushless DC motor according to the angular velocity of the rotor in the brushless DC motor obtained by the angular velocity sensor in step (1), and then proceeding to step (8); (4) braking the brushless DC motor, and then proceeding to step (5); (5) Performing a short-circuit self-check on the inverter of the brushless DC motor to determine whether the inverter is short-circuited. If so, proceed to step (7); otherwise, proceed to step (6); (6) Performing a circuit breaker self-check on the inverter of the brushless DC motor to determine whether the brushless DC motor is in a circuit breaker state. If so, proceed to step (7); otherwise, proceed to step (8); (7) Stop the brushless DC motor and the process ends; (8) Optimizing the commutation process of the brushless DC motor; Step (8) includes the following sub-steps: (8-1) Set counter i=0; (8-2) Determine whether the brushless DC motor is successfully commutated. If so, the process ends; otherwise, proceed to step (8-3); (8-3) Set counter i=i+1; (8-4) Determine whether the counter i is greater than or equal to a preset threshold value. If so, proceed to step (8-6); otherwise, proceed to step (8-5); (8-5) Correct the pulse width modulation (PWM) duty cycle of the brushless DC motor, that is, set the PWM 占空比 =PWM 占空比 +x, and then return to step (8-2); the value range of x is between 0.01 and 0.03; (8-6) Turn off all the switch tubes in the brushless DC motor and stop the brushless DC motor from working, and the process ends; (9) Optimizing the commutation time of the brushless DC motor after the commutation process is optimized in step (8) to obtain an optimized commutation time of the brushless DC motor; step (9) comprises the following sub-steps: (9-1) performing long pulse current sampling and short pulse current sampling on the brushless DC motor after the optimized commutation process obtained in step (8) to obtain n groups of long pulse sampling currents and n groups of short pulse sampling currents; wherein the value range of n is 40 to 60; Specifically, the sampling process is to divide the sampling period T into n equal parts, and sample the brushless DC motor once every t = T / n time, so as to obtain n groups of short pulse sampling current i 1A 、i 2A ……i nA , and n groups of long pulse sampling current i 1B 、i 2B ……i nB ; (9-2) Discretizing the n groups of short pulse sampling currents and the n groups of long pulse sampling currents obtained in step (9-1) to obtain a plurality of first areas S enclosed by the short pulse sampling currents and the sampling time interval t=T / n 11 , S 21 ,…,S n1 , and a plurality of second areas S enclosed by the long pulse sampling current and the sampling time interval t=T / n 12 , S 22 ,…S n2 ; (9-3) summing up the multiple first areas and the multiple second areas calculated in step (9-2) to obtain a first total area S1 corresponding to the short pulse current and a second total area S2 corresponding to the long pulse current within the sampling period T; (9-4) Determine whether the first total area S1 obtained in step (9-3) is smaller than the second total area S2. If so, it means that the brushless DC motor can be switched in the next working state, and the current time node is the switching time node of the brushless DC motor. The process ends. Otherwise, return to step (9-1); (10) Correcting the commutation time of the brushless DC motor optimized in step (9) to obtain a corrected commutation time of the brushless DC motor; step (10) uses the following formula: t is the commutation time of the brushless DC motor after correction, n is the speed of the brushless DC motor, p is the number of pole pairs of the brushless DC motor, t0 is the correction time, and its value range is 0.04ms to 0.06ms; (11) filtering out high-frequency noise from the commutation time of the brushless DC motor after the correction processing in step (10) to obtain the final commutation time of the brushless DC motor; step (11) includes the following sub-steps: (11-1) performing a first back electromotive force detection on the brushless DC motor in the high-speed operation stage to obtain a back electromotive force zero-crossing point of the brushless DC motor as a temporary zero-crossing point; (11-2) performing a second detection on the back electromotive force signal of the brushless DC motor at a subsequent time after the temporary zero crossing point obtained in step (11-1) to determine whether the electromotive force signal is in a zero crossing state. If so, it indicates that the temporary zero crossing point obtained in step (11-1) is the final zero crossing point, and the process proceeds to step (11-3). Otherwise, it indicates that the temporary zero crossing point obtained in step (11-1) is not the final zero crossing point, but a pseudo zero crossing point, and the process returns to step (11-1); (11-3) obtaining the position information of the rotor of the brushless DC motor according to the final zero-crossing point of the brushless DC motor obtained in step (11-2), and obtaining the commutation time of the brushless DC motor in the high-speed operation stage through the obtained rotor position information; step (11-3) adopts the following formula: t n is the commutation time of the brushless DC motor in the high-speed operation stage, θ2 is the current position of the brushless DC motor's rotor, θ1 is the position of the brushless DC motor's rotor in the previous commutation cycle, ω n is the current angular velocity of the rotor of the brushless DC motor; (11-4) Determine whether the commutation time of the brushless DC motor in the high-speed operation stage obtained in step (11-3) is greater than twice the commutation time of the previous commutation cycle of the brushless DC motor. If so, proceed to step (11-5); otherwise, proceed to step (11-6); (11-5) Using the commutation time of the previous commutation cycle of the brushless DC motor as the commutation time of the high-speed operation stage of the brushless DC motor, and proceeding to step (11-6); (11-6) adding a weighting factor to the commutation time of the brushless DC motor in the high-speed operation stage to obtain the final commutation time of the brushless DC motor; step (11-6) adopts the following formula: where Y n is the final commutation time of the brushless DC motor, Y n-1 is the commutation time of the brushless DC motor in the previous commutation cycle, X n It is the commutation time of the brushless DC motor during high-speed operation. Both a and b are trade-off factors.
2. The whole process anti-interference control method of the brushless DC motor according to claim 1 is characterized in that: Step (5) performs a short-circuit self-test on the brushless DC motor inverter by turning on each switch tube in the inverter in turn and turning off other switch tubes when they are turned on, while detecting the DC bus current and comparing the measured DC bus current with the set current. If the measured current is greater than the set comparison current, it indicates that the MOSFET device is short-circuited, otherwise it indicates that there is no short-circuit fault.
3. The whole process anti-interference control method of the brushless DC motor according to claim 1 or 2, characterized in that: In step (6), the inverter of the brushless DC motor is self-checked for circuit failure by turning on the three phases of the brushless DC motor in pairs, each time for 1 ms, and sampling the corresponding DC bus current at the same time. Ten samplings are set, each with an interval of 100 us, and a comparison current is set. The sampled DC bus current is compared with the comparison current. If the DC bus current is less than the comparison current, it is determined that the inverter of the brushless DC motor is circuit-broken. Otherwise, it indicates that there is no circuit-broken fault.
Citation Information
Patent Citations
Quasi-close loop starting method of brushless direct current motor free of position sensor
CN102868350A
Non-position detection of permanent magnetic direct-current brushless double-rotor motor
CN102969955A
