CN111677684B - Fan control method and device, computer equipment and storage medium - Google Patents

Fan control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111677684B
CN111677684B CN202010497801.9A CN202010497801A CN111677684B CN 111677684 B CN111677684 B CN 111677684B CN 202010497801 A CN202010497801 A CN 202010497801A CN 111677684 B CN111677684 B CN 111677684B
Authority
CN
China
Prior art keywords
fan
path
speed
head
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010497801.9A
Other languages
Chinese (zh)
Other versions
CN111677684A (en
Inventor
黄洁仪
吴旋仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010497801.9A priority Critical patent/CN111677684B/en
Publication of CN111677684A publication Critical patent/CN111677684A/en
Application granted granted Critical
Publication of CN111677684B publication Critical patent/CN111677684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/008Stop safety or alarm devices, e.g. stop-and-go control; Disposition of check-valves

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)
  • Structures Of Non-Positive Displacement Pumps (AREA)

Abstract

The application relates to a fan control method, a fan control device, computer equipment and a storage medium, wherein when the fan is controlled, the required shaking head path information of the fan can be obtained, and the operation control of the fan is carried out according to the first direction speed and the second direction speed which are required by the path corresponding to the shaking head path information which is pre-stored and the path information which finishes shaking head once, so that when the fan is started simultaneously in the first direction and the second direction, the fan can shake heads according to a set regular path (namely, the path corresponding to the shaking head path information), and the air supply operation is realized. Through the scheme of this embodiment, can avoid the fan irregular shaking head, the unable condition of air supply of dead angle region appears, has stronger air supply reliability.

Description

