Control method, controller, storage medium, and fan system for a fan

CN117803592BActive Publication Date: 2026-09-08GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410061032.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2026-09-08
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

[0004]本申请的主要目的在于提供一种风扇的控制方法、控制器、存储介质和风扇系统,以至少解决现有方案的风扇实现自动对人进行定位吹风的成本较高的问题

Benefits of technology

[0016] According to another aspect of this application, a fan system is provided, comprising: a controller, a fan, and an infrared sensor, wherein the infrared sensor is mounted behind the blades of the fan, and the fan and the infrared sensor communicate with the controller, the controller being used to execute any of the fan control methods described herein.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117803592B_ABST
    Figure CN117803592B_ABST
Patent Text Reader

Abstract

The application provides a fan control method, a controller, a storage medium and a fan system. The method is installed behind the blade by an infrared sensor. The purpose is to rotate the blade, alternately block infrared radiation, and make the signal received by the infrared sensor become an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to find the target person. According to the change trend of the length of the square wave of the first square wave waveform diagram, one of the following is performed: controlling the fan to keep the current steering operation, controlling the fan to operate in the opposite direction of the current steering direction of the fan, and controlling the fan to stop the steering operation, so that the fan can automatically align the target person to blow. Since only the infrared sensor with a single function is used, the cost is lower than that of the existing scheme, thereby solving the problem that the cost of the fan in the existing scheme for realizing automatic positioning and blowing of the target person is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of fan technology, and more specifically, to a fan control method, controller, storage medium, and fan system. Background Technology

[0002] Traditionally, fans lacked positioning capabilities, either oscillating at a fixed angle or blowing air in a fixed spot, often resulting in a less than ideal user experience. While some fans have adopted infrared positioning technology, the high cost of the infrared sensors used for human recognition makes high-priced fans unpopular, while low-priced fans cannot cover their costs.

[0003] The cost of implementing automatic positioning and blowing air to people using existing fan solutions is relatively high. Summary of the Invention

[0004] The main objective of this application is to provide a fan control method, controller, storage medium, and fan system to at least solve the problem of high cost in existing fan solutions for automatically positioning and blowing air onto people.

[0005] To achieve the above objectives, according to one aspect of this application, a fan control method is provided, applied to a controller in a fan system, the fan system further including a fan and an infrared sensor, the infrared sensor being mounted behind the fan blades, the fan and the infrared sensor communicating with the controller respectively, the method comprising: receiving a first square wave waveform transmitted by the infrared sensor, the first square wave waveform being a square wave waveform received by the infrared sensor after being emitted by the infrared sensor and reflected back to the infrared sensor from a first preset time to a current time, the first preset time being prior to the current time, the first square wave waveform including multiple square waves; and performing one of the following actions based at least on the changing trend of the length of the square waves in the first square wave waveform: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation, and controlling the fan to stop rotating, wherein controlling the fan to stop rotating represents stopping the fan from turning left or right while maintaining the rotation of the fan blades.

[0006] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions may be performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, or controlling the fan to stop rotating. This includes: controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold; controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is increasing; controlling the fan to maintain its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold; and controlling the fan to stop rotating when the changing trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length.

[0007] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions is performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, and controlling the fan to stop rotating. This includes: when the changing trend of the length of the square wave in the first square wave waveform is decreasing, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; and when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation. Under the condition of the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between each adjacent square wave in the first square wave waveform is less than the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to maintain the current rotation; when the length of the square wave in the first square wave waveform changes in a trend that is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the peak threshold, the fan is controlled to stop rotating.

[0008] Optionally, after controlling the fan to maintain its current rotation or controlling the fan to operate in the opposite direction to its current rotation, the method further includes: receiving a second square wave waveform sent by the infrared sensor, the second square wave waveform being a square wave waveform received by the infrared sensor from a second preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor, the second preset time being after the first preset time, and the second square wave waveform including multiple square waves; controlling the fan to stop rotating when the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold.

[0009] Optionally, the method further includes: when the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, repeatedly executing the receiving step and the processing step until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing, wherein the receiving step is the step of receiving the first square wave waveform sent by the infrared sensor, and the processing step is the step of performing a target operation at least according to the trend of the length of the square wave in the first square wave waveform, wherein the target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop rotating.

[0010] Optionally, during the repeated execution of the receiving and processing steps, the method further includes: if, after a first preset time period, the change trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length, then the fan is controlled to stop working.

