A method and system for controlling power of a brushless DC motor

By monitoring and controlling the bus current of the brushless DC motor and outputting a limited pulse signal to adjust the motor output power, the problem of overshoot and torque pulsation of the motor during rapid acceleration or load changes is solved, and the smooth operation and load start of the motor are achieved. .

CN117155179BActive Publication Date: 2024-10-18SHENZHEN HANGSHUN CHIP TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311138794.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2024-10-18
Estimated Expiration
2043-09-04

AI Technical Summary

Technical Problem

When the brushless DC motor accelerates rapidly or the load changes rapidly, the speed is prone to overshoot, which is accompanied by large torque pulsation, causing the motor to run unevenly or stop, and may cause startup failure when starting with load.

Method used

By monitoring the bus current of the motor drive circuit, when the fluctuation exceeds the set threshold, the output reference current is controlled, and when the bus current is greater than the reference current, a limiting pulse signal is output to limit the pulse width modulation signal, adjust the motor output power, and limit the pulse width. Modulate the output of the signal to reduce torque ripple and overshoot.

Benefits of technology

It effectively limits the pulse width modulation signal output of the motor under extreme conditions, reduces the torque ripple, ensures the motor runs smoother, avoids shutdown due to overload, and achieves a smooth start of the motor with load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117155179B_ABST
    Figure CN117155179B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for controlling power of a brushless DC motor, the method comprising: obtaining the bus current of the motor's driving circuit; when the bus current fluctuates beyond a set threshold, controlling the output reference current; comparing the bus current with the reference current, if the bus current is greater than the reference current, outputting a limiting pulse signal to limit the output of a pulse width modulation signal. The present invention monitors the bus current of the motor's driving circuit, when the bus current fluctuates greatly beyond the set threshold, the single-chip microcomputer can control the output reference current, when the bus current exceeds the reference current, outputting a limiting pulse signal to limit the pulse width modulation signal, so as to limit the output of the pulse width modulation signal under extreme conditions when the motor speed and load change sharply, thereby limiting the overshoot and reducing the torque pulsation, thereby making the motor run more smoothly, avoiding the motor from shutting down due to overload during operation, and realizing smooth start of the motor with load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of brushless DC motor control, and in particular to a brushless DC motor power control method and system. Background Art

[0002] In brushless DC motor applications, the motor speed usually changes rapidly, especially when the load changes or the operating conditions change dramatically. In order to adapt to extreme conditions, the modulation gain in the motor control usually has to be adjusted very large to quickly respond to complex changes. However, when the motor accelerates rapidly or the load changes dramatically, although the motor responds quickly, the motor speed will have some overshoot, accompanied by large torque pulsation, making the motor run unsmoothly or shut down due to overload. If it is in the process of starting with load, it may also cause the motor to fail to start.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a DC brushless motor power control method and system to solve the problem that the motor speed will have some overshoot and be accompanied by large torque pulsation when the existing motor is in rapid acceleration or the load changes sharply.

[0005] The technical solution of the present invention is as follows:

[0006] A method for controlling power of a brushless DC motor, comprising:

[0007] Obtaining the bus current of the motor drive circuit;

[0008] When the bus current fluctuation exceeds a set threshold, controlling the output reference current;

[0009] The bus current is compared with the reference current, and if the bus current is greater than the reference current, a limiting pulse signal is output to limit the output of the pulse width modulation signal.

[0010] According to a further configuration of the present invention, the step of obtaining the bus current of the drive circuit of the motor includes:

[0011] Sampling the current of the sampling resistor in the driving circuit of the motor to obtain a sampling current;

[0012] The sampled current is amplified to obtain the bus current.

[0013] According to a further configuration of the present invention, when the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises:

[0014] The rotor position of the motor is obtained according to the motor model and the phase voltage of the motor;

[0015] The angular velocity of the motor is obtained according to the position of the rotor of the motor at different times;

[0016] The reference current is obtained according to the angular velocity of the motor and the motor model.

[0017] According to a further configuration of the present invention, when the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises:

[0018] Obtain the rotor position of the motor through a position sensor;