Fan control method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of household electrical appliance technologies, and in particular, to a fan control method and apparatus, a computer device, and a storage medium.
Background
The fan is used as a household appliance with a local cooling function, and is widely applied to daily life of people due to the advantage of saving electric energy compared with an air conditioner. According to different application occasions, the fan head is divided into a vertical fan, a desk fan, a hanging fan and the like, and in order to enable the fan to supply air for a larger area and give better use experience to a user, all fans have a certain head shaking function.
When the fan is controlled to shake the head, the fan often comprises two modes of shaking the head up and down and shaking the head left and right, and under general conditions, various fans can only shake the head left and right or shake the head up and down according to the independence to control air supply. If the user opens the up-and-down shaking head and the left-and-right shaking head simultaneously, the fan can have an irregular shaking head path, the shaking head position is easy to have dead corners, and air supply in a dead corner area cannot be realized. Therefore, the conventional fan has a disadvantage of poor reliability of air supply.
Disclosure of Invention
In view of the above, it is necessary to provide a fan control method, apparatus, computer device and storage medium for solving the problem of poor reliability of the conventional fan.
A fan control method, comprising: acquiring shaking head path information; matching according to the head shaking path information and a preset path database to obtain a first direction speed and a second direction speed required by the fan to finish one-time moving of the head shaking path information corresponding to the path, wherein when different head shaking path information is stored in the preset path database, the fan finishes one-time moving of the head shaking path information corresponding to the path and requires the first direction speed and the second direction speed, and the first direction speed and the second direction speed are speeds in two directions which are not parallel to each other respectively; and controlling the fan to operate according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed.
In an embodiment, after the step of obtaining a first direction speed and a second direction speed required by the fan to complete one-time moving of the fan according to the moving head path information and the preset path database by matching according to the moving head path information and before the step of controlling the fan to operate according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed, the method further includes: and calibrating the initial position of the fan according to the first direction speed, the second direction speed and corresponding preset initial position information.
In one embodiment, the step of calibrating the initial position of the fan according to the first direction speed, the second direction speed and the corresponding preset initial position information includes: controlling the fan to operate according to the first directional speed and the second directional speed; when the fan moves to the position corresponding to the first preset initial position information in the first direction, controlling the fan to stop running in the first direction, or when the fan moves to the position corresponding to the second preset initial position information in the second direction, controlling the fan to stop running in the second direction; when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, the initial position calibration of the fan is completed, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, the initial position calibration of the fan is completed.
In an embodiment, after the step of controlling the fan to run according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed, the method further includes: judging whether the fan finishes one-time walking of a path corresponding to the head shaking path information; if so, returning to the step of calibrating the initial position of the fan according to the first direction speed, the second direction speed and corresponding preset initial position information.
In one embodiment, before the step of acquiring the panning head path information, the method further comprises: when the fan is in different shaking head path information, a first movement path in a first direction and a second movement path in a second direction are obtained, and the first direction and the second direction are not parallel to each other; and analyzing and calculating according to the first movement path and the second movement path to obtain and store a first direction speed and a second direction speed corresponding to the head shaking path information to obtain a preset path database.
In one embodiment, the step of obtaining a first movement path in a first direction and a second movement path in a second direction when the fan is moving along different panning paths includes: acquiring a first angle coefficient rotating in a first direction and a second angle coefficient rotating in a second direction when the fan rotates in different head shaking path information; and obtaining a first movement path of the fan in the first direction according to the first head shaking angle of the fan in the first direction and the first angle coefficient, and obtaining a second movement path of the fan in the second direction according to the second head shaking angle of the fan in the second direction and the second angle coefficient.
In an embodiment, the panning path information comprises wordwise path information.
A fan control apparatus comprising: the path acquisition module is used for acquiring the head shaking path information; the speed analysis module is used for matching the moving head path information with a preset path database to obtain a first direction speed and a second direction speed which are required by the fan to move the moving head path information for one time and correspond to the path, when different moving head path information is stored in the preset path database, the fan moves the moving head path information for one time and corresponds to the path to obtain the first direction speed and the second direction speed, and the first direction speed and the second direction speed are respectively speeds in two directions which are not parallel to each other; and the operation control module is used for controlling the fan to operate according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
According to the fan control method, the fan control device, the computer equipment and the storage medium, when the fan is controlled, the information of the oscillating path required by the fan can be obtained, and the operation control of the fan is carried out according to the pre-stored oscillating path information and the first direction speed and the second direction speed required by the path corresponding to the information of the path of the single-time oscillation, so that when the fan is started in the first direction and the. Through the scheme of this embodiment, can avoid the fan irregular shaking head, the unable condition of air supply of dead angle region appears, has stronger air supply reliability.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for controlling a fan according to an embodiment;
FIG. 2 is a flow chart illustrating a fan control method according to another embodiment;
FIG. 3 is a flow chart illustrating a method for controlling a fan according to another embodiment;
FIG. 4 is a flow chart of a method for controlling a fan according to an embodiment;
FIG. 5 is a flow chart illustrating a fan control method according to yet another embodiment;
FIG. 6 is a schematic diagram illustrating a motion path analysis process according to an embodiment;
FIG. 7 is a schematic structural diagram of a fan control apparatus according to an embodiment;
FIG. 8 is a schematic structural diagram of a fan control apparatus according to another embodiment;
FIG. 9 is a schematic structural diagram of a fan control apparatus according to yet another embodiment;
FIG. 10 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are illustrated in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Referring to fig. 1, a fan control method includes steps S300, S400 and S600.
And step S300, acquiring the information of the shaking head path.
Specifically, the oscillating path information is the path information that the fan travels during the process of oscillating the fan to blow air. The path information of shaking the head specifically can be carried out different selections by the user in the in-service use to the fan can shake the head according to the path information of shaking the head of user's demand, realizes the air supply operation. For example, in one embodiment, the human-computer interaction interface of the fan not only has a windshield and a switch selection button similar to those of a conventional fan, but also is provided with a shaking head path information selection button, before the user uses the fan, the user can select the corresponding shaking head path information according to the shaking head path information selection button and by combining the user's requirements, and finally, the controller connected with the fan selection button can know the shaking head path information selected by the user, that is, the operation of obtaining the shaking head path information is realized.
It should be noted that in other embodiments, the fan may also have only one type of panning path information, and in this case, after the user turns on the fan, the controller of the fan will directly obtain the corresponding panning path information without the user performing selection and confirmation again. It can be understood that the specific form of the information of the shaking head path is not unique, and may be a shape of a Chinese character're', a semicircular shape, a circular shape, etc., as long as it can ensure that when the air blowing is performed on the shaking head path corresponding to the information of the shaking head path, no dead angle area can appear.
And S400, matching according to the shaking head path information and a preset path database to obtain a first direction speed and a second direction speed which are required by the fan to finish one-time shaking head path information and correspond to the path.
Specifically, the first directional speed and the second directional speed are speeds in two directions that are not parallel to each other, respectively. When the preset path database stores different head shaking path information, the fan finishes moving the head shaking path information for one time at the first direction speed and the second direction speed required by the corresponding path. In order to ensure that the fan can rotate along a specific path (namely, a path corresponding to the head shaking path information) and realize air supply operation, for different types of head shaking path information, a first direction speed and a second direction speed which are correspondingly required are prestored in the controller, and the fan is controlled to respectively run at the first direction and the second direction and the corresponding speeds, so that the fan shakes according to the specific path to realize air supply.
It should be noted that the specific form of the first direction and the second direction is not exclusive, and in a more detailed embodiment, the first direction and the second direction may be perpendicular to each other, further, the first direction may be defined as an up-down direction, i.e. a direction perpendicular to a horizontal plane after the fan is horizontally placed, and the corresponding second direction is a left-right direction, i.e. a direction parallel to the horizontal plane after the fan is horizontally placed.
And step S600, controlling the fan to run according to the path corresponding to the oscillating path information according to the first direction speed and the second direction speed.
Specifically, after the controller obtains a first direction speed required by the fan in the first direction and a second direction speed required by the fan in the second direction, the controller controls the fan to operate at two different speeds, so that the fan can finally shake the head along a path corresponding to the shake path information. It should be noted that in one embodiment, the first directional speed and the second directional speed are each achieved by different motor controls. In a specific operation process, the motor corresponding to the first direction and the motor corresponding to the second direction are controlled to operate at corresponding rotating speeds only by combining the relationship between the rotating speed of the motor and the rotating speed of the fan.
It should be noted that in one embodiment, the first direction speed and the second direction speed are not unique in magnitude, the first direction speed is different for different panning path information, and the second direction speed is different, so that the fan is controlled to run on the corresponding path of the corresponding panning path information by the speeds of different magnitudes in different directions. Furthermore, in an embodiment, for the same information of the moving head path, the speeds of the first direction required at different time points are not completely the same, and the speeds of the second direction are not completely the same at different time points, so that the fan can realize the corresponding paths and operations of different information of the moving head path.
Referring to fig. 2, in an embodiment, after step S400 and before step S600, the method further includes step S500.
And S500, calibrating the initial position of the fan according to the first direction speed, the second direction speed and the corresponding preset initial position information.
Specifically, in order to ensure that the fan can accurately realize specific path operation according to the first direction speed and the second direction speed in the subsequent control process, namely, the fan operates according to the path corresponding to the panning head path information. In the embodiment, before the head shaking control operation is started, the initial position of the fan is calibrated according to the real-time first direction speed, the real-time second direction speed and the preset initial position information, so that the fan can start to operate from the initial position when the head shaking is formally started, and the head shaking air supply operation of the fan can be further realized according to the path corresponding to the head shaking path information.
It can be understood that the number of the initial position information and the represented position are not unique, as long as it is ensured that the fan can operate according to the path corresponding to the moving head path information when the fan starts to operate from the position corresponding to the initial position information. In an embodiment, taking the moving head path information as the "again" word path information, the first direction is the up-down direction, and the second direction is the left-right direction as an example, since the maximum angles that can be reached by the up-down direction and the left-right direction are certain during the actual operation of the fan, the corresponding initial position information may be three, which are: firstly, the left-right shaking head position is at the leftmost end (the maximum angle which can be reached when shaking the head leftwards), and the up-down shaking head position is at the lowermost end (the maximum angle which can be reached when shaking the head downwards); secondly, the left-right shaking head position is at the rightmost end (the maximum angle which can be reached when shaking the head rightwards), and the up-down shaking head position is at the bottommost end; and thirdly, the left-right shaking head is in a middle position (corresponding to the middle value of the left-right shaking head angle range), and the up-down shaking head is in a highest position (the maximum angle which can be reached when the head is shaken upwards). In the actual operation control, when the up-down shaking angle and the left-right shaking angle of the fan reach any one of the three conditions, namely the position corresponding to the initial position information is reached, the calibration of the fan is completed.
Further, in one embodiment, the preset initial position information includes a first preset initial position information and a second preset initial position information, and the step S500 includes: controlling the fan to operate according to the first direction speed and the second direction speed; when the fan moves to a position corresponding to first preset initial position information in a first direction, controlling the fan to stop running in the first direction, or when the fan moves to a position corresponding to second preset initial position information in a second direction, controlling the fan to stop running in the second direction; and when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, finishing the initial position calibration of the fan, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, finishing the initial position calibration of the fan.
Specifically, in the embodiment, when the initial position is calibrated, the first direction and the second direction are respectively turned on to shake the head according to the corresponding speeds, that is, the fan moves according to the first direction speed in the first direction, and the fan moves according to the second direction in the second direction, and since the initial position of the fan is not unique, it is not necessarily the same time that the fan moves to the position corresponding to the preset initial position information in the first direction or the second direction. In this embodiment, after any one direction reaches the position corresponding to the preset initial position information, it is indicated that the calibration operation in the direction is completed, and it is only necessary to control the motor corresponding to the direction to stop rotating so as to stop the fan from shaking, and wait for the fan in the other direction to move to the position corresponding to the initial position information, so as to implement the calibration operation on the initial position of the fan.
Referring to fig. 3, in an embodiment, after step S600, the method further includes step S700.
And step S700, judging whether the fan finishes the path corresponding to the one-time shaking path information.
Specifically, referring to fig. 4, after the fan shakes its head according to the first direction speed and the second direction speed, the controller may also perform real-time determination on whether the path corresponding to the shaking path information is completed, so that the controller can timely know the path after the fan completes one air supply operation, and perform a corresponding control operation, so that the whole air supply control operation of the fan is more complete. It should be noted that in one embodiment, the controller operates according to a first directional speed and a second directional speed, which should be performed with the user simultaneously turning on the up-down (first directional) and left-right (second directional) panning of the fan, the controller performs initial position calibration according to the first directional speed, the second directional speed, etc., and the operation control operation of the fan only when the up-down panning and the left-right panning are both on.
It is to be understood that the manner in which the controller determines whether the fan has completed the path corresponding to the head shaking path information is not exclusive, and in one embodiment, the determination may be performed by detecting the sum of the angles of rotation of the fan in the first direction and the second direction. According to the specific shape of the oscillating path information, the rotating angle of the whole fan, namely the path, can be obtained when the air supply operation corresponding to the path is completed once. The controller can compare and analyze the real-time angle information in the rotation process of the fan with the rotation angle required by the primary path, and can judge whether the air supply of the primary path is finished.
If yes, returning to the step S500, and performing initial position calibration on the fan according to the first direction speed, the second direction speed and the corresponding preset initial position information. This embodiment can all return and carry out initial position calibration operation once after the air supply operation of the route that path information corresponds that shakes the head at every completion to when guaranteeing that the fan is shaken the head according to the path information of shaking the head each time, all can shake the head according to corresponding the route completely, further guarantee the reliability of fan air supply operation. If not, continuing to execute the operation of controlling the fan to run according to the path corresponding to the panning path information according to the first direction speed and the second direction speed until the path with the higher panning path information is completely walked.
Further, in another embodiment, after the controller determines that air supply is completed for one time according to the path corresponding to the panning head path information, the controller may directly return to the operation of controlling the fan to operate according to the path corresponding to the panning head path information according to the first direction speed and the second direction speed, that is, only one initial position calibration operation needs to be performed each time the fan panning head control is performed (or the fan is turned on), and similarly, the control of the fan to operate according to the path corresponding to the panning head path information can be realized.
It should be noted that in one embodiment, the fan control method further includes: and when a stop instruction sent by a user is received, controlling the fan to stop running. That is to say, when the user does not need to use the fan, the shutdown instruction can be sent to the controller directly through the control button of the human-computer interaction interface or in other modes.
Referring to fig. 5, in an embodiment, before step S300, the method further includes step S100 and step S200.
And S100, acquiring a first movement path in a first direction and a second movement path in a second direction when the fan is in different panning path information. And S200, analyzing and calculating according to the first movement path and the second movement path to obtain and store the first direction speed and the second direction speed corresponding to the head shaking path information to obtain a preset path database.
Specifically, the first direction and the second direction are not parallel to each other. The movement paths referred by the application are rotation angles of the fan, and the first movement path in the first direction is the sum of the rotation angles of the fan in the first direction; the second movement path in the second direction is the sum of the rotation angles of the fan in the second direction. When the information of the shaking head path is confirmed, the first movement path in the first direction and the second movement path in the second direction which are correspondingly needed are also determined, so that the first movement path in the first direction and the second movement path in the second direction of the corresponding path can be obtained directly according to different information of the shaking head path. In this embodiment, the moving paths of the different panning path information in the first direction and the second direction are obtained by analyzing according to the different panning path information. In the specific control process, the movement of the fan in the first direction and the second direction is performed simultaneously, so that the movement time of the fan in the first direction is the same as the movement time of the fan in the second direction, and the magnitude relation between the speed in the first direction and the speed in the second direction can be calculated according to the S (path) V (speed) T (time), and when one of the speed in the first direction or the speed in the second direction is determined, the magnitude of the other speed is determined accordingly. Through the mode, different head shaking path information is analyzed respectively, after the first direction speed and the second direction speed corresponding to the different head shaking path information are obtained, the head shaking path information is stored, a preset path database can be obtained, and in the subsequent control process, the corresponding first direction speed and the second direction speed are called only according to the head shaking path information.
It is to be understood that, in one embodiment, after the determined first direction speed and second direction speed are obtained, the panning path information and the first direction speed and second direction speed are stored to obtain the preset path database. Further, in an embodiment, for the same panning path information, different first direction speeds and second direction speeds may be stored according to a time axis, and in actual operation control, only at different operation time points, the panning of the fan is controlled according to the corresponding first direction speeds and second direction speeds, so that the panning control operation for a specific path of the fan can be realized. In another embodiment, the relationship between the first direction speed and the second direction speed and the information of the panning path may be stored to obtain a preset path database, and after the user determines the speed in one direction in the subsequent operation, the other speed is determined accordingly.
It should be noted that in one embodiment, the oscillating angle range of the fan in the up-down direction (i.e. the first direction) is a fixed range, while the oscillating angle of the fan in the left-right direction (i.e. the second direction) can be set by the user in actual use. In another embodiment, the oscillating angle range of the fan in the up-down direction and the oscillating angle range of the fan in the left-right direction are not fixed, and the oscillating angle range is specifically required to be operated, and the oscillating angle range can be specifically set by a user in the actual use process.
Further, referring to fig. 6, in an embodiment, step S100 includes step SS110 and step S120.
Step S110, when the fan is in different path information, a first angle coefficient of rotation in a first direction and a second angle coefficient of rotation in a second direction are obtained.
Step S120, a first movement path of the fan in the first direction is obtained according to a first head shaking angle and a first angle coefficient of the fan in the first direction, and a second movement path of the fan in the second direction is obtained according to a second head shaking angle and a second angle coefficient of the fan in the second direction.
Specifically, the angle coefficient is a proportionality coefficient of the sum of the rotation angles of the fan in the corresponding direction and the maximum rotation angle of the fan in the direction. The first angle coefficient is the sum of the rotation angle of the fan in the first direction and the second angle coefficientThe second angle coefficient is the ratio of the sum of the angles of the fan rotating in the second direction to the maximum rotation angle in the first direction. Analyzing the head shaking path by the're' character, and setting the head shaking degree up and down (namely the maximum rotation angle in the up-down direction) as NUp and downDegree, head angle of yaw (i.e. maximum angle of rotation in the left-right direction) is N(left and right)Degree, NUp and downDegree and N(left and right)The specific size of the degree can be set differently according to the requirements of the user and the like. By analyzing the patterns, when the user shakes the head up and down to walk the're' word path once, the user needs to rotate the head up and down one time, namely, the head rotates from the lowest end to the highest end and then rotates from the highest end to the lowest end. The oscillating angle in the up-down direction is NUp and downAnd when the fan rotates from the lowest end to the highest end, completing N of one sizeUp and downWhile the fan rotates from the uppermost end to the lowermost end by the same amount of NUp and downDegree, the corresponding first direction (up-down direction) path is 2NUp and downAnd (4) degree. Similarly, when the fan completes the path of 'again' for one time, the angle of shaking the head left and right is 1.5 times, and the angle of shaking the head left and right is N(left and right)Degree, at this time, the corresponding distance of shaking the head from left to right is 3N(left and right)The degree is calculated by S (distance) V (speed) T (time), and the route is planned to be finished by shaking up and down in the same time, namely the route finished by shaking up and down is 2N degrees up and down, and the route finished by shaking down and left is about 3N degrees, so that the following can be obtained: vUp and down=2NUp and down/(3N(left and right)/V(left and right)) In which V isUp and downVelocity in the up-down direction (first direction velocity), VUp and downThe velocity in the left-right direction (second direction velocity). But VUp and downOr VUp and downWhen determined, another velocity magnitude is also determined.
According to the fan control method, when the fan is controlled, the information of the oscillating path required by the fan can be obtained, and the operation control of the fan is carried out according to the pre-stored oscillating path information and the first direction speed and the second direction speed required by the path corresponding to the information of the path where the fan finishes one-time oscillating, so that when the fan is started in the first direction and the second direction simultaneously, the fan can oscillate according to the set regular path (namely the path corresponding to the oscillating path information), and the air supply operation is realized. Through the scheme of this embodiment, can avoid the fan irregular shaking head, the unable condition of air supply of dead angle region appears, has stronger air supply reliability.
Referring to fig. 7, a fan control device includes: a path acquisition module 200, a speed analysis module 300, and an operation control module 500. The path obtaining module 200 is configured to obtain panning head path information; the speed analysis module 300 is configured to match the moving head path information with a preset path database to obtain a first direction speed and a second direction speed required by the fan to complete the moving head path information for one time; the operation control module 500 is configured to control the fan to operate according to a path corresponding to the panning path information according to the first direction speed and the second direction speed.
Referring to FIG. 8, in one embodiment, the apparatus further includes a position calibration module 400 after the speed analysis module 300 and before the control module 500 is run. The position calibration module 400 is configured to perform initial position calibration on the fan according to the first direction speed, the second direction speed, and corresponding preset initial position information.
In one embodiment, the preset initial position information includes first preset initial position information and second preset initial position information, and the position calibration module 400 is further configured to control the fan to operate according to the first direction speed and the second direction speed; when the fan moves to a position corresponding to first preset initial position information in a first direction, controlling the fan to stop running in the first direction, or when the fan moves to a position corresponding to second preset initial position information in a second direction, controlling the fan to stop running in the second direction; and when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, finishing the initial position calibration of the fan, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, finishing the initial position calibration of the fan.
Referring to fig. 8, in one embodiment, after the control module 500 is operated, the apparatus further includes an operation determination module 600. The operation determining module 600 is configured to determine whether the fan has finished moving the path corresponding to the head shaking path information.
Referring to fig. 9, in an embodiment, before the path obtaining module 200, the apparatus further includes a path database establishing module 100. The path database establishing module 100 is configured to obtain a first movement path in a first direction and a second movement path in a second direction when the fan is in different panning path information, where the first direction and the second direction are not parallel to each other; and analyzing and calculating according to the first movement path and the second movement path to obtain and store the first direction speed and the second direction speed corresponding to the head shaking path information to obtain a preset path database.
Further, in an embodiment, the path database building module 100 is further configured to obtain a first angle coefficient of rotation of the fan in the first direction and a second angle coefficient of rotation of the fan in the second direction when the fan is in different panning path information; and obtaining a first movement path of the fan in the first direction according to a first head shaking angle and a first angle coefficient of the fan in the first direction, and obtaining a second movement path of the fan in the second direction according to a second head shaking angle and a second angle coefficient of the fan in the second direction.
For the specific definition of the fan control device, reference may be made to the above definition of the fan control method, which is not described herein again. Each module in the fan control device may be implemented wholly or partially by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to the fan control device, when the fan is controlled, the required head shaking path information of the fan can be acquired, and the operation control of the fan is carried out according to the pre-stored head shaking path information and the first direction speed and the second direction speed required by the path corresponding to the head shaking path information after the fan finishes moving, so that when the fan is started in the first direction and the second direction simultaneously, the head shaking can be carried out according to the set regular path (namely, the path corresponding to the head shaking path information), and the air supply operation is realized. Through the scheme of this embodiment, can avoid the fan irregular shaking head, the unable condition of air supply of dead angle region appears, has stronger air supply reliability.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the rocking path information and the path data of each speed corresponding relation. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a fan control method.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring shaking head path information; matching according to the shaking path information and a preset path database to obtain a first direction speed and a second direction speed which are required by the fan to finish one-time shaking path information and correspond to the path; and controlling the fan to run according to the path corresponding to the oscillating path information according to the first direction speed and the second direction speed.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and calibrating the initial position of the fan according to the first direction speed, the second direction speed and the corresponding preset initial position information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: controlling the fan to operate according to the first direction speed and the second direction speed; when the fan moves to a position corresponding to first preset initial position information in a first direction, controlling the fan to stop running in the first direction, or when the fan moves to a position corresponding to second preset initial position information in a second direction, controlling the fan to stop running in the second direction; and when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, finishing the initial position calibration of the fan, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, finishing the initial position calibration of the fan.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and judging whether the fan finishes the path corresponding to the one-time shaking path information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the fan is in different shaking path information, a first movement path in a first direction and a second movement path in a second direction are obtained, and the first direction and the second direction are not parallel to each other; and analyzing and calculating according to the first movement path and the second movement path to obtain and store the first direction speed and the second direction speed corresponding to the head shaking path information to obtain a preset path database.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a first angle coefficient rotating in a first direction and a second angle coefficient rotating in a second direction when the fan rotates in different head shaking path information; and obtaining a first movement path of the fan in the first direction according to a first head shaking angle and a first angle coefficient of the fan in the first direction, and obtaining a second movement path of the fan in the second direction according to a second head shaking angle and a second angle coefficient of the fan in the second direction.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring shaking head path information; matching according to the shaking path information and a preset path database to obtain a first direction speed and a second direction speed which are required by the fan to finish one-time shaking path information and correspond to the path; and controlling the fan to run according to the path corresponding to the oscillating path information according to the first direction speed and the second direction speed.
In one embodiment, the computer program when executed by the processor further performs the steps of: and calibrating the initial position of the fan according to the first direction speed, the second direction speed and the corresponding preset initial position information.
In one embodiment, the computer program when executed by the processor further performs the steps of: controlling the fan to operate according to the first direction speed and the second direction speed; when the fan moves to a position corresponding to first preset initial position information in a first direction, controlling the fan to stop running in the first direction, or when the fan moves to a position corresponding to second preset initial position information in a second direction, controlling the fan to stop running in the second direction; and when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, finishing the initial position calibration of the fan, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, finishing the initial position calibration of the fan.
In one embodiment, the computer program when executed by the processor further performs the steps of: and judging whether the fan finishes the path corresponding to the one-time shaking path information.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the fan is in different shaking path information, a first movement path in a first direction and a second movement path in a second direction are obtained, and the first direction and the second direction are not parallel to each other; and analyzing and calculating according to the first movement path and the second movement path to obtain and store the first direction speed and the second direction speed corresponding to the head shaking path information to obtain a preset path database.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a first angle coefficient rotating in a first direction and a second angle coefficient rotating in a second direction when the fan rotates in different head shaking path information; and obtaining a first movement path of the fan in the first direction according to a first head shaking angle and a first angle coefficient of the fan in the first direction, and obtaining a second movement path of the fan in the second direction according to a second head shaking angle and a second angle coefficient of the fan in the second direction.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
According to the computer equipment and the storage medium, when the fan is controlled, the information of the shaking head path required by the fan can be obtained, and the operation control of the fan is carried out according to the pre-stored information of the shaking head path and the first direction speed and the second direction speed required by the path corresponding to the information of the path of the shaking head which finishes one time, so that when the fan is started in the first direction and the second direction simultaneously, the shaking head can be carried out according to the set regular path (namely, the path corresponding to the information of the shaking head path), and the air supply operation is realized. Through the scheme of this embodiment, can avoid the fan irregular shaking head, the unable condition of air supply of dead angle region appears, has stronger air supply reliability.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A fan control method, comprising:
acquiring shaking head path information;
matching according to the head shaking path information and a preset path database to obtain a first direction speed and a second direction speed required by the fan to finish one-time moving of the head shaking path information corresponding to the path, wherein when different head shaking path information is stored in the preset path database, the fan finishes one-time moving of the head shaking path information corresponding to the path and requires the first direction speed and the second direction speed, and the first direction speed and the second direction speed are speeds in two directions which are not parallel to each other respectively;
calibrating the initial position of the fan according to the first direction speed, the second direction speed and corresponding preset initial position information;
and controlling the fan to operate according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed.
2. The fan control method according to claim 1, wherein the preset initial position information includes first preset initial position information and second preset initial position information, and the step of calibrating the initial position of the fan according to the first directional speed, the second directional speed and the corresponding preset initial position information includes:
controlling the fan to operate according to the first directional speed and the second directional speed;
when the fan moves to the position corresponding to the first preset initial position information in the first direction, controlling the fan to stop running in the first direction, or when the fan moves to the position corresponding to the second preset initial position information in the second direction, controlling the fan to stop running in the second direction;
when the fan moves to the position corresponding to the second preset initial position information in the same way in the second direction, the initial position calibration of the fan is completed, or when the fan moves to the position corresponding to the first preset initial position information in the same way in the first direction, the initial position calibration of the fan is completed.
3. The method according to claim 1, wherein after the step of controlling the fan to operate according to the path corresponding to the panning path information based on the first direction speed and the second direction speed, the method further comprises:
judging whether the fan finishes one-time walking of a path corresponding to the head shaking path information;
if so, returning to the step of calibrating the initial position of the fan according to the first direction speed, the second direction speed and corresponding preset initial position information.
4. The fan control method according to claim 1, wherein said step of acquiring panning head path information is preceded by the step of:
when the fan is in different shaking head path information, a first movement path in a first direction and a second movement path in a second direction are obtained, and the first direction and the second direction are not parallel to each other;
and analyzing and calculating according to the first movement path and the second movement path to obtain and store a first direction speed and a second direction speed corresponding to the head shaking path information to obtain a preset path database.
5. The fan control method according to claim 4, wherein the step of obtaining a first moving distance in a first direction and a second moving distance in a second direction when the fan is moving along different panning paths comprises:
acquiring a first angle coefficient rotating in a first direction and a second angle coefficient rotating in a second direction when the fan rotates in different head shaking path information;
and obtaining a first movement path of the fan in the first direction according to the first head shaking angle of the fan in the first direction and the first angle coefficient, and obtaining a second movement path of the fan in the second direction according to the second head shaking angle of the fan in the second direction and the second angle coefficient.
6. The fan control method according to any of claims 1-5, wherein the panning head path information comprises wordback path information.
7. A fan control apparatus, comprising:
the path acquisition module is used for acquiring the head shaking path information;
the speed analysis module is used for matching the moving head path information with a preset path database to obtain a first direction speed and a second direction speed which are required by the fan to move the moving head path information for one time and correspond to the path, when different moving head path information is stored in the preset path database, the fan moves the moving head path information for one time and corresponds to the path to obtain the first direction speed and the second direction speed, and the first direction speed and the second direction speed are respectively speeds in two directions which are not parallel to each other;
the position calibration module is used for calibrating the initial position of the fan according to the first direction speed, the second direction speed and corresponding preset initial position information;
and the operation control module is used for controlling the fan to operate according to the path corresponding to the moving head path information according to the first direction speed and the second direction speed.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010497801.9A 2020-06-04 2020-06-04 Fan control method and device, computer equipment and storage medium Active CN111677684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010497801.9A CN111677684B (en) 2020-06-04 2020-06-04 Fan control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010497801.9A CN111677684B (en) 2020-06-04 2020-06-04 Fan control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111677684A CN111677684A (en) 2020-09-18
CN111677684B true CN111677684B (en) 2021-06-01

