Circulation fan control method, circulation fan and computer readable storage medium

文档序号:184614 发布日期:2021-11-02 浏览:49次 中文

阅读说明:本技术 循环扇控制方法、循环扇及计算机可读存储介质 (Circulation fan control method, circulation fan and computer readable storage medium ) 是由 陈小平 唐清生 于 2020-04-30 设计创作,主要内容包括:本申请提供一种循环扇控制方法、循环扇及计算机可读存储介质,该方法包括:获取循环扇所在室内区域的天花板上灯具的所占区域的第一位置坐标范围,并获取所述循环扇在所述室内区域的位置坐标;根据所述第一位置坐标范围和所述位置坐标,确定所述循环扇在所述天花板上的目标吹风区域,所述目标吹风区域内不包含所述灯具的所占区域;根据所述目标吹风区域,确定所述循环扇的扇头的摆动范围;控制所述循环扇的扇头按照所述摆动范围进行摆动吹风,以使所述循环扇吹风形成的吹风区域为所述目标吹风区域。本申请能够智能的控制循环扇吹风,使得循环扇的吹风范围避开灯具。(The application provides a circulating fan control method, a circulating fan and a computer readable storage medium, wherein the method comprises the following steps: acquiring a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where a circulating fan is located, and acquiring a position coordinate of the circulating fan in the indoor area; determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate, wherein the target blowing area does not contain the occupied area of the lamp; determining the swing range of the fan head of the circulating fan according to the target blowing area; and controlling the fan head of the circulating fan to perform swinging blowing according to the swinging range so as to enable a blowing area formed by blowing of the circulating fan to be the target blowing area. This application can intelligent control circulation fan blow for the scope of blowing of circulation fan avoids lamps and lanterns.)

1. A circulation fan control method, characterized by comprising:

acquiring a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where a circulating fan is located, and acquiring a position coordinate of the circulating fan in the indoor area;

determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate, wherein the target blowing area does not contain the occupied area of the lamp;

determining the swing range of the fan head of the circulating fan according to the target blowing area;

and controlling the fan head of the circulating fan to perform swinging blowing according to the swinging range so as to enable a blowing area formed by blowing of the circulating fan to be the target blowing area.

2. The circulation fan control method according to claim 1, wherein the acquiring a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where the circulation fan is located and acquiring a position coordinate of the circulation fan in the indoor area includes:

acquiring indoor positioning information of the circulating fan, and determining an indoor area where the circulating fan is located according to the indoor positioning information;

acquiring position coordinates of each corner point of the area occupied by the lamp on the ceiling of the indoor area;

determining a first position coordinate range of the area occupied by the lamp according to the position coordinates of each corner point of the area occupied by the lamp;

and determining the position coordinates of the circulating fan in the indoor area according to the indoor positioning information.

3. The circulation fan control method according to claim 1, wherein the determining a target blowing area of the circulation fan on the ceiling from the first position coordinate range and the position coordinates includes:

dividing the ceiling into a plurality of blowing areas according to the first position coordinate range and a preset position coordinate range of the ceiling, wherein each blowing area does not contain an area occupied by the lamp;

determining whether a projection point of the circulating fan projected on the ceiling is located in the occupied area of the lamp or not according to the first position coordinate range and the position coordinate;

and if the projection point is not located in the occupied area of the lamp, selecting a target blowing area of the circulating fan on the ceiling from the plurality of blowing areas according to the position coordinate and the second position coordinate range of the plurality of blowing areas.

4. The circulating fan control method according to claim 3, wherein the selecting a target blowing area of the circulating fan on the ceiling from the plurality of blowing areas based on the position coordinates and a second position coordinate range of the plurality of blowing areas comprises:

determining a blowing area containing a projection point of the circulating fan projected on the ceiling according to the position coordinate and a second position coordinate range of the plurality of blowing areas;

and taking a blowing area containing a projection point of the circulating fan projected on the ceiling as a target blowing area of the circulating fan on the ceiling.

5. The circulation fan control method according to claim 3, wherein after determining whether or not a projection point of the circulation fan projected on the ceiling is located within a footprint of the lamp based on the first position coordinate range and the position coordinate, further comprising:

if the projection point is located in the occupied area of the lamp, determining the vertical distance between the projection point and each blowing area according to the position coordinate and the second position coordinate range of the plurality of blowing areas;

and taking the blowing area corresponding to the shortest or longest vertical distance as a target blowing area of the circulating fan on the ceiling.

6. The circulating fan control method according to any one of claims 1 to 5, wherein the determining a swing range of a fan head of the circulating fan according to the target blowing area includes:

acquiring the distance between the circulating fan and each boundary of the target blowing area respectively, and acquiring the current distance between the circulating fan and the ceiling;

and determining the swing range of the fan head of the circulating fan according to the distance between the circulating fan and each boundary of the target blowing area and the current distance.