[0019] The angular velocity of the motor is obtained according to the position of the rotor of the motor at different times;

[0020] The reference current is obtained according to the angular velocity of the motor and the motor model.

[0021] According to a further configuration of the present invention, the step of obtaining the reference current according to the angular velocity of the motor and the motor model comprises:

[0022] In each control cycle, the target current value at the next moment is obtained according to the motor model and the target angular velocity at the next moment;

[0023] The target current value at the next moment is converted into an analog current signal to obtain the reference current.

[0024] According to a further configuration of the present invention, the step of comparing the bus current with the reference current and outputting a limiting pulse signal to limit the output of the pulse width modulation signal if the bus current is greater than the reference current comprises:

[0025] The limiting pulse signal is ANDed with the pulse width modulation signal to limit the output of the pulse width modulation signal.

[0026] A further configuration of the present invention further includes:

[0027] The target current at the next moment is obtained according to the angular velocity, bus voltage and target speed of the motor;

[0028] Whether the output power control of the motor is required is determined according to the size of the target current at the next moment. When power limitation is not required, a pulse width modulation signal is output to drive the motor. If power limitation is required, the duty cycle of the pulse width modulation signal is reduced, or the output of the pulse width modulation signal is limited by outputting the limiting pulse signal.

[0029] Based on the same inventive concept, the present invention also provides a system for implementing the above-mentioned brushless DC motor power control method, which is connected to the motor drive circuit and includes a single-chip microcomputer, a first sampling module, an amplification module, a comparison module, a second sampling module and a pre-driving module; wherein,

[0030] The first sampling module is connected to the driving circuit of the motor and the amplifying module respectively, and is used to collect the bus current of the driving circuit of the motor and input it into the amplifying module;

[0031] The amplification module is connected to the first sampling module, the comparison module and the single chip microcomputer respectively, and is used to amplify the bus current and input it to the single chip microcomputer and the comparison module;

[0032] The second sampling module is connected to the phase voltage and the bus voltage and is connected to the single chip microcomputer, and is used to divide the phase voltage and the bus voltage and then input them to the single chip microcomputer;

[0033] The single chip microcomputer is respectively connected to the second sampling module, the amplification module and the comparison module, and is used to output a reference current to the comparison module according to the bus current, the phase voltage and the bus voltage;

[0034] The comparison module is connected to the amplification module and the single-chip microcomputer respectively, and is used to output a limiting pulse signal to the single-chip microcomputer when the bus current is greater than the reference current;

[0035] The pre-driving module is connected to the single chip microcomputer and the driving circuit of the motor respectively, and is used to output a driving signal to the driving circuit of the motor according to the pulse width modulation signal output by the single chip microcomputer.

[0036] According to a further configuration of the present invention, the single chip microcomputer comprises: an operation processing unit, an analog-to-digital conversion unit, a digital-to-analog conversion unit and an advanced timer; wherein,

[0037] The analog-to-digital conversion unit is connected to the second sampling module and the operation processing unit respectively, and is used to feed back the phase voltage, bus voltage and bus current to the operation processing unit;

[0038] The arithmetic processing unit is respectively connected to the advanced timer, the analog-to-digital conversion unit and the digital-to-analog conversion unit, and is used to control the advanced timer to output a pulse width modulation signal, and is used to output a reference current to the digital-to-analog conversion unit according to the phase voltage, the bus voltage and the bus current;

[0039] The digital-to-analog conversion unit is connected to the operation processing unit and the comparison module respectively, and is used to convert the reference current into an analog current and input it into the comparison module;

[0040] The advanced timer is respectively connected to the operation processing unit, the comparison module, the digital-to-analog conversion unit and the pre-driving module, and is used to output a pulse width modulation signal to the pre-driving module, and is used to perform AND calculation on the limit pulse signal and the pulse width modulation signal to limit the output of the pulse width modulation signal.

[0041] According to a further configuration of the present invention, the amplification module includes an operational amplifier; the comparison module includes a comparator;

[0042] The non-inverting input terminal of the operational amplifier is connected to the bus current, and the output terminal of the operational amplifier is connected to the analog-to-digital conversion unit and the non-inverting input terminal of the comparator respectively;