Family

ID=72453370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010497801.9A Active CN111677684B (en) 2020-06-04 2020-06-04 Fan control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111677684B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117072474B (en) * 2023-10-10 2023-12-19 广东顺德中午电器制造有限公司 Control method of electric fan

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201507464U (en) * 2009-09-30 2010-06-16 赵岩峰 Path memory function oscillating fan
JP2014163351A (en) * 2013-02-27 2014-09-08 U-Tec Corp Electric fan
CN104454598A (en) * 2014-12-03 2015-03-25 广东美的环境电器制造有限公司 Electric fan, electric fan swing control device and swing control method
CN106089777A (en) * 2016-06-01 2016-11-09 广东美的环境电器制造有限公司 The control method of system of shaking the head, device, system, fan and warm-air drier
CN107100872A (en) * 2017-06-02 2017-08-29 广东美的环境电器制造有限公司 The method of the drive assembly of oscillating fan, oscillating fan and position adjustments of shaking the head

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201507464U (en) * 2009-09-30 2010-06-16 赵岩峰 Path memory function oscillating fan
JP2014163351A (en) * 2013-02-27 2014-09-08 U-Tec Corp Electric fan
CN104454598A (en) * 2014-12-03 2015-03-25 广东美的环境电器制造有限公司 Electric fan, electric fan swing control device and swing control method
CN106089777A (en) * 2016-06-01 2016-11-09 广东美的环境电器制造有限公司 The control method of system of shaking the head, device, system, fan and warm-air drier
CN107100872A (en) * 2017-06-02 2017-08-29 广东美的环境电器制造有限公司 The method of the drive assembly of oscillating fan, oscillating fan and position adjustments of shaking the head