7. The circulation fan control method according to claim 6, wherein the target blowing area includes a first boundary, a second boundary, a third boundary, and a fourth boundary, the first boundary being opposite to the second boundary, the third boundary being opposite to the fourth boundary, and the acquiring distances between the circulation fan and the respective boundaries of the target blowing area includes:

acquiring a first position coordinate of the middle point of the first boundary, a second position coordinate of the middle point of the second boundary, a third position coordinate of the middle point of the third boundary and a fourth position coordinate of the middle point of the fourth boundary;

determining a first distance between the circulating fan and the first boundary according to the first position coordinate and the position coordinate of the circulating fan;

determining a second distance between the circulating fan and the second boundary according to the second position coordinate and the position coordinate of the circulating fan;

determining a third distance between the circulating fan and the third boundary according to the third position coordinate and the position coordinate of the circulating fan;

and determining a fourth distance between the circulating fan and the fourth boundary according to the fourth position coordinate and the position coordinate of the circulating fan.

8. The circulating fan control method according to claim 7, wherein the determining of the swing range of the fan head of the circulating fan based on the distances between the circulating fan and the boundaries of the target blowing area, respectively, and the current distance includes:

determining the swing range of the fan head of the circulating fan in the first direction according to the first distance, the second distance and the current distance;

and determining the swing range of the fan head of the circulating fan in the second direction according to the third distance, the fourth distance and the current distance.

9. A circulation fan, characterized in that the circulation fan comprises a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the circulation fan control method according to any one of claims 1 to 8.

10. A computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the loop fan control method according to any one of claims 1 to 8.

Technical Field

The present disclosure relates to the field of circulating fan technologies, and in particular, to a circulating fan control method, a circulating fan, and a computer-readable storage medium.

Background

With the development of times, the artificial intelligent home furnishing which is visible everywhere in life greatly improves the living standard of people, and the circulating fan has the functions of stirring indoor air to generate comfortable circulating air and circulating the indoor air, and is popular with people. The fan head of current circulation fan can carry out luffing motion and/or horizontal hunting, and under some circumstances, the fan head of circulation fan can blow to the ceiling in room, however, installs lamps and lanterns on the ceiling in the room usually, and the wind-force of circulation fan is comparatively strong, when the circulation fan directly blows lamps and lanterns, causes lamps and lanterns to damage easily, and user experience is not good. Therefore, how to intelligently control the air blowing of the circulating fan and enable the air blowing range of the circulating fan to avoid the lamp is a problem to be solved urgently at present.

Disclosure of Invention

The present application mainly aims to provide a circulation fan control method, a circulation fan, and a computer-readable storage medium, which are used to intelligently control the air blowing of the circulation fan, so that the air blowing range of the circulation fan is kept away from a lamp.

In a first aspect, the present application provides a method for controlling a circulation fan, including:

acquiring a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where a circulating fan is located, and acquiring a position coordinate of the circulating fan in the indoor area;

determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate, wherein the target blowing area does not contain the occupied area of the lamp;

determining the swing range of the fan head of the circulating fan according to the target blowing area;

and controlling the fan head of the circulating fan to blow according to the swinging range so that a blowing area formed by blowing of the circulating fan is the target blowing area.

In a second aspect, the present application also provides a circulation fan comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the circulation fan control method as described above.

In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the loop fan control method as described above.

The application provides a control method of a circulating fan, the circulating fan and a computer readable storage medium, the control method comprises the steps of obtaining a first position coordinate range of an occupied area of a lamp on a ceiling of an indoor area where the circulating fan is located, obtaining position coordinates of the circulating fan in the indoor area, determining a target blowing area of the circulating fan on the ceiling based on the first position coordinate range and the position coordinates of the circulating fan, enabling the occupied area of the lamp not to be located in the target blowing area, determining a swing range of a fan head of the circulating fan based on the target blowing area, controlling the fan head of the circulating fan to swing and blow according to the swing range, enabling the blowing area formed by the circulating fan to be the target blowing area, enabling the circulating fan to avoid the lamp on the ceiling to blow, and greatly improving user experience.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.

Fig. 1 is a schematic flow chart of a method for controlling a circulation fan according to an embodiment of the present disclosure;

FIG. 2 is a flow diagram illustrating sub-steps of the method of controlling the circulation fan of FIG. 1;

FIG. 3 is a schematic view of the ceiling divided into several blowing areas according to the embodiment of the present application;

FIG. 4 is another schematic view of the ceiling after being divided into a plurality of blowing areas in the embodiment of the present application;

FIG. 5 is a schematic view of the projected point of the circulation fan projected on the ceiling in the embodiment of the present application;

FIG. 6 is a flow diagram illustrating another sub-step of the circulation fan control method of FIG. 1;

fig. 7 is a schematic block diagram of a structure of a circulation fan according to an embodiment of the present application.

The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.

