Method and device for controlling rotating speed of indoor fan, air conditioner and storage medium
By obtaining the sound signal of the indoor fan and determining the target speed value, the problem of insufficient flexibility and low accuracy in reducing indoor fan noise in the prior art is solved, and more efficient noise reduction is achieved.
Patent Information
- Application Number
- CN202310955163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-07-31
AI Technical Summary
The prior art has problems of insufficient flexibility and low accuracy by changing the motor structure to reduce indoor fan noise.
By obtaining the sound signal of the indoor fan, and obtaining the amplitude to be used based on the sound signal and the preset duration, combining the pre-acquisitioned gain coefficient, the target speed value is determined, and the speed of the indoor fan is adjusted to reduce noise.
It improves the flexibility and accuracy of reducing indoor fan noise, and is more flexible and accurate than the way of changing the motor structure.
Smart Images

Figure CN119436491A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air conditioning, and in particular to a method and device for controlling the rotation speed of an indoor fan, an air conditioner and a storage medium. Background Art
[0002] With the development of technology, air conditioners have become one of the necessities in people's daily lives. However, the noise corresponding to the indoor fan of the air conditioner will affect the user experience.
[0003] At present, in order to improve the noise corresponding to the indoor fan, the motor structure of the indoor fan can be changed to avoid the resonance point, so as to reduce the noise corresponding to the indoor fan.
[0004] However, the method of reducing the noise corresponding to the indoor fan by changing the motor structure has the problems of insufficient flexibility and low precision. Summary of the invention
[0005] The present invention provides a method, device, air conditioner and storage medium for controlling the rotation speed of an indoor fan, so as to solve the defects of insufficient flexibility and low precision in the prior art of reducing the corresponding noise of the indoor fan by changing the motor structure, and to improve the flexibility and precision of reducing the noise of the indoor fan.
[0006] The present invention provides a method for controlling the rotation speed of an indoor fan, the method comprising:
[0007] Obtaining a sound signal corresponding to the indoor fan, and obtaining an amplitude to be used based on the sound signal and a preset duration;
[0008] Determining a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient;
[0009] The rotation speed of the indoor fan is adjusted to the target rotation speed value to reduce the corresponding 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 a proportional gain, an integral gain, a differential gain and a speed gain;
[0011] 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 coefficient includes:
[0012] Determining a difference value to be used based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain;
[0013] A target rotation speed value is determined based on the rotation speed value to be used, the difference value to be used, and the rotation 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, 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, the time points included in the second time period are all later than the time points included in the third time period, and the first amplitude is lower than a preset amplitude;
[0015] The step of determining the difference value to be used based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain comprises:
[0016] determining a proportional value to be used based on the proportional gain, the first amplitude and the second amplitude;
[0017] Determining an integral value to be used based on the integral gain, the preset duration, and the first amplitude;
[0018] Determining a derivative value to be used based on the derivative gain, the preset time length, the first amplitude, the second amplitude, and the third amplitude;
[0019] The sum of the proportional value to be used, the integral value to be used, and the differential value to be used is used as the difference value 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 comprises:
[0021] taking the difference between the first amplitude and the second amplitude as a 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 time length, the first amplitude, the second amplitude and the third amplitude comprises:
[0024] taking the difference between the first amplitude and twice the second amplitude as the second difference;
[0025] Taking the sum of the second difference and the third amplitude as a first sum;
[0026] The product of the differential gain and the first sum value is used as a 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 the target speed value based on the speed value to be used, the difference to be used and the speed gain comprises:
[0028] The sum of the product of the difference value to be used and the rotation speed gain and the rotation speed value to be used is taken as a second sum;
[0029] When the second sum value is not a preset unavailable value, using the second sum value as the target speed value;
[0030] When the second sum is the unusable 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 the preset duration includes:
[0032] Dividing the sound signal into a plurality of sound sub-signals according to the preset duration;
[0033] For each segment of the sound sub-signal, an average value of the amplitudes corresponding to the segment of the sound sub-signal is used 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] An acquisition module, used to acquire a sound signal corresponding to the indoor fan, and acquire an amplitude to be used based on the sound signal and a preset duration;
[0036] A determination module, configured to determine a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient;
[0037] The regulating module is used to regulate the rotation speed of the indoor fan to the target rotation speed value so as to reduce the corresponding noise of the indoor fan.
[0038] The present invention also provides an air conditioner, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described methods for controlling the speed of an indoor fan are implemented.
[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 any of the above-described methods for controlling the speed of an indoor fan.
[0040] The method, device, air conditioner and storage medium for controlling the speed of an indoor fan provided by the present invention obtain a sound signal corresponding to the indoor fan, and based on the sound signal and a preset duration, obtain an amplitude to be used, based on the amplitude to be used, the speed value to be used, the preset duration and a pre-acquired gain coefficient, determine a target speed value, and adjust the speed of the indoor fan to the target speed value, so as to reduce the corresponding noise of the indoor fan.
[0041] In this way, the amplitude to be used can be obtained according to the collected sound signal, and then 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 coefficient, so that the speed of the indoor fan can be adjusted to the target speed value, thereby reducing the corresponding noise of the indoor fan. Compared with the method of changing the motor structure to reduce the corresponding noise of the indoor fan, the speed of the indoor fan can be adjusted more flexibly and accurately, which is equivalent to improving the flexibility and accuracy of reducing the noise of the indoor fan. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is one of the flow charts of the method for controlling the speed of the indoor fan provided by the present invention;
[0044] Figure 2 It is a structural schematic diagram of a device for controlling the speed of an indoor fan provided by the present invention;
[0045] Figure 3 It is a structural schematic diagram of the air conditioner provided by the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In order to improve the flexibility and accuracy of reducing indoor fan noise, the embodiments of the present invention provide a method, device, air conditioner, non-transitory computer-readable storage medium, and computer program product for controlling the speed of an indoor fan. Figure 1 A method for controlling the rotation speed of an indoor fan provided in an embodiment of the present invention is introduced.
[0048] like Figure 1 As shown, an embodiment of the present invention provides a method for controlling the speed of an indoor fan, the method comprising:
[0049] S101, obtaining a sound signal corresponding to an indoor fan, and obtaining an amplitude to be used based on the sound signal and a preset duration.
[0050] In order to control the speed of the indoor fan and reduce the noise of the indoor fan, a sound signal corresponding to the indoor fan can be obtained. In one embodiment, the sound signal corresponding to the indoor fan can be collected 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 requirements. For example, the preset duration can be 1s, 2s, 3s, etc., which is not specifically limited here.
[0052] S102, determining a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient.
[0053] After the amplitude to be used is obtained, 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 gain coefficient obtained in advance. The gain coefficient obtained in advance may include multiple ones.
[0054] That is to say, a preset algorithm may be used to perform calculation based on the amplitude to be used, the rotation speed value to be used, the preset duration and the pre-acquired gain coefficient, so as to obtain the target rotation speed value.
[0055] In one implementation, the target speed value may be obtained by calculating using a PID (Proportional Integral Derivative) algorithm based on the amplitude to be used, the speed value to be used, the preset duration, and a pre-acquired gain coefficient.
[0056] As an implementation mode, the speed value to be determined can be determined based on the amplitude to be used, the speed value to be used, the preset time length and the pre-acquired gain coefficient. When 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 value to be determined is not lower than the preset amplitude, the amplitude to be determined can be used as the amplitude to be used for the next calculation, and the above steps S101 to S102 are continued. The speed value to be used can be a speed value to be determined, or an unadjusted speed. The unadjusted speed is the operating speed before the speed of the indoor fan is adjusted to the target speed value.
[0058] S103, adjusting the rotation speed of the indoor fan to the target rotation speed value to reduce the corresponding noise of the indoor fan.
[0059] After the target speed value is obtained, the speed of the indoor fan can be adjusted to the target speed value, thereby reducing the noise corresponding to the indoor fan. It can be seen that in this embodiment, the amplitude to be used can be obtained according to the collected sound signal, and then the target speed value can be determined based on the amplitude to be used, the speed value to be used, the preset time and the pre-acquired gain coefficient, so that the speed of the indoor fan can be adjusted to the target speed value, thereby reducing the noise corresponding to the indoor fan. Compared with the method of changing the motor structure to reduce the noise corresponding to the indoor fan, the speed of the indoor fan can be adjusted more flexibly and accurately, which is equivalent to improving the flexibility and accuracy of reducing the noise of the indoor fan.
[0060] As an implementation of an embodiment of the present invention, the above-mentioned gain coefficient includes a proportional gain, an integral gain, a differential gain and a speed gain. The above-mentioned step of determining the target speed value based on the amplitude to be used, the speed value to be used, the preset time and the pre-acquired gain coefficient may include:
[0061] The difference value to be used is determined based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain.
[0062] The amplitudes to be used include 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, 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 corresponding to the first time period, the second time period, and the third time period are all preset durations. The first amplitude is lower than the preset amplitude. The preset amplitude can be determined according to actual usage requirements. The first amplitude is the amplitude with the smallest difference between the time to be used and the current time.
[0064] In one embodiment, the preset amplitude may be an amplitude set according to user identity information and user status information. Specifically, the amplitude to be adjusted may be determined according to the user identity information within the preset range of the air conditioner and the correspondence between the preset user and the amplitude, and then the adjustment mode to be used may be determined according to the user status information and the correspondence between the preset state and the adjustment mode, and the preset amplitude may be obtained by adjusting the amplitude to be adjusted using the adjustment mode to be used. The adjustment mode to be used includes an adjustment factor and a calculation method.
[0065] In another embodiment, the preset amplitude may be an amplitude set according to the room information and the air conditioner position information. Specifically, the amplitude to be adjusted may be determined according to the room information and the correspondence between the preset room and the amplitude, and then the adjustment mode to be used may be determined according to the air conditioner position information and the correspondence between the preset position and the adjustment mode. The preset amplitude may be obtained by adjusting the amplitude to be adjusted using the adjustment mode to be used. The adjustment mode to be used includes an adjustment factor and a calculation method.
[0066] The air conditioner position information may be the position relationship of the air conditioner relative to the user, or the position information of the air conditioner relative to the furniture in the room, and may be set specifically according to actual usage.
[0067] In order to facilitate understanding of the correspondence between the amplitude to be used and the time period, the correspondence between the amplitude to be used and the time period is explained below with reference to a specific example.
[0068] For example, the preset duration is 1s, the first time period is (n-1, n], and the first amplitude corresponding to the first time period 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 period is (n-3, n-2], and the third amplitude corresponding to the third time period is f n-2 .
[0069] The step of determining the difference value to be used based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain may include:
[0070] A proportional value to be used is determined based on the proportional gain, the first amplitude, and the second amplitude.
[0071] The step of determining the proportional value to be used based on the proportional gain, the first amplitude and the second amplitude may include:
[0072] The difference between the first amplitude and the second amplitude is taken as a 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 time length and the first amplitude. In one embodiment, the product of the integral gain, the preset time length and the first amplitude can be used as the integral value to be used.
[0075] A derivative value to be used is determined based on the derivative gain, the preset time length, the first amplitude, the second amplitude, and the third amplitude.
[0076] The step of determining the differential value to be used based on the differential gain, the preset time length, the first amplitude, the second amplitude and the third amplitude may include:
[0077] taking the difference between the first amplitude and twice the second amplitude as the second difference;
[0078] Taking the sum of the second difference and the third amplitude as a first sum;
[0079] The product of the differential gain and the sum value to be used is used as the differential value to be used.
[0080] The sum of the proportional value to be used, the integral value to be used, and the differential value to be used is used as the difference value to be used.
[0081] A target rotation speed value is determined based on the rotation speed value to be used, the difference value to be used, and the rotation speed gain.
[0082] The step of determining the target speed value based on the speed value to be used, the difference value to be used and the speed gain may include:
[0083] The product of the difference value to be used and the speed gain and the sum of the absolute value of the speed value to be used are used as the second sum value. After the second sum value is obtained, it can be determined whether the second sum value is a preset unavailable value.
[0084] When the second sum value is not a preset unusable value, it means that the second sum value is not a value that will have a significant impact on the user, so the second sum value is used as the target speed value.
[0085] In one embodiment, the unusable value may be a value pre-set according to the indoor fan characteristics and the human ear sensitive frequency. In another embodiment, the unusable value may also be a speed value that appears here greater than a preset number of occurrences threshold. That is to say, for an unregulated speed, when the number of occurrences of the unregulated speed is greater than the preset number of occurrences threshold, the value corresponding to the unregulated speed may be used as an unusable value. In yet another embodiment, the unusable value may be a value set according to a resonant sound or a point where the spectrum value is too high.
[0086] When the second sum is the unusable 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 the process of determining the target speed value, the target speed value has a preset adjustment range, and the speed gain can control the target speed value to be within the preset adjustment range. For example, the target speed value cannot be greater than the speed value to be used + 100 rpm, and the target speed value cannot be less than the speed value to be used - 100 rpm. It can be set according to actual use requirements and is not specifically limited here.
[0088] After adjusting the speed gain, 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 can be performed based on the adjusted speed gain, so that the second sum corresponding to the adjusted speed gain can be calculated. Then, it can be judged again whether the second suitable value is an unusable value. In this way, the resonance sound and the point where the spectrum value is too high can be avoided, so that the speed of the indoor fan can be dynamically changed.
[0089] When only the first amplitude is lower than the preset amplitude, the amount of calculation corresponding to the obtained target speed value is minimal, which can save computing resources. When both the first amplitude and the second amplitude are lower than the preset amplitude, the obtained target speed value is more accurate than when only the first amplitude is lower than the preset amplitude. When the first amplitude, the second amplitude and the third amplitude are all lower than the preset amplitude, the obtained target speed value is more accurate than when both the first amplitude and the second amplitude are lower than the preset amplitude.
[0090] It can be seen that in this embodiment, a more accurate target speed value can be determined, thereby improving the flexibility and accuracy of reducing the indoor fan noise.
[0091] In order to facilitate understanding of the method for determining the target speed value according to the embodiment of the present invention, the method for determining the target speed value according to the embodiment of the present invention is introduced below with reference to a formula.
[0092] Assume that the preset duration (sampling duration) is the unit duration t, and the proportional term is K p F k , where K p is the proportional gain, F k is the amplitude k to be used. The integral term is Among them, K i is the integral gain, F a is the amplitude a to be used. The differential term is K d (F k -F k-1 ) / t, where K d is the differential gain, F k-1 is the amplitude to be used k-1. When the amplitude to be used is lower than the preset amplitude, F k is the first amplitude. Correspondingly, F k-1 is the second amplitude.
[0093] The target speed value can be calculated using the PID algorithm using formula (1).
[0094]
[0095] Among them, I k The target speed value corresponding to the amplitude k to be used is collected.
[0096] According to the above formula (1), the difference in the rotation speed of the indoor fan corresponding to adjacent amplitudes to be processed 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] Among them, ΔI is the difference to be used, K p (F k -F k-1 ) is the ratio value to be used, F k is the first amplitude, F k-1 is the second amplitude. 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 is the third value.
[0100] When t is the unit 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 is the integral value to be used, K d (F k -2F k-1 +F k-2 ) is the third amplitude. F k -F k-1 is the first difference. k -2F k-1 is the second difference. k -2F k-1 +F k-2 is the first sum value.
[0103] According to the above formula (2) and formula (3), the target speed value can be as shown in formula (4).
[0104] I k =I k-1 +B|ΔI| (4)
[0105] Among them, B is the speed gain, I k-1 +B|ΔI| is the second sum. K p , K i , K d All are less than 1, K p , K i , K d The optimal solution obtained by the above formula (1) can be obtained according to the historical wind speed adjustment data. In the case of k = 1, I 1 is the unregulated speed, I 2 ,I 3 ,…,I k F is the speed value to be determined. 1 is the spectrum amplitude corresponding to time segment 1. Correspondingly, F k is the spectrum amplitude corresponding to time period k (amplitude k to be used). k is not less than 2. kWhen it is less than 0, it means the fan has stopped running.
[0106] When k=2, the target speed value can also be calculated using the above formula (2) or formula (3). Specifically, F k-2 and F k-1 Substitute the preset value, or substitute it as 0, which can be obtained according to the actual situation. Alternatively, I 2 , will I 2 Substitute the preset value.
[0107] It can be seen that in this embodiment, the target speed value can be calculated by formula (2) or formula (3), which is equivalent to being able to control the speed of the indoor fan through the PID algorithm based on the amplitude (spectrum value) to be used collected in real time.
[0108] As an implementation method of an embodiment of the present invention, in the process of collecting sound signals, the sound signal corresponding to the indoor fan can be obtained in real time. When the duration corresponding to the sound signal reaches a preset duration, the spectrum mean corresponding to the sound signal can be obtained, and the spectrum mean is used as the amplitude to be used. In this way, the amplitude to be used can be obtained in real time, which can improve the punctuality of the subsequent adjustment of the indoor fan speed.
[0109] In the process of collecting sound signals, sound signals with a duration longer than a preset duration may be collected each time. In this case, the step of obtaining the amplitude to be used based on the sound signal and the preset duration may include:
[0110] The sound signal is divided into a plurality of sound sub-signals according to the preset duration. In one embodiment, the sound sub-signals may be pre-processed so that the sound sub-signals that are obviously not within the amplitude range may be removed.
[0111] Furthermore, after preprocessing, for each segment of the sound sub-signal, the average value of the amplitude corresponding to the segment of the sound sub-signal is used as the amplitude to be used. In this way, the computing resources occupied by obtaining the amplitude to be used can be reduced.
[0112] It can be seen that in this embodiment, different methods can be used to obtain the amplitude to be used, thereby obtaining different effects, so that the speed of the indoor fan can be adjusted more flexibly and accurately later, which is equivalent to improving the flexibility and accuracy of reducing the noise of the indoor fan.
[0113] The device for controlling the speed of an indoor fan provided by the present invention is 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 each other.
[0114] like Figure 2As shown, an embodiment of the present invention provides a device for controlling the speed of an indoor fan, the device comprising:
[0115] An acquisition module 210 is used to acquire a sound signal corresponding to the indoor fan, and acquire an amplitude to be used based on the sound signal and a preset duration;
[0116] A determination module 220, configured to determine a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient;
[0117] The adjustment module 230 is used to adjust the rotation speed of the indoor fan to the target rotation speed value to reduce the corresponding noise of the indoor fan.
[0118] As an implementation of the embodiment of the present invention, the above-mentioned gain coefficient includes proportional gain, integral gain, differential gain and speed gain.
[0119] The determination module 220 may include:
[0120] A first determining unit, configured to determine a difference value to be used based on the amplitude to be used, the preset duration, the proportional gain, the integral gain and the differential gain;
[0121] The second determining unit is used to determine a target speed value based on the speed value to be used, the difference to be used and the speed gain.
[0122] As an implementation manner of an 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, 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, the time points included in the second time period are all later than the time points included in the third time period, and the first amplitude is lower than a preset amplitude.
[0123] The first determining unit includes:
[0124] a ratio determination subunit, configured to determine a ratio value to be used based on the ratio gain, the first amplitude and the second amplitude;
[0125] an integral determination subunit, configured to determine an integral value to be used based on the integral gain, the preset duration and the first amplitude;
[0126] a differential determination subunit, configured to determine a differential value to be used based on the differential gain, the preset time length, the first amplitude, the second amplitude, and the third amplitude;
[0127] The difference value determination subunit is used to use the sum of the to-be-used proportional value, the to-be-used integral value and the to-be-used differential value as the to-be-used difference value.
[0128] As an implementation manner of an embodiment of the present invention, the above-mentioned proportion determination subunit is specifically used to use the difference between the first amplitude and the second amplitude as the first difference; and use the product of the first difference and the proportional gain as the proportional value to be used.
[0129] As an implementation manner of an embodiment of the present invention, the differential determination subunit is specifically configured to take the difference between the first amplitude and twice the second amplitude as the second difference;
[0130] Taking the sum of the second difference and the third amplitude as a first sum;
[0131] The product of the differential gain and the first sum value is used as a differential value to be used.
[0132] As an implementation manner of an embodiment of the present invention, the second determining unit includes:
[0133] a sum value determination subunit, configured to take the sum of the product of the difference value to be used and the rotation speed gain and the rotation speed value to be used as a second sum value;
[0134] a first speed subunit, configured to use the second sum as the target speed value when the second sum is not a preset 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 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.
[0136] As an implementation of an embodiment of the present invention, the acquisition module 210 may include:
[0137] A division unit, configured to divide the sound signal into a plurality of sound sub-signals according to the preset duration;
[0138] The amplitude determination unit is used to take, for each segment of the sound sub-signal, an average value of the amplitudes corresponding to the segment of the sound sub-signal as the amplitude to be used.
[0139] Figure 3 An example of a physical structure diagram of an air conditioner is shown below. Figure 3As shown, the air conditioner may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute a method for controlling the speed of the indoor fan, the method comprising: obtaining a sound signal corresponding to the indoor fan, and obtaining an amplitude to be used based on the sound signal and a preset duration, determining a 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, and adjusting the speed of the indoor fan to the target speed value to reduce the noise corresponding to the indoor fan.
[0140] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0141] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for controlling the speed of an indoor fan provided by the above-mentioned methods, the method including: obtaining a sound signal corresponding to the indoor fan, and based on the sound signal and a preset duration, obtaining an amplitude to be used, based on the amplitude to be used, the speed value to be used, the preset duration and a pre-acquired gain coefficient, determining a target speed value, and adjusting the speed of the indoor fan to the target speed value to reduce the corresponding noise of the indoor fan.
[0142] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for controlling the speed of an indoor fan provided by the above-mentioned methods. The method includes: obtaining a sound signal corresponding to the indoor fan, and based on the sound signal and a preset duration, obtaining an amplitude to be used, based on the amplitude to be used, the speed value to be used, the preset duration and a pre-acquired gain coefficient, determining a target speed value, and adjusting the speed of the indoor fan to the target speed value to reduce the corresponding noise of the indoor fan.
[0143] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment 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, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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 comprises: Obtaining a sound signal corresponding to the indoor fan, and obtaining an amplitude to be used based on the sound signal and a preset duration; Determining a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient; The rotation speed of the indoor fan is adjusted to the target rotation speed value to reduce the corresponding noise of the indoor fan.
2. The method for controlling the speed of an indoor fan according to claim 1, characterized in that: The gain coefficients include proportional gain, integral gain, differential 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 coefficient includes: Determining a difference value to be used based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain; A target rotation speed value is determined based on the rotation speed value to be used, the difference value to be used, and the rotation speed gain.
3. The method for controlling the speed of an indoor fan according to claim 2, characterized in that: 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, 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, the time points included in the second time period are all later than the time points included in the third time period, and the first amplitude is lower than a preset amplitude; The step of determining the difference value to be used based on the amplitude to be used, the preset time length, the proportional gain, the integral gain and the differential gain comprises: determining a proportional value to be used based on the proportional gain, the first amplitude and the second amplitude; Determining an integral value to be used based on the integral gain, the preset duration, and the first amplitude; Determining a derivative value to be used based on the derivative gain, the preset time length, the first amplitude, the second amplitude, and the third amplitude; The sum of the proportional value to be used, the integral value to be used, and the differential value to be used is used as the difference value to be used.
4. The method for controlling the speed of an indoor fan according to claim 3, characterized in that: The step of determining a proportional value to be used based on the proportional gain, the first amplitude and the second amplitude comprises: taking the difference between the first amplitude and the second amplitude as a first difference; The product of the first difference and the proportional gain is used as the proportional value to be used.
5. The method for controlling the speed of an indoor fan according to claim 3, characterized in that: The step of determining the differential value to be used based on the differential gain, the preset time length, the first amplitude, the second amplitude and the third amplitude comprises: taking the difference between the first amplitude and twice the second amplitude as the second difference; Taking the sum of the second difference and the third amplitude as a first sum; The product of the differential gain and the first sum value is used as a differential value to be used.
6. The method for controlling the speed of an indoor fan according to any one of claims 2 to 5, characterized in that: The step of determining the target speed value based on the speed value to be used, the difference value to be used and the speed gain comprises: The sum of the product of the difference value to be used and the rotation speed gain and the rotation speed value to be used is taken as a second sum; When the second sum value is not a preset unavailable value, using the second sum value as the target speed value; When the second sum is the unusable 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.
7. The method for controlling the speed of an indoor fan according to any one of claims 1 to 5, characterized in that: The step of obtaining the amplitude to be used based on the sound signal and the preset duration includes: Dividing the sound signal into a plurality of sound sub-signals according to the preset duration; For each segment of the sound sub-signal, an average value of the amplitudes corresponding to the segment of the sound sub-signal is used as the amplitude to be used.
8. A device for controlling the speed of an indoor fan, characterized in that: The device comprises: An acquisition module, used to acquire a sound signal corresponding to the indoor fan, and acquire an amplitude to be used based on the sound signal and a preset duration; A determination module, configured to determine a target speed value based on the amplitude to be used, the speed value to be used, the preset time length and a pre-acquired gain coefficient; The regulating module is used to regulate the rotation speed of the indoor fan to the target rotation speed value so as to reduce the corresponding noise of the indoor fan.
9. An 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, wherein: When the processor executes the computer program, the steps of the method for controlling the speed of an indoor fan as described in any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for controlling the speed of an indoor fan as claimed in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Rotation speed control method and device
CN109780699A
Air conditioner control method and device, air conditioner, electronic equipment and storage medium
CN115076854A
Intelligent environment control device and system
CN202955822U
Air conditioner and outdoor unit of air conditioner
JP2004218936A