Fan control method, fan and storage medium

By realizing target object detection on the fan and automatically adjusting the blowing direction, the problem that existing fans cannot automatically detect and blow to the user's location is solved, and the intelligence and user experience of the fan are improved.

CN120100747APending Publication Date: 2025-06-06SHENZHEN MAGIC CUBE DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510361606.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The existing fans cannot automatically detect and blow to the user's location, resulting in a poor user experience.

Method used

By detecting the target object within the swing range of the fan, when the target object is detected, the fan is controlled to blow air towards the direction where the target object is located; when the target object is not detected, the fan is controlled to swing back and forth at a single person's maximum horizontal angle in the horizontal direction to expand the detection range.

Benefits of technology

The fan is automatically detected and blown towards the target object, which improves the intelligence level of the fan and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120100747A_ABST
    Figure CN120100747A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a fan control method which comprises the following steps: in response to the fact that a fan is in a single-person mode, controlling the fan to swing back and forth at a single-person preset angle in the horizontal direction; detecting whether a target object exists within a preset angle of the single person; when the target object exists within the single-person preset angle, the air outlet direction of the fan is controlled to face the first direction, and the first direction is the direction where the target object is located; and when the target object does not exist in the single-person preset angle, the fan is controlled to swing back and forth in the horizontal direction at the single-person maximum horizontal angle, and the single-person preset angle is smaller than or equal to the single-person maximum horizontal angle. According to the fan control method provided by the embodiment of the invention, the fan automatically blows air to the target object when detecting the target object, so that the intelligence of the fan is greatly improved, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fans, and in particular to a fan control method, a fan and a storage medium. Background Art

[0002] With the development of science and technology, various fans have gradually entered people's lives to improve the quality of life of users. For example, when a user finishes taking a shower, there is moisture on the body. At this time, if the temperature in the environment is too low, it is easy for the user to catch a cold, so a heater is needed to increase the ambient temperature. Or, when the user is in a colder area, a heater is an indispensable heating device. A heater is equivalent to a fan with heating function. There are also fans that are simply used for blowing in summer.

[0003] At present, most fans are controlled by buttons, and some fans can be controlled by touch or remote control. However, this remote control method is relatively backward and cannot detect the user's position to automatically blow air for the user, which leads to a poor user experience. Summary of the invention

[0004] In response to at least some of the problems and deficiencies in the prior art, an embodiment of the present invention discloses a fan control method, a fan and a storage medium. The method detects a target object within the swing range of the fan. When the target object is detected, the fan is controlled to blow air in the direction of the target object, thereby realizing that the fan automatically blows air to the target object when the target object is detected, thereby greatly improving the intelligence of the fan and further improving the user experience. When the target object is not detected, the fan is controlled to swing back and forth in the horizontal direction at the maximum horizontal angle for a single person, thereby expanding the range for detecting the target object to facilitate the detection of the target object.

[0005] Specifically, an embodiment of the present invention provides a fan control method, for example, including: in response to the fan being in single-person mode, controlling the fan to swing back and forth in the horizontal direction at a single-person preset angle; detecting whether there is a target object within the single-person preset angle; when there is a target object within the single-person preset angle, controlling the air outlet direction of the fan to be toward a first direction, the first direction being the direction where the target object is located; when there is no target object within the single-person preset angle, controlling the fan to swing back and forth in the horizontal direction at the single-person maximum horizontal angle, wherein the single-person preset angle is less than or equal to the single-person maximum horizontal angle.

[0006] In one embodiment of the present invention, when there is a target object within the single-person preset angle, after controlling the air outlet direction of the fan to be toward the first direction, it also includes: detecting whether there is the target object in the first direction; when the target object does not exist in the first direction, controlling the fan to swing back and forth in the horizontal direction at the single-person maximum horizontal angle.

[0007] In one embodiment of the present invention, it also includes: when there is a target object within the single-person preset angle, controlling the first prompt module to send a first prompt signal; when there is no target object within the single-person preset angle, controlling the first prompt module to send a second prompt signal.