[0011] Optionally, after controlling the fan to stop rotating, the method further includes: after a second preset time period, controlling the fan to start oscillating.

[0012] According to another aspect of this application, a controller is provided, the controller comprising:

[0013] The first receiving unit is used to receive a first square wave waveform sent by an infrared sensor. The first square wave waveform is a square wave waveform received by the infrared sensor from a first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is located before the current time. The first square wave waveform includes multiple square waves.

[0014] The first processing unit is configured to perform one of the following actions based at least on the changing trend of the length of the square wave in the first square wave waveform: controlling the fan to maintain its current rotation operation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop its rotation operation, wherein controlling the fan to stop its rotation operation represents stopping the fan from turning left or right while maintaining the rotation of the fan blades.

[0015] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform any of the fan control methods described above.

[0016] According to another aspect of this application, a fan system is provided, comprising: a controller, a fan, and an infrared sensor, wherein the infrared sensor is mounted behind the blades of the fan, and the fan and the infrared sensor communicate with the controller, the controller being used to execute any of the fan control methods described herein.

[0017] Using the technical solution of this application, an infrared sensor is installed behind the blades. The purpose is to make the blades rotate and alternately block infrared radiation, so that the signal received by the infrared sensor becomes an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to detect the target person. By at least according to the changing trend of the length of the square wave in the first square wave waveform, one of the following is executed: controlling the fan to maintain the current rotation, controlling the fan to operate in the opposite direction to the current rotation, or controlling the fan to stop rotating, so that the fan can automatically blow air at the target person. Since only a relatively simple infrared sensor is used, the cost is lower than that of existing solutions, thereby solving the problem of high cost for existing solutions to achieve automatic positioning and blowing air to people. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 A schematic flowchart of a fan control method according to an embodiment of this application is shown;

[0020] Figure 2 A schematic flowchart of another fan control method provided according to an embodiment of this application is shown;

[0021] Figure 3A structural block diagram of a controller provided according to an embodiment of this application is shown. Detailed Implementation

[0022] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0025] As described in the background section, traditional fans lack positioning capabilities, either oscillating at a fixed angle or blowing air to a specific point, often resulting in a less than user-friendly experience. Although some fans employ infrared positioning technology, the high cost of infrared sensors used for human identification makes high-priced fans unpopular, while low-priced fans cannot cover the cost. To address the issue of high costs associated with automatic positioning and airflow to people in existing fan solutions, embodiments of this application provide a fan control method, controller, storage medium, and fan system.

[0026] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0027] This embodiment provides a fan control method, which is applied to a controller in a fan system. The fan system also includes a fan and an infrared sensor. The infrared sensor is installed behind the fan blades (the purpose of installing the infrared sensor behind the blades is to allow the blades to rotate and alternately block infrared radiation, so that the signal received by the infrared sensor becomes an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to detect target personnel. The fan blades should be designed to be narrow in the center and wide at the periphery, and the transition should be uniform, that is, the transition from the middle rotor to the edge should be uniform from small to large, without any sudden changes in width. The shape does not matter; the purpose is to ensure that the square wave is formed evenly and to eliminate interference). The fan and the infrared sensor communicate with the controller. It should be noted that the steps shown in the flowchart can be executed in a computer system such as a set of computer-executable instructions. Although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than that shown here.

[0028] Figure 1 This is a schematic flowchart illustrating a fan control method according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0029] Step S101: Receive the first square wave waveform sent by the infrared sensor. The first square wave waveform is the square wave waveform received by the infrared sensor from the first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is before the current time. The first square wave waveform includes multiple square waves.

[0030] Specifically, because the blades are designed with inconsistent widths from the inside out, when infrared light shines on the inner blades, the path is shorter and the square wave length is also shorter, while when it shines on the outer blades, the path is longer and the square wave length is also longer. Since the fan speed is basically the same at each gear, the sensor receives continuous square wave signals of varying heights and lengths, and uses this set of square waves to determine the target's location.

[0031] The principle of finding target personnel:

[0032] When the target personnel turn on the fan to automatically locate the target, the fan swings left and right, and the sensor continuously transmits and receives radiation intensity, constantly monitoring this set of square wave signals. When the fan sweeps through a high and continuous square wave during its swing, it indicates that there is a high-temperature object and that is the direction to be aligned. At this time, the length of the square wave and the length of the previous square waves are obtained. If the length is long and the length of the subsequent square waves gradually increases, it means that the fan is moving away from the target, and the swing needs to be controlled to rotate in the opposite direction. When the radiation intensity is about the same as the target intensity and the wave length is the shortest, it means that the target has been aligned. Conversely, if the length is short and the length of the subsequent square waves gradually decreases, it means that the fan is aligning with the target. The fan is controlled to swing gradually until the radiation intensity is about the same as the target intensity and the wave length is the shortest, indicating that the target has been aligned. The target is determined by the square wave intensity and the direction of the target is determined by the change in the square wave length.

[0033] Step S102, at least based on the changing trend of the length of the square wave in the first square wave waveform diagram, perform one of the following: control the fan to maintain its current rotation operation, control the fan to operate in the opposite direction to the current rotation of the fan, or control the fan to stop its rotation operation, wherein controlling the fan to stop its rotation operation means stopping the fan from turning left or right while keeping the fan blades rotating.

[0034] In the above steps, an infrared sensor is installed behind the blades. The purpose is to make the blades rotate and alternately block infrared radiation, so that the signal received by the infrared sensor becomes an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to detect the target person. Based on the trend of the change in the length of the square wave in the first square wave waveform diagram, one of the following is executed: control the fan to maintain its current rotation, control the fan to operate in the opposite direction to the current rotation, or control the fan to stop rotating, so that the fan can automatically blow air at the target person. Since only a relatively simple infrared sensor is used, the cost is lower than that of existing solutions, thereby solving the problem of high cost for the existing solution to achieve automatic positioning and blowing air to people.

[0035] Step S102 can be implemented in two specific ways:

[0036] The first implementation method is as follows: When the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; when the length of the square wave in the first square wave waveform changes in an increasing trend, the fan is controlled to operate in the opposite direction to the current rotation of the fan; when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold, the fan is controlled to maintain its current rotation; when the length of the square wave in the first square wave waveform changes in a trend that is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, the fan is controlled to stop rotating.

[0037] Specifically, the length of the square wave is the duration for which the square wave can remain at a peak. When the length of the square wave in the first square wave waveform shows a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold (the difference threshold is set based on the actual situation of the square wave), it is determined that the fan is moving away from the target person. Therefore, the fan needs to be controlled to operate in the opposite direction to its current rotation. Conversely, when the length of the square wave in the first square wave waveform shows an increasing trend, controlling the fan to operate in the opposite direction to its current rotation also indicates that the fan is moving away from the target person. To control the fan to operate in the opposite direction to its current rotation, if the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the aforementioned difference threshold, it is determined that the fan is approaching the target person, and the fan needs to be controlled to maintain its current rotation. If the length of the square wave in the first square wave waveform does not change in a decreasing or increasing trend, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, it is determined that the fan is blowing air directly at the target person, and therefore the fan is controlled to stop rotating, maintaining the fan blowing air directly at the target person.

[0038] The second implementation method: When the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; If the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, then the fan is controlled to maintain its current rotation operation. If the length of the square wave in the first square wave waveform changes in a trend that is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the peak threshold, then the fan is controlled to stop its rotation operation.

[0039] Specifically, when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold (the peak threshold is the peak of the square wave when facing the target person), it is determined that the fan is moving away from the target person. Since the maximum value of the square wave peak is considered, the control is more precise than the first implementation method. Therefore, it is necessary to control the fan to operate in the opposite direction to the current direction of the fan. When the length of the square wave in the first square wave waveform changes in an increasing trend (the increasing trend is reflected in the increasing time sequence between the lengths of two square waves in the first square wave waveform; the decreasing trend is similar and will not be elaborated here), and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, it is determined that the fan is moving away from the target person. When the fan is far from the target person, it needs to be controlled to operate in the opposite direction to its current rotation. If the length of the first square wave waveform is decreasing, the maximum absolute value of the difference between adjacent square waves is less than the difference threshold, and the maximum value of the peak of the first square wave is less than the peak threshold, it is determined that the fan is approaching the target person. Therefore, the fan needs to be controlled to maintain its current rotation. If the length of the first square wave waveform is neither decreasing nor increasing, the length of the first square wave is less than or equal to a preset length, and the maximum value of the peak of the first square wave is greater than or equal to the peak threshold, it is determined that the fan is blowing air directly at the target person. Therefore, the fan needs to be controlled to stop rotating, so that it can automatically blow air towards the target person.

