Disclosure of Invention
In view of the foregoing technical problems, embodiments of the present invention are directed to a fan based on sensing, a control method thereof, and a computer storage medium, which implement control of an electric fan according to sensing information.
The technical scheme of the embodiment of the invention is realized as follows:
an embodiment of the present invention provides a fan based on induction, where the fan includes: the temperature detection device comprises an induction module, a temperature detection module and a main control module, wherein the main control module is respectively connected with the induction module and the temperature detection module; wherein,
the response module for detect the first response information in the environment of awaiting measuring, first response information includes: information characterizing a distance between the inductive object and the fan;
the temperature detection module is used for detecting the ambient temperature in the environment to be detected;
and the main control module is used for determining that the distance between the induction object and the fan is within a first preset range according to the first induction information and controlling the operation of the fan according to preset operation parameters when the ambient temperature is higher than a preset temperature.
In the above solution, the fan further includes: the main motor is connected with the main control module, and the main motor is connected with the fan blade module;
the master control module is specifically used for:
searching a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset by a wind speed gear table, and starting a main motor of the fan according to the searched wind speed gear;
the main motor is used for providing driving force for the fan blade module according to the inquired wind speed gear;
the fan blade module is used for rotating based on a rotating speed corresponding to the driving force.
In the above solution, the fan further includes: the humidity detection module and the humidification module are respectively connected with the main control module; wherein,
the humidity detection module is used for detecting humidity information in the environment to be detected;
the humidifying module is used for humidifying the environment to be tested;
the master control module is further used for controlling the humidifying module to humidify the environment to be tested when the humidity of the environment to be tested is determined to be lower than the preset humidity according to the humidity information.
In the above solution, the fan further includes: the oscillating motor is connected with the main control module, and the oscillating motor is connected with the fan blade module;
the main control module is also used for controlling the oscillating motor to rotate after the main motor is started according to the found wind speed gear;
the fan blade module is also used for following the rotation of the oscillating motor and changing the current orientation of the fan blade module in the oscillating angle.
In the above solution, the sensing module is further configured to detect second sensing information within the swing angle, where the second sensing information includes: representing distribution condition information of the induction object relative to the fan;
the main control module is also used for adjusting the rotation of the oscillating motor based on the distribution condition information;
the fan blade module is also used for following the rotation adjustment of the oscillating motor the swing angle of the fan blade module.
In the foregoing solution, the second sensing information further includes: characterizing physiological information of the sensed subject;
and the main control module is further used for searching a wind speed gear corresponding to the preset physiological information in the wind speed gear table after adjusting the swing angle along with the rotation of the oscillating motor and when determining that the physiological information in the second sensing information is matched with the preset physiological information, and adjusting the rotation rate of the main motor according to the searched gear.
In the above-mentioned scheme, the response module is still used for when preset sleep state detection time arrives, detect third response information in the environment of awaiting measuring, third response information includes: characterizing physiological information of the sensed subject;
the main control module is further configured to, when determining that the induction object is in a sleep state according to the physiological information in the third induction information, search for a wind speed gear corresponding to the sleep state in the preset fan table, adjust the rotation rate of the main motor according to the searched wind speed gear, and control the electric motor to point to a first direction in which the induction object is located within a first preset time period and point to a preset second direction within a second preset time period, where the first direction is different from the second direction.
In the foregoing solution, the second sensing information further includes: information characterizing a distance between the inductive object and the fan;
the main control module is further used for controlling the main motor and the oscillating motor to stop rotating when the time for the induction object to leave the second preset range and leave the second preset range is greater than the preset time according to the induction object and the distance between the fans to determine the oscillating angle range.
The embodiment of the invention also provides a fan control method based on induction, which comprises the following steps:
detecting first sensory information within an environment under test, the first sensory information comprising: information characterizing a distance between the inductive object and the fan;
detecting an ambient temperature within the environment to be measured;
and when the distance between the induction object and the fan is determined to be within a first preset range and the environment temperature is higher than a preset temperature according to the first induction information, controlling the fan to operate according to preset operation parameters.
In the above scheme, the controlling the operation of the fan according to the preset operation parameters includes: searching a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset by a wind speed gear table, and starting a main motor of the fan according to the searched wind speed gear; the main motor is used for providing driving force for the fan blade module according to the inquired wind speed gear, and the fan blade module is used for rotating based on the rotating speed corresponding to the driving force.
In the above scheme, the method further comprises: detecting humidity information in the environment to be detected;
and when the humidity of the environment to be tested is determined to be lower than the preset humidity according to the humidity information, controlling a humidifying module to humidify the environment to be tested.
In the foregoing solution, after the operation of the fan is controlled according to the preset operation parameter, the method further includes: and controlling the oscillating motor to rotate so as to control the oscillating angle of the fan blade module by controlling the rotation of the oscillating motor.
In the above scheme, the method further comprises: detecting second sensing information within the rocking angle, the second sensing information including: representing distribution condition information of the induction object relative to the fan;
based on the distribution condition information adjustment the rotation of the oscillating motor is controlled the flabellum module follows the rotation adjustment of the oscillating motor swings the angle.
In the foregoing solution, the second sensing information further includes: characterizing physiological information of the sensed subject;
after the swing angle is adjusted along with the rotation of the oscillating motor, the method further comprises the following steps:
when the physiological information in the second sensing information is determined to be matched with preset physiological information, a wind speed gear corresponding to the preset physiological information is searched in the wind speed gear table, and the rotation rate of the main motor is adjusted according to the searched gear.
In the above scheme, the method further comprises: when the preset sleep state detection time comes, detecting third induction information in the environment to be detected, wherein the third induction information comprises: characterizing physiological information of the sensed subject;
when the induction object is determined to be in the sleep state according to the physiological information in the third induction information, searching a wind speed gear corresponding to the sleep state in the preset fan table, adjusting the rotation rate of the main motor according to the searched wind speed gear, and controlling the oscillating motor to point to a first direction in which the induction object is located within a first preset time period and point to a preset second direction within a second preset time period, wherein the first direction is different from the second direction.
In the foregoing solution, the second sensing information further includes: information characterizing a distance between the inductive object and the fan;
the method further comprises the following steps: and when the induction object in the shaking angle range is determined to leave the second preset range and the time of leaving the second preset range is longer than the preset time according to the distance between the induction object and the fan, controlling the main motor and the shaking motor to stop rotating.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the fan control method based on induction.
The embodiment of the invention provides a fan based on induction, a control method thereof and a computer storage medium, which are used for detecting first induction information in an environment to be detected, wherein the first induction information comprises: information characterizing a distance between the inductive object and the fan; detecting an ambient temperature within the environment to be measured; and when the distance between the induction object and the fan is determined to be within a first preset range and the environment temperature is higher than a preset temperature according to the first induction information, controlling the fan to operate according to preset operation parameters. Therefore, the embodiment of the invention can judge the distance between the induction object and the fan and the ambient temperature, and can automatically control the operation of the fan according to the operation parameters corresponding to the distance and the ambient temperature if the distance and the ambient temperature are respectively greater than the set threshold value, so that the operation or the start of the electric fan can be controlled by human body induction without manually starting the fan, controlling the wind power and the like in front of the fan by a user.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings, which illustrate some, but not all embodiments of the present invention. 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 invention.
The embodiment of the invention discloses a fan based on induction, as shown in figure 1, the fan comprises: the temperature detection device comprises a sensing module 101, a temperature detection module 102 and a main control module 103, wherein the main control module 103 is respectively connected with the sensing module 101 and the temperature detection module 102; wherein,
the sensing module 101 is configured to detect first sensing information in an environment to be detected, where the first sensing information includes: information characterizing a distance between the inductive object and the fan;
here, the sensing module 101 may be an infrared sensor or a camera.
The sensing module 101 detects first sensing information in an environment to be detected.
Here, the environment to be measured refers to an indoor environment, which may be a home, an office company, or a school, and is not limited in the embodiment of the present invention. The first sensing information may be: and the distance between the induction object and the fan is determined by adopting image positioning according to infrared induction information detected by the infrared sensor or image information captured by the camera. In some embodiments, the first sensing information may be obtained by emitting a probe wave and a reflected wave based on the probe wave. In the following examples, infrared sensing information is taken as an example for illustration.
Here, the sensing object may be any object that needs a fan to dissipate heat, and may be a person, a pet at home, or an article that needs heat dissipation, which is not specifically defined in the embodiment of the present invention. In the following examples, the following examples are given by way of illustration.
The fan control method is applied to a fan, an infrared sensor in the fan detects infrared sensing information in an indoor environment in a set detection period, when a user is in the indoor environment, the infrared sensor can detect the infrared sensing information of the user, wherein the infrared sensing information comprises information representing the distance between a sensing object and the fan and some physiological information of the user, and the physiological information can be the body temperature of each part of the user, the body shape after infrared imaging and the like.
The temperature detection module 102 is configured to detect an ambient temperature in the environment to be detected;
here, the temperature detecting module 102 may be a temperature sensor or a device or a software system built in the fan and capable of acquiring a weather forecast of a third party, or may be a thermometer directly measuring a position of the fan.
The temperature detection module 102 detects an ambient temperature within the environment to be detected.
Specifically, the ambient temperature within the environment to be detected may be detected by a temperature sensor; or, acquiring the temperature of the weather forecast of a third party to judge the environmental temperature in the environment to be detected in a networking mode.
And the main control module 103 is configured to determine that the distance between the sensing object and the fan is within a first preset range according to the first sensing information, and control the operation of the fan according to preset operation parameters when the ambient temperature is greater than a preset temperature.
The main control module 103 may include: a processor or processing circuitry. The processor may include: a central processing unit, a microprocessor, a digital signal processor, a programmable array or an application processor, etc. The processing circuit may include: an application specific integrated circuit.
Further, the fan further includes: the fan blade module comprises a main motor 104 and a fan blade module 105, wherein the main motor 104 is connected with the main control module 103, and the main motor 104 is connected with the fan blade module 105;
and the main control module 103 determines that the distance between the induction object and the fan is within a first preset range according to the first induction information, and controls the fan to operate according to preset operation parameters when the ambient temperature is higher than a preset temperature.
The preset operation parameters are control parameters for controlling the fan to operate according to a preset operation condition, and may specifically include: startup parameters, power parameters and/or orientation parameters, etc. The starting parameter may be used to start the fan, the power parameter may be used to control the output power of the fan, so as to control the temperature adjustment strength of the fan, and the orientation parameter may be used to control the orientation of the blade module of the fan, or the air outlet direction, and the like. Of course, the implementation is such that the operating parameters are not limited to any of the above parameters.
Here, the first preset range may be 1m, or 1.5m, or 2m, etc. from the fan; the preset temperature may be 29 ℃, or 30 ℃, or 31 ℃ or the like. The first preset range and the preset temperature are not specifically limited in the embodiment of the invention.
Specifically, since the first sensing information includes information about a distance between the sensing object and the fan, it may be determined whether the distance between the sensing object and the fan is within a first preset range according to the first sensing information, and if it is determined that the distance between the sensing object and the fan is within the first preset range and the ambient temperature is greater than a preset temperature according to the first sensing information, the operation of the fan is controlled according to preset operation parameters. It should be noted that the user is present in the first preset range, but the fan blades are not facing the user, and at this time, the oscillating motor needs to be controlled to rotate, so that the fan blades are facing the user.
For example, assume that the first preset range is 2m and the preset temperature is 30 ℃. Detecting infrared induction information of a user, judging whether the user is 2m away from the fan or not according to the detected information, and controlling a main motor of the fan to rotate if the user is within 2m away from the fan and the ambient temperature is more than 30 ℃; assuming that the user is within 2m from the fan and the ambient temperature is less than 30 ℃, the main motor of the fan will not be controlled accordingly, i.e. the main motor of the fan does not work.
The main control module 103 is specifically configured to: searching a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset by a wind speed gear table, and starting a main motor of the fan according to the searched wind speed gear;
the main motor 104 is configured to provide a driving force to the fan blade module 105 according to the queried wind speed gear;
the fan blade module 105 is configured to rotate based on a rotation rate corresponding to the driving force.
The main electric machine 104 may include: various motors that provide a rotational driving force, for example, a stepping motor, etc.
Fan blade module 105 includes: the fan blade module comprises one or more fan blades and a rotating shaft, wherein the fan blades are connected to the periphery of the rotating shaft, the rotating shaft is connected with the main motor 104, and the main motor 104 drives the fan blades to rotate around the rotating shaft, so that the fan blade module 105 is driven.
The main control module 103 searches a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset in a wind speed gear table, and starts a main motor of the fan according to the searched wind speed gear; the main motor 104 provides a driving force to the blade module 105 according to the queried wind speed gear, and the blade module 105 rotates based on a rotation rate corresponding to the driving force.
For example, assume that the user is at a distance of 1.5m from the fan, the ambient temperature is 35 ℃, the first preset range is 2m, and the preset temperature is 30 ℃. Detect user's infrared ray induction information, main control module 103 judges whether the user appears in first preset range according to the information that detects, whether the distance s that the user is apart from the fan is less than or equal to 2m, because the user is in the position apart from 1.5m and ambient temperature 35 ℃, is greater than preset temperature 30 ℃, at this moment, look for in the corresponding relation of the preset ambient temperature of wind speed gear table and distance and be 35 ℃ and the wind speed gear that the distance is 2m corresponds with ambient temperature, assume that the fender position that corresponds is 2 grades, then start with 2 grades of main motor.
The fan further includes: the humidity detection module 106 and the humidification module 107 are respectively connected with the main control module 103; wherein,
the humidity detection module 106 is configured to detect humidity information in the environment to be detected;
the humidifying module 107 is used for humidifying the environment to be tested;
the main control module 103 is further configured to control the humidification module 107 to humidify the environment to be tested when determining that the humidity of the environment to be tested is lower than a preset humidity according to the humidity information.
In order to enhance the user experience, a humidifier is added in the fan, and the indoor environment can be humidified through the humidifier. Accordingly, the acceleration module 104 herein may include: may be used in humidifiers and the like that humidify the surrounding environment.
The humidity detection module 106 detects humidity information in the environment to be detected; and when the humidification module 107 determines that the humidity of the environment to be measured is lower than the preset humidity according to the humidity information, controlling the humidification module to humidify the environment to be measured.
For example, the humidity detection module 106 in the fan, that is, the humidity sensor detects humidity information of the indoor environment, determines the humidity of the indoor environment according to the detected humidity information, and controls the humidification module 107 to operate to humidify the indoor environment if the humidity of the indoor environment is greater than a preset humidity. The humidifying method can be as follows: 1) ultrasonic high-frequency oscillation is carried out to atomize water into 1-5 micron ultramicron and negative oxygen ions, so as to realize uniform humidification; 2) the humidification is achieved by heating the water in a heating body to 100 ℃ to produce steam. The humidification method is not particularly limited in the embodiment of the present invention.
Further, the fan further includes: the oscillating motor 108, the oscillating motor 108 is connected with the main control module 103, and the oscillating motor 108 is connected with the fan blade module 105;
the main control module 103 is further configured to control the oscillating motor 108 to rotate after the main motor is started according to the found wind speed gear;
the fan blade module 105 is further configured to change the current orientation of the fan blade module 105 within the swing angle following the rotation of the oscillating motor 108.
After controlling the operation of the fan according to the preset operation parameters, controlling the oscillating motor 108 to rotate, so as to control the swing angle of the fan blade module 105 by controlling the rotation of the oscillating motor 108.
For example, after the main motor of the fan is turned on, the main control module 103 controls the oscillating motor 108 to rotate, so that the fan oscillates left and right, and controls the oscillating angle of the fan blade module 105 by controlling the rotation of the oscillating motor 108. The purpose of shaking the electric fan is as follows: on the one hand in order to blow air to a plurality of users and on the other hand to promote the air circulation flow.
Further, the sensing module 101 is further configured to detect second sensing information within the swing angle, where the second sensing information includes: representing distribution condition information of the induction object relative to the fan;
the main control module 103 is further configured to adjust rotation of the oscillating motor 108 based on the distribution status information;
the fan blade module 105 is further configured to adjust a swing angle of the fan blade module along with rotation of the oscillating motor 108.
The sensing module 101 detects second sensing information within the swing angle, the second sensing information includes: representing distribution condition information of the induction object relative to the fan; the main control module 103 adjusts the rotation of the oscillating motor based on the distribution status information to control the fan blade module 105 to follow the rotation of the oscillating motor to adjust the swing angle.
The swing angle is also called as a head swing angle, namely a left-right rotation angle in the process of shaking the head of the electric fan, infrared sensing information in a shaking angle range is detected, according to the infrared sensing information in the shaking angle and an infrared imaging principle, user distribution conditions in the shaking angle range can be deduced, and the rotation of the shaking motor is adjusted according to the distribution conditions of the users so as to control the fan blade module to adjust the swing angle along with the rotation of the shaking motor.
The fan may include: two portions, a first portion and a second portion, respectively; the fan blade module of the fan is in the first part, and the sensing module, the temperature detection module, the main control module and the like can be positioned in the second part. The first part and the second part are movably connected, the oscillating motor provides driving force for the second part to rotate relative to the first part, and the rotatable angle of the first part relative to the second part is called as the swing angle.
The user distribution condition comprises: distribution azimuth information and/or distribution density information of the sensing objects relative to the fan, and the like.
Further, the second sensing information further includes: characterizing physiological information of the sensed subject; the main control module 103 is further configured to, after adjusting the swing angle along with the rotation of the oscillating motor 108 and when determining that the physiological information in the second sensing information matches preset physiological information, search a wind speed gear corresponding to the preset physiological information in the wind speed gear table, and adjust the rotation rate of the main motor 104 according to the searched gear.
After the swing angle is adjusted along with the rotation of the oscillating motor, the method further comprises the following steps: when the main control module 103 determines that the physiological information in the second sensing information matches preset physiological information, a wind speed gear corresponding to the preset physiological information is searched in the wind speed gear table, and the rotation rate of the main motor is adjusted according to the searched gear.
For example, after the electric fan rotates, whether the detected infrared sensing information comes from the old or the child is presumed according to an infrared imaging principle and body temperature rule information of a user, if the detected infrared sensing information is judged to be the old or the child, a wind speed gear corresponding to the old or the child is searched in the wind speed gear table, and the rotation speed of the main motor is adjusted according to the searched gear.
How to judge the current sensing object in this embodiment includes: the method for judging the old and/or the child can comprise the following steps: determining the temperature of the sensing object according to the acquired infrared sensing information, wherein the temperature may be: the infrared sensing information can be judged to come from the old because the temperature of the old is lower than that of the adult, and when the temperature is judged to be lower than a certain set threshold value, the infrared sensing information can be judged to come from the old; because the body temperature of the child is higher than that of the adult, when the temperature is judged to be higher than a certain set threshold value, the infrared sensing information can be judged to come from the child. In addition, whether the sensing object is a child or not can be judged by the following method: because child's shape adult is little, can carry out infrared imaging to the infrared ray induction information who acquires through infrared ray imaging principle and handle, obtain infrared image, when the hot region is less than the hot region of settlement, can judge that infrared ray induction information comes from child.
Further, the sensing module 101 is further configured to detect third sensing information in the environment to be detected when a preset sleep state detection time comes, where the third sensing information includes: characterizing physiological information of the sensed subject;
the main control module 103 is further configured to, when determining that the sensing object is in a sleep state according to the physiological information in the third sensing information, search for a wind speed gear corresponding to the sleep state in the preset fan table, adjust a rotation rate of the main motor according to the searched wind speed gear, and control the electric motor 108 to point to a first direction in which the sensing object is located within a first preset time period and point to a preset second direction within a second preset time period, where the first direction is different from the second direction.
When the preset sleep state detection time comes, the sensing module 101 detects third sensing information in the environment to be detected, and the third sensing information includes: characterizing physiological information of the sensed subject; when determining that the induction object is in a sleep state according to the physiological information in the third induction information, the main control module 103 searches a wind speed gear corresponding to the sleep state in the preset fan table, adjusts the rotation rate of the main motor according to the searched wind speed gear, and controls the oscillating motor to point to a first direction in which the induction object is located within a first preset time period and point to a preset second direction within a second preset time period, wherein the first direction is different from the second direction.
For example, when a user is sleeping and is not sleeping, the requirement of the fan on the wind speed is different, and when the user is sleeping, if the wind speed is too high, the problem that the user catches a cold or is in headache can be caused, therefore, after ten hours at night, the user can rest, at the moment, the infrared sensing information of the user is detected, whether the user is in a sleeping state is judged according to the information, if the user is in the sleeping state, the shaking angle can be adjusted in different time periods, half an hour is taken as a unit, wherein 15 minutes are blown to the user at a low wind speed, and the other 15 minutes are blown to an unmanned area at the same wind speed, so that the air flow circulation adjustment is promoted, and the effect of blowing people and avoiding people is achieved.
Further, the second sensing information further includes: information characterizing a distance between the inductive object and the fan; the main control module 103 is further configured to determine, according to the distance between the sensing object and the fan, that the sensing object is away from the second preset range and the time of the sensing object being away from the second preset range is greater than the preset time, and control the main motor 104 and the oscillating motor 108 to stop rotating.
Here, the second preset range may be 2m, 2.5m, 3m, or the like; the preset time may be 5 minutes, 10 minutes, or the like, and the second preset range and the preset time are not specifically limited in the embodiment of the present invention.
And when the induction object in the shaking angle range is determined to leave a second preset range and the time of leaving the second preset range is more than preset time according to the distance between the induction object and the fan, the main control module 103 controls the main motor 104 and the shaking motor 108 to stop rotating.
For example, if the second preset range is 3m and the preset time is 5 minutes, it is determined according to the detected infrared sensing information that if it is determined that the user is located at a distance greater than 3m from the fan and the time not within the 3m range is greater than 5 minutes, it indicates that the user is going out or does not want to blow air, and at this time, the main motor and the panning motor are controlled to stop rotating.
The embodiment of the invention also discloses a fan control method based on induction, and as shown in fig. 2, the fan control method in the embodiment of the invention can comprise the following steps:
step 201: detecting first sensory information within an environment under test, the first sensory information comprising: information characterizing a distance between the sensing object and the fan.
Here, the environment to be measured refers to an indoor environment, which may be a home, an office company, or a school, and is not limited in the embodiment of the present invention.
Here, the first sensing information may be: and the distance between the induction object and the fan is determined by adopting image positioning according to infrared induction information detected by the infrared sensor or image information captured by the camera. In some embodiments, the first sensing information may be obtained by emitting a probe wave and a reflected wave based on the probe wave. In the following examples, infrared sensing information is taken as an example for illustration.
Here, the sensing object may be any object that needs a fan to dissipate heat, and may be a person, a pet at home, or an article that needs heat dissipation, which is not specifically defined in the embodiment of the present invention. In the following examples, the following examples are given by way of illustration.
The fan control method is applied to a fan, an infrared sensor in the fan detects infrared sensing information in an indoor environment in a set detection period, when a user is in the indoor environment, the infrared sensor can detect the infrared sensing information of the user, wherein the infrared sensing information comprises information representing the distance between a sensing object and the fan and some physiological information of the user, and the physiological information can be the body temperature of each part of the user, the body shape after infrared imaging and the like.
Step 202: detecting an ambient temperature within the environment to be measured;
specifically, the ambient temperature within the environment to be detected may be detected by a temperature sensor; or, acquiring the temperature of the weather forecast of a third party to judge the environmental temperature in the environment to be detected in a networking mode.
Step 203: and when the distance between the induction object and the fan is determined to be within a first preset range and the environment temperature is higher than a preset temperature according to the first induction information, controlling the fan to operate according to preset operation parameters.
The preset operation parameters are control parameters for controlling the fan to operate according to a preset operation condition, and may specifically include: startup parameters, power parameters and/or orientation parameters, etc. The starting parameter may be used to start the fan, the power parameter may be used to control the output power of the fan, so as to control the temperature adjustment strength of the fan, and the orientation parameter may be used to control the orientation of the blade module of the fan, or the air outlet direction, and the like. Of course, the implementation is such that the operating parameters are not limited to any of the above parameters.
Here, the first preset range may be 1 meter (m), or 1.5m, or 2m, etc. from the fan; the preset temperature may be 29 degrees celsius (° c), or 30 ℃, or 31 ℃, etc. The first preset range and the preset temperature are not specifically limited in the embodiment of the invention.
Specifically, since the first sensing information includes information about a distance between the sensing object and the fan, it may be determined whether the distance between the sensing object and the fan is within a first preset range according to the first sensing information, and if it is determined that the distance between the sensing object and the fan is within the first preset range and the ambient temperature is greater than a preset temperature according to the first sensing information, the operation of the fan is controlled according to preset operation parameters. It should be noted that the user is present in the first preset range, but the fan blades are not facing the user, and at this time, the oscillating motor needs to be controlled to rotate, so that the fan blades are facing the user.
For example, assume that the first preset range is 2m and the preset temperature is 30 ℃. Detecting infrared induction information of a user, judging whether the user is 2m away from the fan or not according to the detected information, and controlling a main motor of the fan to rotate if the user is within 2m away from the fan and the ambient temperature is more than 30 ℃; assuming that the user is within 2m from the fan and the ambient temperature is less than 30 ℃, the main motor of the fan will not be controlled accordingly, i.e. the main motor of the fan does not work.
Specifically, the controlling the operation of the fan according to the preset operation parameters includes: searching a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset by a wind speed gear table, and starting a main motor of the fan according to the searched wind speed gear; the main motor is used for providing driving force for the fan blade module according to the inquired wind speed gear, and the fan blade module is used for rotating based on the rotating speed corresponding to the driving force.
For example, assume that the user is at a distance of 1.5m from the fan, the ambient temperature is 35 ℃, the first preset range is 2m, and the preset temperature is 30 ℃. Detecting infrared induction information of a user, judging whether the user is in a first preset range according to the detected information, namely whether the distance s between the user and the fan is less than or equal to 2m, wherein the user is at a position which is 1.5m away from the fan, the ambient temperature is 35 ℃, the temperature is greater than the preset temperature by 30 ℃, at the moment, a wind speed gear which corresponds to the ambient temperature which is 35 ℃ and the distance which is 2m is searched in the corresponding relation between the ambient temperature and the distance which are preset in a wind speed gear table, and if the corresponding gear is 2 gears, starting the main motor by 2 gears.
Further, in order to enhance user experience, a humidifier is added in the fan, and the indoor environment can be humidified through the humidifier, and the specific method comprises the following steps: detecting humidity information in the environment to be detected; and when the humidity of the environment to be tested is determined to be lower than the preset humidity according to the humidity information, controlling a humidifying module to humidify the environment to be tested.
For example, the humidity detection module in the fan, that is, the humidity sensor detects the humidity information of the indoor environment, and the humidity condition of the indoor environment is determined according to the detected humidity information, and if the humidity of the indoor environment is greater than the preset humidity, the humidification module is controlled to work to humidify the indoor environment. The humidifying method can be as follows: 1) ultrasonic high-frequency oscillation is carried out to atomize water into 1-5 micron ultramicron and negative oxygen ions, so as to realize uniform humidification; 2) the humidification is achieved by heating the water in a heating body to 100 ℃ to produce steam. The humidification method is not particularly limited in the embodiment of the present invention.
Further, after controlling the operation of the fan according to the preset operation parameters, the method further includes: and controlling the oscillating motor to rotate so as to control the oscillating angle of the fan blade module by controlling the rotation of the oscillating motor.
For example, after a main motor for starting the fan rotates, the oscillating motor is controlled to rotate, so that the fan oscillates left and right, and the oscillating angle of the fan blade module is controlled by controlling the rotation of the oscillating motor. The purpose of shaking the electric fan is as follows: on the one hand in order to blow air to a plurality of users and on the other hand to promote the air circulation flow.
Further, the method further comprises: detecting second sensing information within the rocking angle, the second sensing information including: representing distribution condition information of the induction object relative to the fan; based on the distribution condition information adjustment the rotation of the oscillating motor is controlled the flabellum module follows the rotation adjustment of the oscillating motor swings the angle.
The swing angle is also called as a head swing angle, namely a left-right rotation angle in the process of shaking the head of the electric fan, infrared sensing information in a shaking angle range is detected, according to the infrared sensing information in the shaking angle and an infrared imaging principle, user distribution conditions in the shaking angle range can be deduced, and the rotation of the shaking motor is adjusted according to the distribution conditions of the users so as to control the fan blade module to adjust the swing angle along with the rotation of the shaking motor.
The fan may include: two portions, a first portion and a second portion, respectively; the fan blade module of the fan is in the first part, and the sensing module, the temperature detection module, the main control module and the like can be positioned in the second part. The first part and the second part are movably connected, the oscillating motor provides driving force for the second part to rotate relative to the first part, and the rotatable angle of the first part relative to the second part is called as the swing angle.
The user distribution condition comprises: distribution azimuth information and/or distribution density information of the sensing objects relative to the fan, and the like.
Further, the second sensing information further includes: characterizing physiological information of the sensed subject; after the swing angle is adjusted along with the rotation of the oscillating motor, the method further comprises the following steps: when the physiological information in the second sensing information is determined to be matched with preset physiological information, a wind speed gear corresponding to the preset physiological information is searched in the wind speed gear table, and the rotation rate of the main motor is adjusted according to the searched gear.
For example, after the electric fan rotates, whether the detected infrared sensing information comes from the old or the child is presumed according to an infrared imaging principle and body temperature rule information of a user, if the detected infrared sensing information is judged to be the old or the child, a wind speed gear corresponding to the old or the child is searched in the wind speed gear table, and the rotation speed of the main motor is adjusted according to the searched gear.
How to judge whether the current sensing object is an elderly person and/or a child in the embodiment may include: determining the temperature of the sensing object according to the acquired infrared sensing information, wherein the temperature may be: the infrared sensing information can be judged to come from the old because the temperature of the old is lower than that of the adult, and when the temperature is judged to be lower than a certain set threshold value, the infrared sensing information can be judged to come from the old; because the body temperature of the child is higher than that of the adult, when the temperature is judged to be higher than a certain set threshold value, the infrared sensing information can be judged to come from the child. In addition, whether the sensing object is a child or not can be judged by the following method: because child's shape adult is little, can carry out infrared imaging to the infrared ray induction information who acquires through infrared ray imaging principle and handle, obtain infrared image, when the hot region is less than the hot region of settlement, can judge that infrared ray induction information comes from child.
Further, the method further comprises: when the preset sleep state detection time comes, detecting third induction information in the environment to be detected, wherein the third induction information comprises: characterizing physiological information of the sensed subject; when the induction object is determined to be in the sleep state according to the physiological information in the third induction information, searching a wind speed gear corresponding to the sleep state in the preset fan table, adjusting the rotation rate of the main motor according to the searched wind speed gear, and controlling the oscillating motor to point to a first direction in which the induction object is located within a first preset time period and point to a preset second direction within a second preset time period, wherein the first direction is different from the second direction.
For example, when a user is sleeping and is not sleeping, the requirement of the fan on the wind speed is different, and when the user is sleeping, if the wind speed is too high, the problem that the user catches a cold or is in headache can be caused, therefore, after ten hours at night, the user can rest, at the moment, the infrared sensing information of the user is detected, whether the user is in a sleeping state is judged according to the information, if the user is in the sleeping state, the shaking angle can be adjusted in different time periods, half an hour is taken as a unit, wherein 15 minutes are blown to the user at a low wind speed, and the other 15 minutes are blown to an unmanned area at the same wind speed, so that the air flow circulation adjustment is promoted, and the effect of blowing people and avoiding people is achieved.
Further, the second sensing information further includes: information characterizing a distance between the inductive object and the fan; the method further comprises the following steps: and when the induction object in the shaking angle range is determined to leave the second preset range and the time of leaving the second preset range is longer than the preset time according to the distance between the induction object and the fan, controlling the main motor and the shaking motor to stop rotating.
Here, the second preset range may be 2m, 2.5m, 3m, or the like; the preset time may be 5 minutes, 10 minutes, or the like, and the second preset range and the preset time are not specifically limited in the embodiment of the present invention.
For example, if the second preset range is 3m and the preset time is 5 minutes, it is determined according to the detected infrared sensing information that if it is determined that the user is located at a distance greater than 3m from the fan and the time not within the 3m range is greater than 5 minutes, it indicates that the user is going out or does not want to blow air, and at this time, the main motor and the panning motor are controlled to stop rotating.
The embodiment of the invention has the following beneficial effects: 1) the electric fan can be started according to the acquired wind speed gear corresponding to the distance between the user and the electric fan and the ambient temperature, so that the electric fan is controlled to be started by human body induction; 2) judging the distribution condition of the user relative to the fan and whether the user is in a sleep state or not through the induction information, and adjusting the wind speed and the shaking angle of the fan according to the judgment result; 3) and judging whether the user leaves the preset range or not according to the induction information, and if so, turning off the electric fan to realize the energy-saving effect.
As shown in fig. 3, the embodiment of the present invention further discloses another schematic structural diagram of a fan based on induction, where the fan includes: a main motor 301, a power supply control board 302, a main control circuit board 303, a communication circuit 304, a remote controller 305, a human body induction sensor integrated circuit 306, a server 307 and an application program (APP) built in a fan; the communication circuit 304 is respectively connected with the main motor 301, the main control circuit board 303, the remote controller 305, the human body induction sensor integrated circuit 306 and the server 307, the power supply control board 302 is connected with the main motor, in the middle,
the main motor 301 is configured to provide driving force to the fan blade module of the fan according to the wind speed gear.
And a power control board 302 for supplying power required for the operation of the fan.
And the main control circuit board 303 is used for determining the distance between the user and the fan according to the sensing information detected by the human body sensing sensor, and controlling the rotation of a main motor and the rotation of a head-shaking motor of the fan when the distance is determined to meet the requirement and the ambient temperature also meets the requirement.
The communication circuit 304 includes: wired and wireless communication circuits for transmitting the sensed information, temperature information and humidity information to the server 307.
The remote controller 305 may be: the remote controller is controlled by infrared induction, radio frequency induction or WIFI and is used for controlling corresponding functions of the fan according to instructions sent by a user.
And a human body induction sensor integrated circuit 306, which connects the human body sensor with the integrated circuit and is used for controlling the human body sensor to detect the induction information of the human body.
And a server 307, which is built in the fan, corresponds to a data processing center, and performs corresponding data processing on the sensing information, the temperature information, and the humidity information.
The fan with the above structure can execute step 201 to step 201, and is not described in detail in the embodiment of the present invention.
The embodiment of the invention also discloses a computer storage medium, wherein the computer storage medium stores computer executable instructions, the computer executable instructions are used for executing the fan control method based on induction, and the fan control method comprises the following steps: detecting first sensory information within an environment under test, the first sensory information comprising: information characterizing a distance between the inductive object and the fan;
detecting an ambient temperature within the environment to be measured;
and when the distance between the induction object and the fan is determined to be within a first preset range and the environment temperature is higher than a preset temperature according to the first induction information, controlling the fan to operate according to preset operation parameters.
As an embodiment, the controlling the operation of the fan according to the preset operation parameter includes: searching a wind speed gear corresponding to the ambient temperature and the distance in a corresponding relation between the ambient temperature and the distance preset by a wind speed gear table, and starting a main motor of the fan according to the searched wind speed gear; the main motor is used for providing driving force for the fan blade module according to the inquired wind speed gear, and the fan blade module is used for rotating based on the rotating speed corresponding to the driving force.
As an embodiment, the method further comprises: detecting humidity information in the environment to be detected;
and when the humidity of the environment to be tested is determined to be lower than the preset humidity according to the humidity information, controlling a humidifying module to humidify the environment to be tested.
As an embodiment, after the controlling the operation of the fan according to the preset operation parameter, the method further includes: and controlling the oscillating motor to rotate so as to control the oscillating angle of the fan blade module by controlling the rotation of the oscillating motor.
As an embodiment, the method further comprises: detecting second sensing information within the rocking angle, the second sensing information including: representing distribution condition information of the induction object relative to the fan;
based on the distribution condition information adjustment the rotation of the oscillating motor is controlled the flabellum module follows the rotation adjustment of the oscillating motor swings the angle.
As an embodiment, the second sensing information further includes: characterizing physiological information of the sensed subject;
after the swing angle is adjusted along with the rotation of the oscillating motor, the method further comprises the following steps:
when the physiological information in the second sensing information is determined to be matched with preset physiological information, a wind speed gear corresponding to the preset physiological information is searched in the wind speed gear table, and the rotation rate of the main motor is adjusted according to the searched gear.
As an embodiment, the method further comprises: when the preset sleep state detection time comes, detecting third induction information in the environment to be detected, wherein the third induction information comprises: characterizing physiological information of the sensed subject;
when the induction object is determined to be in the sleep state according to the physiological information in the third induction information, searching a wind speed gear corresponding to the sleep state in the preset fan table, adjusting the rotation rate of the main motor according to the searched wind speed gear, and controlling the oscillating motor to point to a first direction in which the induction object is located within a first preset time period and point to a preset second direction within a second preset time period, wherein the first direction is different from the second direction.
As an embodiment, the second sensing information further includes: information characterizing a distance between the inductive object and the fan;
the method further comprises the following steps: and when the induction object in the shaking angle range is determined to leave the second preset range and the time of leaving the second preset range is longer than the preset time according to the distance between the induction object and the fan, controlling the main motor and the shaking motor to stop rotating.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.