[0008] In one embodiment of the present invention, it also includes: responding to a mode switching instruction to switch the fan from the single-person mode to the multi-person mode, controlling the fan to swing back and forth at a first preset angle in the horizontal direction; detecting whether the target object exists within the first preset angle; when the target object exists within the first preset angle, detecting the number of the target objects within the first preset angle, and controlling the air outlet direction of the fan according to the number of the target objects; when the target object does not exist within the first preset angle, controlling the fan to swing at a second preset angle, wherein the first preset angle is less than or equal to the second preset angle.

[0009] In one embodiment of the present invention, when the target object exists within the first preset angle, the number of the target objects within the first preset angle is detected, and the air outlet direction of the fan is controlled according to the number of the target objects, specifically including: when there is a single target object within the first preset angle, the fan is controlled to swing back and forth in a second direction at the first preset angle for multiple people, and the second direction is the direction where the single target object is located.

[0010] In one embodiment of the present invention, when the target object exists within the first preset angle, the number of the target objects within the first preset angle is detected, and the air outlet direction of the fan is controlled according to the number of the target objects, and specifically also includes: when there are multiple target objects within the first preset angle, two of the multiple target objects that are farthest apart on the swing path of the fan are obtained; taking the position of the fan as the vertex, determining a multi-person second preset angle, wherein the multi-person second preset angle is the angle between the lines connecting the two target objects and the vertex respectively; and controlling the shaking module to make the fan swing back and forth at the multi-person second preset angle.

[0011] In one embodiment of the present invention, it also includes: when the target object exists within the first preset angle, controlling the second prompt module to send a third prompt signal; when the target object does not exist within the first preset angle or in response to detecting that at least part of the target object has moved, controlling the second prompt module to send a fourth prompt signal.

[0012] In one embodiment of the present invention, before controlling the fan to swing back and forth at a single preset angle in the horizontal direction, it also includes: controlling the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position; controlling the fan to be in the reference position includes: determining whether the fan is in the vertical reference position in the vertical direction, and if not, controlling the fan to swing in the vertical direction until the fan is in the vertical reference position; determining whether the fan is in the horizontal reference position in the horizontal direction, and if not, controlling the fan to swing in the horizontal direction until the fan is in the horizontal reference position.

[0013] In one embodiment of the present invention, before controlling the fan to swing back and forth at a first preset angle in the horizontal direction, it also includes: controlling the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position; controlling the fan to be in the reference position includes: determining whether the fan is in the vertical reference position in the vertical direction, and if not, controlling the fan to swing in the vertical direction until the fan is in the vertical reference position; determining whether the fan is in the horizontal reference position in the horizontal direction, and if not, controlling the fan to swing in the horizontal direction until the fan is in the horizontal reference position.

[0014] On the other hand, an embodiment of the present invention provides a fan, for example, including: a memory and a processor connected to the memory, the memory stores instructions executed by the processor, and the instructions enable the processor to perform operations to perform the aforementioned fan control method.

[0015] On the other hand, an embodiment of the present invention provides a storage medium, which is a non-volatile memory and stores computer-executable instructions, wherein the computer-executable instructions are used to execute the aforementioned fan control method.

[0016] It can be seen from the above that the above technical features of the present invention can have one or more of the following beneficial effects: the fan control method provided by the embodiment of the present invention, by detecting the target object within the swing range of the fan, when the target object is detected, controls the fan to blow air in the direction where the target object is located, thereby realizing that the fan automatically blows air to the target object when the target object is detected, greatly improving the intelligence of the fan, and thus improving the user experience; when the target object is not detected, the fan is controlled to swing back and forth in the horizontal direction at the maximum horizontal angle of a single person, thereby expanding the range of detecting the target object to facilitate the detection of the target object. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0018] Figure 1 A schematic flow chart of a fan control method provided in the first embodiment of the present invention.

[0019] Figure 2 Another schematic flow chart of a fan control method provided by the first embodiment of the present invention.

