Motor rotating speed compensation method, device, equipment, storage medium and program product
Patent Information
- Application Number
- CN202511861155.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-10
- Publication Date
- 2026-02-24
AI Technical Summary
[0003]本发明提供了一种电机转速补偿方法、装置、设备、存储介质及程序产品,以解决相关技术中电机的质量风量变化容易造成设备性能下降的问题
[0014] The motor speed compensation method, apparatus, device, storage medium, and program product provided in the embodiments of the present invention detect the current ambient temperature of the motor in real time, determine the required speed compensation coefficient based on the current ambient temperature, and use the speed compensation coefficient to compensate the motor speed, thereby compensating for the impact of ambient temperature changes on the mass air volume of the motor. This is beneficial for achieving a constant mass air volume output by the motor, and thus helps to improve the impact of mass air volume changes on equipment performance.
Smart Images

Figure CN121567016A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor control technology, specifically to a method, device, equipment, storage medium, and program product for motor speed compensation. Background Technology
[0002] In the design of constant speed motors in related technologies, the impact of temperature on airflow is usually not considered. During the testing process, only the volume airflow of the motor is considered and tested, and the change in airflow due to the mass of the motor is rarely taken into account. This leads to some problems, such as the cooling effect of the cooling fan deteriorates at high temperatures and the airflow of the indoor evaporator fan of the air conditioner is too large at low temperatures, resulting in a decline in the actual performance of the equipment. Summary of the Invention
[0003] This invention provides a method, apparatus, device, storage medium, and program product for motor speed compensation, in order to solve the problem that changes in the mass and airflow of motors can easily lead to a decline in equipment performance in related technologies.
[0004] In a first aspect, the present invention provides a method for compensating motor speed, the method comprising: Get the current ambient temperature; The speed compensation coefficient corresponding to the mass air volume output by the motor is determined based on the current ambient temperature. The speed compensation coefficient is used to compensate for the speed of the motor. The motor's current speed is compensated according to the speed compensation coefficient so that the motor outputs a constant mass airflow.
[0005] In some optional implementations, determining the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature includes: Based on the preset functional relationship between ambient temperature and air density, the air density of the current environment is determined according to the current ambient temperature; The rotational speed compensation coefficient is obtained based on the ratio of the air density at a preset standard ambient temperature to the air density of the current environment.
[0006] In some optional implementations, the step of performing speed compensation on the current speed of the motor according to the speed compensation coefficient includes: Based on a predetermined speed compensation coefficient, a functional relationship between a preset standard speed and a target speed, the target speed is calculated according to the speed compensation coefficient and the preset standard speed. Set the current speed of the motor to the target speed.
[0007] In some optional implementations, the speed compensation coefficient, the preset standard speed, and the target speed satisfy the following functional relationship: The target speed is the product of the speed compensation coefficient and the preset standard speed.
[0008] In some optional implementations, the speed compensation coefficient, the preset standard speed, and the target speed are determined by the following method: Based on the functional relationships between mass air volume, volumetric air volume, and air density, as well as the functional relationship between volumetric air volume and rotational speed, determine the functional relationships between rotational speed, air density, and mass air volume. Under the condition of constant mass air volume, the speed compensation coefficient, the preset standard speed and the target speed are determined according to the functional relationship between speed, air density and mass air volume, and the speed compensation coefficient is related to the air density.
[0009] In some optional implementations, obtaining the current ambient temperature includes: Collect the voltage value of the temperature sensor set in the motor environment; The voltage value of the temperature sensor is converted from analog to digital to an AD value; The current ambient temperature is obtained by querying the AD value based on the preset mapping relationship between AD value and ambient temperature.
[0010] Secondly, the present invention provides a motor speed compensation device, the motor speed compensation device comprising: Temperature acquisition unit, used to obtain the current ambient temperature; The compensation calculation unit is used to determine the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature. The speed compensation coefficient is used to compensate for the speed of the motor. The compensation unit is used to compensate the current speed of the motor according to the speed compensation coefficient so that the motor outputs a constant mass air volume.
[0011] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the motor speed compensation method of the first aspect or any corresponding embodiment described above.
[0012] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the motor speed compensation method of the first aspect or any corresponding embodiment described above.
[0013] Fifthly, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the motor speed compensation method of the first aspect or any corresponding embodiment described above.
[0014] The motor speed compensation method, apparatus, device, storage medium, and program product provided in the embodiments of the present invention detect the current ambient temperature of the motor in real time, determine the required speed compensation coefficient based on the current ambient temperature, and use the speed compensation coefficient to compensate the motor speed, thereby compensating for the impact of ambient temperature changes on the mass air volume of the motor. This is beneficial for achieving a constant mass air volume output by the motor, and thus helps to improve the impact of mass air volume changes on equipment performance. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating a motor speed compensation method provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating a method for collecting ambient temperature according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating a method for determining the rotational speed compensation coefficient in an embodiment of the present invention; Figure 4 This is a flowchart illustrating a speed compensation method in an embodiment of the present invention; Figure 5 This is a block diagram of a motor speed compensation device provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] In related technologies, the volumetric airflow of a fan is typically tested and measured in a constant, standard temperature environment, and the motor speed is adjusted based on the measured volumetric airflow. However, in real-world applications, especially for industrial motors, the actual operating environment is more complex, and the actual ambient temperature may differ from the standard test temperature, sometimes even being significantly higher or lower.
[0019] Through creative research, the inventors discovered that changes in ambient temperature significantly alter air density, affecting the mass airflow of motors. When the motor's mass airflow changes, it can impact the heat dissipation or cooling efficiency of the equipment. If the motor operates continuously at a constant speed, in high-temperature environments, air density decreases as temperature rises. This decrease in air density reduces the motor's output mass airflow, meaning that although the motor continues to output the same volume of air, the system's cooling capacity decreases, leading to poorer heat dissipation and reduced cooling efficiency in the air conditioning unit. In low-temperature environments, air density increases as temperature decreases. This increase in air density increases the motor's output mass airflow, potentially causing excessive airflow from the indoor evaporator fan of the air conditioner.
[0020] Therefore, in related technologies, changes in the mass and airflow of the motor can easily lead to a decline in equipment performance.
[0021] According to an embodiment of the present invention, a method for motor speed compensation is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0022] This embodiment provides a method for motor speed compensation. Figure 1 This is a flowchart illustrating a motor speed compensation method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the motor speed compensation method includes, but is not limited to, the following steps.
[0023] Step S101: Obtain the current ambient temperature.
[0024] The current ambient temperature is the current temperature of the working environment in which the motor is located. The current ambient temperature is obtained by real-time temperature detection of the working environment in which the motor is located.
[0025] Step S102: Determine the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature. The speed compensation coefficient is used to compensate for the motor speed.
[0026] The volumetric airflow of a motor is directly proportional to its speed, while the mass airflow is positively correlated with both volumetric airflow and air density. Therefore, mass airflow is also positively correlated with motor speed and air density. Changes in motor speed and air density will both cause changes in mass airflow. In the actual operating environment of the motor, changes in ambient temperature will cause changes in air density, thus affecting the motor's mass airflow. Therefore, to ensure a constant mass airflow, motor speed compensation is needed when the ambient temperature changes. This compensation compensates for the impact of temperature variations on the motor's mass airflow. The speed compensation coefficient is related to the current ambient temperature, and the required coefficient is determined based on the current ambient temperature.
[0027] Step S103: Perform speed compensation on the current speed of the motor according to the speed compensation coefficient so that the motor outputs a constant mass air volume.
[0028] As mentioned earlier, the mass airflow of the motor will also change when the ambient temperature changes. In order to ensure that the mass airflow of the motor is constant, the required speed compensation coefficient is determined according to the current ambient temperature. The speed compensation coefficient is used to compensate the motor speed, thereby compensating for the impact of the ambient temperature change on the mass airflow of the motor, which is conducive to achieving a constant mass airflow output by the motor.
[0029] According to the motor speed compensation method of the present invention, the current ambient temperature of the motor is detected in real time, and the required speed compensation coefficient is determined based on the current ambient temperature. The speed compensation coefficient is used to compensate the motor speed, thereby compensating for the impact of ambient temperature changes on the mass air volume of the motor. This is beneficial to achieving a constant mass air volume output by the motor, and thus helps to improve the impact of mass air volume changes on equipment performance.
[0030] Figure 2 This is a flowchart illustrating an environmental temperature acquisition method according to an embodiment of the present invention. In some optional embodiments, such as... Figure 2 As shown, in step S101 above, obtaining the current ambient temperature may further include steps S201 to S203.
[0031] Step S201: Collect the voltage value of the temperature sensor set in the motor environment.
[0032] Among them, the temperature sensor can be a negative temperature coefficient sensor (NTC), whose thermistor resistance changes with the ambient temperature, and the collected voltage value also changes accordingly.
[0033] Step S202: Convert the voltage value of the temperature sensor into an analog-to-digital (AD) value.
[0034] Step S203: From the preset mapping relationship between AD value and ambient temperature, the corresponding current ambient temperature is obtained by querying the AD value.
[0035] In some alternative implementations, the motor speed compensation method can be implemented based on a microcontroller. The microcontroller can use an analog-to-digital (AD) module to acquire the voltage drop across the NTC thermistor and convert the acquired voltage value to an AD value. The microcontroller has a pre-set mapping table between the AD value, the thermistor resistance value, and the ambient temperature. After determining the AD value or the thermistor resistance value, the actual ambient temperature can be obtained by looking up the table.
[0036] To facilitate microcontroller calculations, the converted ambient temperature only needs to be accurate to an integer. Simultaneously, to ensure that the motor speed compensation method covers the motor's operating temperature range, the temperature sensor must be able to detect temperatures ranging from below 0°C to above 100°C. For example, if the motor's operating temperature range is -20°C to +60°C, then the temperature sensor should be able to detect temperatures ranging from -30°C to +80°C.
[0037] Figure 3 This is a flowchart illustrating a method for determining the speed compensation coefficient in an embodiment of the present invention. In some optional embodiments, such as... Figure 3 As shown, in step S102 above, determining the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature can further include steps S301 and S302.
[0038] Step S301: Based on the preset functional relationship between ambient temperature and air density, determine the air density of the current environment according to the current ambient temperature.
[0039] Step S302: Obtain the rotational speed compensation coefficient based on the ratio of the air density at the preset standard ambient temperature to the air density of the current environment.
[0040] According to the ideal gas law, under constant pressure, air density is inversely proportional to the absolute temperature of the environment. This law also applies to motor applications. Absolute temperature will affect the mass airflow of the motor. As shown in Table 1, when a motor operates at the same speed under different ambient temperatures, the volumetric airflow produced can generally be considered to be almost constant, but the mass airflow produced is different. The mass airflow is affected by the ambient temperature.
[0041] Table 1
[0042] Table 2
[0043] Table 2 provides exemplary engineering reference values for ambient temperature and air density. It shows that air density increases as ambient temperature decreases and decreases as ambient temperature increases. This phenomenon conforms to the ideal gas law. Under standard atmospheric pressure, the functional relationship between air density (ρ) and ambient temperature (t) can be accurately calculated using the following formula:
[0044] Where ρ represents air density, the unit is kg / m³ 3 P represents the absolute pressure of air, measured in Pa. In most cases, the absolute pressure of air is standard atmospheric pressure (101325 Pa). Rs represents the specific gas constant of air, with a value of 287.05 J / (Kg*K). T represents the absolute temperature of air, measured in Kelvin. The conversion formula is T = t + 273.15, where t is the collected ambient temperature in Celsius (°C).
[0045] In application, to simplify the functional relationship, substituting the absolute air pressure P = 101325 Pa and the air constant Rs = 287.05 J / (Kg*K) into the above formula yields a simplified functional relationship between air density ρ and ambient temperature t:
[0046] When the current ambient temperature t of the motor is detected, the current ambient air density ρ can be determined by the functional relationship between the air density ρ and the ambient temperature t mentioned above.
[0047] For example, when the current ambient temperature t is 20℃, the air density ρ = 353 / (20+273.15) ≈ 1.204; when the current ambient temperature t is 35℃, the air density ρ = 353 / (35+273.15) ≈ 1.146.
[0048] As can be clearly seen from the above example, when the ambient temperature rises from 20℃ to 35℃, the air density decreases from 1.204 to 1.146, a decrease of about 4.8%.
[0049] Similarly, the air density at the preset standard ambient temperature can also be calculated using the functional relationship between air density ρ and ambient temperature t. Here, the standard ambient temperature is the ideal ambient temperature of the motor, obtained beforehand by testing the motor with airflow testing equipment.
[0050] Since air density, motor speed, and mass air volume are positively correlated, under ideal conditions, air density at standard ambient temperature can be used to characterize the mass air volume of the motor under ideal conditions. By using the ratio of air density at standard ambient temperature to air density at current ambient temperature as a speed compensation coefficient, speed compensation can be applied to the motor speed, which helps to maintain the motor speed at the ideal state, thereby helping to keep the mass air volume of the motor constant at the ideal state.
[0051] Figure 4 This is a flowchart illustrating a speed compensation method according to an embodiment of the present invention. In some optional embodiments, such as... Figure 4 As shown, in step S103 above, speed compensation is performed on the current speed of the motor according to the speed compensation coefficient, which may further include steps S401 and S402.
[0052] Step S401: Based on the predetermined speed compensation coefficient and the functional relationship between the preset standard speed and the target speed, the target speed is calculated according to the speed compensation coefficient and the preset standard speed.
[0053] Step S402: Set the current speed of the motor to the target speed.
[0054] The speed compensation coefficient, the preset standard speed, and the target speed satisfy the following functional relationship: the target speed is the product of the speed compensation coefficient and the preset standard speed, that is, the target speed is obtained by multiplying the speed compensation coefficient and the preset standard speed; the preset standard speed is the speed of the motor under ideal conditions obtained by testing the motor with air volume testing equipment under standard ambient temperature.
[0055] If the air density at the standard ambient temperature is greater than that at the current ambient temperature, it means that the mass air volume at the current ambient temperature is lower than that at the standard ambient temperature. According to the method of determining the speed compensation coefficient, the speed compensation coefficient is a value greater than 1. Therefore, the target speed is obtained by multiplying the speed compensation coefficient and the preset standard speed. The target speed will be greater than the preset standard speed, which means that the motor speed is increased. Thus, the mass air volume of the motor is increased by increasing the motor speed.
[0056] If the air density at the standard ambient temperature is less than the air density at the current ambient temperature, it means that the mass air volume at the current ambient temperature is higher than that at the standard ambient temperature. According to the method of determining the speed compensation coefficient, the speed compensation coefficient is a value less than 1. Therefore, the target speed is obtained by multiplying the speed compensation coefficient and the preset standard speed. The target speed will be less than the preset standard speed, which means that the motor speed is reduced. Thus, the mass air volume of the motor is reduced by reducing the motor speed.
[0057] Similarly, when the air density at standard ambient temperature is equal to the air density at the current ambient temperature, the speed compensation coefficient is equal to 1, and the target speed is equal to the preset standard speed. Therefore, the current speed of the motor can be kept constant at the preset standard speed.
[0058] In some optional implementations, the functional relationship between the speed compensation coefficient, the preset standard speed, and the target speed is determined in the following ways: based on the functional relationship between mass air volume, volumetric air volume, and air density, and the functional relationship between volumetric air volume and speed, the functional relationship between speed, air density, and mass air volume is determined; when the mass air volume is constant, based on the functional relationship between speed, air density, and mass air volume, the functional relationship between the speed compensation coefficient, the preset standard speed, and the target speed is determined, and the speed compensation coefficient is related to air density.
[0059] Volumetric air volume (Qv) is the volume of air flowing through a point per unit time. Commonly used units include cubic meters per hour (m³ / h) and CFM (cubic feet per minute). Volumetric air volume can be directly measured using air volume measuring equipment. Mass air volume (Qm) is the mass of air flowing through a point per unit time. Commonly used units include kg / h (kilograms per hour) and lb / min (pounds per minute).
[0060] The functional relationship between mass air volume (Qm), volumetric air volume (Qv), and air density (ρ) is: mass air volume (Qm) = volumetric air volume (Qv) × air density (ρ), that is, Qm = Qv × ρ.
[0061] In active air supply fan systems, the rotation speed is generally fixed, and the volumetric air volume (Qv) output by the motor fan remains basically stable and is not affected by temperature changes.
[0062] However, according to the functional relationship between mass air volume (Qm), volumetric air volume (Qv) and air density (ρ) mentioned above, air density (ρ) decreases as ambient temperature increases, therefore mass air volume (Qm) also decreases as ambient temperature increases.
[0063] Based on the functional relationship between air density (ρ) and ambient temperature (t) mentioned above, ambient temperature (t) affects the final mass air volume by influencing air density (ρ). The mass air volume is controlled by both the volumetric air volume and the air density.
[0064] According to the fan law, with constant system resistance, the volumetric air volume is directly proportional to the motor speed. The functional relationship between volumetric air volume and motor speed can be expressed by the following formula: Or, Qv=kN Where Qv2 and Qv1 are the volumetric air volume of the motor at different set speeds, N2 and N1 are the set speeds of the motor at different ambient temperatures, k is a proportionality coefficient, and N is the motor speed.
[0065] Combining the functional relationship between volumetric air volume and rotational speed, and the functional relationships between mass air volume, volumetric air volume, and air density, we can obtain the functional relationship between rotational speed, air density, and mass air volume: Or, Qm=kN×ρ Where Qm2 and Qm1 are the mass air volume of the motor at different speeds, and ρ2 and ρ1 are the air density of the motor at different ambient temperatures.
[0066] When the mass air volume is constant, Qm2 = Qm1, then the rotational speed N2 and rotational speed N1 satisfy the following relationship: N2 = (ρ1 / ρ2) × N1 Assuming N1 is the preset standard speed at standard ambient temperature, ρ1 is the air density at the preset standard ambient temperature, N2 is the target speed to be set, and ρ2 is the air density at the current ambient temperature, the ratio ρ1 / ρ2 of the air density ρ1 at the standard ambient temperature to the air density ρ2 at the current ambient temperature is used as the speed compensation coefficient, thus obtaining the functional relationship between the speed compensation coefficient, the preset standard speed N1, and the target speed N2.
[0067] In some optional implementations, the functional relationship between the above-mentioned rotational speed N2 and rotational speed N1 can be further obtained by combining the functional relationship between air density and ambient temperature, to obtain the functional relationship between the current ambient temperature t2, the preset standard ambient temperature t1, the preset standard rotational speed N1, and the target rotational speed N2:
[0068] Therefore, in some optional implementations, the rotational speed compensation coefficient is (t2+273.15) / (t1+273.15), which represents the ratio of the absolute air temperature at the current ambient temperature to the absolute air temperature at the preset standard ambient temperature.
[0069] For example, assuming the preset standard ambient temperature t1 is 25℃ and the preset standard speed N1 is 1200 RPM, then when the current ambient temperature t2 is detected to be 35℃, according to the above speed compensation formula, the compensated target speed N2 = 1200*(35+273.15) / (25+273.15)≈1240 RPM; when the current ambient temperature t2 is detected to be 45℃, according to the above speed compensation formula, the compensated target speed N2 = 1200*(45+273.15) / (25+273.15)≈1240 RPM; when the current ambient temperature t2 is detected to be 55℃, according to the above speed compensation formula, the compensated target speed N2 = 1200*(55+273.15) / (25+273.15)≈1341 RPM.
[0070] In some alternative implementations, to reduce the workload of the microcontroller, decimal calculations in the program should be minimized. Therefore, in the above speed compensation formula, the absolute air temperature at standard ambient temperature (t1+273.15) can be simplified to (t1+273), and the absolute air temperature at the current ambient temperature (t2+273.15) can be simplified to (t2+273). Thus, the speed compensation formula can be further simplified to:
[0071] The compensated target speed will change the volumetric airflow, which will eventually compensate for the mass airflow in order to maintain the mass airflow and thus ensure the motor performance in actual working conditions.
[0072] Table 3
[0073] Table 3 shows the interrelationship between motor speed, ambient temperature, air density, volumetric air volume, and mass air volume. According to Table 3, when the ambient temperature remains constant, the motor speed is directly proportional to both volumetric air volume and mass air volume. When the motor speed remains constant, the volumetric air volume remains basically constant, while the mass air volume decreases as the ambient temperature increases and increases as the ambient temperature decreases.
[0074] In this embodiment of the invention, by analyzing the relationship between ambient temperature, air density, volumetric air volume, mass air volume, and motor speed, the relationship between the speed compensation coefficient and ambient temperature or air density is determined. Based on the collected current ambient temperature, the speed compensation coefficient is effectively calculated, and the motor speed is controlled and adjusted in real time by the motor controller according to the speed compensation coefficient. Ultimately, this achieves the purpose of controlling the mass air volume and compensating for the impact of ambient temperature on the mass air volume, thereby enhancing the heat dissipation capacity of the motor fan in high-temperature environments and contributing to the normal operation of industrial equipment.
[0075] This embodiment also provides a motor speed compensation device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0076] Figure 5 This is a block diagram of a motor speed compensation device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, this embodiment of the invention provides a motor speed compensation device 500, which includes a temperature acquisition unit 501, a compensation calculation unit 502, and a compensation unit 503.
[0077] The temperature acquisition unit 501 is used to acquire the current ambient temperature; the compensation calculation unit 502 is used to determine the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature, and the speed compensation coefficient is used to compensate the motor speed; the compensation unit 503 is used to compensate the current speed of the motor based on the speed compensation coefficient so that the motor outputs a constant mass air volume.
[0078] The motor speed compensation device 500 provided in this embodiment of the invention can execute the motor speed compensation method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as in the corresponding embodiments described above, and will not be repeated here.
[0079] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0080] The following is a detailed reference. Figure 6 This diagram illustrates a suitable structural design for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes based on a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of the electronic device. The processor 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0081] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0082] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the motor speed compensation method of the embodiments of the present invention.
[0083] Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0084] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the motor speed compensation method shown in the above embodiments is implemented.
[0085] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0086] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for compensating motor speed, characterized in that, The method includes: Get the current ambient temperature; The speed compensation coefficient corresponding to the mass air volume output by the motor is determined based on the current ambient temperature. The speed compensation coefficient is used to compensate for the speed of the motor. The motor's current speed is compensated according to the speed compensation coefficient so that the motor outputs a constant mass airflow.
2. The method according to claim 1, characterized in that, The step of determining the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature includes: Based on the preset functional relationship between ambient temperature and air density, the air density of the current environment is determined according to the current ambient temperature; The rotational speed compensation coefficient is obtained based on the ratio of the air density at a preset standard ambient temperature to the air density of the current environment.
3. The method according to claim 1, characterized in that, The step of compensating the current speed of the motor according to the speed compensation coefficient includes: Based on a predetermined speed compensation coefficient, a functional relationship between a preset standard speed and a target speed, the target speed is calculated according to the speed compensation coefficient and the preset standard speed. Set the current speed of the motor to the target speed.
4. The method according to claim 3, characterized in that, The speed compensation coefficient, the preset standard speed, and the target speed satisfy the following functional relationship: The target speed is the product of the speed compensation coefficient and the preset standard speed.
5. The method according to claim 3, characterized in that, The speed compensation coefficient, the functional relationship between the preset standard speed and the target speed are determined in the following way: Based on the functional relationships between mass air volume, volumetric air volume, and air density, as well as the functional relationship between volumetric air volume and rotational speed, determine the functional relationships between rotational speed, air density, and mass air volume. Under the condition of constant mass air volume, the speed compensation coefficient, the preset standard speed and the target speed are determined according to the functional relationship between speed, air density and mass air volume, and the speed compensation coefficient is related to the air density.
6. The method according to claim 1, characterized in that, The process of obtaining the current ambient temperature includes: Collect the voltage value of the temperature sensor set in the motor environment; The voltage value of the temperature sensor is converted from analog to digital to an AD value; The current ambient temperature is obtained by querying the AD value based on the preset mapping relationship between AD value and ambient temperature.
7. A motor speed compensation device, characterized in that, The device includes: Temperature acquisition unit, used to obtain the current ambient temperature; The compensation calculation unit is used to determine the speed compensation coefficient corresponding to the mass air volume output by the motor based on the current ambient temperature. The speed compensation coefficient is used to compensate for the speed of the motor. The compensation unit is used to compensate the current speed of the motor according to the speed compensation coefficient so that the motor outputs a constant mass air volume.
8. An electronic device, characterized in that, include: A memory and a processor are interconnected, the memory stores computer instructions, and the processor executes the computer instructions to perform the motor speed compensation method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the motor speed compensation method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes computer instructions, which are used to cause a computer to execute the motor speed compensation method according to any one of claims 1 to 6.