[0043] The inverting input terminal of the comparator is connected to the digital-to-analog conversion unit;

[0044] An output terminal of the comparator is connected to the advanced timer.

[0045] The present invention provides a method and system for controlling power of a brushless DC motor, the method comprising: obtaining the bus current of the motor drive circuit; when the bus current fluctuates beyond a set threshold, controlling the output reference current; comparing the bus current with the reference current, and if the bus current is greater than the reference current, outputting a limiting pulse signal to limit the output of a pulse width modulation signal. The present invention monitors the bus current of the motor drive circuit, and when it is detected that the bus current fluctuates greatly beyond the set threshold, the single-chip microcomputer can control the output reference current, and when the bus current exceeds the reference current, the limiting pulse signal is output to limit the pulse width modulation signal, so as to limit the output of the pulse width modulation signal under extreme conditions when the motor speed and load change sharply, thereby limiting the overshoot and reducing the torque pulsation, thereby making the motor run more smoothly, avoiding the motor from shutting down due to overload during operation, and realizing the smooth start of the motor with load. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary personnel in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0047] Figure 1 It is a schematic flow chart of the power control method of the brushless DC motor in the present invention.

[0048] Figure 2It is the running curve of the motor when the load fluctuates overcurrent.

[0049] Figure 3 It is a schematic diagram of the motor model in the present invention.

[0050] Figure 4 It is a control flow chart of a brushless DC motor power control method in one embodiment of the present invention.

[0051] Figure 5 It is a principle block diagram of the brushless DC motor power control system in the present invention.

[0052] Figure 6 It is a circuit schematic diagram of the brushless DC motor power control system in the present invention.

[0053] The marks in the accompanying drawings are: 100, single-chip microcomputer; 110, operation processing unit; 120, analog-to-digital conversion unit; 130, digital-to-analog conversion unit; 140, advanced timer; 200, first sampling module; 300, amplification module; 400, comparison module; 500, second sampling module; 600, pre-driving module; 700, driving circuit. DETAILED DESCRIPTION

[0054] The present invention provides a brushless DC motor power control method and system. To make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. 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.

[0055] In the embodiments and the scope of the patent application, unless the text specifically defines the article, "a", "an", "the" and "the" may also include plural forms. If there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0056] It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be intermediate elements. In addition, the "connection" or "coupling" used herein can include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0057] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0058] In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0059] Please also see Figures 1 to 3 The present invention provides a preferred embodiment of a DC brushless motor power control method.

[0060] The present invention provides a method for controlling power of a brushless DC motor. Figure 1 As shown, it includes the steps of:

[0061] S100, obtaining a bus current of a drive circuit of a motor;

[0062] Specifically, a sampling resistor is connected to the driving power supply or driving ground terminal in the driving circuit of the motor, and the bus current obtained by sampling is fed back to the single-chip microcomputer through the sampling resistor to monitor the bus current in real time.

[0063] S200, when the bus current fluctuation exceeds a set threshold, controlling the output reference current;

[0064] Specifically, the microcontroller will monitor the bus current in real time. If the motor speed overshoot is too large or the torque pulse is too large, the detected bus current fluctuates greatly, that is, the oscillation change rate and peak value of the bus current will exceed the set threshold. At this time, the microcontroller will control the output reference current to the comparison module connected to the microcontroller.

[0065] S300, comparing the bus current with the reference current, and if the bus current is greater than the reference current, outputting a limiting pulse signal to limit the output of a pulse width modulation signal.

[0066] Specifically, when the microcontroller detects that the bus current fluctuates greatly, it will output a reference current to the comparison module. The comparison module compares the bus current with the reference current. When the bus current (i.e., the actual current) is greater than the reference current, the comparison module will output a limiting pulse signal (low-level signal) to limit the output of the pulse width signal output by the microcontroller.