[0020] Figure 3 The present invention is another flowchart of a fan control method provided by the first embodiment of the present invention.

[0021] Figure 4 The present invention is another flowchart of a fan control method provided by the first embodiment of the present invention.

[0022] Figure 5 for Figure 4 Schematic diagram of the sub-process of step S24.

[0023] Figure 6 The present invention is another flowchart of a fan control method provided by the first embodiment of the present invention.

[0024] Figure 7 The present invention is another flowchart of a fan control method provided by the first embodiment of the present invention.

[0025] Figure 8 The present invention is another flowchart of a fan control method provided by the first embodiment of the present invention.

[0026] Fig. 9 A schematic diagram of the circuit structure of a fan to which the fan control method provided by the first embodiment of the present invention is applied.

[0027] Fig.10 A schematic structural diagram of a fan provided in a second embodiment of the present invention.

[0028] Fig.11 A schematic structural diagram of a storage medium provided in the third embodiment of the present invention. DETAILED DESCRIPTION

[0029] 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 specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] It should also be noted that the division of multiple embodiments in the present invention is only for the convenience of description and should not constitute a special limitation. The features in various embodiments can be combined and referenced to each other without contradiction.

[0032] [First embodiment]

[0033] See also Figure 1 , which shows a fan control method provided by an embodiment of the present invention. The fan control method, for example, includes the steps of:

[0034] S12: In response to the fan being in the single-person mode, controlling the fan to swing back and forth in the horizontal direction at a single-person preset angle;

[0035] S13: Detecting whether there is a target object within the single person preset angle;

[0036] S14: When there is a target object within the single-person preset angle, controlling the air outlet direction of the fan to be toward a first direction, where the first direction is the direction where the target object is located;

[0037] S16: When there is no target object within the single-person preset angle, control the fan to swing back and forth in the horizontal direction at a single-person maximum horizontal angle, wherein the single-person preset angle is less than or equal to the single-person maximum horizontal angle.

[0038] The fan control method provided in the embodiment of the present invention is applied to a fan, for example. For example, the fan can be used as a heater or a heating air conditioner, and the fan can also be a cooling fan or a cooling air conditioner. Of course, the fan is not limited to the above-mentioned specific production equipment. The fan includes a temperature control module, for example. When the fan is used as a heater or a heating air conditioner, for example, hot air can be blown out for the user to provide heat to the user. For example, the temperature control module includes a heating module and a blowing module. The heating module is, for example, a heating wire or a component that can generate heat. The blowing module is, for example, a blower or a fan. The blowing module can generate airflow to take the heat generated by the heating module out of the fan, thereby providing heat to the user. When the fan is used as a cooling fan or a cooling air conditioner, for example, cold air can be blown out for the user to provide cooling to the user. For example, the temperature control module only includes a blowing module, and the blowing module can generate airflow to the outside of the fan, thereby providing cooling to the user. Alternatively, when the fan is used as a cooling fan or a refrigeration air conditioner, the temperature control module includes a cooling module and a blowing module, the cooling module is, for example, a semiconductor cooling plate or other cooling element, and the blowing module is, for example, a blower or a fan. The blowing module can generate airflow to bring the heat generated by the cooling module out of the fan, thereby providing cooling for the user.

[0039] The fan control method provided in the first embodiment of the present invention detects a target object within the swing range of the fan. When the target object is detected, the fan is controlled to blow air in the direction of the target object, thereby realizing that the fan automatically blows air to the target object when the target object is detected, greatly improving the intelligence of the fan and further improving the user experience; when no target object is detected, the fan is controlled to swing back and forth in the horizontal direction at the maximum horizontal angle for a single person, thereby expanding the range of detecting the target object to facilitate the detection of the target object.

[0040] In one embodiment, see Figure 2 After step S14, the fan control method further comprises the steps of:

[0041] S151: Detecting whether the target object exists in the first direction;

[0042] S153: When the target object does not exist in the first direction, control the fan to swing back and forth in the horizontal direction at the maximum horizontal angle for a single person.

[0043] In one embodiment, see Figure 3 The fan control method further comprises the steps of:

[0044] S17: When there is a target object within the single-person preset angle, controlling the first prompt module to send a first prompt signal;

[0045] S18: When there is no target object within the single person preset angle, controlling the first prompt module to send a second prompt signal.

[0046] In addition, in one embodiment, see Figure 4 The fan control method further comprises the steps of:

[0047] S22: In response to a mode switching instruction to switch the fan from the single-person mode to the multi-person mode, controlling the fan to swing back and forth at a first preset angle in a horizontal direction;

[0048] S23: Detecting whether the target object exists within the first preset angle;

[0049] S24: When the target object is within the first preset angle, detecting the number of the target objects within the first preset angle, and controlling the air outlet direction of the fan according to the number of the target objects;

[0050] S25: When the target object does not exist within the first preset angle, controlling the fan to swing at a second preset angle, wherein the first preset angle is less than or equal to the second preset angle.

[0051] For details, see Figure 5 , step S24 further comprises sub-steps:

[0052] S241: When there is a single target object within the first preset angle, control the fan to swing back and forth in a second direction at a first preset angle for multiple people, where the second direction is the direction where the single target object is located.

[0053] In accordance with the above, see Figure 5 , step S24 further comprises sub-steps:

[0054] S243: when there are multiple target objects within the first preset angle, acquiring two of the multiple target objects that are farthest from each other on the swing path of the fan;

[0055] S245: Taking the position of the fan as a vertex, determining a second preset angle for multiple people, wherein the second preset angle for multiple people is an angle between lines connecting two target objects and the vertex respectively;

[0056] S247: Control the shaking module to make the fan swing back and forth at the second preset angle for the multiple persons.

[0057] Furthermore, in one embodiment, see Figure 6 The fan control method further comprises the steps of:

[0058] S26: When the target object is within the first preset angle, controlling the second prompt module to send a third prompt signal;

[0059] S27: When the target object does not exist within the first preset angle or in response to detecting that at least part of the target object has moved, controlling the second prompt module to send a fourth prompt signal.

[0060] In addition, in one embodiment, see Figure 7 Before step S12, the fan control method further includes the steps of:

[0061] S11: Control the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position.

[0062] Specifically, step S11 includes:

[0063] S111: determining whether the fan is at the vertical reference position in the vertical direction, and if not, controlling the fan to swing in the vertical direction until the fan is at the vertical reference position;

[0064] S113: Determine whether the fan is at the horizontal reference position in the horizontal direction; if not, control the fan to swing in the horizontal direction until the fan is at the horizontal reference position.

[0065] In another embodiment, see Figure 8 Before step S22, the fan control method further includes the steps of:

[0066] S21: Control the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position.

[0067] Specifically, step S21 includes:

[0068] S211: determining whether the fan is at the vertical reference position in the vertical direction, and if not, controlling the fan to swing in the vertical direction until the fan is at the vertical reference position;

[0069] S213: Determine whether the fan is at the horizontal reference position in the horizontal direction; if not, control the fan to swing in the horizontal direction until the fan is at the horizontal reference position.

[0070] To facilitate understanding of the present invention, the following Figure 1-Figure 9 Each step of the fan control method provided by the first embodiment of the present invention is described in detail.

[0071] The fan control method provided in the first embodiment of the present invention is applied to a fan 30, for example. Fig. 9 For example, the schematic diagram of the circuit structure of the fan 30 is shown. Fig. 9 The fan 30, for example, includes a control module 310, a temperature control module 330, a shaking head module 340, an identification module 350, a prompt module 360 ​​and a display screen 370, wherein the temperature control module 330, the shaking head module 340, the identification module 350, the prompt module 360 ​​and the display screen 370 are, for example, all electrically connected to the control module 310.

