CN111927812A - Fan with nursing function - Google Patents

Fan with nursing function Download PDF

Info

Publication number
CN111927812A
CN111927812A CN202010815742.5A CN202010815742A CN111927812A CN 111927812 A CN111927812 A CN 111927812A CN 202010815742 A CN202010815742 A CN 202010815742A CN 111927812 A CN111927812 A CN 111927812A
Authority
CN
China
Prior art keywords
fan
module
control command
speed regulating
temperature
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.)
Pending
Application number
CN202010815742.5A
Other languages
Chinese (zh)
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.)
Yancheng Institute of Technology
Original Assignee
Yancheng Institute of Technology
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 Yancheng Institute of Technology filed Critical Yancheng Institute of Technology
Priority to CN202010815742.5A priority Critical patent/CN111927812A/en
Publication of CN111927812A publication Critical patent/CN111927812A/en
Pending legal-status Critical Current

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
    • F04D27/007Conjoint control of two or more different functions
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • F04D25/10Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air
    • F04D25/105Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation the unit having provisions for automatically changing direction of output air by changing rotor axis direction, e.g. oscillating fans
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/16Combinations of two or more pumps ; Producing two or more separate gas flows
    • F04D25/166Combinations of two or more pumps ; Producing two or more separate gas flows using fans
    • 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/004Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids by varying driving speed
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Abstract

The invention discloses a fan with nursing function, comprising: the fan comprises a fan main body and at least two fan heads arranged on the fan main body; the speed regulating motor is used for controlling the wind power of the corresponding fan head; the steering engine is used for controlling the rotation angle of the corresponding fan head; the nursing module is used for acquiring external environment information and self information of the target object; the communication module is used for carrying out bidirectional data transmission with the mobile terminal; the control module is used for sending control information to the speed regulating motor and the steering engine which are electrically connected with the control module according to the data from the communication module and the data from the nursing module; the rotating speeds of the speed regulating motors corresponding to the fan heads are different, natural wind is simulated through the rotating speed difference among the speed regulating motors, and the comfort of a user can be improved while the safety and the health of the user can be effectively ensured.

Description