[0067] It can be seen that the present invention monitors the bus current of the motor drive circuit. When it is detected that the bus current fluctuates greatly and exceeds the set threshold, the single chip can control the output reference current. When the bus current exceeds the reference current, the output limit pulse signal is output to limit the pulse width modulation signal, so as to limit the output of the pulse width modulation signal under extreme conditions when the motor speed and load change sharply, and adjust the output power of the motor, such as Figure 2 As shown, after power limitation, the motor operation curve can be maintained below the power limit line, thereby limiting excessive overshoot and reducing torque pulsation, thereby making the motor run more smoothly, avoiding shutdown due to overload during motor operation, and achieving smooth start-up of the motor with load.

[0068] In some embodiments, the step of obtaining the bus current of the drive circuit of the motor includes the sub-steps of:

[0069] S110, sampling the current of the sampling resistor in the driving circuit of the motor to obtain a sampling current;

[0070] S120: Amplify the sampled current to obtain the bus current.

[0071] In this embodiment, the current signal of the sampling resistor is amplified by the amplification module, so that the single chip microcomputer can sample the amplified current signal and obtain the bus current.

[0072] In some embodiments, when the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises the following sub-steps:

[0073] S210, obtaining the rotor position of the motor according to the motor model and the phase voltage of the motor;

[0074] S220, obtaining the angular velocity of the motor according to the position of the rotor of the motor at different times;

[0075] S230: Obtain the reference current according to the angular velocity of the motor and the motor model.

[0076] In this embodiment, the reference current is calculated by the motor model. Figure 3 As shown, the motor model consists of windings, winding inductance and back electromotive force, wherein the digital expression of the motor model is: Vs = R * i + L (di / dt) + Es, wherein Vs is the input bus voltage, R is the winding resistance, i is the motor current, L is the winding inductance, Es is the back electromotive force, and T is the control period. Es = N * L * B * w, N is the number of coils per winding, L is the wire length of the rotor, B is the magnetic flux density of the rotor, and W is the angular velocity of the rotor.

[0077] It can be seen from the motor model that the rotor current is related to the phase resistance, phase inductance, and back electromotive force. The bus voltage Vs can be obtained through microcontroller sampling, and the winding resistance R and winding inductance L are both known. There is only one variable in the back electromotive force calculation, which is the angular velocity. By sampling the motor's phase voltage (UVW), the position of the motor rotor at different times can be calculated, and the motor speed w can also be calculated. The motor angular velocity w is brought into the motor digital model to calculate the motor's reference current.

[0078] Solving the model, we can get: di / dt=(Vs-Es) / L-(R / L)*i;

[0079] In the digital domain the equation is:

[0080] (i(n+1)-i(n)) / T=-(R / L)*i(n)+(Vs(n)-Es(n)) / L;

[0081] Solved:

[0082] i(n+1)=(1-T*R / L)*i(n)+(Vs(n)-Es(n))*T / L;

[0083] Given the above current calculation formula, the current i' estimated by the motor model is subtracted from the actual measured current i to obtain the difference sign (+1 or -1) multiplied by the gain K to obtain the correction factor Z. The reference current calculated according to the motor model is multiplied by the correction factor Z to obtain a reference current with higher accuracy. Because the control cycle T is actually very short, generally within 100us, and the motor is a mechanical structure, the operating state will not change suddenly in such a short time. Therefore, in each control cycle, only the target angular velocity at the next moment is substituted into the formula to obtain the target current value at the next moment: "i(n+1)". By converting the above current value into the analog current signal output by the microcontroller and comparing it with the actual current signal, a pulse that limits the output of the PWM signal can be output, thereby controlling the output power of the motor.

[0084] In some embodiments, when the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises the following sub-steps:

[0085] S240, obtaining the rotor position of the motor through a position sensor;

[0086] S250, obtaining the angular velocity of the motor according to the position of the rotor of the motor at different times;

[0087] S260: Obtain the reference current according to the angular velocity of the motor and the motor model.

[0088] In this embodiment, unlike estimating the rotor position through phase voltage, this embodiment reads the rotor position of the motor through a position sensor, and then obtains the angular velocity of the motor based on the rotor position of the motor at different times, and then brings the angular velocity of the motor into the motor model to obtain the reference current.

[0089] In some embodiments, the step of comparing the bus current with the reference current and outputting a limiting pulse signal to limit the output of the pulse width modulation signal if the bus current is greater than the reference current comprises the following sub-steps:

[0090] S310, performing AND calculation on the limiting pulse signal and the pulse width modulation signal to limit the output of the pulse width modulation signal.

[0091] In this embodiment, the output pulse width modulation signal is controlled by the single chip microcomputer to control the output power of the motor. When the output power of the motor needs to be limited, the limiting pulse signal output by the comparison module passes through the advanced timer (with an AND circuit) in the single chip microcomputer, and the limiting pulse signal and the pulse width modulation signal are ANDed and calculated before being output by the single chip microcomputer to drive the motor. In this way, the output of the pulse width modulation signal can be limited by the limiting pulse signal, thereby controlling the motor overshoot and torque pulsation, so that the motor power is controlled.

[0092] In some embodiments, the brushless DC motor power control method further comprises the steps of:

[0093] S400, obtaining the magnitude of the target current at the next moment according to the angular velocity, bus voltage and target speed of the motor;

[0094] S500. Determine whether it is necessary to control the output power of the motor according to the size of the target current at the next moment. When power limitation is not required, output a pulse width modulation signal to drive the motor. If power limitation is required, reduce the duty cycle of the pulse width modulation signal, or limit the output of the pulse width modulation signal by outputting the limiting pulse signal.

[0095] In this embodiment, if Figure 4 As shown, you can choose whether to perform power control by setting the target speed and target current according to application requirements. After obtaining the rotor position of the motor through the phase voltage or position sensor, the angular velocity is calculated, and then the target current at the next moment can be calculated according to the angular velocity, bus voltage and target speed. When power control is not required, the microcontroller directly outputs a pulse width modulation signal (PWM) to drive the motor. When power control is required, it can be controlled by software and hardware. Software control directly uses the PID algorithm to adjust the duty cycle of the pulse width modulation signal through the microcontroller to achieve the purpose of power control. When the motor speed and load change sharply, it can be controlled by hardware, that is, the microcontroller outputs a reference current to the comparison module. When the bus current is greater than the reference current, the comparison module outputs a chopping pulse (limit pulse signal) to limit the output of the pulse width modulation signal.

[0096] In some embodiments, Figure 5 and Figure 6As shown, the present invention also provides a system for implementing the above-mentioned brushless DC motor power control method, which is connected to the motor drive circuit 700, and includes a single-chip microcomputer 100, a first sampling module 200, an amplification module 300, a comparison module 400, a second sampling module 500 and a pre-drive module 600. The first sampling module 200 is respectively connected to the motor drive circuit 700 and the amplification module 300, and is used to collect the bus current of the motor drive circuit 700 and input it to the amplification module 300; the amplification module 300 is respectively connected to the first sampling module 200, the comparison module 400 and the single-chip microcomputer 100, and is used to amplify the bus current and input it to the single-chip microcomputer 100 and the comparison module 400; the second sampling module 500 is connected to the phase voltage and the bus voltage, and is connected to the single-chip microcomputer 100, and is used to divide the phase voltage and the bus voltage and input them to the single-chip microcomputer 100; the single-chip microcomputer 100 is respectively connected to the second sampling module 500, the amplifying module 300 and the comparing module 400, and is used to output a reference current to the comparing module 400 according to the bus current, the phase voltage and the bus voltage; the comparing module 400 is respectively connected to the amplifying module 300 and the single-chip microcomputer 100, and is used to output a limiting pulse signal to the single-chip microcomputer 100 when the bus current is greater than the reference current; the pre-driving module 600 is respectively connected to the single-chip microcomputer 100 and the driving circuit 700 of the motor, and is used to output a driving signal to the driving circuit 700 of the motor according to the pulse width modulation signal output by the single-chip microcomputer 100.

[0097] In this embodiment, the driving circuit 700 of the motor includes a driving bridge, a power supply and a brushless DC motor. The driving bridge is composed of six MOS tubes, three of which constitute an upper arm and the other three constitute a lower arm. The driving bridge is connected to the brushless DC motor and the pre-driving module 600. The single-chip microcomputer 100 is connected to the driving module and can output a pulse width modulation signal to the pre-driving module 600, and the driving module converts the pulse width modulation signal into a driving signal. The driving bridge can drive the motor to work according to the driving signal output by the pre-driving module 600.

[0098] The first sampling module 200 can collect the bus current of the motor drive circuit 700, and after the signal is amplified by the amplification module 300, it is input to the single-chip microcomputer 100. The single-chip microcomputer 100 samples the phase voltage and the bus voltage through the second sampling module 500, and when the bus current fluctuates greatly, it can output the reference current to the comparison module 400. If the bus current is greater than the reference current, the comparison module 400 will output a limiting pulse signal to the single-chip microcomputer 100 to limit the output of the pulse width modulation signal to achieve motor power control, thereby limiting the overshoot and reducing the torque pulsation, thereby making the motor run more smoothly, avoiding the motor from shutting down due to overload during operation, and achieving smooth start of the motor with load.

[0099] In some embodiments, Figure 5 and Figure 6 As shown, the single chip computer 100 includes: an operation processing unit 110, an analog-to-digital conversion unit 120, a digital-to-analog conversion unit 130 and an advanced timer 140. The analog-to-digital conversion unit 120 is respectively connected to the second sampling module 500 and the operation processing unit 110, and is used to feed back the phase voltage, bus voltage and bus current to the operation processing unit 110; the operation processing unit 110 is respectively connected to the advanced timer 140, the analog-to-digital conversion unit 120 and the digital-to-analog conversion unit 130, and is used to control the advanced timer 140 to output a pulse width modulation signal, and is used to output a reference current to the digital-to-analog conversion unit 130 according to the phase voltage, the bus voltage and the bus current; the digital The analog-to-digital conversion unit 130 is respectively connected to the operation processing unit 110 and the comparison module 400, and is used to convert the reference current into an analog current and input it to the comparison module 400; the advanced timer 140 is respectively connected to the operation processing unit 110, the comparison module 400, the digital-to-analog conversion unit 130 and the pre-driver module 600, and is used to output a pulse width modulation signal to the pre-driver module 600, and is used to calculate the limit pulse signal and the pulse width modulation signal to limit the output of the pulse width modulation signal.

[0100] In this embodiment, during normal operation, the operation processing unit 110 controls the advanced timer 140 to output six PWM signals to the pre-driving module 600 to drive the motor to work. At the same time, the analog-to-digital conversion unit 120 collects the bus current output by the amplification module 300 and the bus voltage and phase voltage of the second sampling module 500, and inputs them to the operation processing unit 110. The operation processing unit 110 monitors the bus current in real time. When it is detected that the bus current fluctuates greatly, a reference current is output to the comparison module 400. The comparison module 400 compares the bus current with the reference current. When the bus current is greater than the reference current, a chopping pulse is output to the advanced timer 140 (the advanced timer is a timer that can output three PWMs). After AND calculation in the advanced timer 140, a pulse width modulation signal is output to limit the pulse width modulation signal.

[0101] In some embodiments, Figure 6 As shown, the first sampling module 200 is a low-impedance sampling resistor Rs, which is connected in series to the bus of the motor drive circuit 700. The second sampling module 500 includes a first resistor R1 and a second resistor R2, which are connected in series, and the first resistor R1 is connected to the phase voltage (UVW) and the bus voltage Vs. The analog-to-digital conversion unit 120 is connected to the common terminal of the first resistor R1 and the second resistor R2 to collect the phase voltage and the bus voltage.

[0102] In some embodiments, Figure 6 As shown, the amplification module 300 includes an operational amplifier OPA; the comparison module 400 includes a comparator COMP; the non-inverting input terminal of the operational amplifier OPA is connected to the bus current, and the output terminal of the operational amplifier OPA is respectively connected to the analog-to-digital conversion unit 120 and the non-inverting input terminal of the comparator COMP; the inverting input terminal of the comparator COMP is connected to the digital-to-analog conversion unit 130; and the output terminal of the comparator COMP is connected to the advanced timer 140.