[0072] For example, the control module 310 is a processor, and the processor may be a microcontroller MCU (Microcontroller Unit) or an ARM (Advanced RISC Machines) processor, etc. The temperature control module 330 includes a blowing module and a heating module, or the temperature control module 330 includes only a blowing module, or the temperature control module 330 includes a blowing module and a cooling module.

[0073] For example, when the fan 30 is a heating device, the temperature control module 330 includes, for example, a blowing module and a heating module. The heating module is a heating wire or a component that can generate heat. Specifically, one end of the temperature control module 330 is connected to the live wire of the power supply, and the other end is connected to the relay. The control module 310 controls the on and off of the relay to control the operation of the temperature control module 330. The heating module can be a PTC type heating element, or a series aluminum heating element, or a cast iron heating element, etc., and the present application does not impose specific restrictions on this. The blowing module 330 is, for example, a blower or a fan. When the fan 30 is a refrigeration device, the temperature control module 330 includes, for example, only a blowing module, or the temperature control module 330 includes, for example, a blowing module and a refrigeration module. The refrigeration module is a semiconductor refrigeration sheet or a cooling element. Specifically, one end of the temperature adjustment module 330 is connected to the live wire of the power supply, and the other end is connected to the relay. The control module 310 controls the on and off of the relay to control the operation of the temperature adjustment module 330. The blowing module 330 is, for example, a blower or a fan.

[0074] As mentioned above, the shaking module 340 includes, for example, a motor and a connecting rod. The identification module 350 includes, for example, a camera and an image decoding circuit. The camera is used to capture images and transmit the images to the image decoding circuit. The image decoding circuit is used to decode the images and transmit the decoded information to the control module 310, so that the shaking range of the fan can be scanned by setting the identification module 350 to determine whether there is a target object. The target object mentioned here is, for example, a human body. The display screen 370 is, for example, arranged on the surface of the fan 30, and the prompt module 360 ​​is arranged on the display screen 370. For example, the prompt module 360 ​​is, for example, a prompt light, and the control module 310 can control the prompt module 360 ​​to flash or stay on on the display screen 360. The prompt module 360 ​​includes, for example, a first prompt module 361 and a second prompt module 362, to correspond to the single-player mode and the double-player mode, respectively.

[0075] Specifically, the fan control method is executed in the control module 310, for example. The control module 310, for example, responds to the fan 30 being in the single-person mode, thereby controlling the shaking module 340 to work so that the fan 30 swings back and forth at a single-person preset angle in the horizontal direction. It should be noted that before swinging, the fan 30 needs to be calibrated for the reference position. Specifically, the control module 310, for example, determines whether the fan 30 is in the vertical reference position in the vertical direction. If not, the shaking module 340 is controlled to work so that the fan 30 swings in the vertical direction until the fan 30 is in the vertical reference position. If so, this operation is not required. Subsequently, the control module 310 also determines whether the fan 30 is in the horizontal reference position in the horizontal direction. If not, the shaking module 340 is controlled to work so that the fan 30 swings in the horizontal direction until the fan 30 is in the horizontal reference position. If so, this operation is not required. The fan 30 is calibrated at the reference position so that the fan 30 starts detecting the target object from the reference position, thereby preventing the scanning range of the recognition module 350 from being inaccurate due to the fan 30 not being at the reference position after the last operation.

[0076] According to the above, the control module 310 controls the recognition module 350 to detect whether there is a target object within the single-person preset angle. That is, the recognition module 350 detects whether there is a human body within the single-person preset angle. When the recognition module 350 detects the target object, that is, when the target object exists within the single-person preset angle, the control module 310 controls the shaking module 340 to work so that the air outlet direction of the fan 30 is toward the first direction, wherein the first direction is the direction where the target object is located. That is, the fan 30 can track the target object for blowing. In this way, the fan can automatically blow air to the target object when the target object is detected, which greatly improves the intelligence of the fan and thus improves the user experience. When the recognition module 350 does not detect the target object, that is, when the target object does not exist within the single-person preset angle, the control module 310 controls the shaking module 340 to work so that the fan 30 swings back and forth in the horizontal direction at the maximum horizontal angle of a single person, so as to facilitate the recognition module 350 to detect the target object. It should be noted that the above-mentioned single-person preset angle is, for example, less than or equal to the single-person maximum horizontal angle. Preferably, the single-person preset angle is, for example, equal to the single-person maximum horizontal angle. The single-person maximum horizontal angle is, for example, greater than or equal to 90°.