Fan with nursing function
Technical Field
The invention belongs to the technical field of measurement and control, and particularly relates to a fan with a nursing function.
Background
With the progress of society, products for certain specific crowds are more and more, and are more intelligent and humanized, but in hot summer, for some crowds without self-care ability, common cold or injury events caused by improper use of cooling equipment or unfavorable nursing during use are rare, and the common cold or injury events mainly comprise the following aspects:
1. the air conditioner is adopted for cooling, so that diseases such as cold and the like are easily caused;
2. when the traditional fan is adopted, cold can be caused when the fan is forgotten to be turned off, and adjustment including wind power adjustment and switch adjustment cannot be realized according to the room temperature and the self temperature; although some fans with natural wind function exist in the market at present, the fans generally adopt a single fan head, and when the single fan head is adopted to simulate the wind power, the wind power is suddenly reduced, and the comfort level is poor.
Disclosure of Invention
The purpose of the invention is as follows: in order to solve the problems in the prior art, a fan with a nursing function is provided.
The technical scheme is as follows: a fan with a nursing function, comprising: fan body and fan body
At least two fan heads;
the speed regulating motor is used for controlling the wind power of the corresponding fan head;
the steering engine is used for controlling the rotation angle of the corresponding fan head;
the nursing module is used for acquiring external environment information and self information of the target object;
the communication module is used for carrying out bidirectional data transmission with the mobile terminal;
the control module is used for sending control information to the speed regulating motor and the steering engine which are electrically connected with the control module according to the data from the communication module and the data from the nursing module;
the rotating speeds of the speed regulating motors corresponding to the fan heads are different, and natural wind is simulated through the rotating speed difference among the speed regulating motors.
Furthermore, the nursing module comprises a video monitoring module, and the video monitoring module uploads the acquired video data to the mobile terminal through the communication module.
Furthermore, the nursing module comprises a temperature sensor module for detecting the ambient temperature and an infrared temperature measurement sensor module for detecting the human body temperature of the target object.
Further, the nursing module comprises a pyroelectric infrared sensor module for monitoring whether the target object is in the monitoring range of the pyroelectric infrared sensor module.
Furthermore, the nursing module comprises a sound monitoring module, and the sound monitoring module comprises a playing sub-module for playing voice data from the mobile terminal and an audio acquisition sub-module for acquiring sound data from the environment.
Furthermore, the fan also comprises an alarm module, and the alarm module is used for giving an alarm by the control module on the use site of the fan.
Further, the control unit may perform one or more of the following steps:
outputting specific PWM signals to each speed regulating motor to form a rotation speed difference between the speed regulating motors;
outputting a specific PWM signal to a steering engine to enable the steering engine to drive the electric fan head to rotate by a specified angle;
when the temperature sensor module detects that the environmental temperature exceeds the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature of the target object exceeds the set temperature, a starting control command or a wind power increasing control command is sent to the speed regulating motor; when the temperature sensor module detects that the ambient temperature is lower than the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature is lower than the set temperature, a closing control command or a wind power reduction control command is sent to the speed regulating motor; the wind power increasing/decreasing control command is a control command for increasing/decreasing the rotating speed of the speed regulating motor, and the rotating speed increment of all the speed regulating motors is kept consistent.
When the target object disappears from the monitoring range of the pyroelectric infrared sensor module, sending an alarm command to the alarm module, and uploading alarm information to the mobile terminal through the communication module;
when receiving a control command sent by a mobile terminal, sending a corresponding control command to a designated module according to the received control command; the control commands sent by the mobile terminal comprise a timing opening control command, an instant opening control command, a timing closing control command, an instant closing control command, a temperature information acquisition control command, a sound transmission control command, a fan head rotation angle control command and a wind power size adjustment control command;
when receiving a control command issued by a function key arranged on the fan main body, sending a corresponding control command to a designated module according to the received control command; the control commands sent by the function keys comprise opening/closing control commands, wind power regulation control commands and fan head rotation angle control commands;
when the sound collected by the sound monitoring module meets the preset condition, an alarm command is sent to the alarm module, and alarm information is uploaded to the mobile terminal through the communication module.
The priority of each control command is as follows: the priority of the control command issued by the mobile terminal is highest, and then the control command issued by the function key arranged on the fan main body.
Further, the natural wind is simulated through the rotation speed difference among the speed regulating motors, and the method comprises the following steps:
the first process is as follows: the rotating speed of a speed regulating motor corresponding to one fan head is gradually reduced at a time point V-2n delta V, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually reduced at a time point V- (2n +1) delta V, wherein V is the maximum rotating speed of the speed regulating motor, n is 0,1,2,3 …, and delta V is rotating speed increment; entering a second process until the rotating speed of a speed regulating motor corresponding to any fan head is 0;
and a second process: the rotating speed of a speed regulating motor corresponding to one fan head is gradually increased by 2n delta V time by time, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually increased by (2n +1) delta V time by time until the rotating speed of the speed regulating motor corresponding to any one fan head reaches V, and the process enters a first process;
the natural wind is simulated by alternately executing the first process and the second process. Further, the mobile terminal may perform one or more of the following steps:
sending one or more control commands of a timing opening control command, an instant opening control command, a timing closing control command, an instant closing control command, a temperature information acquisition control command, a sound acquisition control command, a transmission sound control command, a fan head rotation angle control command and a wind power size adjustment control command to a control module;
setting a set temperature of an ambient temperature, setting a set temperature of a human body temperature of a target object, and setting conditions in a sound monitoring module.
Has the advantages that: compared with the prior art, the invention has the following advantages:
(1) according to the invention, by adding the network camera, the state of the electric fan can be conveniently monitored by family members at any time, and the state of the electric fan can be adjusted according to the current state of the electric fan, so that the use safety of the electric fan is improved;
(2) the invention adopts double fan heads, improves the air supply efficiency, and simultaneously can easily produce poor wind power by respectively controlling the rotating speed of the two fan motors, thereby achieving the effect of natural wind and improving the comfort level of the fan;
(3) the invention can effectively reduce the invalid area of the common fan and improve the use efficiency of the fan by adjusting the rotation angle of the fan;
(4) the temperature sensor and the infrared temperature measurement system matched with the temperature sensor are added, and the basis is provided for automatic start/stop (settable) of the fan by detecting the body temperature of a target object;
(5) according to the invention, the information such as the environment temperature, the fan running state and the like is fed back to the mobile terminal in real time through the communication module, so that the family members can conveniently look up the information, and the functionality of the fan is improved;
(6) according to the invention, through the voice control system, when specific sound such as crying of an infant is detected, an alarm can be automatically given to the mobile terminal to remind family members, and the use safety of the fan is improved.
Drawings
FIG. 1 is a schematic diagram of a single chip microcomputer;
FIG. 2 is a schematic diagram of a temperature sensor interface circuit;
FIG. 3 is a schematic diagram of an infrared temperature sensor interface circuit;
FIG. 4 is a schematic diagram of a camera interface circuit;
FIG. 5 is a schematic diagram of an audio interface circuit;
FIG. 6 is a schematic diagram of a steering engine interface circuit;
FIG. 7 is a schematic diagram of a first fan motor interface circuit;
FIG. 8 is a schematic diagram of a second fan motor interface circuit;
fig. 9 is a schematic diagram of a WIFI module interface circuit.
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 detail with reference to the accompanying drawings and specific embodiments.
The fan of the embodiment comprises: the fan comprises a fan main body, at least two fan heads arranged on the fan main body, a speed regulating motor for controlling the wind power of the fan, a steering engine for controlling the rotation angle of the fan heads, a control module, a communication module, a video monitoring module, a temperature measuring module, an alarm module and a sound monitoring module, wherein the steering engine, the speed regulating motor, the communication module, the video monitoring module, the temperature measuring module, the alarm module and the sound monitoring module are all electrically connected with the control module and controlled by the control module. The existing fan adopts a limit switch to limit the maximum position of two fan heads, a rotating motor is only in two states of power-on or reverse power-on, the angle cannot be controlled, the fan head rotates by controlling the angle through a steering engine in the embodiment, and the rotating angle and the range of the fan head are free. The components are now described as follows:
this embodiment adopts two fan heads, utilizes the difference in rotational speed of fan head A and fan head B to produce more comfortable natural wind, and the process that fan head A and fan head B formed natural wind through the difference in rotational speed does:
the first process is as follows: the rotating speed of a speed regulating motor corresponding to one fan head is gradually reduced at a time point V-2n delta V, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually reduced at a time point V- (2n +1) delta V, wherein V is the maximum rotating speed of the speed regulating motor, n is 0,1,2,3 …, and delta V is rotating speed increment; entering a second process until the rotating speed of a speed regulating motor corresponding to any fan head is 0;
and a second process: the rotating speed of a speed regulating motor corresponding to one fan head is gradually increased by 2n delta V time by time, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually increased by (2n +1) delta V time by time until the rotating speed of the speed regulating motor corresponding to any one fan head reaches V, and the process enters a first process;
the natural wind is simulated by alternately executing the first process and the second process, and the generated natural wind is comfortable and natural. By adopting the mode, the volume of the fan head is reduced under the condition of the same air quantity while the air sweeping area is increased.
The control module of this embodiment adopts but not limited to the singlechip, and the singlechip of this embodiment adopts STM32F407, and this singlechip adopts the Pulse Width Modulation (PWM) mode to control the buncher that fan head A corresponds and the buncher that fan head B corresponds to realize the stepless speed regulation of buncher. Simultaneously, the singlechip makes its drive fan head rotatory through the control steering wheel, carries out more comprehensive control for the video monitoring module, even when the fan head stops output wind-force, also can make the fan head rotate through the singlechip, this rotation angle can be set for by oneself to the rotation angle of solving conventional fan is fixed and the extravagant problem of the amount of wind that causes, the rotation angle of this embodiment through freely setting for, applicable in multiple scene, use the infant as an example: for example, when an infant is playing on the floor, the rotation angle is required to be large, but when the infant is in a cradle or eating, the rotation at a small angle is necessary.
The steering engine that this embodiment adopted its main component part is servo motor, and the singlechip is through giving the steering engine input different signals, controls it and rotates to different angles. The working principle is as follows: the steering engine receives the PWM signal output by the singlechip, when the signal enters an internal circuit of the singlechip to generate a bias voltage, the servo motor is triggered to drive the potentiometer to move through the reduction gear, so that the voltage difference is zero, the motor stops rotating, and the servo effect is achieved. Simply speaking, a specific PWM signal is given to the steering engine, and the steering engine can rotate to a specified position.
Taking an infant as an example, in order to facilitate knowing about the condition of the infant in real time, the video monitoring module of the embodiment is installed between two fan heads, the video monitoring module includes but is not limited to an OV2640 camera, the OV2640 camera accesses the acquired video data to the internet through a communication module, and family members can know about the use condition of the fan and the condition of the infant at any time and any place depending on an application program on a mobile terminal.
The temperature measuring module of the embodiment includes, but is not limited to, a temperature sensor module for detecting the ambient temperature, an infrared temperature measuring sensor module for detecting the human body temperature, and a pyroelectric infrared sensor module for detecting whether a target object is near the electric fan, wherein the temperature sensor module, the infrared temperature measuring sensor module, and the pyroelectric infrared sensor module are all connected with and controlled by a single chip microcomputer; the single chip microcomputer controls the fan head to be turned on or wind power to be increased according to temperature data obtained by detection of the temperature sensor module and the infrared temperature measurement sensor module, namely when the temperature sensor module detects that the ambient temperature exceeds the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature exceeds the set temperature, and when the temperature sensor module detects that the ambient temperature is lower than the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature is lower than the set temperature, the single chip microcomputer controls the fan head to be turned off or reduces the wind power. When the target object, namely the original infant of the embodiment, is not in the detectable range of the pyroelectric infrared sensor module, the control module can control the alarm module to give an alarm on site, and meanwhile, the communication module is used for uploading alarm information to realize the alarm on the mobile terminal. The embodiment can also control the timing opening, the instant opening, the timing closing and the instant closing of the fan through an application program on the mobile terminal; the various control means enable the family members not at the infant's side to perform the necessary assistance.
In the embodiment, the fan body is provided with the on/off button, the wind power adjusting button and the fan head rotation angle button, so as to meet the requirement of elders who are not good at using mobile equipment.
The sound monitoring module of this embodiment includes but is not limited to the microphone, and this microphone setting is on the assigned position of fan main part for realize carrying out two-way conversation with mobile terminal, and this microphone is gathered environmental sound information by singlechip control, and when the sound decibel of gathering surpassed and set for the decibel and accord with the frequency of settlement, the singlechip judged this sound of gathering be the infant cry, on the one hand reports to the police to mobile terminal through communication module, and on the other hand carries out the on-the-spot warning through alarm module.
The alarm module of this embodiment includes but not limited to bee calling organ or loudspeaker, and this bee calling organ or loudspeaker set up on the assigned position of fan main part, are controlled by the singlechip and carry out on-the-spot warning, play the effect of warning.
The communication module of this embodiment includes but is not limited to a WIFI module, and this WIFI module is connected to the internet, establishes the contact with the application on the mobile terminal.
As shown in fig. 1, the single chip has a plurality of interfaces; the temperature sensor is connected to the singlechip through an interface circuit as shown in figure 2; the infrared temperature measuring sensor is connected to the singlechip through an interface circuit as shown in figure 3; the infrared temperature measuring sensor is connected to the singlechip through an interface circuit as shown in figure 3; the camera is connected to the singlechip through an interface circuit as shown in fig. 4; the loudspeaker and the microphone are connected to the singlechip through an interface circuit as shown in figure 5; the steering engine is connected to the singlechip through an interface circuit as shown in fig. 6; the two fan motors are respectively a first fan motor and a second fan motor which are respectively connected to the singlechip through interface circuits shown in fig. 7 and 8; the single chip microcomputer is connected to the internet through WIFI and establishes interconnection with the mobile phone APP through a WIFI module interface circuit shown in fig. 9.
In order to understand the communication and operation processes of the present invention in more detail, this embodiment describes a WiFi communication process, a camera shooting process, a temperature measurement process of a temperature sensor, a work flow of an infrared temperature measurement sensor, a fan motor control process, and a steering engine control process, and specifically includes the following steps:
the WIFI module of this embodiment specifically uses ESP8266, but is not limited to ESP8266, and may implement the functions mentioned in this embodiment. ESP8266 has three modes in total, namely STA mode, AP mode and STA + AP mode. The STA mode is used for connecting to the Internet, communicating with other network equipment and belonging to Internet communication; the AP mode is used for establishing a wireless hotspot and allowing other equipment to join in, and the equipment communicates with the equipment and belongs to local area network communication; in the STA + AP mode, the device may communicate with other devices on the lan as well as other devices on the internet. The STA and AP modes are respectively provided with three sub-modes of TCP Server, TCP Client and UDP, so that the STA + AP mode has 9 sub-modes.
Before the software design of the module is carried out, a test is firstly carried out, and the initialization of the module is carried out manually.
The RXD pin and the TXD pin of the module are respectively connected with the TXD pin and the RXD pin of the USB interface of the computer, so that the direct communication between the module and the PC is realized. Opening a corresponding serial port by using a serial port debugging assistant at the PC end, and respectively inputting the following commands:
AT+CWMODE=1
AT+RST
AT+CWJAP=”Tenda”,”00000000”
AT+CIPSTART=”TCP”,”192.168.1.115”,8080
AT+CIPMODE=1
AT+CIPSEND
wherein, the 'Tenda' and '00000000' are SSID and wireless password, and can be changed according to actual test conditions.
After completion, the connection information of ESP8266 appears under the wireless hotspot of Tenda, i.e., it is proved that the module is successfully connected to the wireless hotspot.
And installing a network debugging assistant at the mobile terminal, configuring an 8080 TCP Server, and establishing a TCP Server. "192.168.1.115" and 8080 are the IP and ports to be connected to the configured TCP Server, which can be changed according to actual test conditions. After the completion, the "Hello!can be sent from the serial port debugging assistant of the PC end! The mobile terminal receives the information to prove that the module successfully communicates with a certain device in the network.
After the above manual test, the module is initialized by the program means, and reference is made. The method can be simple, convenient and easy to implement, but is not reliable enough. In fact, after each initialization command is sent, the serial port receives the return information from the module, and thus, whether the command is executed successfully or not can be judged, and if the command is not executed successfully, the command can be sent continuously until the command is executed successfully.
The designed initialization function is ESP8266_ TCP _ Client _ Init (char SSID, char pwd, char IP, char port), the first parameter is to specify the SSID to be connected by the WIFI module, the second parameter is the password of the wireless network, the third parameter is the IP address of the server to be connected, and the fourth parameter is to specify the port of the server to be connected.
ESP8266_TCP_Client_Init(“qsss”,”00000000”,”103.46.128.41”,”46379”);
As above, connections may be made to the designated wireless hotspot and server.
In the data transmission of the serial port, two data transmission modes are designed. The first one is suitable for initializing the module and the second one is suitable for transmitting data.
For the waiting data transmission method, an instruction is transmitted through a function Uart _ Send _ Wait (char _ chr), a parameter designates a start pointer of a character string, and when in use, each character is transmitted, the completion of the transmission of the character is waited.
For the interrupt type data transmission method, an instruction is transmitted by a function Uart _ Send (char str), and a parameter specifies a start pointer of a character string.
Figure BDA0002632591720000071
The internal of the serial port interrupt device specifies a character string to be sent, then the sending flag TI of the serial port interrupt is set to be 1, and the serial port interrupt device enters the serial port interrupt device to send data. When the string pointer points to the end of the string, no more characters will be sent.
Figure BDA0002632591720000072
Actually, it is shown that when the two data transmission functions are used simultaneously, communication errors are caused. The solution is to declare a bit type variable, when a waiting function is used, the variable is set to 0, and after all data are sent, the variable is set to 1, so that communication errors caused when two functions are used simultaneously can be effectively solved.
Figure BDA0002632591720000073
Figure BDA0002632591720000081
The interrupt type data transmission function does not use while to wait for the character transmission, and is completed by the interrupt, so that the interrupt type data transmission function has the advantage of not occupying time. Used in data communication in the main loop. The function can not be used continuously for communication, and the function is suitable for occasions with two times of communication separated by a long time. In the design, data communication caused by card swiping behaviors meets requirements at intervals.
The following takes the transmission of AT commands as an example. AT commands are sent to the module AT intervals of 2 s.
Figure BDA0002632591720000082
If a correct response is received, the serial port receives a series of data, the last four bytes are 'O', 'K', 0x0d and 0x0a, and through judging the last three bytes received by the serial port, if the last three bytes contain the character 'K', the command is proved to be successfully executed, the do-while loop is exited, and the next command is sent.
Figure BDA0002632591720000083
The single chip microcomputer of the embodiment reads data of the OV2640 module by adopting a double-buffer mode, and the flow of the double-buffer mode is as follows:
receiving data: starting buffer interruption, interrupting after the buffer A is full, the buffer B starts to receive OV2640 module data, the interruption program reads the buffer A data, starting to receive the buffer B data after the buffer B is full and interrupted, starting to receive the OV2640 data by the buffer A, starting to interrupt a frame when one frame of video is received, stopping the buffer at this time (most of the buffers are not full, no interruption occurs), and reading the residual data in the buffer.
Processing data: the received data is searched for the length between records if 0xff 0xd8 is found to illustrate the beginning of the picture and if 0xff is found, 0xd8 the end of the data. Four bytes of 0xf1, 0xf2, 0 (system sent to remote computer), 3 (representing image) and data length len are written into the array for data encapsulation. And transmitting the encapsulated data, opening the buffer after the transmission is finished, and continuously receiving the OV2640 module data.
The temperature sensor module of this embodiment adopts DS18B20, and its temperature measurement principle is: an internal counter is used to create a gate that the pulse cannot pass when the temperature is too high, the counter is defined as a value of-55 c, and the temperature recorder value will increase if the counter is not turned off before the zero point is reached. When the counter is restarted at the current temperature, the counter restarts counting until returning to zero; if the gate is still running, the above process is repeated. The temperature is represented by a 9-bit value and the upper bit is a sign bit.
The timing diagram of DS18B20 may be generally divided into three parts: initialization timing, write timing, read timing. The read and write timing can only be performed if initialization is performed.
The DS118B20 temperature detection is initialized firstly, whether the conversion is successful is detected, a 0x44H instruction is sent, then the indoor temperature is detected, a read-write operation command 0xBEH is sent, and the converted data are sent to the single chip microcomputer.
The infrared temperature measurement sensor module of the embodiment adopts a GY-906 infrared temperature measurement sensor module which is adoptedUsing standard IIC communication protocols. I is2Data transfer process on the C bus:
I2each bit of data transferred on the C-bus corresponds to a clock pulse. During the high level of the clock line, a stable logic level state must be maintained on the data line, the high level being data "1" and the low level being data "0". The level state on the data line is allowed to change only when the clock is low.
I2Each frame of data transmitted on the C bus is one byte. At start-up I2After the bus C, the number of bytes transferred is not limited, and only after transferring one byte, the other side replies an answer bit.
I2After the C bus transfers one byte, the transfer can be stopped by controlling the clock. Keeping SCL low controls the bus pause.
When transmitting, the most significant bit of data is transmitted first. Each transmission starts with a start signal and ends with a stop signal.
I2The signals related to data transmission on the C bus comprise a start signal (S), a stop signal (P), a response signal (A), a non-response signal (A) and bus data bits.
When the clock SCL is high, the data line SDA has a falling edge from high to low, which is considered as the start signal (S). Other commands are valid only after the start signal is present.
If the start signal scl is pulled high sda goes high to low indicating start.
Figure BDA0002632591720000091
When the clock SCL is high, the data line SDA has a rising edge from low to high, which is considered as a termination signal (P). After the termination signal occurs, all external operations are finished.
The operation sequence is that sda changes from low to high when the end signal scl is pulled high, indicating end.
Figure BDA0002632591720000101
Now, the control process of the speed regulating motor is explained as follows:
timer of STM32F407 in addition to TIMs 6 and 7, other timers may be used to generate the PWM output. Where advanced timers TIM1 and TIM8 can simultaneously generate up to 7 PWM outputs. The universal timer can also simultaneously generate up to 4 paths of PWM output. In this embodiment, a general timer TIMx is used to generate PWM output, for example: two-way PWM outputs are generated using CH3 and CH4 of TIM 3. And 3 registers are adopted to control PWM, and the three registers are respectively: a capture/compare mode register (TIMx _ CCMR1/2), a capture/compare enable register (TIMx _ CCER), and capture/compare registers (TIMx _ CCR 1-4).

Claims (9)

1. A fan with nurse function, its characterized in that: the method comprises the following steps: fan body and fan body
At least two fan heads;
the speed regulating motor is used for controlling the wind power of the corresponding fan head;
the steering engine is used for controlling the rotation angle of the corresponding fan head;
the nursing module is used for acquiring external environment information and self information of the target object;
the communication module is used for carrying out bidirectional data transmission with the mobile terminal;
the control module is used for sending control information to the speed regulating motor and the steering engine which are electrically connected with the control module according to the data from the communication module and the data from the nursing module;
the rotating speeds of the speed regulating motors corresponding to the fan heads are different, and natural wind is simulated through the rotating speed difference among the speed regulating motors.
2. A fan with nursing function as claimed in claim 1, wherein: the nursing module comprises a video monitoring module, and the video monitoring module uploads the acquired video data to the remote terminal through the communication module.
3. A fan with nursing function as claimed in claim 1, wherein: the nursing module comprises a temperature sensor module for detecting the ambient temperature and an infrared temperature measurement sensor module for detecting the human body temperature of the target object.
4. A fan with nursing function as claimed in claim 1, wherein: the care module includes a pyroelectric infrared sensor module for monitoring whether a target subject is within its monitoring range.
5. A fan with nursing function as claimed in claim 1, wherein: the nursing module comprises a sound monitoring module, and the sound monitoring module comprises a playing submodule for playing voice data from the mobile terminal and an audio acquisition submodule for acquiring sound data from the environment.
6. A fan with nursing function as claimed in claim 1, wherein: the fan also comprises an alarm module, and the alarm module is used for giving an alarm by the control module on the use site of the fan.
7. A fan with nursing function as claimed in claim 1, wherein: the control unit may perform one or more of the following steps:
outputting specific PWM signals to each speed regulating motor to form a rotation speed difference between the speed regulating motors;
outputting a specific PWM signal to a steering engine to enable the steering engine to drive the electric fan head to rotate by a specified angle;
when the temperature sensor module detects that the environmental temperature exceeds the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature of the target object exceeds the set temperature, a starting control command or a wind power increasing control command is sent to the speed regulating motor; when the temperature sensor module detects that the ambient temperature is lower than the set temperature and/or the infrared temperature measurement sensor module detects that the human body temperature is lower than the set temperature, a closing control command or a wind power reduction control command is sent to the speed regulating motor; the wind power increasing/decreasing control command is a control command for increasing/decreasing the rotating speed of the speed regulating motor, and the rotating speed increment of all the speed regulating motors is kept consistent;
when the target object disappears from the monitoring range of the pyroelectric infrared sensor module, sending an alarm command to the alarm module, and uploading alarm information to the mobile terminal through the communication module;
when receiving a control command sent by a mobile terminal, sending a corresponding control command to a designated module according to the received control command; the control commands sent by the mobile terminal comprise a timing opening control command, an instant opening control command, a timing closing control command, an instant closing control command, a temperature information acquisition control command, a sound transmission control command, a fan head rotation angle control command and a wind power size adjustment control command;
when receiving a control command issued by a function key arranged on the fan main body, sending a corresponding control command to a designated module according to the received control command; the control commands sent by the function keys comprise opening/closing control commands, wind power regulation control commands and fan head rotation angle control commands;
when the sound collected by the sound monitoring module meets the preset condition, sending an alarm command to the alarm module, and uploading alarm information to the mobile terminal through the communication module;
the priority of the control command issued by the mobile terminal is higher than that of the control command issued by the function key.
8. A fan with nursing function as claimed in claim 1, wherein: the method for simulating natural wind through the speed difference among the speed regulating motors comprises the following steps:
the first process is as follows: the rotating speed of a speed regulating motor corresponding to one fan head is gradually reduced at a time point V-2n delta V, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually reduced at a time point V- (2n +1) delta V, wherein V is the maximum rotating speed of the speed regulating motor, n is 0,1,2,3 …, and delta V is rotating speed increment; entering a second process until the rotating speed of a speed regulating motor corresponding to any fan head is 0;
and a second process: the rotating speed of a speed regulating motor corresponding to one fan head is gradually increased by 2n delta V time by time, the rotating speed of a speed regulating motor corresponding to the other fan head is gradually increased by (2n +1) delta V time by time until the rotating speed of the speed regulating motor corresponding to any one fan head reaches V, and the process enters a first process;
the natural wind is simulated by alternately executing the first process and the second process.
9. A fan with nursing function as claimed in claim 1, wherein: the mobile terminal may perform one or more of the following steps:
sending one or more control commands of a timing opening control command, an instant opening control command, a timing closing control command, an instant closing control command, a temperature information acquisition control command, a sound acquisition control command, a transmission sound control command, a fan head rotation angle control command and a wind power size adjustment control command to a control module;
setting a set temperature of an ambient temperature, setting a set temperature of a human body temperature of a target object, and setting conditions in a sound monitoring module.
CN202010815742.5A 2020-08-14 2020-08-14 Fan with nursing function Pending CN111927812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010815742.5A CN111927812A (en) 2020-08-14 2020-08-14 Fan with nursing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010815742.5A CN111927812A (en) 2020-08-14 2020-08-14 Fan with nursing function

Publications (1)

Publication Number Publication Date
CN111927812A true CN111927812A (en) 2020-11-13

Family

ID=73312034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010815742.5A Pending CN111927812A (en) 2020-08-14 2020-08-14 Fan with nursing function

Country Status (1)

Country Link
CN (1) CN111927812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112859626A (en) * 2021-01-13 2021-05-28 广东科西智能科技有限公司 Electric fan based on intelligent household system and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040213687A1 (en) * 2003-04-28 2004-10-28 Chung-Yin Cheng Heat dissipating fan assembly
CN107728595A (en) * 2017-11-28 2018-02-23 河南职业技术学院 A kind of infant intelligent household monitor system based on Internet of Things
CN207257444U (en) * 2017-09-14 2018-04-20 余炜锋 A kind of children car seat
CN108953197A (en) * 2018-06-05 2018-12-07 佛山市煜升电子有限公司 Intelligent domestic electric fan
CN110762730A (en) * 2019-10-16 2020-02-07 宁波奥克斯电气股份有限公司 Natural wind simulation method and device and air conditioner
CN210218176U (en) * 2019-07-18 2020-03-31 风下电机(山东)有限公司 Multi-head fan for simulating natural wind

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040213687A1 (en) * 2003-04-28 2004-10-28 Chung-Yin Cheng Heat dissipating fan assembly
CN207257444U (en) * 2017-09-14 2018-04-20 余炜锋 A kind of children car seat
CN107728595A (en) * 2017-11-28 2018-02-23 河南职业技术学院 A kind of infant intelligent household monitor system based on Internet of Things
CN108953197A (en) * 2018-06-05 2018-12-07 佛山市煜升电子有限公司 Intelligent domestic electric fan
CN210218176U (en) * 2019-07-18 2020-03-31 风下电机(山东)有限公司 Multi-head fan for simulating natural wind
CN110762730A (en) * 2019-10-16 2020-02-07 宁波奥克斯电气股份有限公司 Natural wind simulation method and device and air conditioner

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓汉盘: "《智能机器人DIY制作》", 30 September 2016, 西安电子科技大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112859626A (en) * 2021-01-13 2021-05-28 广东科西智能科技有限公司 Electric fan based on intelligent household system and control method thereof

Similar Documents

Publication Publication Date Title
CN205983375U (en) Notebook computer fan automatic temperature control accuse prompt drop device of making an uproar
CN104295517A (en) Intelligent indoor temperature adjusting system
CN111192375A (en) Face recognition attendance access control machine with infrared body temperature detection function
CN111927812A (en) Fan with nursing function
WO2020063306A1 (en) Shooting monitoring device and gimbal system including same
CN107613272A (en) A kind of safety defense monitoring system based on Raspberry Pi
CN112462661B (en) Industrial data acquisition controller and control method thereof
CN107654409A (en) A kind of SCM Based intelligent temperature control fan assembly
WO2007121617A1 (en) A network data communication method and means for a portable intelligent device
CN205071151U (en) Wireless camera and wireless camera system
WO2020151076A1 (en) Indoor air circulation system based on blockchain technology
CN211926086U (en) Baffle convenient to timing position slides
CN112841826A (en) Intelligent bracelet
CN217270963U (en) Intelligent speed-regulating fan
CN212429265U (en) Fan device and adjusting device thereof
CN208506247U (en) Fire-fighting handheld terminal law-enforcing recorder
Li et al. Design of Intelligent Fan System
CN107654408A (en) A kind of intelligent temperature control fan assembly for protecting motor
CN202494923U (en) Wireless remote control temperature measuring trolley in communication with host computer
Hendajani et al. Modeling Automatic Room Temperature and Humidity Monitoring System with Fan Control on the Internet of Things
CN110397612A (en) A kind of turbine control system, control method and Breathing Suppotion equipment
JP3134821B2 (en) Communications system
CN210317816U (en) Intelligence electric fan based on singlechip
CN206611588U (en) A kind of wireless sensor system suitable for Internet of Things
CN108646628A (en) A kind of band Bluetooth control function intelligent electric executer control system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201113

RJ01 Rejection of invention patent application after publication