Method and device for controlling rotation speed of indoor fan, air conditioner and storage medium
By acquiring the sound signal of the indoor fan and using a PID algorithm to determine the target speed value, the problem of insufficient flexibility and low accuracy in noise reduction of the motor structure in the existing technology is solved, and more flexible and precise fan speed adjustment is achieved to reduce noise is realized.
Patent Information
- Application Number
- CN202310955163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2043-07-31
AI Technical Summary
Existing technologies that reduce indoor fan noise by changing the motor structure suffer from a lack of flexibility and precision.
By acquiring the sound signal of the indoor fan, the amplitude to be used is obtained based on the sound signal and preset duration, and the target speed value is determined by using proportional gain, integral gain and derivative gain, and the indoor fan speed is adjusted to reduce noise.
It improves the flexibility and precision of indoor fan noise control, enabling more accurate adjustment of fan speed to reduce noise.
Smart Images

Figure CN119436491B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air conditioning technology, and in particular to a method, apparatus, air conditioner, and storage medium for controlling the speed of an indoor fan. Background Technology
[0002] With the development of technology, air conditioning has become one of the necessities of people's daily lives. However, the noise from the indoor fan of an air conditioner can affect the user experience.
[0003] Currently, in order to improve the noise level of indoor fans, the motor structure of the indoor fan can be modified to avoid resonance points, thereby reducing the noise level of the indoor fan.
[0004] However, the method of reducing the noise of indoor fans by changing the motor structure has the problems of insufficient flexibility and low precision. Summary of the Invention
[0005] This invention provides a method, device, air conditioner, and storage medium for controlling the speed of an indoor fan, in order to solve the shortcomings of existing technologies that reduce indoor fan noise by changing the motor structure, which are characterized by insufficient flexibility and low precision, thereby improving the flexibility and precision of reducing indoor fan noise.
[0006] This invention provides a method for controlling the speed of an indoor fan, the method comprising:
[0007] Acquire the sound signal corresponding to the indoor fan, and based on the sound signal and a preset duration, obtain the amplitude to be used;
[0008] The target rotational speed is determined based on the amplitude to be used, the rotational speed to be used, the preset duration, and the pre-acquired gain coefficient.
[0009] The speed of the indoor fan is adjusted to the target speed value to reduce the noise of the indoor fan.
[0010] According to a method for controlling the speed of an indoor fan provided by the present invention, the gain coefficient includes proportional gain, integral gain, derivative gain and speed gain;
[0011] The step of determining the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient includes:
[0012] The difference to be used is determined based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain;
[0013] The target speed value is determined based on the speed value to be used, the difference to be used, and the speed gain.
[0014] According to a method for controlling the speed of an indoor fan provided by the present invention, the amplitude to be used includes a first amplitude, a second amplitude, and a third amplitude. The first amplitude corresponds to a first time period, the second amplitude corresponds to a second time period, and the third amplitude corresponds to a third time period. The time points included in the first time period are all later than the time points included in the second time period, and the time points included in the second time period are all later than the time points included in the third time period. The first amplitude is lower than a preset amplitude.
[0015] The step of determining the difference to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain includes:
[0016] The ratio value to be used is determined based on the ratio gain, the first amplitude, and the second amplitude;
[0017] The integral value to be used is determined based on the integral gain, the preset duration, and the first amplitude.
[0018] The differential value to be used is determined based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude;
[0019] The sum of the ratio value to be used, the integral value to be used, and the derivative value to be used is taken as the difference to be used.
[0020] According to a method for controlling the speed of an indoor fan provided by the present invention, the step of determining the proportional value to be used based on the proportional gain, the first amplitude, and the second amplitude includes:
[0021] The difference between the first amplitude and the second amplitude is taken as the first difference;
[0022] The product of the first difference and the proportional gain is used as the proportional value to be used.
[0023] According to a method for controlling the speed of an indoor fan provided by the present invention, the step of determining the differential value to be used based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude includes:
[0024] The difference between the first amplitude and twice the second amplitude is taken as the second difference;
[0025] The sum of the second difference and the third magnitude is taken as the first sum;
[0026] The product of the differential gain and the first sum is used as the differential value to be used.
[0027] According to a method for controlling the speed of an indoor fan provided by the present invention, the step of determining a target speed value based on the speed to be used, the difference between the speeds to be used and the speed gain includes:
[0028] The product of the difference to be used and the speed gain, and the sum of the product and the speed value to be used, are used as the second sum.
[0029] If the second sum is not a pre-set unavailable value, the second sum shall be used as the target rotational speed value;
[0030] If the second sum is the unavailable value, the speed gain is adjusted based on the difference to be used and the speed value to be used, and the step of taking the product of the difference to be used and the speed gain and the sum of the speed value to be used as the second sum is performed.
[0031] According to a method for controlling the speed of an indoor fan provided by the present invention, the step of obtaining the amplitude to be used based on the sound signal and a preset duration includes:
[0032] The sound signal is divided into multiple sound sub-signals according to the preset duration;
[0033] For each of the aforementioned sound sub-signals, the average value of the amplitude corresponding to that sound sub-signal is taken as the amplitude to be used.
[0034] The present invention also provides a device for controlling the speed of an indoor fan, the device comprising:
[0035] The acquisition module is used to acquire the sound signal corresponding to the indoor fan, and to acquire the amplitude to be used based on the sound signal and a preset duration;
[0036] The determination module is used to determine the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient;
[0037] The adjustment module is used to adjust the speed of the indoor fan to the target speed value in order to reduce the noise of the indoor fan.
[0038] The present invention also provides an air conditioner, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method for controlling the speed of an indoor fan as described above.
[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for controlling the speed of an indoor fan as described above.
[0040] The method, apparatus, air conditioner, and storage medium for controlling the speed of an indoor fan provided by the present invention acquire the sound signal corresponding to the indoor fan, and acquire the amplitude to be used based on the sound signal and a preset duration, and determine the target speed value based on the amplitude to be used, the speed value to be used, the preset duration, and a pre-acquired gain coefficient, thereby adjusting the speed of the indoor fan to the target speed value to reduce the noise of the indoor fan.
[0041] In this way, the amplitude to be used can be obtained from the collected sound signal. Then, based on the amplitude to be used, the speed to be used, the preset duration, and the pre-acquired gain coefficient, the target speed can be determined. This allows the indoor fan speed to be adjusted to the target speed, thereby reducing the noise of the indoor fan. Compared to changing the motor structure to reduce indoor fan noise, this method allows for more flexible and precise adjustment of the indoor fan speed, effectively improving the flexibility and accuracy of noise reduction. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0043] Figure 1 This is one of the flowcharts illustrating the method for controlling the speed of an indoor fan provided by the present invention;
[0044] Figure 2 This is a schematic diagram of the device for controlling the speed of an indoor fan provided by the present invention;
[0045] Figure 3 This is a schematic diagram of the structure of the air conditioner provided by the present invention. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0047] To improve the flexibility and precision of reducing indoor fan noise, embodiments of the present invention provide a method, apparatus, air conditioner, non-transitory computer-readable storage medium, and computer program product for controlling indoor fan speed. The following is in conjunction with... Figure 1 This invention provides a method for controlling the speed of an indoor fan.
[0048] like Figure 1 As shown, this embodiment of the invention provides a method for controlling the speed of an indoor fan, the method comprising:
[0049] S101, acquire the sound signal corresponding to the indoor fan, and acquire the amplitude to be used based on the sound signal and the preset duration.
[0050] To control the speed of the indoor fan and thus reduce its noise, the sound signal from the indoor fan can be acquired. In one embodiment, the sound signal from the indoor fan can be acquired by installing a microphone within a preset range of the indoor fan.
[0051] After obtaining the sound signal corresponding to the indoor fan, the amplitude to be used can be obtained based on the sound signal and the preset duration. The preset duration can be set according to actual usage needs, for example, the preset duration can be 1s, 2s, 3s, etc., without specific limitations here.
[0052] S102, based on the amplitude to be used, the rotational speed to be used, the preset duration, and the pre-acquired gain coefficient, determine the target rotational speed value.
[0053] After obtaining the amplitude to be used, the target speed value can be determined based on the amplitude to be used, the speed value to be used, the preset duration, and the pre-acquired gain coefficients. The pre-acquired gain coefficients can include multiple coefficients.
[0054] In other words, the target speed value can be obtained by using a pre-set algorithm based on the amplitude to be used, the speed value to be used, the preset duration, and the pre-acquired gain coefficient.
[0055] In one implementation, the target speed value can be calculated using a PID (Proportional Integral Derivative) algorithm based on the amplitude to be used, the speed value to be used, the preset duration, and the pre-acquired gain coefficient.
[0056] As one implementation method, the speed value to be determined can be determined based on the amplitude to be used, the speed value to be used, the preset duration, and the pre-acquired gain coefficient. If the first amplitude corresponding to the speed value to be determined is lower than the preset amplitude, the speed value to be determined can be used as the target speed value.
[0057] If the first amplitude corresponding to the speed to be determined is not lower than the preset amplitude, the amplitude to be determined can be used as the amplitude to be used in the next calculation, and the above steps S101-S102 can continue to be executed. The speed to be used can be the speed to be determined, or it can be the unadjusted speed. The unadjusted speed is the operating speed before the indoor fan speed is adjusted to the target speed value.
[0058] S103, adjust the speed of the indoor fan to the target speed value to reduce the noise of the indoor fan.
[0059] After obtaining the target speed value, the indoor fan speed can be adjusted to the target speed value, thereby reducing the noise of the indoor fan. As can be seen in this embodiment, the amplitude to be used can be obtained based on the collected sound signal. Then, based on the amplitude to be used, the speed to be used, the preset duration, and the pre-obtained gain coefficient, the target speed value can be determined. This allows the indoor fan speed to be adjusted to the target speed value, thereby reducing the noise of the indoor fan. Compared to changing the motor structure to reduce the noise of the indoor fan, this method allows for more flexible and precise adjustment of the indoor fan speed, effectively improving the flexibility and accuracy of noise reduction.
[0060] As one embodiment of the present invention, the aforementioned gain coefficients include proportional gain, integral gain, derivative gain, and speed gain. The step of determining the target speed value based on the amplitude to be used, the speed value to be used, the preset duration, and the pre-acquired gain coefficients may include:
[0061] The difference to be used is determined based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain.
[0062] The amplitude to be used includes a first amplitude, a second amplitude, and a third amplitude. The first amplitude corresponds to a first time period, the second amplitude corresponds to a second time period, and the third amplitude corresponds to a third time period. The time points included in the first time period are all later than the time points included in the second time period, and the time points included in the second time period are all later than the time points included in the third time period.
[0063] The durations of the first, second, and third time periods are all preset. The first amplitude is lower than the preset amplitude. The preset amplitude can be determined based on actual usage requirements. The first amplitude is the amplitude with the smallest difference between the current time and the available amplitudes.
[0064] In one implementation, the preset amplitude can be a value set based on user identity information and user status information. Specifically, the amplitude to be adjusted can be determined based on the user identity information within the preset range of the air conditioner and a pre-set correspondence between users and amplitudes. Then, based on the user status information and a pre-set correspondence between status and adjustment methods, the adjustment method to be used can be determined. Adjusting the amplitude to be adjusted using the adjustment method to be used yields the preset amplitude. The adjustment method to be used includes an adjustment factor and a calculation method.
[0065] In another implementation, the preset amplitude can be a value set based on room information and air conditioner location information. Specifically, the amplitude to be adjusted can be determined based on room information and a pre-set correspondence between rooms and amplitudes. Then, the adjustment method to be used can be determined based on air conditioner location information and a pre-set correspondence between location and adjustment method. Adjusting the amplitude to be adjusted using the adjustment method to be used yields the preset amplitude. The adjustment method to be used includes an adjustment factor and a calculation method.
[0066] The air conditioner location information can be the air conditioner's position relative to the user, or the air conditioner's position relative to furniture in the room. The specific settings can be configured according to actual usage.
[0067] To facilitate understanding of the correspondence between the amplitude to be used and the time period, the following example illustrates the correspondence between the amplitude to be used and the time period.
[0068] For example, the preset duration is 1 second, the first time interval is (n-1, n], and the first amplitude corresponding to the first time interval is f. n The second time period is (n-2, n-1], and the second amplitude corresponding to the second time period is f. n-1 The third time interval is (n-3, n-2], and the third amplitude corresponding to the third time interval is f. n-2 .
[0069] The steps described above for determining the difference to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain may include:
[0070] The ratio value to be used is determined based on the ratio gain, the first amplitude, and the second amplitude.
[0071] The above-mentioned step of determining the ratio value to be used based on the ratio gain, the first amplitude, and the second amplitude may include:
[0072] The difference between the first amplitude and the second amplitude is taken as the first difference.
[0073] The product of the first difference and the proportional gain is used as the proportional value to be used.
[0074] The integral value to be used is determined based on the integral gain, the preset duration, and the first amplitude. In one embodiment, the product of the integral gain, the preset duration, and the first amplitude can be used as the integral value to be used.
[0075] The differential value to be used is determined based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude.
[0076] The above-mentioned step of determining the differential value to be used based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude may include:
[0077] The difference between the first amplitude and twice the second amplitude is taken as the second difference;
[0078] The sum of the second difference and the third magnitude is taken as the first sum;
[0079] The product of the differential gain and the sum of values to be used is taken as the differential value to be used.
[0080] The sum of the ratio value to be used, the integral value to be used, and the derivative value to be used is taken as the difference to be used.
[0081] The target speed value is determined based on the speed value to be used, the difference to be used, and the speed gain.
[0082] The steps described above for determining the target speed value based on the speed to be used, the difference to be used, and the speed gain may include:
[0083] The product of the difference to be used and the speed gain, plus the sum of the absolute value of the speed to be used, is taken as the second sum. After obtaining the second sum, it can be determined whether the second sum is a pre-set unusable value.
[0084] If the second sum is not a pre-set unavailable value, it means that the second sum is not a value that will have a significant impact on the user, so the second sum is used as the target speed value.
[0085] In one implementation, the unavailable value can be a value preset based on the characteristics of the indoor fan and the sensitive frequencies of the human ear. In another implementation, the unavailable value can also be the rotational speed value at which this occurs more than a preset occurrence threshold. That is, for the unadjusted rotational speed, if the number of occurrences of the unadjusted rotational speed exceeds a preset occurrence threshold, the value corresponding to the unadjusted rotational speed can be designated as an unavailable value. In yet another implementation, the unavailable value can be a value set based on resonance tone or excessively high spectral values.
[0086] If the second sum is the unavailable value, the speed gain is adjusted based on the difference to be used and the speed value to be used, and the step of taking the product of the difference to be used and the speed gain and the sum of the speed value to be used as the second sum is performed.
[0087] In determining the target speed value, there is a preset adjustment range for the target speed value. The speed gain can control the target speed value to stay within the preset adjustment range. For example, the target speed value cannot be greater than the speed to be used +100 rpm, and the target speed value cannot be less than the speed to be used -100 rpm. Specific settings can be made according to actual usage requirements, and no specific limitations are made here.
[0088] After adjusting the speed gain, a second sum can be calculated by multiplying the product of the difference to be used and the speed gain, and then adding the product to the speed value to be used. This allows the calculation of the second sum corresponding to the adjusted speed gain. It can then be used to determine whether the second sum is an unusable value. This avoids resonance noise and excessively high spectral values, thus enabling dynamic adjustment of the indoor fan speed.
[0089] When only the first amplitude is lower than the preset amplitude, the computational load for obtaining the target speed value is minimized, saving computational resources. When both the first and second amplitudes are lower than the preset amplitudes, the obtained target speed value is more accurate than when only the first amplitude is lower than the preset amplitude. When the first, second, and third amplitudes are all lower than the preset amplitudes, the obtained target speed value is more accurate than when both the first and second amplitudes are lower than the preset amplitude.
[0090] As can be seen, in this embodiment, a more accurate target rotation speed value can be determined, thereby improving the flexibility and accuracy of reducing indoor fan noise.
[0091] To facilitate understanding of the method for determining the target rotational speed value in the embodiments of the present invention, the method for determining the target rotational speed value in the embodiments of the present invention will be described below in conjunction with the formula.
[0092] Assuming the preset duration (sampling duration) is a unit duration t, and the proportion term is K. p F k , where K p For proportional gain, F k Let k be the amplitude to be used. The integral term is... Among them, K i For integral gain, F a Let 'a' be the amplitude to be used. The differential term is K. d (F k -F k-1 ) / t, where K d For differential gain, F k-1 The amplitude to be used is k-1. If the amplitude to be used is lower than the preset amplitude, F... k This is the first value. Correspondingly, F k-1 This is the second value.
[0093] The target speed value can be calculated using the PID algorithm using formula (1).
[0094]
[0095] Among them, I k To acquire the target rotational speed value corresponding to the amplitude k to be used.
[0096] According to the above formula (1), the difference in the rotational speed of the indoor fan corresponding to adjacent amplitude values can be expressed as shown in formula (2).
[0097] ΔI=I k -I k-1
[0098] ΔI=K p (F k -F k-1 )+K i F k t+K d (F k -2F k-1 +F k-2 ) / t (2)
[0099] Where ΔI is the difference to be used, and K p (F k -F k-1 ) represents the ratio to be used, F k For the first amplitude, F k-1 This is the second value. K i F k t is the integral value to be used, K d (F k -2F k-1 +F k-2) / t is the third amplitude, F k-2 This is the third value.
[0100] When t is a unit of time, the above formula (2) can be simplified to formula (3).
[0101] ΔI=K p (F k -F k-1 )+K i F k +K d (F k -2F k-1 +F k-2 (3)
[0102] Accordingly, K i F k K is the integral value to be used. d (F k -2F k-1 +F k-2 () is the third value. F k -F k-1 This is the first difference. F k -2F k-1 This is the second difference. F k -2F k-1 +F k-2 This is the first sum.
[0103] According to the above formulas (2) and (3), the target rotational speed value can be as shown in formula (4).
[0104] I k =I k-1 +B|ΔI| (4)
[0105] Where B is the speed gain, I k-1 +B|ΔI| is the second sum. K p K i K d All less than 1, K p K i K d The optimal solution can be obtained using formula (1) above, based on historical wind speed adjustment data. When k=1, I1 is the unadjusted rotational speed, and I2, I3, ..., I... k The rotational speed value to be determined is given by F1, which is the spectral amplitude corresponding to time period 1. Accordingly, F... k This represents the spectral amplitude (amplitude k to be used) corresponding to time period k. k is not less than 2. In I k A value less than 0 indicates that the fan has stopped operating.
[0106] When k=2, the target rotational speed can also be calculated using the above formula (2) or formula (3). Specifically, F can be used to calculate the target rotational speed. k-2 and F k-1 You can substitute a preset value, or substitute 0, depending on the actual situation. Alternatively, you can omit the calculation of I2 and substitute the preset value into I2.
[0107] As can be seen, in this embodiment, the target rotational speed can be calculated by formula (2) or formula (3), which is equivalent to being able to control the rotational speed of the indoor fan by using a PID algorithm based on the real-time collected amplitude (spectrum value) to be used.
[0108] In one embodiment of the present invention, during the acquisition of sound signals, the sound signal corresponding to the indoor fan can be acquired in real time. Whenever the duration of the sound signal reaches a preset duration, the average spectrum value of the sound signal can be acquired and used as the amplitude to be used. This method enables real-time acquisition of the amplitude to be used, improving the timeliness of subsequent adjustments to the indoor fan speed.
[0109] During the acquisition of sound signals, it is also possible to acquire sound signals with a duration longer than a preset duration each time. In this case, the step of obtaining the amplitude to be used based on the sound signal and the preset duration can include:
[0110] The sound signal is divided into multiple sound sub-signals according to the preset duration. In one embodiment, the sound sub-signals can be preprocessed to remove sound sub-signals that clearly do not conform to the amplitude range.
[0111] Furthermore, after preprocessing, for each of the aforementioned sound sub-signals, the average amplitude of the corresponding sound sub-signal is used as the amplitude to be used. In this way, the computational resources required to obtain the amplitude to be used can be reduced.
[0112] As can be seen, in this embodiment, different methods can be used to obtain the amplitude to be used, thereby achieving different effects. This allows for more flexible and precise adjustment of the indoor fan speed, which is equivalent to improving the flexibility and accuracy of reducing indoor fan noise.
[0113] The device for controlling the speed of an indoor fan provided by the present invention will be described below. The device for controlling the speed of an indoor fan described below and the method for controlling the speed of an indoor fan described above can be referred to in correspondence.
[0114] like Figure 2 As shown, an embodiment of the present invention provides a device for controlling the speed of an indoor fan, the device comprising:
[0115] The acquisition module 210 is used to acquire the sound signal corresponding to the indoor fan, and to acquire the amplitude to be used based on the sound signal and the preset duration;
[0116] The determining module 220 is used to determine the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient;
[0117] The adjustment module 230 is used to adjust the speed of the indoor fan to the target speed value in order to reduce the noise of the indoor fan.
[0118] As one embodiment of the present invention, the above-mentioned gain coefficients include proportional gain, integral gain, derivative gain and speed gain.
[0119] The aforementioned determining module 220 may include:
[0120] The first determining unit is used to determine the difference to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain;
[0121] The second determining unit is used to determine the target speed value based on the speed value to be used, the difference to be used, and the speed gain.
[0122] As one embodiment of the present invention, the amplitude to be used includes a first amplitude, a second amplitude, and a third amplitude. The first amplitude corresponds to a first time period, the second amplitude corresponds to a second time period, and the third amplitude corresponds to a third time period. The time points included in the first time period are all later than the time points included in the second time period, and the time points included in the second time period are all later than the time points included in the third time period. The first amplitude is lower than a preset amplitude.
[0123] The aforementioned first determining unit includes:
[0124] A ratio determination subunit is used to determine the ratio value to be used based on the ratio gain, the first amplitude, and the second amplitude;
[0125] An integral determination subunit is used to determine the integral value to be used based on the integral gain, the preset duration, and the first amplitude.
[0126] The differential determination subunit is used to determine the differential value to be used based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude;
[0127] The difference determination subunit is used to take the sum of the ratio value to be used, the integral value to be used, and the differential value to be used as the difference value to be used.
[0128] As one embodiment of the present invention, the above-mentioned ratio determination subunit is specifically used to take the difference between the first amplitude and the second amplitude as the first difference; and to take the product of the first difference and the ratio gain as the ratio value to be used.
[0129] As one embodiment of the present invention, the above-mentioned differential determination subunit is specifically used to take the difference between the first amplitude and twice the second amplitude as the second difference;
[0130] The sum of the second difference and the third magnitude is taken as the first sum;
[0131] The product of the differential gain and the first sum is used as the differential value to be used.
[0132] As one embodiment of the present invention, the second determining unit includes:
[0133] The sum determination subunit is used to take the product of the difference to be used and the speed gain and the sum of the speed value to be used as the second sum;
[0134] The first speed subunit is used to take the second sum as the target speed value when the second sum is not a pre-set unavailable value;
[0135] The second speed subunit is used to adjust the speed gain based on the difference to be used and the speed value to be used when the second sum is the unavailable value, call the sum determination subunit, and execute the step of using the sum of the product of the difference to be used and the speed gain and the speed value to be used as the second sum.
[0136] As one embodiment of the present invention, the acquisition module 210 may include:
[0137] A segmentation unit is used to divide the sound signal into multiple sound sub-signals according to the preset duration;
[0138] An amplitude determination unit is used to take the average amplitude of each segment of the sound sub-signal as the amplitude to be used.
[0139] Figure 3 An example is a schematic diagram of the physical structure of an air conditioner, such as... Figure 3As shown, the air conditioner may include a processor 310, a communication interface 320, a memory 330, and a communication bus 340. The processor 310, communication interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can call logic instructions in the memory 330 to execute a method for controlling the indoor fan speed. This method includes: acquiring a sound signal corresponding to the indoor fan; acquiring a target amplitude based on the sound signal and a preset duration; determining a target speed value based on the target amplitude, the target speed value, the preset duration, and a pre-acquired gain coefficient; and adjusting the indoor fan speed to the target speed value to reduce the noise of the indoor fan.
[0140] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0141] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the method for controlling the speed of an indoor fan provided by the above methods, the method including: acquiring a sound signal corresponding to the indoor fan, and acquiring a target amplitude based on the sound signal and a preset duration, determining a target speed value based on the target amplitude, the target speed value, the preset duration and a pre-acquired gain coefficient, and adjusting the speed of the indoor fan to the target speed value, so as to reduce the noise corresponding to the indoor fan.
[0142] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements a method for controlling the speed of an indoor fan provided by the above methods. The method includes: acquiring a sound signal corresponding to the indoor fan, acquiring a target amplitude based on the sound signal and a preset duration, determining a target speed value based on the target amplitude, the target speed value, the preset duration, and a pre-acquired gain coefficient, and adjusting the speed of the indoor fan to the target speed value to reduce the noise corresponding to the indoor fan.
[0143] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0144] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling the speed of an indoor fan, characterized in that, The method includes: Acquire the sound signal corresponding to the indoor fan, and based on the sound signal and a preset duration, obtain the amplitude to be used; The target rotational speed is determined based on the amplitude to be used, the rotational speed to be used, the preset duration, and the pre-acquired gain coefficient. The speed of the indoor fan is adjusted to the target speed value in order to reduce the noise of the indoor fan. The gain coefficients include proportional gain, integral gain, derivative gain, and rotational speed gain; The step of determining the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient includes: The difference to be used is determined based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain; The target speed value is determined based on the speed value to be used, the difference to be used, and the speed gain. The amplitude to be used includes a first amplitude, a second amplitude, and a third amplitude. The first amplitude corresponds to a first time period, the second amplitude corresponds to a second time period, and the third amplitude corresponds to a third time period. The time points included in the first time period are all later than the time points included in the second time period, and the time points included in the second time period are all later than the time points included in the third time period. The first amplitude is lower than a preset amplitude. The step of determining the difference to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain includes: The ratio value to be used is determined based on the ratio gain, the first amplitude, and the second amplitude; The integral value to be used is determined based on the integral gain, the preset duration, and the first amplitude. The differential value to be used is determined based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude; The sum of the ratio value to be used, the integral value to be used, and the derivative value to be used is taken as the difference to be used.
2. The method for controlling the speed of an indoor fan according to claim 1, characterized in that, The step of determining the ratio value to be used based on the ratio gain, the first amplitude, and the second amplitude includes: The difference between the first amplitude and the second amplitude is taken as the first difference; The product of the first difference and the proportional gain is used as the proportional value to be used.
3. The method for controlling the speed of an indoor fan according to claim 1, characterized in that, The step of determining the differential value to be used based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude includes: The difference between the first amplitude and twice the second amplitude is taken as the second difference; The sum of the second difference and the third magnitude is taken as the first sum; The product of the differential gain and the first sum is used as the differential value to be used.
4. The method for controlling the speed of an indoor fan according to any one of claims 1-3, characterized in that, The step of determining the target speed value based on the speed to be used, the difference to be used, and the speed gain includes: The product of the difference to be used and the speed gain, and the sum of the product and the speed value to be used, are used as the second sum. If the second sum is not a pre-set unavailable value, the second sum shall be used as the target rotational speed value; If the second sum is the unavailable value, the speed gain is adjusted based on the difference to be used and the speed value to be used, and the step of taking the product of the difference to be used and the speed gain and the sum of the speed value to be used as the second sum is performed.
5. The method for controlling the speed of an indoor fan according to any one of claims 1-3, characterized in that, The step of obtaining the amplitude to be used based on the sound signal and a preset duration includes: The sound signal is divided into multiple sound sub-signals according to the preset duration; For each of the aforementioned sound sub-signals, the average value of the amplitude corresponding to that sound sub-signal is taken as the amplitude to be used.
6. A device for controlling the speed of an indoor fan, characterized in that, The device includes: The acquisition module is used to acquire the sound signal corresponding to the indoor fan, and to acquire the amplitude to be used based on the sound signal and a preset duration; The determination module is used to determine the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient; An adjustment module is used to adjust the speed of the indoor fan to the target speed value in order to reduce the noise of the indoor fan. The gain coefficients include proportional gain, integral gain, derivative gain, and rotational speed gain; The step of determining the target rotational speed value based on the amplitude to be used, the rotational speed value to be used, the preset duration, and the pre-acquired gain coefficient includes: The difference to be used is determined based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain; The target speed value is determined based on the speed value to be used, the difference to be used, and the speed gain. The amplitude to be used includes a first amplitude, a second amplitude, and a third amplitude. The first amplitude corresponds to a first time period, the second amplitude corresponds to a second time period, and the third amplitude corresponds to a third time period. The time points included in the first time period are all later than the time points included in the second time period, and the time points included in the second time period are all later than the time points included in the third time period. The first amplitude is lower than a preset amplitude. The step of determining the difference to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain, and the derivative gain includes: The ratio value to be used is determined based on the ratio gain, the first amplitude, and the second amplitude; The integral value to be used is determined based on the integral gain, the preset duration, and the first amplitude. The differential value to be used is determined based on the differential gain, the preset duration, the first amplitude, the second amplitude, and the third amplitude; The sum of the ratio value to be used, the integral value to be used, and the derivative value to be used is taken as the difference to be used.
7. An air conditioner, the air conditioner comprising an indoor fan, the indoor fan comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method for controlling the speed of an indoor fan as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for controlling the speed of an indoor fan as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Rotation speed control method and device
CN109780699A
Intelligent environment control device and system
CN202955822U