Also Published As

Publication number Publication date
CN111677684A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN111677684B (en) Fan control method and device, computer equipment and storage medium
CN109268936B (en) Control method and device of air conditioner, air conditioner and storage medium
CN116540630B (en) Control method, device, equipment and storage medium of machine tool
CN105988561A (en) Starting method and device of terminal application program
CN108826596A (en) For rotating wind deflector to the method, apparatus of predeterminated position and air conditioner
CN113063442A (en) Floor sweeping robot gyroscope calibration method and device, computer equipment and memory
CN109648563A (en) Serial manipulator motion control method and computer storage medium
CN113561175B (en) Path planning method and device of mechanical arm, computer equipment and storage medium
CN115464660A (en) Path planning method, device and equipment of spraying robot and storage medium
CN112145470B (en) Method, device and equipment for controlling electric fan and storage medium
CN111976302B (en) Laser printing equipment, laser printing method and computer storage medium
CN112880140B (en) Control method of air conditioner, air conditioner and computer readable storage medium
CN110360089B (en) Network-based speed-regulating peristaltic pump system and flow regulating method thereof
CN113325698A (en) Troweling machine control method and device, computer equipment and storage medium
CN109099564B (en) Intelligent linkage control method and device for air conditioner, computer equipment and storage medium
CN112922874A (en) Fan control method, terminal device, system and storage medium
CN112302982A (en) Electric fan oscillating control method and device, electric fan and readable storage medium
CN113970920A (en) Method and device for controlling cleaning path of window cleaning machine
JP4773837B2 (en) Air pool analyzer
CN113494478B (en) Control method, device and storage medium
CN115647575B (en) Laser processing control method, device, equipment and storage medium
KR102349654B1 (en) Method, apparatus and computer program for revising curvature error of automatic driving vehicle
US11628806B2 (en) Systems and methods for calibrating a windshield wiper system
CN112925459B (en) Blowing control method of fan, terminal equipment, system and storage medium
CN111412609B (en) Non-wind-sensing air supply method based on air conditioner, storage medium and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant