Motor control method and device, motor, storage medium and program product
By setting up detection modules, judgment modules and protection modules in the motor, the current limit protection with fast response and accurate judgment is achieved, and the problems of slow response speed of current limit protection and inaccurate current judgment in the prior art are solved, thereby improving the efficiency of current limit protection.
Patent Information
- Application Number
- CN202411860266.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-25
AI Technical Summary
The current limit protection of existing motors is slow and the current judgment is inaccurate, resulting in poor current limit protection effect.
设计了一种包括检测模块、判断模块和保护模块的电机控制方法。 The detection module uses a comparator to determine whether current limit protection is needed and outputs a level signal. The protection module controls the winding current through a transistor and resistor network to achieve current limit protection.
Through fast response and precise judgment, the response speed and protection efficiency of current limit protection are improved, and the damage caused by excessive current is avoided.
Smart Images

Figure CN119695789A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of motors, and in particular relates to a motor control method, a motor control device, a motor, a storage medium and a computer program product. Background Art
[0002] In order to prevent excessive current from affecting the performance of the motor and causing damage to the motor during motor operation, current limiting protection is set for the motor to effectively identify whether the motor current is too large, and limit the current to the target value after identifying that the current is too large, to ensure stable operation of the motor.
[0003] The current limiting protection of the related solution is to detect the running current and determine whether the current limit value is reached through the current limiting pin of the ASIC chip. After the current limit value is reached, the current limiting protection is achieved by reducing the internal output duty cycle. This current limiting protection is performed inside the main control chip, and there is a problem of slow response speed. In addition, the current limiting value is determined by the value of the current sampling resistor, and the resistance of the current sampling resistor is often less than 1Ω, which may cause the current limiting value to be inaccurate.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The object of the present invention is to provide a motor control method, device, motor, storage medium and computer program product to solve the problems of slow response speed and inaccurate current judgment of motor current limiting protection in related schemes, so as to achieve the goal of providing a module for motor current limiting protection so that when the motor operating current is too large, it can respond quickly to perform current limiting protection, thereby improving the response speed and protection efficiency of the current limiting protection.
[0006] The present invention provides a control method for a motor, wherein the motor comprises a detection module, a judgment module and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; the protection module is used to control the winding current of the motor according to the level signal; the method comprises: obtaining the voltage signal output by the detection module; in the judgment module, determining whether it is necessary to perform current limiting protection on the motor according to the voltage signal, and outputting a corresponding level signal; if it is determined that current limiting protection is necessary for the motor, then in the protection module, controlling the winding current of the motor according to the level signal.
[0007] In some embodiments, the detection module includes a sampling resistor; the first end of the sampling resistor is connected to a port of the motor controller that outputs the running current of the motor, and the second end of the sampling resistor is grounded; the voltage at the first end of the sampling resistor is the voltage signal output by the detection module.
[0008] In some embodiments, the judgment module includes a comparator; the voltage signal output by the detection module is connected to the non-phase input terminal of the comparator, and the reference voltage is connected to the inverting input terminal of the comparator; the output terminal of the comparator is connected to the protection module.
[0009] In some embodiments, the protection module includes a transistor, a first resistor, a second resistor, and a third resistor; the first resistor is arranged between the VSP voltage signal input terminal of the controller of the motor and the VSP voltage signal; one end of the second resistor is connected to the VSP voltage signal input terminal of the controller, and the other end is grounded; the collector of the transistor is connected to the VSP voltage signal input terminal of the controller, and the base of the transistor is connected to the output terminal of the comparator; the emitter of the transistor is connected to one end of the third resistor, and the other end of the third resistor is grounded; the transistor is an NPN transistor; the resistance of the third resistor is less than the resistance of the second resistor.
[0010] In some embodiments, whether current limiting protection is required for the motor is determined based on the voltage signal, and a corresponding level signal is output, including: judging the magnitude relationship between the voltage signal and a reference voltage; if the voltage signal is less than the reference voltage, determining that current limiting protection is not required for the motor, and the output level signal is a low level; if the voltage signal is greater than or equal to the reference voltage, determining that current limiting protection is required for the motor, and the output level signal is a high level.
[0011] In some embodiments, controlling the winding current of the motor according to the level signal includes: when the level signal changes from a low level to a high level, reducing the VSP voltage signal received by the controller of the motor to reduce the winding current of the motor to perform current limiting protection on the motor; during the process of performing current limiting protection on the motor, if the level signal changes from a high level to a low level, restoring the VSP voltage signal received by the controller of the motor to the state before the reduction.
[0012] Matching the above method, the present invention provides a control device for a motor on the other hand, wherein the motor includes a detection module, a judgment module, and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; the protection module is used to control the winding current of the motor according to the level signal; the device includes: an acquisition unit, configured to acquire the voltage signal output by the detection module; a control unit, configured to determine in the judgment module whether current limiting protection is required for the motor according to the voltage signal, and output a corresponding level signal; the control unit is also configured to control the winding current of the motor according to the level signal in the protection module if it is determined that current limiting protection is required for the motor.
[0013] In some embodiments, the detection module includes a sampling resistor; the first end of the sampling resistor is connected to a port of the motor controller that outputs the running current of the motor, and the second end of the sampling resistor is grounded; the voltage at the first end of the sampling resistor is the voltage signal output by the detection module.
[0014] In some embodiments, the judgment module includes a comparator; the voltage signal output by the detection module is connected to the non-phase input terminal of the comparator, and the reference voltage is connected to the inverting input terminal of the comparator; the output terminal of the comparator is connected to the protection module.
[0015] In some embodiments, the protection module includes a transistor, a first resistor, a second resistor, and a third resistor; the first resistor is arranged between the VSP voltage signal input terminal of the controller of the motor and the VSP voltage signal; one end of the second resistor is connected to the VSP voltage signal input terminal of the controller, and the other end is grounded; the collector of the transistor is connected to the VSP voltage signal input terminal of the controller, and the base of the transistor is connected to the output terminal of the comparator; the emitter of the transistor is connected to one end of the third resistor, and the other end of the third resistor is grounded; the transistor is an NPN transistor; the resistance of the third resistor is less than the resistance of the second resistor.
[0016] In some embodiments, the control unit determines whether the motor needs to be protected by current limiting based on the voltage signal and outputs a corresponding level signal, including: judging the magnitude relationship between the voltage signal and a reference voltage; if the voltage signal is less than the reference voltage, determining that the motor does not need to be protected by current limiting, and the output level signal is a low level; if the voltage signal is greater than or equal to the reference voltage, determining that the motor needs to be protected by current limiting, and the output level signal is a high level.
[0017] In some embodiments, the control unit controls the winding current of the motor according to the level signal, including: when the level signal changes from a low level to a high level, reducing the VSP voltage signal received by the controller of the motor to reduce the winding current of the motor to perform current limiting protection on the motor; during the process of performing current limiting protection on the motor, if the level signal changes from a high level to a low level, restoring the VSP voltage signal received by the controller of the motor to the state before the reduction.
[0018] Matching the above device, the present invention further provides a motor, including: the control device of the motor described above.
[0019] In accordance with the above method, the present invention provides a storage medium on another aspect, wherein the storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the above-mentioned motor control method.
[0020] In accordance with the above method, the present invention provides a computer program product on another aspect, wherein the computer program product includes a computer program, and when the computer program product is processed and executed, the steps of the above motor control method are implemented.
[0021] The solution of the present invention is provided with a detection module, a judgment module, and a protection module. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by setting a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0022] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention.
[0023] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic flow chart of an embodiment of a method for controlling a motor of the present invention;
[0025] Figure 2 A schematic structural diagram of an embodiment of a control device for a motor of the present invention;
[0026] Figure 3 is a structural diagram of a current limiting protection circuit for a motor of the present invention;
[0027] Figure 4 FIG. 4 is a flow chart of another embodiment of a method for controlling a motor according to the present invention.
[0028] In conjunction with the accompanying drawings, the reference numerals in the embodiments of the present invention are as follows:
[0029] 102 - acquisition unit; 104 - control unit. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0031] According to an embodiment of the present invention, a method for controlling a motor is provided, wherein the motor comprises a detection module, a judgment module, and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; and the protection module is used to control the winding current of the motor according to the level signal.
[0032] In some embodiments, the detection module includes a sampling resistor; the first end of the sampling resistor is connected to a port of the motor controller that outputs the running current of the motor, and the second end of the sampling resistor is grounded; the voltage at the first end of the sampling resistor is the voltage signal output by the detection module.
[0033] The detection module is arranged on the periphery of the ASIC chip of the motor controller, such as Figure 3 As shown, the detection module includes a sampling resistor R, one end of which is connected to the current detection pin of the ASIC chip, which is connected to the source of the power device inside the ASIC chip. When the motor is running, the current detection pin can output the running current of the motor. The other end of the sampling resistor R is grounded GND. Therefore, after the running current output by the ASIC chip passes through the sampling resistor R, a voltage is formed at the VS point. The voltage signal output by the detection module is the voltage at the VS point, and then the voltage signal is transmitted to the judgment module. That is, the role of the sampling resistor R is to convert the current value output by the ASIC chip into a voltage value.
[0034] In some embodiments, the judgment module includes a comparator; the voltage signal output by the detection module is connected to the non-phase input terminal of the comparator, and the reference voltage is connected to the inverting input terminal of the comparator; the output terminal of the comparator is connected to the protection module.
[0035] The judgment module is a comparator, the voltage at the VS point is connected to the non-inverting input terminal of the comparator, the reference voltage Vref is connected to the inverting input terminal of the comparator, and the output of the comparator is a level signal. The reference voltage Vref is used to determine whether the motor current is too high. The reference voltage Vref can be adjusted according to the resistance value of the sampling resistor R and the limit value of the motor current. For example, the greater the limit value of the motor current, the greater the reference voltage Vref, and the greater the resistance value of the sampling resistor R, the greater the reference voltage Vref. On the contrary, when the reference voltage Vref is determined, the resistance value of the sampling resistor R can be adjusted according to the reference voltage Vref so that the current limit value of the motor reaches the ideal value. The limit value of the motor current is the current limit value of the motor current limit protection. When the running current of the motor exceeds the current limit value, it is considered that current limit protection is required.
[0036] In some embodiments, the protection module includes a transistor, a first resistor, a second resistor, and a third resistor; the first resistor is arranged between the VSP voltage signal input terminal of the controller of the motor and the VSP voltage signal; one end of the second resistor is connected to the VSP voltage signal input terminal of the controller, and the other end is grounded; the collector of the transistor is connected to the VSP voltage signal input terminal of the controller, and the base of the transistor is connected to the output terminal of the comparator; the emitter of the transistor is connected to one end of the third resistor, and the other end of the third resistor is grounded; the transistor is an NPN transistor; the resistance of the third resistor is less than the resistance of the second resistor.
[0037] The protection module includes an NPN transistor Q1, a first resistor R1, a second resistor R2, and a third resistor R3. The external speed control signal VSP is connected to the speed control pin of the ASIC chip through the first resistor R1. The VSP signal is a voltage signal. The winding current of the motor can be controlled by changing the duty cycle of the VSP signal. The base of the transistor Q1 is connected to the output end of the comparator, and the collector of the transistor Q1 is connected to the speed control pin of the ASIC chip. The collector is also grounded after passing through the second resistor R2, and the emitter of the transistor Q1 is grounded GND after passing through the third resistor R3. When the transistor is in the on state and the off state, the voltage value input to the speed control pin of the ASIC chip is different. Specifically, when the transistor Q1 is turned off, the VSP voltage signal is divided by the first resistor R1 and the second resistor R2 to obtain the voltage U1 at point A, which is the voltage input to the speed control pin of the ASIC chip. When the transistor Q1 is turned on, the second resistor R2 and the third resistor R3 are connected in parallel and then in series with the first resistor R1 to form a voltage divider circuit, thereby obtaining a voltage U2 at point A.
[0038] like Figure 1 The flow chart of an embodiment of the method of the present invention is shown in FIG. The motor control method may include: steps S110 to S130.
[0039] In step S110, a voltage signal output by the detection module is obtained.
[0040] In step S120, in the judgment module, it is determined whether current limiting protection is required for the motor according to the voltage signal, and a corresponding level signal is output.
[0041] In some embodiments, in step S120, the specific process of determining whether current limiting protection is required for the motor based on the voltage signal and outputting a corresponding level signal includes: judging the magnitude relationship between the voltage signal and a reference voltage; if the voltage signal is less than the reference voltage, determining that current limiting protection is not required for the motor, and the output level signal is a low level; if the voltage signal is greater than or equal to the reference voltage, determining that current limiting protection is required for the motor, and the output level signal is a high level.
[0042] In the comparator, when the voltage at the VS point is less than the reference voltage Vref, the level signal output by the comparator is a low level, and it is considered that current limiting protection is not required at this time; when the voltage at the VS point is greater than or equal to the reference voltage Vref, the level signal output by the comparator is a high level, and the transistor Q1 is turned on for current protection.
[0043] At step S130, if it is determined that the motor needs to be protected by current limiting, then in the protection module, the winding current of the motor is controlled according to the level signal.
[0044] The running current of the motor is the current input from the power supply to the motor when the motor is in normal operation. It is the actual current in the motor circuit, and its size is related to factors such as the motor load. For example, when the motor load is large, the running current will increase. The winding current of the motor is the current flowing through the motor winding (stator winding or rotor winding). The size of the winding current will affect the motor's performance such as speed and rotation speed. This solution accurately determines the running state of the motor by detecting the running current. When current limiting protection is required, the winding current of the motor is reduced, the response speed of the current limiting protection is improved, the motor performance is avoided from being degraded, and the motor is damaged due to excessive current, such as heat accumulation and coil burning.
[0045] This solution sets a current limiting protection circuit, which can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed of the protection and the efficiency of the current limiting protection.
[0046] In some embodiments, in step S130, the specific process of controlling the winding current of the motor according to the level signal includes: when the level signal changes from a low level to a high level, reducing the VSP voltage signal received by the controller of the motor to reduce the winding current of the motor to perform current limiting protection on the motor; during the process of performing current limiting protection on the motor, if the level signal changes from a high level to a low level, restoring the VSP voltage signal received by the controller of the motor to the state before the reduction.
[0047] like Figure 3 As shown, when the level signal output by the comparator is low, the transistor Q1 is in the off state, and the VSP voltage is divided by the first resistor R1 and the second resistor R2 to obtain the voltage U1 at point A, and the voltage U1 is input to the speed control pin of the ASIC chip, and the motor operates normally. When the level signal output by the comparator is high, the transistor Q1 is in the on state, and the second resistor R2 and the third resistor R3 are connected in parallel and then connected in series with the first resistor R1 to form a voltage divider circuit. After the VSP voltage passes through the voltage divider circuit, the voltage U2 at point A is obtained, and the voltage U2 is input to the speed control pin of the ASIC chip for current limiting protection.
[0048] In order to reduce the winding current of the motor during current limiting protection, it is necessary to ensure that voltage U1>voltage U2. Therefore, the resistance of the third resistor R3 needs to be smaller than the resistance of the second resistor R2, so that the duty cycle after current limiting is smaller to reduce the winding current of the motor.
[0049] During the current limiting protection process, if the motor current returns to the normal range, it will be detected that the voltage at the VS point is less than the reference voltage Vref, so that the transistor Q1 is turned off, and the voltage input to the speed control pin of the ASIC chip returns to the voltage U1, and the motor operates normally.
[0050] Figure 4 FIG. 1 is a flow chart of another embodiment of the motor control method of the present invention. Figure 4 As shown, the method includes:
[0051] Step 1: When the motor is running, obtain the current signal from the ASIC chip of the motor controller and convert the current signal into voltage Vs. Determine whether the voltage Vs ≥ the reference voltage Vref. If the voltage Vs < the reference voltage Vref, re-execute step 1; if the voltage Vs ≥ the reference voltage Vref, execute step 2.
[0052] Step 2, reduce the duty cycle of the VSP voltage signal input to the ASIC chip to perform current limiting protection on the motor. During the current limiting protection process, determine whether the voltage Vs ≥ the reference voltage Vref. If the voltage Vs < the reference voltage Vref, cancel the current limiting protection and restore the duty cycle of the VSP voltage signal to the state before the reduction; if the voltage Vs ≥ the reference voltage Vref, continue to perform current limiting protection on the motor.
[0053] The technical solution of this embodiment is adopted, and a detection module, a judgment module, and a protection module are provided. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by providing a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0054] According to an embodiment of the present invention, a motor control device corresponding to the motor control method is also provided. The motor includes a detection module, a judgment module, and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; and the protection module is used to control the winding current of the motor according to the level signal.
[0055] In some embodiments, the detection module includes a sampling resistor; the first end of the sampling resistor is connected to a port of the motor controller that outputs the running current of the motor, and the second end of the sampling resistor is grounded; the voltage at the first end of the sampling resistor is the voltage signal output by the detection module.
[0056] The detection module is arranged on the periphery of the ASIC chip of the motor controller, such as Figure 3 As shown, the detection module includes a sampling resistor R, one end of which is connected to the current detection pin of the ASIC chip, which is connected to the source of the power device inside the ASIC chip. When the motor is running, the current detection pin can output the running current of the motor. The other end of the sampling resistor R is grounded GND. Therefore, after the running current output by the ASIC chip passes through the sampling resistor R, a voltage is formed at the VS point. The voltage signal output by the detection module is the voltage at the VS point, and then the voltage signal is transmitted to the judgment module. That is, the role of the sampling resistor R is to convert the current value output by the ASIC chip into a voltage value.
[0057] In some embodiments, the judgment module includes a comparator; the voltage signal output by the detection module is connected to the non-phase input terminal of the comparator, and the reference voltage is connected to the inverting input terminal of the comparator; the output terminal of the comparator is connected to the protection module.
[0058] The judgment module is a comparator, the voltage at the VS point is connected to the non-inverting input terminal of the comparator, the reference voltage Vref is connected to the inverting input terminal of the comparator, and the output of the comparator is a level signal. The reference voltage Vref is used to determine whether the motor current is too high. The reference voltage Vref can be adjusted according to the resistance value of the sampling resistor R and the limit value of the motor current. For example, the greater the limit value of the motor current, the greater the reference voltage Vref, and the greater the resistance value of the sampling resistor R, the greater the reference voltage Vref. On the contrary, when the reference voltage Vref is determined, the resistance value of the sampling resistor R can be adjusted according to the reference voltage Vref so that the current limit value of the motor reaches the ideal value. The limit value of the motor current is the current limit value of the motor current limit protection. When the running current of the motor exceeds the current limit value, it is considered that current limit protection is required.
[0059] In some embodiments, the protection module includes a transistor, a first resistor, a second resistor, and a third resistor; the first resistor is arranged between the VSP voltage signal input terminal of the controller of the motor and the VSP voltage signal; one end of the second resistor is connected to the VSP voltage signal input terminal of the controller, and the other end is grounded; the collector of the transistor is connected to the VSP voltage signal input terminal of the controller, and the base of the transistor is connected to the output terminal of the comparator; the emitter of the transistor is connected to one end of the third resistor, and the other end of the third resistor is grounded; the transistor is an NPN transistor; the resistance of the third resistor is less than the resistance of the second resistor.
[0060] The protection module includes an NPN transistor Q1, a first resistor R1, a second resistor R2, and a third resistor R3. The external speed control signal VSP is connected to the speed control pin of the ASIC chip through the first resistor R1. The VSP signal is a voltage signal. The winding current of the motor can be controlled by changing the duty cycle of the VSP signal. The base of the transistor Q1 is connected to the output end of the comparator, and the collector of the transistor Q1 is connected to the speed control pin of the ASIC chip. The collector is also grounded after passing through the second resistor R2, and the emitter of the transistor Q1 is grounded GND after passing through the third resistor R3. When the transistor is in the on state and the off state, the voltage value input to the speed control pin of the ASIC chip is different. Specifically, when the transistor Q1 is turned off, the VSP voltage signal is divided by the first resistor R1 and the second resistor R2 to obtain the voltage U1 at point A, which is the voltage input to the speed control pin of the ASIC chip. When the transistor Q1 is turned on, the second resistor R2 and the third resistor R3 are connected in parallel and then in series with the first resistor R1 to form a voltage divider circuit, thereby obtaining a voltage U2 at point A.
[0061] See also Figure 2 The schematic diagram of the structure of an embodiment of the device of the present invention is shown. The control device of the motor may include:
[0062] The acquisition unit 102 is configured to acquire the voltage signal output by the detection module. The specific functions and processing of the acquisition unit 102 refer to step S110.
[0063] The control unit 104 is configured to determine whether the motor needs to be protected by current limiting according to the voltage signal in the judgment module, and output a corresponding level signal. The specific functions and processing of the control unit 104 refer to step S120.
[0064] In some embodiments, in step S120, the specific process of determining whether current limiting protection is required for the motor based on the voltage signal and outputting a corresponding level signal includes: judging the magnitude relationship between the voltage signal and a reference voltage; if the voltage signal is less than the reference voltage, determining that current limiting protection is not required for the motor, and the output level signal is a low level; if the voltage signal is greater than or equal to the reference voltage, determining that current limiting protection is required for the motor, and the output level signal is a high level.
[0065] In the comparator, when the voltage at the VS point is less than the reference voltage Vref, the level signal output by the comparator is a low level, and it is considered that current limiting protection is not required at this time; when the voltage at the VS point is greater than or equal to the reference voltage Vref, the level signal output by the comparator is a high level, and the transistor Q1 is turned on for current protection.
[0066] The control unit 104 is further configured to control the winding current of the motor according to the level signal in the protection module if it is determined that the motor needs to be protected by current limiting. The specific functions and processing of the control unit 104 refer to step S130.
[0067] The running current of the motor is the current input from the power supply to the motor when the motor is in normal operation. It is the actual current in the motor circuit, and its size is related to factors such as the motor load. For example, when the motor load is large, the running current will increase. The winding current of the motor is the current flowing through the motor winding (stator winding or rotor winding). The size of the winding current will affect the motor's performance such as speed and rotation speed. This solution accurately determines the running state of the motor by detecting the running current. When current limiting protection is required, the winding current of the motor is reduced, the response speed of the current limiting protection is improved, the motor performance is avoided from being degraded, and the motor is damaged due to excessive current, such as heat accumulation and coil burning.
[0068] This solution sets a current limiting protection circuit, which can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed of the protection and the efficiency of the current limiting protection.
[0069] In some embodiments, the control unit 104 controls the specific process of the winding current of the motor according to the level signal, including: when the level signal changes from a low level to a high level, reducing the VSP voltage signal received by the controller of the motor to reduce the winding current of the motor to perform current limiting protection on the motor; during the process of current limiting protection of the motor, if the level signal changes from a high level to a low level, restoring the VSP voltage signal received by the controller of the motor to the state before the reduction.
[0070] like Figure 3 As shown, when the level signal output by the comparator is low, the transistor Q1 is in the off state, and the VSP voltage is divided by the first resistor R1 and the second resistor R2 to obtain the voltage U1 at point A, and the voltage U1 is input to the speed control pin of the ASIC chip, and the motor operates normally. When the level signal output by the comparator is high, the transistor Q1 is in the on state, and the second resistor R2 and the third resistor R3 are connected in parallel and then connected in series with the first resistor R1 to form a voltage divider circuit. After the VSP voltage passes through the voltage divider circuit, the voltage U2 at point A is obtained, and the voltage U2 is input to the speed control pin of the ASIC chip for current limiting protection.
[0071] In order to reduce the winding current of the motor during current limiting protection, it is necessary to ensure that voltage U1>voltage U2. Therefore, the resistance of the third resistor R3 needs to be smaller than the resistance of the second resistor R2, so that the duty cycle after current limiting is smaller to reduce the winding current of the motor.
[0072] During the current limiting protection process, if the motor current returns to the normal range, it will be detected that the voltage at the VS point is less than the reference voltage Vref, so that the transistor Q1 is turned off, and the voltage input to the speed control pin of the ASIC chip returns to the voltage U1, and the motor operates normally.
[0073] Figure 4 FIG. 1 is a flow chart of another embodiment of the motor control method of the present invention. Figure 4 As shown, the method includes:
[0074] Step 1: When the motor is running, obtain the current signal from the ASIC chip of the motor controller and convert the current signal into voltage Vs. Determine whether the voltage Vs ≥ the reference voltage Vref. If the voltage Vs < the reference voltage Vref, re-execute step 1; if the voltage Vs ≥ the reference voltage Vref, execute step 2.
[0075] Step 2, reduce the duty cycle of the VSP voltage signal input to the ASIC chip to perform current limiting protection on the motor. During the current limiting protection process, determine whether the voltage Vs ≥ the reference voltage Vref. If the voltage Vs < the reference voltage Vref, cancel the current limiting protection and restore the duty cycle of the VSP voltage signal to the state before the reduction; if the voltage Vs ≥ the reference voltage Vref, continue to perform current limiting protection on the motor.
[0076] Since the processing and functions implemented by the device of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned method, for the details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments, and no further elaboration will be made here.
[0077] The technical solution of the present invention is adopted, and a detection module, a judgment module, and a protection module are provided. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by providing a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0078] According to an embodiment of the present invention, a motor corresponding to a control device of the motor is also provided. The motor may include: the control device of the motor described above.
[0079] Since the processing and functions implemented by the motor of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned device, for the details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.
[0080] The technical solution of the present invention is adopted, and a detection module, a judgment module, and a protection module are provided. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by providing a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0081] According to an embodiment of the present invention, a storage medium corresponding to the motor control method is also provided, wherein the storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the motor control method described above.
[0082] Since the processing and functions implemented by the storage medium of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned method, for the details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments, and no further elaboration will be made here.
[0083] The technical solution of the present invention is adopted, and a detection module, a judgment module, and a protection module are provided. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by providing a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0084] According to an embodiment of the present invention, a computer program product corresponding to the motor control method is also provided. The computer program product includes a computer program. When the computer program product is processed and executed, the steps of the motor control method are implemented.
[0085] Since the processing and functions implemented by the computer program product of this embodiment basically correspond to the embodiments, principles and examples of the aforementioned method, for the details not fully described in this embodiment, please refer to the relevant descriptions in the aforementioned embodiments and will not be repeated here.
[0086] The technical solution of the present invention is adopted, and a detection module, a judgment module, and a protection module are provided. The detection module is used to output a voltage signal according to the running current of the motor, the judgment module is used to output a level signal according to the voltage signal, and the protection module is used to control the winding current of the motor according to the level signal; when the motor is running, the voltage signal output by the detection module is obtained; in the judgment module, it is determined whether the motor needs to be protected by current limiting according to the voltage signal, and the corresponding level signal is output; if it is determined that current limiting protection is needed, then in the protection module, the winding current of the motor is controlled according to the level signal. Therefore, by providing a module for current limiting protection of the motor, it can respond quickly to perform current limiting protection when the running current of the motor is too large, thereby improving the response speed and protection efficiency of the current limiting protection.
[0087] In summary, it is easy for those skilled in the art to understand that, under the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.
[0088] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A method for controlling a motor, characterized in that: The motor includes a detection module, a judgment module, and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; The protection module is used to control the winding current of the motor according to the level signal; The method comprises: Acquiring a voltage signal output by the detection module; In the judgment module, whether the motor needs to be protected by current limiting is determined according to the voltage signal, and a corresponding level signal is output; If it is determined that current limiting protection is required for the motor, then in the protection module, the winding current of the motor is controlled according to the level signal.
2. The motor control method according to claim 1, characterized in that: The detection module includes a sampling resistor; a first end of the sampling resistor is connected to a port of the motor controller that outputs the running current of the motor, and a second end of the sampling resistor is grounded; a voltage at the first end of the sampling resistor is a voltage signal output by the detection module.
3. The motor control method according to claim 1, characterized in that: The judgment module includes a comparator; the voltage signal output by the detection module is connected to the non-phase input terminal of the comparator, and the reference voltage is connected to the inverting input terminal of the comparator; the output terminal of the comparator is connected to the protection module.
4. The motor control method according to claim 3, characterized in that: The protection module includes a transistor, a first resistor, a second resistor, and a third resistor; the first resistor is arranged between the VSP voltage signal input terminal of the controller of the motor and the VSP voltage signal; one end of the second resistor is connected to the VSP voltage signal input terminal of the controller, and the other end is grounded; the collector of the transistor is connected to the VSP voltage signal input terminal of the controller, and the base of the transistor is connected to the output terminal of the comparator; the emitter of the transistor is connected to one end of the third resistor, and the other end of the third resistor is grounded; the transistor is an NPN transistor; the resistance value of the third resistor is less than the resistance value of the second resistor.
5. The motor control method according to any one of claims 1 to 4, characterized in that: Determining whether current limiting protection is required for the motor according to the voltage signal and outputting a corresponding level signal, including: Determining the magnitude relationship between the voltage signal and a reference voltage; If the voltage signal is less than the reference voltage, it is determined that the motor does not need to be subjected to current limiting protection, and the output level signal is a low level; If the voltage signal is greater than or equal to the reference voltage, it is determined that the motor needs to be protected by current limiting, and the output level signal is a high level.
6. The motor control method according to claim 1 or 5, characterized in that: Controlling the winding current of the motor according to the level signal includes: When the level signal changes from a low level to a high level, the VSP voltage signal received by the controller of the motor is reduced, so that the winding current of the motor is reduced to perform current limiting protection on the motor; In the process of performing current limiting protection on the motor, if the level signal changes from a high level to a low level, the VSP voltage signal received by the controller of the motor is restored to the state before the reduction.
7. A control device for a motor, characterized in that: The motor includes a detection module, a judgment module, and a protection module; the detection module is used to output a voltage signal according to the running current of the motor; the judgment module is used to output a level signal according to the voltage signal; The protection module is used to control the winding current of the motor according to the level signal; The device comprises: an acquisition unit, configured to acquire a voltage signal output by the detection module; A control unit, configured to determine whether current limiting protection is required for the motor according to the voltage signal in the judgment module, and output a corresponding level signal; The control unit is further configured to control the winding current of the motor according to the level signal in the protection module if it is determined that current limiting protection is required for the motor.
8. A motor, characterized in that: include: The control device for a motor as claimed in claim 7.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the motor control method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.