[0077] Furthermore, when the recognition module 350 fails to detect the target object within the detection range in the first direction, that is, the target object moves out of the detection range of the recognition module 350 in the first direction, the control module 310 controls the shaking module 340 to operate so that the fan 30 swings back and forth in the horizontal direction at the maximum horizontal angle for a single person, that is, the fan 30 starts to detect a new target object. In this way, when the target object moves out of the detection range of the recognition module 350, the fan 30 can re-detect the new target object, further improving the intelligence of the fan 30.

[0078] In a specific embodiment, when the recognition module 350 detects the target object, that is, when the target object exists within the single-person preset angle, the control module 310 also controls the first prompt module 361 to send a first prompt signal on the display screen 370, such as controlling the first prompt module 361 to remain always on on the display screen 370, to prompt that the single-person mode is currently in operation and the target object has been detected. When the recognition module 350 does not detect the target object, that is, when the target object does not exist within the single-person preset angle, the control module 310 also controls the first prompt module 361 to send a second prompt signal on the display screen 370, such as controlling the first prompt module 361 to flash on the display screen 370, to prompt that the single-person mode is currently in operation and the target object has not been detected. By setting the prompt module, the current state of the fan can be made more intuitive and visual.

[0079] In addition, the fan 30 also includes a multi-person mode, for example. Specifically, the user can switch between the single-player mode and the multi-person mode, for example, by using a button. When the control module 310 receives a mode switching instruction to switch the fan 30 from the single-player mode to the multi-person mode, the control module 310, for example, controls the shaking module 340 to work so that the fan 30 swings back and forth at a first preset angle in the horizontal direction. For example, the first preset angle mentioned here is, for example, the same as the single-person preset angle, and of course, it can also be different from the single-person preset angle, and this application does not limit this. It should be noted that after switching to the multi-person mode, the fan 30 also needs to be corrected for the reference position to ensure that the fan 30 starts scanning from the reference position to avoid the scanning range of the identification module 350 being not accurate enough due to the fact that the fan 30 was not in the reference position after the last operation. Among them, the specific reference position correction method is the same as the reference position correction of the fan 30 in the single-player mode, and will not be repeated here.

[0080] According to the above, the control module 310 controls the recognition module 350 to detect whether the target object exists within the first preset angle. When the recognition module 350 detects the target object, that is, the target object exists within the first preset angle, the control module 310 controls the recognition module 350 to detect the number of target objects within the first preset angle, and controls the air outlet direction of the fan 30 according to the number of target objects. When the recognition module 350 does not detect the target object, that is, the target object does not exist within the first preset angle, the control module 310 controls the shaking module 340 to work so that the fan 30 swings back and forth at a second preset angle. It should be noted that the first preset angle mentioned above is less than or equal to the second preset angle, so as to facilitate the recognition module 350 to detect the target object. Preferably, the first preset angle is, for example, equal to the second preset angle. The second preset angle is, for example, greater than or equal to 90°. By setting the single-player mode and the multi-player mode, the fan 30 can be adapted to a variety of application environments.