The embodiment of the application provides a circulating fan control method, a circulating fan and a computer readable storage medium. The control method of the circulating fan can be applied to the circulating fan and can also be applied to control equipment, the control equipment can be equipment such as an intelligent refrigerator, an intelligent television, an intelligent sound box, a mobile terminal and a server, for example, the intelligent refrigerator obtains a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where the circulating fan is located, and obtains position coordinates of the circulating fan in the indoor area; determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate of the circulating fan, wherein the target blowing area does not contain the occupied area of the lamp; determining the swing range of the fan head of the circulating fan according to the target blowing area; and controlling the fan head of the circulating fan to blow according to the swinging range so that a blowing area formed by blowing of the circulating fan is a target blowing area.

Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

The following explanation is made with the application of the circulation fan control method to the circulation fan.

Referring to fig. 1, fig. 1 is a schematic flow chart of a method for controlling a circulation fan according to an embodiment of the present disclosure. As shown in fig. 1, the circulation fan control method includes steps S101 to S104.

Step S101, obtaining a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where a circulating fan is located, and obtaining a position coordinate of the circulating fan in the indoor area.

The fan head of the circulating fan can swing up and down and can also swing left and right, air can be stirred by controlling the fan head of the circulating fan to swing up and down and/or swing up and down, so that air blown out by the circulating fan can circulate indoors, the swing mode of the circulating fan comprises a single swing mode and a double swing mode, the single swing mode comprises one of the up-down swing mode and the left-right swing mode, when the circulating fan is in the up-down swing mode, the fan head of the circulating fan can swing up and down to supply air, when the circulating fan is in the left-right swing mode, the fan head of the circulating fan can swing left and right to supply air, and when the circulating fan is in the double swing mode, the fan head can be controlled to swing up and down to supply air, and meanwhile, the fan head can be controlled to swing left and right to supply air.

When the circulating fan is started, whether the current blowing mode of the circulating fan is the ceiling blowing mode or not is determined, if the current blowing mode of the circulating fan is the ceiling blowing mode, the first position coordinate range of the area occupied by the lamp on the ceiling of the indoor area where the circulating fan is located is obtained, and the position coordinate of the circulating fan in the indoor area is obtained. When the circulating fan is in a ceiling blowing mode, the elevation angle of the fan head of the circulating fan is larger than a set value.

In some embodiments, indoor positioning information of the circulating fan is acquired, and an indoor area where the circulating fan is located is determined according to the indoor positioning information; acquiring position coordinates of each corner point of an area occupied by a lamp on a ceiling of an indoor area; determining a first position coordinate range of the area occupied by the lamp according to the position coordinates of each corner point of the area occupied by the lamp; and determining the position coordinates of the circulating fan in the indoor area according to the indoor positioning information. The position of the lamp on the ceiling is usually fixed, so that the position coordinates of each corner point of the area occupied by the lamp on the ceiling in the indoor area can be calibrated in advance, and the calibrated position coordinates are stored in the memory.

In some embodiments, the manner of acquiring the indoor positioning information of the circulation fan is specifically: and acquiring indoor positioning information of the circulating fan through an indoor positioning system. The indoor positioning system comprises a positioning system realized based on a Bluetooth positioning technology, a positioning system realized based on a WiFi positioning technology and a positioning system realized based on an ultra-wideband positioning technology. The following description will take a positioning system implemented based on bluetooth positioning technology as an example.

Illustratively, a bluetooth module controlling the circulation fan transmits a bluetooth signal and receives the bluetooth signal through preset bluetooth beacon devices; determining the signal intensity of each received Bluetooth signal, and acquiring preset indoor positioning information of each Bluetooth beacon device; and determining the indoor positioning information of the circulating fan according to the signal intensity of each Bluetooth signal and the preset indoor positioning information of each Bluetooth beacon device. The indoor positioning information of the circulation fan can be determined according to the signal intensity of each Bluetooth signal and the preset indoor positioning information of each Bluetooth beacon device based on a triangulation algorithm. It is understood that the installation location and the number of the bluetooth beacon devices may be set based on actual situations, and the present application is not limited thereto.

In some embodiments, the determining the indoor area where the circulation fan is located according to the indoor positioning information specifically includes: and acquiring the indoor positioning information range corresponding to each indoor area, and determining the indoor area where the circulating fan is located according to the indoor positioning information of the circulating fan and the indoor positioning information range corresponding to each indoor area. And the indoor positioning information range corresponding to each indoor area is determined according to the indoor positioning system and is stored in the memory of the circulating fan.

In some embodiments, the determining the position coordinates of the circulation fan in the indoor area according to the indoor positioning information is specifically as follows: and acquiring a mapping relation between a space coordinate system of the indoor positioning system and a space coordinate system of the indoor area, and determining the position coordinate of the circulating fan in the indoor area according to the indoor positioning information of the circulating fan and the mapping relation. The mapping relation between the space coordinate system of the indoor positioning system and the space coordinate system of the indoor area can be obtained through calibration and stored in a storage of the circulating fan.

And S102, determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate.

The target air blowing area does not contain the occupied area of the lamp, the position coordinate in the first position coordinate range and the position coordinate of the circulating fan are located in the same coordinate system, the area where the lamp is located is rectangular, and it can be understood that the shape of the lamp generally comprises a rectangle and a circle, and if the shape of the lamp is circular, the area where the lamp is located is the circumscribed rectangle area of the lamp.