[0103] In this embodiment, the amplification module 300 uses an operational amplifier OPA, and the comparison module 400 uses a comparator COMP. The non-inverting input terminal of the operational amplifier OPA is connected to the bus current, and after amplification, it is output to the operation processing unit 110 and the non-inverting input terminal of the comparator COMP respectively, and the inverting input terminal of the comparator COMP is connected to the digital-to-analog conversion unit 130. The comparator COMP can compare the bus current with the reference current, and when the bus current is greater than the reference current, it can output a chopping pulse to the advanced timer 140 to limit the output of the pulse width modulation signal.

[0104] The present invention is described below by taking an electric pistol drill as an example. The application scenario of the electric pistol drill is relatively complex, the load changes greatly, and at the same time, a particularly fast response is required.

[0105] Traditional pistol drills are prone to stalling and getting stuck when encountering large resistance during startup or drilling. A big reason for this is sudden load fluctuations, which cause overshoot and overcurrent shutdown.

[0106] The present invention can be applied to an electric pistol drill. When the motor load suddenly changes, the operation processing unit 110 sets the reference current according to the current, motor speed and target speed at the previous moment and outputs it to the comparator through the digital-to-analog conversion unit 130, and compares it with the actual current (bus current). If overshoot occurs, the PWM output will be limited to ensure that the motor does not shut down due to overcurrent, and the moment of load change can be passed at a slower modulation speed. The same is true when the motor is started under different loads. The operation processing unit 110 will limit the power of the motor according to the startup target speed and the current that changes in real time, so that the driving power changes with the load change, and the driving current makes the motor run more smoothly.

[0107] In summary, the brushless DC motor power control method and system provided by the present invention have the following beneficial effects:

[0108] The present invention provides a set of power adjustment mechanisms from the software side, and provides a set of power limiting mechanisms from the hardware side, that is, by monitoring the bus current of the motor drive circuit, when it is detected that the bus current fluctuates greatly and exceeds the set threshold, the single chip can control the output reference current, and when the bus current exceeds the reference current, the output limiting pulse signal is used to limit the pulse width modulation signal, so as to limit the output of the pulse width modulation signal under extreme conditions when the motor speed and load change sharply, thereby limiting the overshoot and protecting the motor from being damaged by overshoot and overcurrent, reducing torque pulsation, and making the motor run more smoothly, avoiding the motor from shutting down due to overload during operation, achieving smooth start-up of the motor with load, and improving product reliability.

[0109] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for controlling power of a brushless DC motor, characterized in that: include: Obtaining the bus current of the motor drive circuit; When the bus current fluctuation exceeds the set threshold, the output reference current is controlled; wherein the reference current is obtained according to the angular velocity of the motor and the motor model, and the digital expression of the motor model is: Vs=R*i+L(di / dt)+Es, wherein Vs is the input bus voltage, R is the winding resistance, i is the motor current, L is the winding inductance, Es is the back electromotive force, and T is the control period; Es=N*L*B*w, N is the number of coils per phase winding, L is the wire length of the rotor, B is the magnetic flux density of the rotor, and W is the angular velocity of the rotor; The bus current is compared with the reference current, and if the bus current is greater than the reference current, a limiting pulse signal is output to limit the output of the pulse width modulation signal.

2. The brushless DC motor power control method according to claim 1, characterized in that: The step of obtaining the bus current of the driving circuit of the motor comprises: Sampling the current of the sampling resistor in the driving circuit of the motor to obtain a sampling current; The sampled current is amplified to obtain the bus current.

3. The brushless DC motor power control method according to claim 1, characterized in that: When the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises: The rotor position of the motor is obtained according to the motor model and the phase voltage of the motor; The angular velocity of the motor is obtained according to the position of the rotor of the motor at different times; The reference current is obtained according to the angular velocity of the motor and the motor model.

4. The brushless DC motor power control method according to claim 1, characterized in that: When the bus current fluctuation exceeds a set threshold, the step of controlling the output reference current comprises: Obtain the rotor position of the motor through a position sensor; The angular velocity of the motor is obtained according to the position of the rotor of the motor at different times; The reference current is obtained according to the angular velocity of the motor and the motor model.