[0040] In one embodiment of this application, after controlling the fan to maintain its current rotation or controlling the fan to operate in the opposite direction to its current rotation, the method further includes: receiving a second square wave waveform sent by the infrared sensor, wherein the second square wave waveform is a square wave waveform received by the infrared sensor from a second preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor, the second preset time being after the first preset time, and the second square wave waveform including multiple square waves; and controlling the fan to stop rotating when the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold.

[0041] Specifically, after controlling the fan to maintain its current rotation or to operate in the opposite direction to its current rotation, it is necessary to ensure that the fan stops rotating once it is aligned with the target person. Therefore, if the length of the square wave in the second square wave waveform is less than or equal to the preset length, and the maximum value of the peak of the square wave in the second square wave waveform is greater than or equal to the peak threshold, the fan is controlled to stop rotating, keeping the fan blowing air directly at the target person.

[0042] In one embodiment of this application, the method further includes: when the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, repeatedly executing the receiving step and the processing step until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor, and the processing step is the step of performing a target operation at least according to the trend of the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop rotating.

[0043] Specifically, if the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, it is determined that there are no target personnel around the fan. Therefore, it is necessary to continue to observe whether there will be target personnel around the fan until the fan observes that there are target personnel around the fan, that is, until the length of the square wave in the first square wave waveform is decreasing or increasing.

[0044] In addition, during the repeated execution of the receiving and processing steps, the method further includes: if, after a first preset time period, the length of the square wave in the first square wave waveform remains neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length, then the fan is controlled to stop working.

[0045] Specifically, after a first preset time (which can be 3 minutes), if the length of the square wave in the first square wave waveform remains neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length (the preset length needs to be set according to the specific situation), it is determined that there are no target personnel around the fan, and continuing to keep the fan running would cause meaningless waste of electricity, so the fan needs to be turned off.

[0046] In one embodiment of this application, after controlling the fan to stop rotating, the method further includes: after a second preset time period, controlling the fan to start oscillating.

[0047] Specifically, in order to prevent the fan from blowing air onto the target person for too long and causing discomfort, the fan needs to be controlled to start oscillating after 5 minutes (i.e., the second preset time) after it has stopped rotating.

[0048] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the fan control method of this application will be described in detail below with reference to specific embodiments.

[0049] This embodiment relates to a specific fan control method. The method is applied to a controller in a fan system, which also includes a fan and an infrared sensor. The infrared sensor is mounted behind the fan blades. The fan and the infrared sensor communicate with the controller. Figure 2 As shown, it includes the following steps:

[0050] Step S1: Receive the first square wave waveform sent by the infrared sensor. The first square wave waveform is the square wave waveform received by the infrared sensor from the first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is before the current time. The first square wave waveform includes multiple square waves.

[0051] Step S2: If the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, control the fan to operate in the opposite direction to the current fan rotation; if the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, control the fan to operate in the opposite direction to the current fan rotation.

[0052] Step S4: When the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between each adjacent square wave in the first square wave waveform is less than the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, control the fan to maintain the current rotation operation.

[0053] Step S5: If the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to the preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the peak threshold, control the fan to stop rotating.

[0054] Step S6: After controlling the fan to maintain its current rotation or to operate in the opposite direction to its current rotation, receive a second square wave waveform sent by an infrared sensor. The second square wave waveform is a square wave waveform received by the infrared sensor from a second preset time to the current time, emitted by the infrared sensor and reflected back to the infrared sensor. The second preset time is after the first preset time. The second square wave waveform includes multiple square waves. If the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold, control the fan to stop rotating.

[0055] Step S7: If the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, repeat the receiving step and the processing step until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor. The processing step is the step of performing a target operation based at least on the trend of the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain the current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, or controlling the fan to stop rotating.

[0056] An infrared sensor is installed behind the blades. The purpose of this is to allow the blades to rotate and alternately block infrared radiation, resulting in a discontinuous square wave signal received by the infrared sensor. Since the human body temperature is higher than the ambient temperature, the infrared sensor is used to detect the target person. Based on the trend of the square wave length change in the first square wave waveform, the sensor performs one of the following actions: controls the fan to maintain its current rotation, controls the fan to operate in the opposite direction to its current rotation, or controls the fan to stop rotating. This allows the fan to automatically direct airflow towards the target person. Because only a relatively simple infrared sensor is used, the cost is lower than existing solutions, thus solving the problem of high cost in existing solutions for automatically positioning and blowing air onto people.