After the first position coordinate range of the occupied area of the lamp on the ceiling and the position coordinates of the circulation fan are determined, the target blowing area of the circulation fan on the ceiling may be determined based on the first position coordinate range and the position coordinates of the circulation fan so that the occupied area of the lamp is not located in the target blowing area.

In one embodiment, as shown in fig. 2, step S102 includes sub-steps S1021 to S1023.

And S1021, dividing the ceiling into a plurality of blowing areas according to the first position coordinate range and the preset position coordinate range of the ceiling, wherein each blowing area does not contain the occupied area of the lamp.

The preset position coordinate range of the ceiling is the position coordinate of each space point on the ceiling in the indoor area, and the position coordinate in the preset position coordinate range of the ceiling and the position coordinate in the first position coordinate range are located in the same coordinate system.

In some embodiments, the position coordinates of each vertex of the occupied area of the lamp on the ceiling are obtained from the first position coordinate range and are recorded as vertex position coordinates, and the position coordinates of each corner of the ceiling are obtained from the preset position coordinate range of the ceiling and are recorded as corner position coordinates; determining each boundary straight line of the area occupied by the lamp on the ceiling according to the position coordinates of each vertex, marking as a first boundary straight line, and determining each boundary straight line of the ceiling according to the position coordinates of each corner, and marking as a second boundary straight line; and determining the intersection point of each first boundary straight line and each second boundary straight line to obtain a plurality of intersection points, and dividing the ceiling into a plurality of blowing areas according to the position coordinates of the intersection points and the position coordinates of each corner of the ceiling.

In some embodiments, the dividing the ceiling into the plurality of blowing areas according to the position coordinates of the plurality of intersection points and the position coordinates of each corner of the ceiling is specifically: determining a first intersection point and a second intersection point which are positioned on a first boundary of the ceiling, and a third intersection point and a fourth intersection point which are positioned on a second boundary of the ceiling according to the position coordinates of the plurality of intersection points, wherein the first boundary is opposite to the second boundary, the first intersection point is opposite to the third intersection point, and the second intersection point is opposite to the fourth intersection point; and taking an area defined by the first intersection point, the third intersection point and two corners on a third boundary of the ceiling as an air blowing area, taking an area defined by the second intersection point, the fourth intersection point and two corners on a fourth boundary of the ceiling as another air blowing area, and enabling the third boundary to be opposite to the fourth boundary.

Or, according to the position coordinates of the plurality of intersection points, determining a fifth intersection point and a sixth intersection point which are positioned on a third boundary of the ceiling, and a seventh intersection point and an eighth intersection point which are positioned on a fourth boundary of the ceiling, wherein the fifth intersection point is opposite to the seventh intersection point, and the sixth intersection point is opposite to the eighth intersection point; and taking an area surrounded by the fifth intersection point, the seventh intersection point and two corners on the first boundary of the ceiling as a blowing area, and taking an area surrounded by the sixth intersection point, the eighth intersection point and two corners on the second boundary of the ceiling as another blowing area.

Illustratively, as shown in fig. 3, the ceiling Q includes a corner a, a corner B, a corner C, and a corner D, a first boundary a, a second boundary B, a third boundary C, and a fourth boundary D, the area occupied by the lamp on the ceiling is an area P, and the intersection points of the boundary straight line of the area occupied by the lamp on the ceiling and the boundary straight line of the ceiling are an intersection point 1, an intersection point 2, an intersection point 3, and an intersection point 4, then an area Q1 enclosed by the intersection point 1, the intersection point 3, the corner a, and the corner D is a blowing area, and an area Q2 enclosed by the intersection point 2, the intersection point 4, the corner B, and the corner C is another blowing area.

In some embodiments, the dividing the ceiling into the plurality of blowing areas according to the position coordinates of the plurality of intersection points and the position coordinates of each corner of the ceiling is specifically: according to the position coordinates of the intersection points, a first intersection point and a second intersection point which are positioned on a first boundary of the ceiling, a third intersection point and a fourth intersection point which are positioned on a second boundary of the ceiling, a fifth intersection point and a sixth intersection point which are positioned on a third boundary of the ceiling, a seventh intersection point and an eighth intersection point which are positioned on a fourth boundary of the ceiling are determined, the first intersection point is opposite to the third intersection point, the second intersection point is opposite to the fourth intersection point, the fifth intersection point is opposite to the seventh intersection point, the sixth intersection point is opposite to the eighth intersection point, the first intersection point is connected with the third intersection point, the second intersection point is connected with the fourth intersection point, the fifth intersection point is connected with the seventh intersection point, and the sixth intersection point is connected with the eighth intersection point, so that the ceiling is divided into 9 sub-areas, the area occupied by the lamp is removed from the 9 sub-areas, and 8 blowing areas are obtained.