[0081] Furthermore, when the fan 30 is in multi-person mode and the identification module 350 detects a single target object, that is, when there is a single target object within the first preset angle, the control module 310 controls the shaking module 340 to make the fan 30 swing back and forth in the second direction at the multi-person first preset angle, and the second direction is the direction where the single target object is located. The multi-person first preset angle is, for example, smaller than the first preset angle, and the range of the multi-person first preset angle is, for example, 10° to 20°. Thus, a small-angle swing is performed to blow air to the single target object. When the fan 30 is in multi-person mode, and the recognition module 350 detects multiple target objects, that is, when there are multiple target objects within the first preset angle, the control module 310, for example, obtains the two target objects that are farthest from each other on the swing path of the fan through the recognition module 350, and determines the multi-person second preset angle with the position of the fan as the vertex, wherein the multi-person second preset angle is the angle between the lines connecting the two target objects and the vertex (i.e., the fan 30); and then the control module 310, for example, controls the shaking module 340 to make the fan 30 swing back and forth at the multi-person second preset angle. In this way, the fan 30 can cover each target object as much as possible when there are multiple target objects, thereby improving the user experience when there are multiple target objects.

[0082] In a specific embodiment, when the recognition module 350 detects the target object, that is, when the target object exists within the first preset angle, the control module 310 also controls the second prompt module 362 to send a third prompt signal on the display screen 370, such as controlling the second prompt module 362 to remain always on on the display screen 370, to prompt that the multi-person mode is currently in operation and the target object has been detected. When the recognition module 350 does not detect the target object, that is, the target object does not exist within the first preset angle, or the recognition module 350 detects that at least part of the target object has moved, the control module 310 controls the second prompt module 362 to send a fourth prompt signal on the display screen 370, such as controlling the second prompt module 362 to flash on the display screen 370, to prompt that the multi-person mode is currently in operation and the target object has not been detected or the target object has moved and the multi-person second preset angle needs to be re-determined. By setting the prompt module, the current state of the fan can be made more intuitive and visual.

[0083] To summarize, the fan control method provided in the first embodiment of the present invention detects a target object within the swing range of the fan, and when a target object is detected, controls the fan to blow air in the direction of the target object, thereby realizing that the fan automatically blows air to the target object when the target object is detected, greatly improving the intelligence of the fan, and further improving the user experience; when no target object is detected, the fan is controlled to swing back and forth in the horizontal direction at the maximum horizontal angle for a single person, thereby expanding the range of detecting the target object to facilitate the detection of the target object.

[0084] [Second embodiment]

[0085] See also Fig.10 The second embodiment of the present invention provides a fan 40. The fan 40, for example, includes a memory 42 and a processor 41 connected to the memory 42. The memory 42 may be, for example, a non-volatile memory, on which a computer program 421 is stored. The processor 41 may be, for example, an MCU (Microcontroller Unit), an embedded processor, etc. When the processor 41 runs the computer program 421, the fan control method in the first embodiment described above is executed.

[0086] The specific working process and technical effect of the fan 40 in this embodiment refer to the description of the first embodiment mentioned above.

[0087] [Third embodiment]

[0088] like Fig.11 As shown, the third embodiment of the present invention discloses a storage medium 50, which is, for example, a computer-readable storage medium. The storage medium 50 is, for example, a non-volatile memory, such as: a magnetic medium (such as a hard disk, a floppy disk, and a magnetic tape), an optical medium (such as a CDROM disk and a DVD), a magneto-optical medium (such as an optical disk), and a hardware device specially constructed to store and execute computer-executable instructions (such as a read-only memory (ROM), a random access memory (RAM), a flash memory, etc.). A computer program 51 is stored on the computer-readable storage medium 50. The computer-readable storage medium 50 can be executed by one or more processors or processing devices to execute the computer program 51 to implement the fan control method in the aforementioned first embodiment.

[0089] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0090] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0092] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional unit / module.

[0093] The above-mentioned integrated unit / module implemented in the form of a software functional unit / module can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling one or more processors of a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0094] 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 fan control method, characterized in that: include: In response to the fan being in the single-person mode, controlling the fan to swing back and forth in the horizontal direction at a single-person preset angle; Detecting whether there is a target object within the single person's preset angle; When there is a target object within the single-person preset angle, the air outlet direction of the fan is controlled to be toward a first direction, where the first direction is the direction where the target object is located; When there is no target object within the single-person preset angle, the fan is controlled to swing back and forth in the horizontal direction at a single-person maximum horizontal angle, wherein the single-person preset angle is less than or equal to the single-person maximum horizontal angle.