[0057] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0058] This application also provides a controller. It should be noted that the controller in this application can be used to execute the fan control method provided in this application. The controller is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the controller described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0059] The controller provided in the embodiments of this application will be described below.

[0060] Figure 3 This is a structural block diagram of a controller provided according to an embodiment of this application. For example... Figure 3 As shown, the controller includes:

[0061] The first receiving unit 31 is used to receive a first square wave waveform sent by an infrared sensor. The first square wave waveform is a square wave waveform received by the infrared sensor from a first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is located before the current time. The first square wave waveform includes multiple square waves.

[0062] The first processing unit 32 is configured to perform one of the following actions based at least on the changing trend of the length of the square wave in the first square wave waveform diagram: controlling the fan to maintain its current rotation operation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop its rotation operation, wherein controlling the fan to stop its rotation operation means stopping the fan from turning left or right while maintaining the rotation of the fan blades.

[0063] In the aforementioned controller, an infrared sensor is installed behind the blades. The purpose of this is to allow the blades to rotate and alternately block infrared radiation, resulting in a discontinuous square wave signal received by the infrared sensor. Since the human body temperature is higher than the ambient temperature, the infrared sensor is used to detect the target person. Based on the changing trend of the square wave length in the aforementioned first square wave waveform, the controller performs one of the following actions: controls the fan to maintain its current rotation, controls the fan to operate in the opposite direction to its current rotation, or controls the fan to stop rotating. This allows the fan to automatically direct airflow towards the target person. Because only a relatively simple infrared sensor is used, the cost is lower than existing solutions, thus solving the problem of high cost in existing solutions for automatically positioning and blowing air onto people.

[0064] In one embodiment of this application, the first processing unit includes a first processing module, a second processing module, a third processing module, and a fourth processing module. The first processing module is used to control the fan to operate in the opposite direction to the current rotation of the fan when the length of the square wave in the first square wave waveform changes in a decreasing trend and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold. The second processing module is used to control the fan to operate in the opposite direction to the current rotation of the fan when the length of the square wave in the first square wave waveform changes in an increasing trend. The third processing module is used to control the fan to maintain its current rotation when the length of the square wave in the first square wave waveform changes in a decreasing trend and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold. The fourth processing module is used to control the fan to stop rotating when the length of the square wave in the first square wave waveform changes in a trend that is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length.

[0065] In one embodiment of this application, the first processing unit includes a fifth processing module, a sixth processing module, a seventh processing module, and an eighth processing module. The fifth processing module is configured to control the fan to operate in the opposite direction to the fan's current rotation when the length of the square wave in the first square wave waveform is decreasing, the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold. The sixth processing module is configured to control the fan to operate in the opposite direction to the fan's current rotation when the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold. The fan operates in the opposite direction of its current rotation. The seventh processing module is used to control the fan to maintain its current rotation when the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold. The eighth processing module is used to control the fan to stop rotating when the length of the square wave in the first square wave waveform does not change in a decreasing trend, nor does it increase, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the peak threshold.

[0066] In one embodiment of this application, the controller further includes a second receiving unit and a second processing unit. After controlling the fan to maintain its current rotation or controlling the fan to operate in the opposite direction to its current rotation, the second receiving unit is used to receive a second square wave waveform sent by the infrared sensor. The second square wave waveform is a square wave waveform received by the infrared sensor from a second preset time to the current time, which is emitted by the infrared sensor and reflected back to the infrared sensor. The second preset time is located after the first preset time, and the second square wave waveform includes multiple square waves. The second processing unit is used to control the fan to stop rotating when the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold.

[0067] In one embodiment of this application, the controller further includes a third processing unit. The third processing unit is configured to repeatedly execute the receiving step and the processing step when the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor, and the processing step is the step of performing a target operation based at least on the trend of the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop rotating.

[0068] In one embodiment of this application, the third processing unit includes a ninth processing module. During the repeated execution of the receiving step and the processing step, the ninth processing module is used to control the fan to stop working if, after a first preset time, the change trend of the length of the square wave in the first square wave waveform is still neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length.

[0069] In one embodiment of this application, the controller further includes a fourth processing unit, which, after controlling the fan to stop rotating, controls the fan to start oscillating after a second preset time period.