5. The brushless DC motor power control method according to claim 3 or 4, characterized in that: The step of obtaining the reference current according to the angular velocity of the motor and the motor model comprises: In each control cycle, the target current value at the next moment is obtained according to the motor model and the target angular velocity at the next moment; The target current value at the next moment is converted into an analog current signal to obtain the reference current.

6. The brushless DC motor power control method according to claim 1, characterized in that: The step of comparing the bus current with the reference current and outputting a limiting pulse signal to limit the output of the pulse width modulation signal if the bus current is greater than the reference current comprises: The limiting pulse signal is ANDed with the pulse width modulation signal to limit the output of the pulse width modulation signal.

7. The brushless DC motor power control method according to claim 1, characterized in that: Also includes: The target current at the next moment is obtained according to the angular velocity, bus voltage and target speed of the motor; Whether the output power control of the motor is required is determined according to the size of the target current at the next moment. When power limitation is not required, a pulse width modulation signal is output to drive the motor. If power limitation is required, the duty cycle of the pulse width modulation signal is reduced, or the output of the pulse width modulation signal is limited by outputting the limiting pulse signal.

8. A system for implementing the DC brushless motor power control method according to any one of claims 1 to 7, connected to a drive circuit of the motor, characterized in that: It includes a single chip microcomputer, a first sampling module, an amplification module, a comparison module, a second sampling module and a pre-driving module; wherein, The first sampling module is connected to the driving circuit of the motor and the amplifying module respectively, and is used to collect the bus current of the driving circuit of the motor and input it into the amplifying module; The amplification module is connected to the first sampling module, the comparison module and the single chip microcomputer respectively, and is used to amplify the bus current and input it to the single chip microcomputer and the comparison module; The second sampling module is connected to the phase voltage and the bus voltage and is connected to the single chip microcomputer, and is used to divide the phase voltage and the bus voltage and then input them to the single chip microcomputer; The single chip microcomputer is respectively connected to the second sampling module, the amplification module and the comparison module, and is used to output a reference current to the comparison module according to the bus current, the phase voltage and the bus voltage; The comparison module is connected to the amplification module and the single-chip microcomputer respectively, and is used to output a limiting pulse signal to the single-chip microcomputer when the bus current is greater than the reference current; The pre-driving module is connected to the single chip microcomputer and the driving circuit of the motor respectively, and is used to output a driving signal to the driving circuit of the motor according to the pulse width modulation signal output by the single chip microcomputer.

9. The brushless DC motor power control system according to claim 8, characterized in that: The single chip microcomputer includes: an operation processing unit, an analog-to-digital conversion unit, a digital-to-analog conversion unit and an advanced timer; wherein, The analog-to-digital conversion unit is connected to the second sampling module and the operation processing unit respectively, and is used to feed back the phase voltage, bus voltage and bus current to the operation processing unit; The arithmetic processing unit is connected to the advanced timer, the analog-to-digital conversion unit and the digital-to-analog conversion unit respectively, and is used to control the advanced timer to output a pulse width modulation signal, and is used to output a digital reference current to the digital-to-analog conversion unit according to the phase voltage, the bus voltage and the bus current; The digital-to-analog conversion unit is connected to the operation processing unit and the comparison module respectively, and is used to convert the digital reference current into an analog current and input it into the comparison module; The advanced timer is respectively connected to the operation processing unit, the comparison module, the digital-to-analog conversion unit and the pre-driving module, and is used to output a pulse width modulation signal to the pre-driving module, and is used to perform AND calculation on the limit pulse signal and the pulse width modulation signal to limit the output of the pulse width modulation signal.

10. The brushless DC motor power control system according to claim 9, characterized in that: The amplification module includes an operational amplifier; the comparison module includes a comparator; The non-inverting input terminal of the operational amplifier is connected to the bus current, and the output terminal of the operational amplifier is connected to the analog-to-digital conversion unit and the non-inverting input terminal of the comparator respectively; The inverting input terminal of the comparator is connected to the digital-to-analog conversion unit; An output terminal of the comparator is connected to the advanced timer.

Citation Information

Patent Citations

  • Control method for brushless direct current motor for automotive air conditioning fan

    CN101931353A

  • Three-phase brushless direct current motor adaptive commutation angle compensation method

    CN105958874A