Illustratively, as shown in fig. 4, the ceiling Q includes a corner a, a corner B, a corner C, and a corner D, a first boundary a, a second boundary B, a third boundary C, and a fourth boundary D, the occupied area of the lamp on the ceiling is an area P, and intersection points of the boundary straight lines of the occupied area of the lamp on the ceiling and the boundary straight lines of the ceiling are an intersection point 1, an intersection point 2, an intersection point 3, an intersection point 4, an intersection point 5, an intersection point 6, an intersection point 7, and an intersection point 8, the intersection point 1 is connected to the intersection point 3, the intersection point 2 is connected to the intersection point 4, the intersection point 5 is connected to the intersection point 7, and the intersection point 6 is connected to the intersection point 8, so that the ceiling Q is divided into a blowing area Q1, a blowing area Q2, a blowing area Q3, a blowing area Q4, a blowing area Q5, a blowing area Q6, a blowing area Q7, and a blowing area Q8.

And a substep S1022, determining whether the projection point of the circulating fan projected on the ceiling is located in the occupied area of the lamp according to the first position coordinate range and the position coordinate.

Specifically, the abscissa and the ordinate in the position coordinates of the circulating fan are compared with the abscissa and the ordinate of each of the position coordinates in the first position coordinates, and if the abscissa and the ordinate of the position coordinates in the first position coordinates in which the position coordinates exist are the same as those in the position coordinates of the circulating fan, it can be determined that the projection point of the circulating fan projected onto the ceiling is located within the occupied area of the lamp, and if the abscissa and the ordinate of the position coordinates in the first position coordinates in which the position coordinates exist are different from those in the position coordinates of the circulating fan, it can be determined that the projection point of the circulating fan projected onto the ceiling is not located within the occupied area of the lamp.

And a substep S1023 of selecting a target blowing area of the circulating fan on the ceiling from the plurality of blowing areas according to the position coordinate and the second position coordinate range of the plurality of blowing areas if the projection point is not located in the occupied area of the lamp.

Specifically, if the projection point of the circulating fan projected on the ceiling is not located in the occupied area of the lamp, determining a blowing area including the projection point of the circulating fan projected on the ceiling according to the position coordinate of the circulating fan and the second position coordinate range of the plurality of blowing areas; and taking a blowing area containing a projection point of the circulating fan projected on the ceiling as a target blowing area of the circulating fan on the ceiling. For example, as shown in fig. 5, the projection point of the circulation fan on the ceiling is point E, and point E is located in the blowing area Q1, the blowing area Q1 is taken as the target blowing area of the circulation fan on the ceiling.

In some embodiments, if the projection point is located in the occupied area of the lamp, determining the vertical distance between the projection point and each blowing area according to the position coordinate and the second position coordinate range of the plurality of blowing areas; and taking the blowing area corresponding to the shortest or longest vertical distance as a target blowing area of the circulating fan on the ceiling. The vertical distance between the projection point and each blowing area can be determined according to the abscissa in the position coordinates of the circulating fan and the abscissa of the position coordinates of the top point of the blowing area, and can also be determined according to the ordinate in the position coordinates of the circulating fan and the ordinate of the position coordinates of the top point of the blowing area.

And S103, determining the swing range of the fan head of the circulating fan according to the target blowing area.

The swing range of the fan head of the circulating fan comprises a swing range of the fan head of the circulating fan in a first direction and a swing range of the fan head in a second direction, the first direction is a left-right direction, the second direction is an up-down direction, or the first direction is an up-down direction, and the second direction is a left-right direction.

In an embodiment, as shown in fig. 6, step S103 includes sub-steps S1031 to S1032.

And a substep S1031 of obtaining distances between the circulation fan and each boundary of the target blowing area respectively and obtaining a current distance between the circulation fan and the ceiling.

The current distance between the circulating fan and the ceiling can be measured by a distance measuring sensor arranged on the fan head of the circulating fan, and the distance measuring sensor comprises any one of an ultrasonic distance measuring sensor, a laser distance measuring sensor and an infrared distance measuring sensor. In some embodiments, since the height between the ceiling and the floor is generally fixed and the circulation fan is also generally placed on the floor, the current distance between the circulation fan and the ceiling may be determined by the height between the ceiling and the floor and the current height of the circulation fan.

In some embodiments, the target blowing area includes a first boundary, a second boundary, a third boundary and a fourth boundary, the first boundary is opposite to the second boundary, the third boundary is opposite to the fourth boundary, and the manner of acquiring the distance between each boundary of the target blowing area and the circulation fan is specifically: acquiring a first position coordinate of a middle point of the first boundary, a second position coordinate of a middle point of the second boundary, a third position coordinate of a middle point of the third boundary and a fourth position coordinate of a middle point of the fourth boundary; determining a first distance between the circulating fan and the first boundary according to the first position coordinate and the position coordinate of the circulating fan; determining a second distance between the circulating fan and the second boundary according to the second position coordinate and the position coordinate of the circulating fan; determining a third distance between the circulating fan and a third boundary according to the third position coordinate and the position coordinate of the circulating fan; and determining a fourth distance between the circulating fan and the fourth boundary according to the fourth position coordinate and the position coordinate of the circulating fan.

For example, the position coordinate of the circulation fan is (x)1,y1,z1) And the position coordinate of the midpoint of a certain boundary is (x)2,y2,z2) The distance between the circulating fan and a boundary is

And a substep S1032 of determining the swing range of the fan head of the circulating fan according to the distance between the circulating fan and each boundary of the target blowing area and the current distance.

After determining the distances between the circulation fans and the boundaries of the target blowing area, respectively, and the current distance between the circulation fan and the ceiling, the swing range of the fan head of the circulation fan may be determined based on determining the distances between the circulation fans and the boundaries of the target blowing area, respectively, and the current distance between the circulation fan and the ceiling.

In some embodiments, a swing range of a head of the circulation fan in the first direction is determined according to the first distance, the second distance, and the current distance; and determining the swing range of the fan head of the circulating fan in the second direction according to the third distance, the fourth distance and the current distance. The first direction is a left-right direction, the second direction is an up-down direction, or the first direction is an up-down direction and the second direction is a left-right direction, if the first direction is the left-right direction and the second direction is the up-down direction, when the fan head of the circulating fan is positioned on the right side, the angle of the fan head is positive, otherwise, when the fan head of the circulating fan is positioned on the left side, the angle of the fan head is negative, the fan head of the circulating fan is vertical to the horizontal line, and when the fan head faces the right side, the elevation angle of the fan head is zero, when the fan head gradually tilts upwards, and when the angle reaches 90 degrees, the fan head continues to tilt upwards, and at the moment, the elevation angle of the fan head is larger than 90 degrees.

In some embodiments, a first angle of the head of the circulation fan in the first direction is determined according to the first distance and the current distance, and a second angle of the head of the circulation fan in the first direction is determined according to the second distance and the current distance; taking a first angle of the fan head in the first direction and a second angle of the fan head in the first direction as a swing range of the fan head of the circulating fan in the first direction; determining a third angle of the fan head of the circulating fan in the second direction according to the third distance and the current distance, and determining a fourth angle of the fan head of the circulating fan in the second direction according to the fourth distance and the current distance; and taking the third angle of the fan head in the second direction and the fourth angle of the fan head in the second direction as the swing range of the fan head of the circulating fan in the second direction.

In some embodiments, it is determined whether a projection point of the circulating fan projected on the ceiling is located in the target blowing area, and if the projection point of the circulating fan projected on the ceiling is not located in the target blowing area, a first angle of a fan head of the circulating fan in a first direction is determined according to a first distance and a current distance based on a first preset formula; determining a second angle of the fan head of the circulating fan in the first direction according to the second distance and the current distance based on a first preset formula; determining a third angle of the fan head of the circulating fan in the second direction according to the third distance and the current distance based on a first preset formula; and determining a fourth angle of the fan head of the circulating fan in the second direction according to the fourth distance and the current distance based on the first preset formula.

For example, the first preset formula is α ═ arccos (d/l), α is a first angle, a second angle, a third angle or a fourth angle, d is a current distance between the circulating fan and the ceiling, l is a first distance, a second distance, a third distance or a fourth distance, for example, the current distance between the circulating fan and the ceiling is 1.5 m, the first distance is 1.8 m, the second distance is 2.4 m, the second distance is 1.7 m, the fourth distance is 2.3 m, d is 1.5, l is 1.8, α ═ arccos (d/l) is calculated, it is possible to obtain a first angle of the fan head in the first direction of 33 °, d is 1.5, l is 2.4 °, α ═ arccos (d/l) is calculated, it is possible to obtain a second angle of the fan head in the first direction of 33 °, d ═ is 1.5, l is 2.4 °, α ═ arccos (d/l), and it is calculated it is possible to obtain a second angle of the fan head in the first direction of 51 ° in the first direction of the fan head of 51 ° of the swing of the range of 1.5, the calculation is performed by substituting α ═ arccos (d/l) with l ═ 1.7, and the calculation is performed by substituting α ═ arccos (d/l) with d ═ 1.5, and l ═ 2.3, and the calculation is performed by substituting α ═ arccos (d/l), and the calculation is performed by calculating the fourth angle of the fan head in the second direction is 49 °, and the swing range of the fan head in the second direction is 28 ° to 49 °.

In some embodiments, if a projection point of the circulating fan projected on the ceiling is located in the target blowing area, determining a first angle of a fan head of the circulating fan in a first direction according to a first distance and a current distance based on a first preset formula; determining a second angle of the fan head of the circulating fan in the first direction according to the second distance and the current distance based on a second preset formula; or determining a first angle of the fan head of the circulating fan in the first direction according to the first distance and the current distance based on a second preset formula; and determining a second angle of the fan head of the circulating fan in the first direction according to the second distance and the current distance based on a first preset formula. Similarly, based on the first preset formula, determining a third angle of the fan head of the circulating fan in the second direction according to the third distance and the current distance; determining a fourth angle of the fan head of the circulating fan in the second direction according to the fourth distance and the current distance based on a second preset formula; or determining a third angle of the fan head of the circulating fan in the second direction according to the third distance and the current distance based on a second preset formula; and determining a fourth angle of the fan head of the circulating fan in the second direction according to the fourth distance and the current distance based on the first preset formula.

For example, the second predetermined formula is that α is 180 ° -arccos (d/l), α is a first angle, a second angle, a third angle or a fourth angle, d is a current distance between the circulating fan and the ceiling, l is a first distance, a second distance, a third distance or a fourth distance, for example, the current distance between the circulating fan and the ceiling is 1.5 m, the first distance is 1.8 m, the second distance is 2 m, the third distance is 2 m, and the fourth distance is 2.1 m, d is 1.5, l is 1.8, and α is arccos (d/l) are substituted for calculation, the first angle of the fan head in the first direction is 33 °, d is 1.5, l is 2 α is 180 ° -arccos (d/l) is substituted for calculation, the second angle of the fan head in the first direction is 139 °, the fan head swings in the first direction are 139 °, 139 ° range of the first angle is 139 °,139 ° to 139 °,139 °, when d is 1.5, l is 2, α is arccos (d/l), the third angle of the fan head in the second direction is 41 °, d is 1.5, l is 2.1, α is 180 ° -arccos (d/l), and the swing range of the fan head in the second direction is 41 ° to 136 °.

And step S104, controlling the fan head of the circulating fan to perform swinging blowing according to the swinging range so as to enable a blowing area formed by blowing of the circulating fan to be the target blowing area.

After the swing range of the fan head is determined, the fan head of the circulating fan is controlled to perform swing blowing according to the swing range, so that a blowing area formed by the circular fan blowing is a target blowing area, namely the circulating fan is controlled to perform swing blowing according to the swing range of the fan head in the first direction, and the circulating fan is controlled to perform swing blowing according to the swing range of the fan head in the second direction, so that the blowing area formed by the circulating fan blowing is the target blowing area.

For example, the swing range of the fan head in the first direction is 33 ° to 51 °, and the swing range of the fan head in the second direction is 28 ° to 49 °, the fan head performs a reciprocating swing between 33 ° to 51 ° in the first direction, while the fan head performs a reciprocating swing between 28 ° to 49 ° in the second direction.

In some embodiments, when the circulating fan swings to blow air, the current distance between the circulating fan and the ceiling is obtained, and the air blowing gear of the circulating fan is determined according to the current distance between the circulating fan and the ceiling; and then controlling the wind speed of the circulating fan according to the blowing gear. The longer the current distance between the circulating fan and the ceiling is, the higher the blowing gear is, the stronger the wind speed of the circulating fan is, and the shorter the current distance between the circulating fan and the ceiling is, the lower the blowing gear is, and the weaker the wind speed of the circulating fan is.

The circulating fan control method provided by the application specification comprises the steps of obtaining a first position coordinate range of an occupied area of a lamp on a ceiling of an indoor area where a circulating fan is located, obtaining position coordinates of the circulating fan in the indoor area, determining a target blowing area of the circulating fan on the ceiling based on the first position coordinate range and the position coordinates of the circulating fan, enabling the occupied area of the lamp not to be located in the target blowing area, determining a swing range of a fan head of the circulating fan based on the target blowing area, controlling the fan head of the circulating fan to swing and blow according to the swing range, enabling the blowing area formed by the circulating fan to be the target blowing area, enabling the circulating fan to avoid the lamp on the ceiling to blow, and greatly improving user experience.

Referring to fig. 7, fig. 7 is a schematic block diagram of a structure of a circulation fan according to an embodiment of the present disclosure.

As shown in fig. 7, the circulation fan 200 includes a processor 202, a memory 203, and a communication interface 204 connected by a system bus 201, wherein the memory 203 may include a nonvolatile storage medium and an internal memory.

The non-volatile storage medium may store a computer program. The computer program includes program instructions that, when executed, cause a processor to perform any of the loop fan control methods.

The processor 202 is used to provide computational and control capabilities to support the operation of the entire cycle fan.

The memory 203 provides an environment for running a computer program in a non-volatile storage medium, which, when executed by the processor 202, causes the processor 202 to perform any one of the loop fan control methods.

The communication interface 204 is used for communication. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the circulation fan to which the present application is applied, and that a particular circulation fan may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

It should be understood that the bus 201 is, for example, an I2C (Inter-Integrated Circuit) bus, the Memory 203 may be a Flash chip, a Read-Only Memory (ROM), a magnetic disk, an optical disk, a usb disk, or a removable hard disk, the Processor 202 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

Wherein, in one embodiment, the processor 202 is configured to run a computer program stored in the memory 203 to implement the following steps:

acquiring a first position coordinate range of an area occupied by a lamp on a ceiling of an indoor area where a circulating fan is located, and acquiring a position coordinate of the circulating fan in the indoor area;

determining a target blowing area of the circulating fan on the ceiling according to the first position coordinate range and the position coordinate, wherein the target blowing area does not contain the occupied area of the lamp;

determining the swing range of the fan head of the circulating fan according to the target blowing area;

and controlling the fan head of the circulating fan to perform swinging blowing according to the swinging range so as to enable a blowing area formed by blowing of the circulating fan to be the target blowing area.

In one embodiment, the processor 202, when implementing acquiring the first position coordinate range of the occupied area of the luminaire on the ceiling of the indoor area where the circulation fan is located, and acquiring the position coordinate of the circulation fan in the indoor area, is configured to implement:

acquiring indoor positioning information of the circulating fan, and determining an indoor area where the circulating fan is located according to the indoor positioning information;

acquiring position coordinates of each corner point of the area occupied by the lamp on the ceiling of the indoor area;

determining a first position coordinate range of the area occupied by the lamp according to the position coordinates of each corner point of the area occupied by the lamp;

and determining the position coordinates of the circulating fan in the indoor area according to the indoor positioning information.

In one embodiment, the processor 202, in effecting determining the target blowing area of the circulation fan on the ceiling from the first position coordinate range and the position coordinates, is adapted to effect:

dividing the ceiling into a plurality of blowing areas according to the first position coordinate range and a preset position coordinate range of the ceiling, wherein each blowing area does not contain an area occupied by the lamp;

determining whether a projection point of the circulating fan projected on the ceiling is located in the occupied area of the lamp or not according to the first position coordinate range and the position coordinate;

and if the projection point is not located in the occupied area of the lamp, selecting a target blowing area of the circulating fan on the ceiling from the plurality of blowing areas according to the position coordinate and the second position coordinate range of the plurality of blowing areas.

In one embodiment, the processor 202, when implementing selecting the target blowing area of the circulation fan on the ceiling from the plurality of blowing areas according to the position coordinates and the second position coordinate range of the plurality of blowing areas, is configured to implement:

determining a blowing area containing a projection point of the circulating fan projected on the ceiling according to the position coordinate and a second position coordinate range of the plurality of blowing areas;

and taking a blowing area containing a projection point of the circulating fan projected on the ceiling as a target blowing area of the circulating fan on the ceiling.

In one embodiment, the processor 202, after implementing the determination of whether the projection point of the circulating fan projected on the ceiling is located within the occupied area of the luminaire according to the first position coordinate range and the position coordinates, is further configured to implement:

if the projection point is located in the occupied area of the lamp, determining the vertical distance between the projection point and each blowing area according to the position coordinate and the second position coordinate range of the plurality of blowing areas;

and taking the blowing area corresponding to the shortest or longest vertical distance as a target blowing area of the circulating fan on the ceiling.

In one embodiment, the processor 202, when implementing determining the swing range of the head of the circulation fan according to the target blowing area, is configured to implement:

acquiring the distance between the circulating fan and each boundary of the target blowing area respectively, and acquiring the current distance between the circulating fan and the ceiling;

and determining the swing range of the fan head of the circulating fan according to the distance between the circulating fan and each boundary of the target blowing area and the current distance.

In one embodiment, the target blowing area includes a first boundary, a second boundary, a third boundary and a fourth boundary, the first boundary is opposite to the second boundary, the third boundary is opposite to the fourth boundary, and the processor 202, when implementing acquiring the distances between the circulation fans and the respective boundaries of the target blowing area, is configured to implement:

acquiring a first position coordinate of the middle point of the first boundary, a second position coordinate of the middle point of the second boundary, a third position coordinate of the middle point of the third boundary and a fourth position coordinate of the middle point of the fourth boundary;

determining a first distance between the circulating fan and the first boundary according to the first position coordinate and the position coordinate of the circulating fan;

determining a second distance between the circulating fan and the second boundary according to the second position coordinate and the position coordinate of the circulating fan;

determining a third distance between the circulating fan and the third boundary according to the third position coordinate and the position coordinate of the circulating fan;

and determining a fourth distance between the circulating fan and the fourth boundary according to the fourth position coordinate and the position coordinate of the circulating fan.

In one embodiment, the processor 202, when determining the swing range of the fan head of the circulation fan according to the distance between each of the boundaries of the circulation fan and the target blowing area and the current distance, is configured to:

determining the swing range of the fan head of the circulating fan in the first direction according to the first distance, the second distance and the current distance;

and determining the swing range of the fan head of the circulating fan in the second direction according to the third distance, the fourth distance and the current distance.

It should be noted that, as will be clearly understood by those skilled in the art, for convenience and brevity of description, the specific working process of the circulation fan described above may refer to the corresponding process in the foregoing embodiment of the circulation fan control method, and is not described herein again.

Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of the loop fan control method in the present application.

The computer-readable storage medium may be an internal storage unit of the circulation fan described in the foregoing embodiment, for example, a hard disk or a memory of the circulation fan. The computer-readable storage medium may also be an external storage device of the circulation fan, such as a plug-in hard disk provided on the circulation fan, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like.

It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:晾衣提醒方法、系统、循环扇及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!