Direct current motor and starting control method and device thereof, air conditioner and storage medium
By performing self-learning to obtain the target duty cycle before starting the DC motor, the problem of unstable starting caused by a fixed duty cycle is solved, the stability and reliability of motor starting are improved, and the normal compatibility between the motor and the controller is ensured.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HISENSE (GUANGDONG) AIR CONDITIONER
- Filing Date
- 2021-12-17
- Publication Date
- 2026-06-12
Smart Images

Figure CN114531066B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air conditioning technology, and in particular to a DC motor and its starting control method and device, an air conditioner, and a storage medium. Background Technology
[0002] Currently, there are many methods for starting DC motors, but most of them use a fixed duty cycle. Starting with a fixed duty cycle may result in the starting voltage not being the optimal starting voltage. If the starting voltage is too high, the motor will experience severe shaking during startup, or even fail to start. If the starting voltage is too low, it will take a long time to increase from a low duty cycle to a starting duty cycle, resulting in a slow dynamic response of the motor and affecting the user experience.
[0003] Furthermore, the starting voltage values of different motors or different controllers are different. Also, due to the differences in hardware of different control boards, using a fixed duty cycle to start the motor may result in the motor and controller being unable to control it properly. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.
[0005] Therefore, the first objective of this invention is to propose a DC motor starting control method. This method learns the initial duty cycle when it is zero to obtain the target duty cycle, which is the optimal starting voltage of the DC motor. Upon receiving a DC motor starting command, it controls the DC motor to start according to the target duty cycle. This avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessive or insufficient starting voltage. It also avoids problems such as inability to control the motor properly when replacing it or the controller. Thus, it improves the stability and reliability of DC motor starting.
[0006] Therefore, a second objective of the present invention is to provide a DC motor starting control device.
[0007] Therefore, a third objective of this invention is to provide a DC motor.
[0008] Therefore, the fourth objective of this invention is to provide an air conditioner.
[0009] To achieve the above objectives, an embodiment of the first aspect of the present invention provides a DC motor start-up control method, the method comprising: detecting that the controller of the DC motor is powered on, obtaining an initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, performing self-learning on the initial duty cycle to obtain a target duty cycle; receiving a DC motor start-up command, and controlling the DC motor to start according to the target duty cycle.
[0010] According to an embodiment of the present invention, a DC motor starting control method detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, the initial duty cycle is self-learned to obtain a target duty cycle; upon receiving a DC motor starting command, the DC motor is controlled to start according to the target duty cycle. Thus, this method, by self-learning the initial duty cycle when it is zero to obtain the target duty cycle (i.e., the optimal starting voltage of the DC motor), and controlling the DC motor to start according to the target duty cycle upon receiving a DC motor starting command, avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing it or the controller, thereby improving the stability and reliability of the DC motor during startup.
[0011] In some embodiments, self-learning of the initial duty cycle includes: controlling the pulse module to sequentially output a test duty cycle that increases according to a preset increment, and controlling the clock module to delay waiting for a preset time; if the external interrupt module detects the feedback pulse signal of the DC motor within the preset time, it determines whether the feedback pulse signal is greater than a preset pulse threshold; if so, it determines that the current test duty cycle is the target duty cycle; otherwise, it detects the time for self-learning of the initial duty cycle.
[0012] In some embodiments, after detecting the self-learning time of the initial duty cycle, the method further includes: determining whether the self-learning time of the initial duty cycle is greater than the set maximum learning time; if so, stopping self-learning, issuing a self-learning timeout fault prompt message, and controlling the DC motor to stop starting; otherwise, continuing to self-learn the initial duty cycle.
[0013] In some embodiments, before the control pulse module sequentially outputs a test duty cycle that increases according to a preset increment, the method further includes: adjusting the configurations of the pulse module, clock module, and external interrupt module to their respective preset target configurations.
[0014] In some embodiments, after determining that the current test duty cycle is the target duty cycle, the method further includes: clearing the test duty cycle output by the pulse module to zero, and adjusting the configurations of the pulse module, the clock module, and the external interrupt module to their respective preset initial configurations.
[0015] In some embodiments, after obtaining the target duty cycle, the method further includes: storing the target duty cycle in the controller.
[0016] In some embodiments, after obtaining the initial duty cycle corresponding to the DC motor, the method further includes: when the initial duty cycle is not zero, receiving the DC motor start command, and controlling the DC motor to start according to the initial duty cycle.
[0017] To achieve the above objectives, a second aspect of the present invention provides a DC motor starting control device, the device comprising: an acquisition module, configured to detect that the controller of the DC motor is powered on and acquire an initial duty cycle corresponding to the DC motor pre-stored in the controller; a learning module, configured to perform self-learning on the initial duty cycle when the initial duty cycle is zero to obtain a target duty cycle; and a control module, configured to receive a DC motor starting command and control the DC motor to start according to the target duty cycle.
[0018] According to an embodiment of the present invention, a DC motor starting control device detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, it performs self-learning on the initial duty cycle to obtain a target duty cycle; upon receiving a DC motor starting command, it controls the DC motor to start according to the target duty cycle. Thus, by performing self-learning on the initial duty cycle when it is zero, the device obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor, and controls the DC motor to start according to the target duty cycle upon receiving a DC motor starting command. This avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage, and also avoids problems such as inability to control the motor properly when replacing the motor or controller. Therefore, it improves the stability and reliability of the DC motor during startup.
[0019] To achieve the above objectives, a third aspect of the present invention provides a DC motor comprising: the DC motor start control device described in the above embodiments; or, a processor, a memory, and a DC motor start control program stored in the memory and executable on the processor, wherein the DC motor start control program, when executed by the processor, implements the DC motor start control method described in the above embodiments.
[0020] According to an embodiment of the present invention, when the controller of the DC motor is powered on, an initial duty cycle corresponding to the DC motor is pre-stored in the controller. When the initial duty cycle is zero, the initial duty cycle is self-learned to obtain a target duty cycle. Upon receiving a DC motor start command, the DC motor is started according to the target duty cycle. Thus, by self-learning the initial duty cycle when it is zero, the DC motor obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor. When a DC motor start command is received, the DC motor is started according to the target duty cycle. This avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing the motor or controller. Therefore, the stability and reliability of the DC motor during startup are improved.
[0021] To achieve the above objectives, a fourth aspect of the present invention provides an air conditioner comprising: the DC motor described in the above embodiments.
[0022] According to an embodiment of the present invention, the air conditioner detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, it performs self-learning on the initial duty cycle to obtain a target duty cycle; upon receiving a DC motor start command, it controls the DC motor to start according to the target duty cycle. Thus, by performing self-learning on the initial duty cycle when it is zero, the air conditioner obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor, and controls the DC motor to start according to the target duty cycle upon receiving a DC motor start command. This avoids problems such as excessive starting voltage, excessive DC motor start-up jitter, speed overshoot, and motor start-up delay, which can occur due to excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing it or the controller, thereby improving the stability and reliability of the DC motor during startup.
[0023] To achieve the above objectives, a fifth aspect of the present invention provides a computer-readable storage medium storing a DC motor start control program, wherein when the DC motor start control is executed by a processor, the DC motor start control method as described in the above embodiments is implemented.
[0024] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0025] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0026] Figure 1 This is a flowchart of a DC motor starting control method according to an embodiment of the present invention;
[0027] Figure 2 This is a flowchart of a DC motor starting control method according to a specific embodiment of the present invention;
[0028] Figure 3 This is a flowchart of a DC motor initial duty cycle self-learning method according to an embodiment of the present invention;
[0029] Figure 4 This is a flowchart of a DC motor starting control method according to an embodiment of the present invention;
[0030] Figure 5 This is a block diagram of a DC motor starting control device according to an embodiment of the present invention;
[0031] Figure 6 This is a block diagram of an air conditioner according to an embodiment of the present invention. Detailed Implementation
[0032] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention are described in detail below.
[0033] For starting a DC motor, a fixed duty cycle is generally used. After starting the DC motor with a fixed duty cycle, the duty cycle value is adjusted according to the set target speed and the detected actual motor speed. When the target speed is greater than the detected actual speed, the output duty cycle is increased to accelerate the motor; when the target speed is less than the actual speed, the output duty cycle is decreased to decelerate the motor. The duty cycle increase / decrease can be divided into zones based on the speed difference. When the speed difference is large, the duty cycle can be increased to allow the actual speed to reach the target speed more quickly; when the speed difference is small, the duty cycle can be decreased to minimize speed fluctuations as the speed approaches the target speed.
[0034] For example, the output duty cycle can be increased or decreased using a difference comparison method based on the target speed, or the PWM (Pulse Width Modulation) output duty cycle can be obtained using PI regulation based on the target speed. However, the inventors found that both methods have certain problems when starting a DC motor. Using the PI regulation method based on the target speed, the starting voltage may not be optimal for starting the motor. If PI regulation is used, the motor will run at a speed higher than the target speed for a long time after starting to desaturate when the integral reaches saturation, thus affecting the user experience.
[0035] Based on this, this invention proposes a DC motor starting control method. By using this DC motor starting control method, the starting voltage is self-learned before the DC motor starts to obtain a suitable duty cycle. The DC motor is then controlled to start according to the duty cycle, avoiding the problem of inaccurate control between the motor and the controller, thereby improving the control performance of the motor and the controller.
[0036] The following describes the DC motor starting control method according to an embodiment of the present invention.
[0037] The following is for reference. Figure 1 The DC motor starting control method of the present invention is described in the following embodiments: Figure 1 As shown, the DC motor starting control method of this embodiment includes at least steps S1-S3.
[0038] Step S1: Detect the power-on of the DC motor controller and obtain the initial duty cycle corresponding to the DC motor that is pre-stored in the controller.
[0039] In this embodiment, when the chip is powered on, the controller reads the program and obtains data pre-stored at a fixed location on the controller, such as the initial duty cycle corresponding to the DC motor pre-stored in the controller. By reading the initial duty cycle of the DC motor and judging the initial duty cycle data, the controller can subsequently control the start of the DC motor based on the initial duty cycle of the DC motor.
[0040] Step S2: When the initial duty cycle is zero, perform self-learning on the initial duty cycle to obtain the target duty cycle.
[0041] The target duty cycle is the optimal starting voltage obtained when the DC motor starts. When replacing the controller or motor, the target duty cycle can be determined by self-learning the initial duty cycle, thus obtaining the optimal starting voltage for the DC motor. It can be understood that after replacing the controller or motor, by self-learning the initial duty cycle, the optimal starting duty cycle can be obtained upon initial use.
[0042] In this embodiment, after obtaining the initial duty cycle corresponding to the DC motor in the controller, the value of the initial duty cycle is judged. If the initial duty cycle is zero, it is considered that the controller may be being used for the first time. Therefore, the initial duty cycle cannot be directly used to start the motor. In this case, the initial duty cycle needs to be self-learned to adjust it and obtain the target duty cycle, that is, to obtain the optimal starting voltage of the DC motor. The obtained target duty cycle is then stored in the corresponding position. It can be understood that by self-learning the initial duty cycle to obtain the target duty cycle, i.e., the optimal starting voltage of the DC motor, the problems of DC motor jitter, speed overshoot, and slow starting speed can be improved during DC motor startup.
[0043] Step S3: Upon receiving the DC motor start command, control the DC motor to start according to the target duty cycle.
[0044] In this embodiment, after determining the target duty cycle, if a DC motor start command is received, the DC motor is controlled to start according to the target duty cycle. At this time, the DC motor starts faster and with less jitter, avoiding problems such as excessive or insufficient starting voltage, which could lead to excessive starting jitter, speed overshoot, and delay in motor start-up. This improves the stability and reliability of the DC motor during startup.
[0045] The following is for reference. Figure 2 An example is given to illustrate the DC motor starting control method of this invention, such as... Figure 2 The diagram shown is a flowchart of a DC motor starting control method according to an embodiment of the present invention.
[0046] Step S11: Power on and initialize the controller.
[0047] Step S12: Obtain the initial duty cycle corresponding to the DC motor that is pre-stored in the controller.
[0048] Step S13: Determine if the initial duty cycle is zero. If yes, proceed to step S14; otherwise, proceed to step S15.
[0049] Step S14: Self-learn the initial duty cycle.
[0050] Step S15: Use the non-zero duty cycle in the existing controller as the target duty cycle.
[0051] Step S16: Wait to receive the DC motor start command.
[0052] Step S17: Adjust the output duty cycle to adjust the DC motor speed.
[0053] According to an embodiment of the present invention, a DC motor starting control method detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, the initial duty cycle is self-learned to obtain a target duty cycle; upon receiving a DC motor starting command, the DC motor is controlled to start according to the target duty cycle. Thus, this method, by self-learning the initial duty cycle when it is zero to obtain the target duty cycle (i.e., the optimal starting voltage of the DC motor), and controlling the DC motor to start according to the target duty cycle upon receiving a DC motor starting command, avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing it or the controller, thereby improving the stability and reliability of the DC motor during startup.
[0054] In some embodiments, self-learning of the initial duty cycle includes: controlling the pulse module to sequentially output test duty cycles that increase according to a preset increment, and controlling the clock module to delay waiting for a preset time; if the external interrupt module detects a feedback pulse signal from the DC motor within the preset time, it determines whether the feedback pulse signal is greater than a preset pulse threshold; if so, it determines the current test duty cycle as the target duty cycle; otherwise, it detects the self-learning time for the initial duty cycle. In other words, the pulse module outputs a gradually increasing duty cycle, and after each larger duty cycle value is output, a certain delay is performed. The waiting time is used to ensure that a certain delay is needed to receive the feedback pulse signal when the DC motor is rotating. When the number of received feedback pulse signals is greater than 1, or other values greater than 1, it is considered that the DC motor has started rotating, thereby avoiding the misjudgment of motor jitter caused by external interference as the start of the DC motor.
[0055] In this embodiment, during the self-learning of the initial duty cycle, the control pulse module, such as the PWM module, sequentially outputs a test duty cycle that increases according to a preset increment. That is, it outputs a gradually increasing duty cycle. After each duty cycle value is output, the clock module is controlled to delay for a preset time, for example, until time t1. During the waiting time t1, it is determined whether the external interrupt module detects a feedback pulse signal from the DC motor. If the external interrupt module detects a feedback pulse signal from the DC motor, it is considered that the DC motor has started rotating. At this time, it is determined whether the feedback pulse signal is greater than a preset pulse threshold, for example, whether the feedback pulse signal is greater than 1. If so, the duty cycle value output at this time is recorded. This value is the duty cycle value corresponding to the minimum voltage that can drive the DC motor to rotate. The current test duty cycle is then determined to be the target duty cycle. When the feedback pulse signal is greater than 1, the motor is considered to have started rotating, which can avoid the problem of misjudging the DC motor start caused by external interference causing DC motor jitter. Otherwise, the self-learning time for the initial duty cycle is checked. By controlling the pulse module to sequentially output test duty cycles that increase according to a preset increment, when the external interrupt module detects the feedback pulse signal of the DC motor within a preset time, the test duty cycle output by the pulse module is determined, thereby realizing the determination of the target duty cycle.
[0056] In some embodiments, after detecting the self-learning time of the initial duty cycle, the method further includes: determining whether the self-learning time of the initial duty cycle is greater than the set maximum learning time; if so, stopping self-learning, issuing a self-learning timeout fault message, and controlling the DC motor to stop starting; otherwise, continuing to self-learn the initial duty cycle.
[0057] In this embodiment, if the external interrupt module does not detect the feedback pulse signal from the DC motor within a preset time, the self-learning time of the initial duty cycle is detected. If the detection time of the self-learning is greater than the set maximum learning time, the maximum learning time is denoted as T. max When the self-learning time is greater than T max If the self-learning time is considered to have exceeded the set maximum learning time, a self-learning failure may occur. Specifically, self-learning failure could be due to issues such as the DC motor not being connected, incorrect DC motor wiring, hardware incompatibility, or hardware damage. When these problems occur, the self-learning time may exceed the set maximum learning time. In this case, self-learning stops, a self-learning timeout fault signal is issued, and the DC motor is stopped from starting. If the self-learning time for the initial duty cycle does not exceed the set maximum learning time, self-learning for the initial duty cycle continues. By setting a maximum learning time and monitoring the self-learning time for the initial duty cycle, the problem of excessively long self-learning times caused by hardware damage can be avoided, thereby improving the efficiency of self-learning.
[0058] In some embodiments, before the control pulse module sequentially outputs a test duty cycle that increases according to a preset increment, the method further includes: adjusting the configurations of the pulse module, the clock module, and the external interrupt module to their respective preset target configurations.
[0059] In this embodiment, during the self-learning of the initial duty cycle, the DC motor operates normally, and the controller does not allocate excessive resources to the DC motor. Therefore, the output carrier frequency of the pulse module, the accuracy of the clock module, and the configuration of the external interrupt module are relatively low, resulting in low accuracy when calculating the actual speed of the DC motor using the feedback pulse signal. Therefore, during the self-learning of the initial duty cycle, the pulse module, clock module, and external interrupt module need to be reconfigured. That is, the configurations of the pulse module, clock module, and external interrupt module are adjusted to their respective preset target configurations so that the chip can drive the DC motor with higher accuracy.
[0060] In some embodiments, after determining the current test duty cycle as the target duty cycle, the method further includes: clearing the test duty cycle output by the pulse module and adjusting the configurations of the pulse module, clock module, and external interrupt module to their respective preset initial configurations. Specifically, after determining the target duty cycle, the self-learning process is considered complete. At this point, the test duty cycle output by the pulse module is cleared, and the DC motor is shut down. At this time, the pulse module, clock module, and external interrupt module need to be reconfigured to restore them to their configurations during normal DC motor operation. This avoids the problem of wasting resources by keeping the pulse module, clock module, and external interrupt module in the target configuration even without self-learning.
[0061] The following is for reference. Figure 3 The self-learning process of the initial duty cycle of a DC motor in an embodiment of the present invention will be illustrated by an example, such as... Figure 3 The diagram shown is a flowchart of a DC motor initial duty cycle self-learning method according to an embodiment of the present invention.
[0062] Step S20: Self-learn the initial duty cycle.
[0063] Step S21: Adjust the configurations of the pulse module, clock module, and external interrupt module to their respective preset target configurations.
[0064] Step S22: Control the pulse module to output test duty cycles that increase sequentially according to a preset increment.
[0065] Step S23: Control the clock module to delay waiting for a preset time.
[0066] Step S24: Determine whether the external interrupt module detects the feedback judgment signal of the DC motor within the waiting time, and determine whether the feedback judgment signal is greater than the preset pulse threshold. If yes, proceed to step S25; otherwise, proceed to step S27.
[0067] Step S25: Determine the current test duty cycle as the target duty cycle.
[0068] Step S26: Clear the test duty cycle output by the pulse module and adjust the configurations of the pulse module, clock module, and external interrupt module to their respective preset initial configurations.
[0069] Step S27: Determine whether the self-learning time for the initial duty cycle is greater than the set maximum learning time. If yes, proceed to step S22; otherwise, proceed to step S28.
[0070] In step S28, self-learning is stopped and a self-learning timeout error message is issued.
[0071] Step S29: Control the DC motor to stop starting.
[0072] In some embodiments, after obtaining the target duty cycle, the method further includes storing the target duty cycle in the controller. Specifically, after determining the target duty cycle, storing the target duty cycle in the controller means that when the device is powered on again, there is no need to perform the self-learning procedure again; the target duty cycle can be directly called. Therefore, in subsequent stages, the self-learning process does not need to be repeated, and the device can be started directly using the optimal voltage.
[0073] In some embodiments, after obtaining the initial duty cycle corresponding to the DC motor, the method further includes: when the initial duty cycle is not zero, receiving a DC motor start command, and controlling the DC motor to start according to the initial duty cycle. Specifically, when the initial duty cycle is not zero, it is assumed that self-learning has already been performed. In this case, after receiving the motor start command, the duty cycle is directly used as the starting voltage of the DC motor, improving the convenience of starting the DC motor.
[0074] The following is for reference. Figure 4 The DC motor starting control method of this invention will be illustrated by example, such as... Figure 4 The diagram shown is a flowchart of a DC motor starting control method according to an embodiment of the present invention.
[0075] Step S30: Power on and initialize the controller.
[0076] Step S31: Obtain the initial duty cycle corresponding to the DC motor that is pre-stored in the controller.
[0077] Step S32: Determine if the initial duty cycle is zero. If yes, proceed to step S34; otherwise, proceed to step S41.
[0078] Step S33: Self-learn the initial duty cycle.
[0079] Step S34: Adjust the configurations of the pulse module, clock module, and external interrupt module to their respective preset target configurations.
[0080] Step S35: Control the pulse module to output test duty cycles that increase sequentially according to a preset increment.
[0081] Step S36: Control the clock module to delay waiting for a preset time.
[0082] Step S37: Determine whether the external interrupt module detects the feedback judgment signal of the DC motor within the waiting time, and determine whether the feedback judgment signal is greater than the preset pulse threshold. If yes, proceed to step S39; otherwise, proceed to step S44.
[0083] Step S38: Determine the current test duty cycle as the target duty cycle.
[0084] Step S39: Clear the test duty cycle output by the pulse module and adjust the configurations of the pulse module, clock module, and external interrupt module to their respective preset initial configurations.
[0085] Step S40: The initial duty cycle is self-learned, and the target duty cycle is obtained.
[0086] Step S41: Use the non-zero duty cycle in the existence controller as the target duty cycle.
[0087] Step S42: Wait for the DC motor start command to be received.
[0088] Step S43: Adjust the output duty cycle to adjust the DC motor speed.
[0089] Step S44: Determine whether the self-learning time for the initial duty cycle is greater than the set maximum learning time. If yes, proceed to step S35; otherwise, proceed to step S45.
[0090] In step S45, self-learning is stopped and a self-learning timeout error message is issued.
[0091] Step S46: Control the DC motor to stop starting.
[0092] According to an embodiment of the present invention, a DC motor starting control method detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, the initial duty cycle is self-learned to obtain a target duty cycle; upon receiving a DC motor starting command, the DC motor is controlled to start according to the target duty cycle. Thus, this method, by self-learning the initial duty cycle when it is zero to obtain the target duty cycle (i.e., the optimal starting voltage of the DC motor), and controlling the DC motor to start according to the target duty cycle upon receiving a DC motor starting command, avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing it or the controller, thereby improving the stability and reliability of the DC motor during startup.
[0093] The following describes a DC motor starting control device according to an embodiment of the present invention.
[0094] like Figure 5 As shown, the DC motor starting control device 2 of this embodiment includes: an acquisition module 20, a learning module 21, and a control module 22. The acquisition module 20 is used to detect the power-on of the controller of the DC motor and acquire the initial duty cycle corresponding to the DC motor pre-stored in the controller. The learning module 21 is used to perform self-learning on the initial duty cycle when the initial duty cycle is zero to obtain the target duty cycle. The control module 22 is used to receive the DC motor starting command and control the DC motor to start according to the target duty cycle.
[0095] According to an embodiment of the present invention, the DC motor starting control device 2 detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, it performs self-learning on the initial duty cycle to obtain a target duty cycle; upon receiving a DC motor starting command, it controls the DC motor to start according to the target duty cycle. Thus, by performing self-learning on the initial duty cycle when it is zero, the device obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor, and controls the DC motor to start according to the target duty cycle upon receiving a DC motor starting command. This avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage, and also avoids problems such as inability to control the motor properly when replacing the motor or controller. Therefore, it improves the stability and reliability of the DC motor during startup.
[0096] In some embodiments, the learning module 21 is specifically used to: control the pulse module to output test duty cycles that increase sequentially according to a preset increment, and control the clock module to delay waiting for a preset time; if the external interrupt module detects the feedback pulse signal of the DC motor within the preset time, it determines whether the feedback pulse signal is greater than the preset pulse threshold; if so, it determines that the current test duty cycle is the target duty cycle; otherwise, it detects the time for self-learning the initial duty cycle.
[0097] In some embodiments, the learning module 21 is further configured to: determine whether the self-learning time for the initial duty cycle is greater than the set maximum learning time; if so, stop self-learning, issue a fault message indicating that the self-learning timeout has occurred, and control the DC motor to stop starting; otherwise, continue to self-learn the initial duty cycle for the specified time.
[0098] In some embodiments, the learning module 21 is further configured to: adjust the configurations of the pulse module, the clock module, and the external interrupt module to their respective preset target configurations.
[0099] In some embodiments, the learning module 21 is further configured to: clear the test duty cycle output by the pulse module, and adjust the configurations of the pulse module, the clock module, and the external interrupt module to their respective preset initial configurations.
[0100] In some embodiments, the learning module 21 is further configured to: store the target duty cycle in the controller.
[0101] In some embodiments, the control module 23 is further configured to: receive a DC motor start command when the initial duty cycle is not zero, and control the DC motor to start according to the initial duty cycle.
[0102] To achieve the above objectives, a third aspect of the present invention provides a DC motor comprising: the DC motor start control device described above; or, a processor, a memory, and a DC motor start control program stored in the memory and executable on the processor, wherein the DC motor start control program, when executed by the processor, implements the DC motor start control method as described above.
[0103] According to an embodiment of the present invention, when the controller of the DC motor is powered on, an initial duty cycle corresponding to the DC motor is pre-stored in the controller. When the initial duty cycle is zero, the initial duty cycle is self-learned to obtain a target duty cycle. Upon receiving a DC motor start command, the DC motor is started according to the target duty cycle. Thus, by self-learning the initial duty cycle when it is zero, the DC motor obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor. When a DC motor start command is received, the DC motor is started according to the target duty cycle. This avoids problems such as excessive starting voltage, excessive starting jitter, speed overshoot, and starting delay caused by excessively high or low starting voltage. It also avoids problems such as inability to control the motor properly when replacing the motor or controller. Therefore, the stability and reliability of the DC motor during startup are improved.
[0104] The air conditioner according to an embodiment of the present invention is described below.
[0105] like Figure 6 As shown, the air conditioner 3 in this embodiment of the invention includes: the DC motor 2 described in the above embodiment.
[0106] According to an embodiment of the present invention, the air conditioner 3 detects that the controller of the DC motor is powered on and obtains the initial duty cycle corresponding to the DC motor pre-stored in the controller; when the initial duty cycle is zero, it performs self-learning on the initial duty cycle to obtain a target duty cycle; upon receiving a DC motor start command, it controls the DC motor to start according to the target duty cycle. Thus, the air conditioner 3 obtains the target duty cycle, i.e., the optimal starting voltage of the DC motor, by performing self-learning on the initial duty cycle when the initial duty cycle is zero, and controls the DC motor to start according to the target duty cycle upon receiving a DC motor start command, thereby avoiding problems such as excessive DC motor start-up jitter, speed overshoot, and motor start-up delay caused by excessively high or low starting voltage, and avoiding problems such as inability to control the motor properly when replacing the motor or controller. This improves the stability and reliability of the DC motor during start-up.
[0107] To achieve the above objectives, a fifth aspect of the present invention provides a computer-readable storage medium storing a DC motor start control program, wherein when the DC motor start control is executed by a processor, the DC motor start control method as described in the above embodiment is implemented.
[0108] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.
[0109] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A DC motor starting control method, characterized in that, include: Upon detecting that the controller of the DC motor is powered on, the initial duty cycle corresponding to the DC motor is obtained from the controller. When the initial duty cycle is zero, the initial duty cycle is self-learned to obtain the target duty cycle; Upon receiving a DC motor start command, the DC motor is controlled to start according to the target duty cycle; The self-learning of the initial duty cycle includes: controlling the pulse module to sequentially output a test duty cycle that increases according to a preset increment, and controlling the clock module to delay and wait for a preset time; if the external interrupt module detects the feedback pulse signal of the DC motor within the preset time, it determines whether the feedback pulse signal is greater than a preset pulse threshold; if so, it determines that the current test duty cycle is the target duty cycle; otherwise, it detects the self-learning time of the initial duty cycle. After detecting the self-learning time for the initial duty cycle, the method further includes: Determine whether the self-learning time for the initial duty cycle is greater than the set maximum learning time; If so, self-learning is stopped, a self-learning timeout fault message is issued, and the DC motor is controlled to stop starting; otherwise, self-learning of the initial duty cycle continues.
2. The DC motor starting control method according to claim 1, characterized in that, Before the control pulse module sequentially outputs the test duty cycle, which increases according to a preset increment, it also includes: Adjust the configurations of the pulse module, clock module, and external interrupt module to their respective preset target configurations.
3. The DC motor starting control method according to claim 1, characterized in that, After determining that the current test duty cycle is the target duty cycle, the method further includes: The test duty cycle output by the pulse module is cleared to zero, and the configurations of the pulse module, clock module, and external interrupt module are adjusted to their respective preset initial configurations.
4. The DC motor starting control method according to claim 1, characterized in that, After obtaining the target duty cycle, the following is also included: The target duty cycle is stored in the controller.
5. The DC motor starting control method according to claim 1, characterized in that, After obtaining the initial duty cycle of the DC motor, the following steps are also included: When the initial duty cycle is not zero, the DC motor start command is received, and the DC motor is started according to the initial duty cycle.
6. A DC motor starting control device, characterized in that, include: The acquisition module is used to detect when the controller of the DC motor is powered on and to acquire the initial duty cycle corresponding to the DC motor that is pre-stored in the controller; The learning module is used to learn the initial duty cycle from the initial duty cycle when it is zero, and obtain the target duty cycle. The control module is used to receive a DC motor start command and control the DC motor to start according to the target duty cycle; The self-learning of the initial duty cycle includes: controlling the pulse module to sequentially output a test duty cycle that increases according to a preset increment, and controlling the clock module to delay and wait for a preset time; if the external interrupt module detects the feedback pulse signal of the DC motor within the preset time, it determines whether the feedback pulse signal is greater than a preset pulse threshold; if so, it determines that the current test duty cycle is the target duty cycle; otherwise, it detects the self-learning time of the initial duty cycle. After detecting the self-learning time for the initial duty cycle, the method further includes: Determine whether the self-learning time for the initial duty cycle is greater than the set maximum learning time; If so, self-learning is stopped, a self-learning timeout fault message is issued, and the DC motor is controlled to stop starting; otherwise, self-learning of the initial duty cycle continues.
7. A DC motor, characterized in that, include: The DC motor starting control device as described in claim 6; or, A processor, a memory, and a DC motor start control program stored in the memory and executable on the processor, wherein the DC motor start control program, when executed by the processor, implements the DC motor start control method as described in any one of claims 1-5.
8. An air conditioner, characterized in that, include: The DC motor as described in claim 7.