[0070] The controller includes a processor and a memory. The first receiving unit and the first processing unit, etc., are stored as program units in the memory, and the processor executes the program units stored in the memory to achieve the corresponding functions. All the modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0071] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and adjusting kernel parameters can address the high cost of implementing automatic fan positioning and blowing air onto people in existing solutions.

[0072] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0073] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the fan control method.

[0074] This invention provides a processor for running a program, wherein the program executes the fan control method during runtime.

[0075] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps: receiving a first square wave waveform transmitted by an infrared sensor, wherein the first square wave waveform is a square wave waveform received by the infrared sensor from a first preset time to the current time, the first preset time being prior to the current time, and the first square wave waveform including multiple square waves; and performing one of the following actions based at least on the changing trend of the length of the square waves in the first square wave waveform: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, and controlling the fan to stop rotating, wherein controlling the fan to stop rotating represents stopping the fan from turning left or right while maintaining the rotation of the fan blades. The device described herein can be a server, PC, PAD, mobile phone, etc.

[0076] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions may be performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, or controlling the fan to stop rotating. This includes: controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold; controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is increasing; controlling the fan to maintain its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold; and controlling the fan to stop rotating when the changing trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing and the length of the square wave in the first square wave waveform is less than or equal to a preset length.

[0077] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions is performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, and controlling the fan to stop rotating. This includes: when the changing trend of the length of the square wave in the first square wave waveform is decreasing, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; and when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold. Under the aforementioned peak threshold condition, the fan is controlled to operate in the opposite direction to its current rotation. When the length of the square wave in the first square wave waveform is decreasing, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the aforementioned difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the aforementioned peak threshold, the fan is controlled to maintain its current rotation. When the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the aforementioned peak threshold, the fan is controlled to stop rotating.

[0078] Optionally, after controlling the fan to maintain its current rotation or controlling the fan to operate in the opposite direction to its current rotation, the method further includes: receiving a second square wave waveform sent by the infrared sensor, wherein the second square wave waveform is a square wave waveform received by the infrared sensor from a second preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor, the second preset time being after the first preset time, and the second square wave waveform including multiple square waves; and controlling the fan to stop rotating when the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold.

[0079] Optionally, the above method further includes: when the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, repeating the receiving step and the processing step until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor, and the processing step is the step of performing a target operation at least according to the trend of the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop rotating.

[0080] Optionally, during the repeated execution of the receiving step and the processing step, the method further includes: if, after a first preset time period, the change trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length, then the fan is controlled to stop working.

[0081] Optionally, after controlling the fan to stop rotating, the method further includes: after a second preset time period, controlling the fan to start oscillating.

[0082] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps: receiving a first square wave waveform sent by the infrared sensor, the first square wave waveform being a square wave waveform received by the infrared sensor from a first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor, the first preset time being prior to the current time, and the first square wave waveform including multiple square waves; and, at least according to the changing trend of the length of the square waves in the first square wave waveform, performing one of the following: controlling the fan to maintain its current rotation operation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop its rotation operation, wherein controlling the fan to stop its rotation operation means stopping the fan from turning left or right while maintaining the rotation of the fan blades.

[0083] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions may be performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, or controlling the fan to stop rotating. This includes: controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold; controlling the fan to operate in the opposite direction to its current rotation when the changing trend of the length of the square wave in the first square wave waveform is increasing; controlling the fan to maintain its current rotation when the changing trend of the length of the square wave in the first square wave waveform is decreasing and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold; and controlling the fan to stop rotating when the changing trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing and the length of the square wave in the first square wave waveform is less than or equal to a preset length.

[0084] Optionally, based at least on the changing trend of the length of the square wave in the first square wave waveform, one of the following actions is performed: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to its current rotation, and controlling the fan to stop rotating. This includes: when the changing trend of the length of the square wave in the first square wave waveform is decreasing, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, controlling the fan to operate in the opposite direction to its current rotation; and when the changing trend of the length of the square wave in the first square wave waveform is increasing, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold. Under the aforementioned peak threshold condition, the fan is controlled to operate in the opposite direction to its current rotation. When the length of the square wave in the first square wave waveform is decreasing, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the aforementioned difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than the aforementioned peak threshold, the fan is controlled to maintain its current rotation. When the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform is greater than or equal to the aforementioned peak threshold, the fan is controlled to stop rotating.