2. The fan control method according to claim 1, wherein: When there is a target object within the single-person preset angle, after controlling the air outlet direction of the fan to be toward the first direction, the method further includes: Detecting whether the target object exists in the first direction; When the target object does not exist in the first direction, the fan is controlled to swing back and forth in the horizontal direction at the maximum horizontal angle for a single person.

3. The fan control method according to claim 1, wherein: Also includes: When a target object exists within the single-person preset angle, controlling the first prompt module to send a first prompt signal; When there is no target object within the single person preset angle, the first prompt module is controlled to send a second prompt signal.

4. The fan control method according to claim 1, wherein: Also includes: In response to a mode switching instruction to switch the fan from the single-person mode to the multi-person mode, controlling the fan to swing back and forth at a first preset angle in a horizontal direction; Detecting whether the target object exists within the first preset angle; When the target object is within the first preset angle, detecting the number of the target objects within the first preset angle, and controlling the air outlet direction of the fan according to the number of the target objects; When the target object does not exist within the first preset angle, the fan is controlled to swing at a second preset angle, wherein the first preset angle is less than or equal to the second preset angle.

5. The fan control method according to claim 4, wherein: When the target object is within the first preset angle, detecting the number of the target objects within the first preset angle and controlling the air outlet direction of the fan according to the number of the target objects specifically includes: When there is a single target object within the first preset angle, the fan is controlled to swing back and forth in a second direction at the first preset angle, and the second direction is the direction where the single target object is located.

6. The fan control method according to claim 4, wherein: When the target object is within the first preset angle, detecting the number of the target objects within the first preset angle, and controlling the air outlet direction of the fan according to the number of the target objects, specifically further comprising: When there are multiple target objects within the first preset angle, acquiring two of the multiple target objects that are farthest from each other on the swing path of the fan; Taking the position of the fan as the vertex, determining a multi-person second preset angle, wherein the multi-person second preset angle is the angle between the lines connecting the two target objects and the vertex respectively; The shaking module is controlled to make the fan swing back and forth at a second preset angle for the plurality of people.

7. The fan control method according to claim 4, wherein: Also includes: When the target object is within the first preset angle, controlling the second prompt module to send a third prompt signal; When the target object does not exist within the first preset angle or in response to detecting that at least a portion of the target object moves, the second prompt module is controlled to send a fourth prompt signal.

8. The fan control method according to claim 1, wherein: Before controlling the fan to swing back and forth in the horizontal direction at a preset angle for a single person, the method further includes: Controlling the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position; The controlling the fan to be in a reference position comprises: Determine whether the fan is at the vertical reference position in the vertical direction, and if not, control the fan to swing in the vertical direction until the fan is at the vertical reference position; It is determined whether the fan is at the horizontal reference position in the horizontal direction. If not, the fan is controlled to swing in the horizontal direction until the fan is at the horizontal reference position.

9. The fan control method according to claim 4, wherein: Before controlling the fan to swing back and forth at a first preset angle in the horizontal direction, the method further includes: Controlling the fan to be in a reference position, wherein the reference position includes a vertical reference position and a horizontal reference position; The controlling the fan to be in a reference position comprises: Determine whether the fan is at the vertical reference position in the vertical direction, and if not, control the fan to swing in the vertical direction until the fan is at the vertical reference position; It is determined whether the fan is at the horizontal reference position in the horizontal direction. If not, the fan is controlled to swing in the horizontal direction until the fan is at the horizontal reference position.

10. A fan, characterized in that: include: A memory and a processor connected to the memory, wherein the memory stores instructions executed by the processor, and the instructions enable the processor to perform operations to perform the fan control method according to any one of claims 1 to 9.

11. A computer-readable storage medium, which is a non-volatile memory and stores computer-executable instructions, characterized in that: The computer executable instructions are used to execute the fan control method according to any one of claims 1 to 9.