[0085] Optionally, after controlling the fan to maintain its current rotation or controlling the fan to operate in the opposite direction to its current rotation, the method further includes: receiving a second square wave waveform sent by the infrared sensor, wherein the second square wave waveform is a square wave waveform received by the infrared sensor from a second preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor, the second preset time being after the first preset time, and the second square wave waveform including multiple square waves; and controlling the fan to stop rotating when the length of the square waves in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square waves in the second square wave waveform is greater than or equal to a peak threshold.

[0086] Optionally, the above method further includes: when the trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, repeating the receiving step and the processing step until the trend of the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor, and the processing step is the step of performing a target operation at least according to the trend of the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop rotating.

[0087] Optionally, during the repeated execution of the receiving step and the processing step, the method further includes: if, after a first preset time period, the change trend of the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length, then the fan is controlled to stop working.

[0088] Optionally, after controlling the fan to stop rotating, the method further includes: after a second preset time period, controlling the fan to start oscillating.

[0089] This application also provides a fan system comprising: a controller, a fan, and an infrared sensor. The infrared sensor is mounted behind the blades of the fan. The fan and the infrared sensor communicate with the controller, which executes any of the aforementioned fan control methods. The infrared sensor is mounted behind the blades so that as the blades rotate, they alternately block infrared radiation, resulting in a discontinuous square wave signal received by the infrared sensor. Since the temperature of a human body is higher than the ambient temperature, the infrared sensor is used to detect a target person. Based on at least the trend of the square wave length change in the first square wave waveform, it executes one of the following: controls the fan to maintain its current direction of operation; controls the fan to operate in the opposite direction to its current direction; or controls the fan to stop its direction of operation. This allows the fan to automatically direct airflow towards the target person. Because only a relatively simple infrared sensor is used, the cost is lower than existing solutions, thus solving the problem of high cost in existing solutions for automatically positioning and blowing air onto people.

[0090] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0091] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0092] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0093] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0094] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0095] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0096] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0097] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0098] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0099] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0100] 1) The fan control method of this application uses an infrared sensor installed behind the blades. The purpose is to make the blades rotate and alternately block infrared radiation, so that the signal received by the infrared sensor becomes an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to detect the target person. Based on the trend of the change in the length of the square wave in the first square wave waveform diagram, one of the following is executed: controlling the fan to maintain the current direction of operation, controlling the fan to operate in the opposite direction to the current direction of operation, or controlling the fan to stop the direction of operation, so that the fan can automatically blow air at the target person. Since only a relatively simple infrared sensor is used, the cost is lower than that of the existing solution, thereby solving the problem of high cost of the existing solution for the fan to automatically locate and blow air on people.

[0101] 2) In the controller of this application, the infrared sensor is installed behind the blades. The purpose is to make the blades rotate and alternately block infrared radiation, so that the signal received by the infrared sensor becomes an intermittent square wave. Since the temperature of the human body is higher than the ambient temperature, the infrared sensor is used to detect the target person. By at least according to the trend of the change in the length of the square wave in the first square wave waveform diagram, one of the following is executed: control the fan to maintain the current rotation, control the fan to operate in the opposite direction to the current rotation, or control the fan to stop rotating, so that the fan can automatically blow air at the target person. Since only a relatively simple infrared sensor is used, the cost is lower than that of the existing solution, thereby solving the problem of high cost of the existing solution for the fan to automatically locate and blow air on people.

[0102] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A fan control method, applied to a controller in a fan system, the fan system further comprising a fan and an infrared sensor, the infrared sensor being mounted behind the fan blades, the fan and the infrared sensor respectively communicating with the controller, characterized in that, include: The infrared sensor receives a first square wave waveform, which is a square wave waveform received by the infrared sensor from a first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is before the current time, and the first square wave waveform includes multiple square waves. Based at least on the trend of the change in the length of the square wave in the first square wave waveform, perform one of the following: control the fan to maintain its current rotation, control the fan to operate in the opposite direction to the current rotation of the fan, or control the fan to stop rotating, wherein controlling the fan to stop rotating represents stopping the fan from turning left or right while maintaining the rotation of the fan blades; Based at least on the trend of the square wave length variation in the first square wave waveform, perform one of the following: control the fan to maintain its current rotation direction, control the fan to operate in the opposite direction to its current rotation direction, or control the fan to stop rotating, including: If the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, the fan is controlled to operate in the opposite direction to the current fan rotation. If the length of the square wave in the first square wave waveform changes in an increasing trend, the fan is controlled to operate in the opposite direction to the current fan rotation. If the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is less than the difference threshold, the fan is controlled to maintain its current rotation. If the length of the square wave in the first square wave waveform changes in a trend that is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is less than or equal to a preset length, the fan is controlled to stop rotating. Alternatively, if the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform is greater than or equal to a difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform is less than a peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; if the length of the square wave in the first square wave waveform changes in an increasing trend, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; if the length of the square wave in the first square wave waveform changes in a decreasing trend, and the maximum value of the peak of the square wave in the first square wave waveform is less than the peak threshold, the fan is controlled to operate in the opposite direction to the current rotation of the fan; If the length of the square wave in the waveform diagram decreases, and the maximum absolute value of the difference between adjacent square waves in the first square wave waveform diagram is less than the difference threshold, and the maximum value of the peak of the square wave in the first square wave waveform diagram is less than the peak threshold, the fan is controlled to maintain its current rotation operation; if the length of the square wave in the first square wave waveform diagram does not decrease or increase, and the length of the square wave in the first square wave waveform diagram is less than or equal to a preset length, and the maximum value of the peak of the square wave in the first square wave waveform diagram is greater than or equal to the peak threshold, the fan is controlled to stop its rotation operation. The fan blades are designed to be narrow in the center and wide at the periphery, and the blades should transition evenly from small to large from the center rotor to the edge.

2. The method according to claim 1, characterized in that, After controlling the fan to maintain its current rotation direction or controlling the fan to operate in the opposite direction to its current rotation direction, the method further includes: The infrared sensor receives a second square wave waveform, which is a square wave waveform received by the infrared sensor from a second preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The second preset time is located after the first preset time, and the second square wave waveform includes multiple square waves. If the length of the square wave in the second square wave waveform is less than or equal to a preset length, and the maximum value of the peak of the square wave in the second square wave waveform is greater than or equal to a peak threshold, the fan is controlled to stop rotating.

3. The method according to claim 1, characterized in that, The method further includes: If the length of the square wave in the first square wave waveform is neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than a preset length, the receiving step and the processing step are repeated until the length of the square wave in the first square wave waveform is decreasing or increasing. The receiving step is the step of receiving the first square wave waveform sent by the infrared sensor. The processing step is the step of performing a target operation based at least on the length of the square wave in the first square wave waveform. The target operation is one of the following: controlling the fan to maintain its current rotation, controlling the fan to operate in the opposite direction to the current rotation of the fan, or controlling the fan to stop rotating.

4. The method according to claim 3, characterized in that, The method further includes, during the repeated execution of the receiving and processing steps: If, after a first preset time period, the length of the square wave in the first square wave waveform remains neither decreasing nor increasing, and the length of the square wave in the first square wave waveform is greater than the preset length, then the fan is controlled to stop working.

5. The method according to any one of claims 1 to 4, characterized in that, After controlling the fan to stop rotating, the method further includes: After a second preset time period, the fan is controlled to begin oscillating and turning.

6. A controller, applied to the method of any one of claims 1 to 5, characterized in that, include: The first receiving unit is used to receive a first square wave waveform sent by an infrared sensor. The first square wave waveform is a square wave waveform received by the infrared sensor from a first preset time to the current time after being emitted by the infrared sensor and reflected back to the infrared sensor. The first preset time is located before the current time. The first square wave waveform includes multiple square waves. The first processing unit is configured to perform one of the following actions based at least on the changing trend of the length of the square wave in the first square wave waveform: controlling the fan to maintain its current rotation operation, controlling the fan to operate in the opposite direction to the current rotation of the fan, and controlling the fan to stop its rotation operation, wherein controlling the fan to stop its rotation operation represents stopping the fan from turning left or right while maintaining the rotation of the fan blades. The fan blades are designed to be narrow in the center and wide at the periphery, and the blades should transition evenly from small to large from the center rotor to the edge.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the fan control method according to any one of claims 1 to 5.

8. A fan system, characterized in that, include: The system includes a controller, a fan, and an infrared sensor, wherein the infrared sensor is mounted behind the blades of the fan, and the fan and the infrared sensor communicate with the controller, which is used to execute the fan control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Fan control method, fan and storage medium

    CN112922878A

  • Directional blowing control method of fan, fan, system and storage medium

    CN112922879A