Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an intelligent home monitoring device capable of implementing remote control, which not only can implement remote receiving of monitoring data, but also can implement remote intelligent control.
In order to solve the technical problem, an embodiment of the invention provides an intelligent home monitoring device for realizing remote control, which is matched with a remote mobile terminal and comprises a main control unit, and a camera, a human body infrared detection module, a temperature and humidity detection module, a light control module, a communication module and an alarm module which are all connected with the main control unit; wherein,
the human body infrared detection module is used for sensing that the staying time of a human body in a preset area exceeds a preset time threshold value, generating a trigger signal and sending the trigger signal to the main control unit;
the temperature and humidity detection module is used for acquiring the temperature and the humidity of the surrounding environment in real time and sending the temperature and the humidity acquired in real time to the main control unit;
the lighting control module is used for identifying the current state of the lighting in the surrounding environment, sending the identified current state of the lighting to the main control unit, and further carrying out reverse adjustment on the identified current state of the lighting after receiving a control instruction sent by the main control unit; wherein the current state is an open state or a closed state;
the main control unit is used for issuing an alarm instruction to the alarm module and sending alarm information to the remote mobile terminal through the communication module after receiving a trigger signal sent by the human body infrared detection module or judging that the temperature collected by the received temperature and humidity detection module is greater than a preset temperature threshold value, and issuing an opening and shooting instruction to the camera after receiving a remote shooting instruction fed back by the remote mobile terminal according to the alarm information forwarded by the communication module, and further storing and pushing an image which is opened and shot by the camera to the remote mobile terminal for display; and/or
After receiving a remote light control instruction which is sent back by the remote mobile terminal and forwarded by the communication module according to the alarm information, sending a control instruction to the light control module, and further pushing a light state which is received and reversely adjusted by the light control module according to the control instruction to the remote mobile terminal for displaying; and/or
After receiving a remote light state display instruction which is directly sent by a remote mobile terminal and forwarded by the communication module, pushing the current state of the light identified by the light control module to the remote mobile terminal for display; and/or
After a remote temperature and humidity display instruction directly sent by a remote mobile terminal and forwarded by the communication module is received, pushing the temperature and humidity acquired in real time by the temperature and humidity detection module to the remote mobile terminal for display;
the alarm module is used for alarming after receiving an alarm instruction sent by the main control unit;
and the camera is used for shooting the images of the human body staying in the preset area after receiving the opening and shooting instruction issued by the main control unit.
Wherein, still include: the display modules are connected with the main control unit; wherein,
the display module is used for displaying the temperature and the humidity acquired by the human body infrared detection module in real time; and/or displaying the current state of the light identified by the light control module; and/or displaying the image which is started and shot by the camera.
The main control unit is formed by an ARM chip and a peripheral circuit thereof, and a Linux operating system is preinstalled on the main control unit.
The human body infrared detection module is formed by a human body infrared sensor with the model of HC-SR501 and a Feichell filter covering the human body infrared sensor.
The temperature and humidity detection module adopts a digital temperature and humidity sensor with the model number of DHT 11; wherein the temperature measuring range of the DHT11 digital temperature and humidity sensor is between 0 and 50 ℃, and the accuracy is +/-2 ℃; the humidity measurement ranged between 20-90% RH with an accuracy of + -5% RH.
The lighting control module is formed by an LED induction type light emitting diode and a current limiting resistor.
Wherein, the alarm module is formed by a light emitting diode and a buzzer.
The display module is an OLED display screen.
The remote mobile terminal is a mobile phone or a tablet computer.
The remote mobile terminal feeds back a remote photographing instruction, a remote light control instruction or a remote temperature and humidity display instruction to the main control unit through WeChat.
The embodiment of the invention has the following beneficial effects:
1. according to the intelligent home monitoring device, the human body infrared detection module is used for sensing the staying time of the external person, the temperature and humidity detection module is used for collecting the temperature and humidity of the surrounding environment, and the light control module is used for identifying the on-off state of light, and the intelligent home monitoring device can also intelligently judge that the external person stays for a long time or has overhigh temperature, automatically alarm and send alarm information to a remote mobile terminal, so that multifunctional remote monitoring is realized;
2. the intelligent home monitoring device provided by the invention is also interacted with the remote mobile terminal, receives a remote instruction (such as a remote photographing instruction, a remote light control instruction or a remote temperature and humidity display instruction) fed back by the remote mobile terminal, forms a corresponding operation, and further pushes the result of the corresponding operation to the remote mobile terminal for displaying, so that remote intelligent control is realized.
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.
As shown in fig. 1, in an embodiment of the present invention, the proposed intelligent home monitoring device for implementing remote control cooperates with a remote mobile terminal M, and includes a main control unit 1, and a camera 2, a human body infrared detection module 3, a temperature and humidity detection module 4, a light control module 5, a communication module 6, and an alarm module 7, which are all connected to the main control unit 1; wherein,
the human body infrared detection module 3 is used for sensing that the staying time of a human body in a preset area exceeds a preset time threshold, generating a trigger signal and sending the trigger signal to the main control unit 1; for example, if a person stays in a doorway (predetermined area) for a long time (more than 2 minutes), a trigger signal will be generated;
the temperature and humidity detection module 4 is used for acquiring the temperature and the humidity of the surrounding environment in real time and sending the temperature and the humidity acquired in real time to the main control unit 1;
the lighting control module 5 is used for identifying the current state of the lighting in the surrounding environment, sending the identified current state of the lighting to the main control unit 1, and further performing reverse adjustment on the identified current state of the lighting after receiving a control instruction issued by the main control unit 1; wherein the current state is an open state or a closed state;
the main control unit 1 is used for issuing an alarm instruction to the alarm module 7 and alarm information to the remote mobile terminal M through the communication module 6 after receiving a trigger signal sent by the human body infrared detection module 3 or judging that the temperature collected by the received temperature and humidity detection module 4 is greater than a preset temperature threshold (such as 40 ℃), issuing an opening and shooting instruction to the camera 2 after receiving a remote shooting instruction fed back by the remote mobile terminal M according to the alarm information forwarded by the communication module 6, and further storing and pushing an image which is opened and shot by the camera 2 to the remote mobile terminal M for display; and/or
After receiving a remote light control instruction which is fed back by the remote mobile terminal M and forwarded by the communication module 6 according to the alarm information, sending the control instruction to the light control module 5, and further pushing the received light state which is reversely adjusted by the light control module 5 according to the control instruction to the remote mobile terminal M for displaying; and/or
After receiving a remote light state display instruction directly sent by the remote mobile terminal M forwarded by the communication module 6, pushing the current state of the light identified by the light control module 5 to the remote mobile terminal M for display; and/or
After receiving a remote temperature and humidity display instruction directly sent by the remote mobile terminal M and forwarded by the communication module 6, pushing the temperature and humidity acquired in real time by the temperature and humidity detection module 4 to the remote mobile terminal M for display;
the alarm module 7 is used for receiving an alarm instruction sent by the main control unit 1 and then giving an alarm;
and the camera 2 is used for shooting images of the human body staying in the preset area after receiving the opening and shooting instruction issued by the main control unit 1.
It should be noted that the communication module 6 is a wireless communication module, including but not limited to 4G/5G, WIFI, zigbee, etc. The main control unit 1 is formed by an ARM chip and a peripheral circuit thereof, and a Linux operating system is preinstalled on the main control unit 1. The human body infrared detection module 3 is formed by a human body infrared sensor with the model number of HC-SR501 and a Feichell filter covering the human body infrared sensor. The temperature and humidity detection module 4 adopts a digital temperature and humidity sensor with the model number of DHT 11; wherein the temperature measuring range of the DHT11 digital temperature and humidity sensor is between 0 and 50 ℃, and the accuracy is +/-2 ℃; the humidity measurement ranged between 20-90% RH with an accuracy of + -5% RH. The lighting control module 5 is formed by an LED induction type LED and a current limiting resistor. The alarm module 7 is formed by a light emitting diode and a buzzer.
The remote mobile terminal M is a mobile phone or a tablet personal computer and feeds back a remote photographing instruction, a remote light control instruction or a remote temperature and humidity display instruction to the main control unit 1 through WeChat. For example, if the remote mobile terminal M inputs a photo in the WeChat, a remote photographing instruction is fed back; if the remote mobile terminal M inputs TAH in the WeChat, feeding back a remote temperature and humidity display instruction; if the remote mobile terminal M inputs lamp on in the WeChat, a remote light control instruction is fed back; and if the remote mobile terminal M inputs the lamp in the WeChat, feeding back a remote light display instruction.
In the embodiment of the present invention, the smart home monitoring apparatus further includes: the display module 8 is connected with the main control unit 1; the display module 8 is used for displaying the temperature and humidity acquired by the human body infrared detection module 3 in real time; and/or displaying the current state of the light identified by the light control module 4; and/or display images that the camera 2 is turned on and captures. The display module 8 is an OLED display screen.
The working principle of the intelligent home monitoring device in the embodiment of the invention is as follows: the human body staying time in a preset area is sensed in real time through the human body infrared detection module 3, once the human body staying time is sensed to exceed a preset time threshold value, a trigger signal is generated and sent to the main control unit 1, at the moment, after the main control unit 1 receives the trigger signal sent by the human body infrared detection module 3, an alarm instruction is immediately sent to the alarm module 7, the alarm module 7 is enabled to carry out sound-light alarm, and meanwhile, alarm information is sent to a remote mobile terminal M (a mobile phone or a tablet personal computer) used by a user through the communication module 6 in a mail or short message mode. After the user in time receives alarm information, can send long-range instruction of shooing (photo) through the mode of believe a little, inform main control unit 1 to issue the instruction of opening and shooting for camera 2, let camera 2 will stop the personnel's physical characteristics and carry out the accuracy after shooting, forward again by communication module 6 and show on the long-range mobile terminal M who recycles the user and use, make the user can in time discern the identity that stops the personnel through the image of camera 2, the user of being convenient for in time takes measures to ensure the security of house environment. And/or
The temperature and the humidity of the surrounding environment are collected in real time through the temperature and humidity detection module 4, the temperature and the humidity collected in real time are sent to the main control unit 1, at the moment, after the main control unit 1 judges that the temperature collected by the temperature and humidity detection module 4 is larger than a preset temperature threshold value (such as 40 ℃), an alarm instruction is sent to the alarm module 7 immediately, the alarm module 7 is enabled to carry out sound-light alarm, meanwhile, alarm information is sent to a remote mobile terminal M used by a user through the communication module 6 in a mail or short message mode, and the user can conveniently take measures in time to ensure the safety of the home environment. Certainly, the user can also know the humiture condition of home environment in real time through remote mobile terminal M, sends remote humiture display instruction (TAH) through the WeChat mode, and the main control unit 1 is informed to gather the temperature and the humidity of the environment all around with humiture detection module 4 in real time and is forwarded back to remote mobile terminal M by communication module 6 and show. And/or
The current state of the light of the surrounding environment is identified through the light control module 5, the identified current state of the light is sent to the main control unit 1, at the moment, the main control unit 1 receives a remote light display instruction (lamp) sent by a user in a WeChat mode, the current state of the light identified by the light control module 5 is forwarded back to the remote mobile terminal M by the communication module 6 to be displayed, and the user can conveniently and timely determine whether the light of the home environment is turned off. Certainly, when the user determines that the lighting of the home environment is in the always-on state, the user may send a remote lighting display instruction (lamp off) in a WeChat manner, notify the main control unit 1 to reversely adjust the current state of the lighting identified by the lighting control module 5, and forward the reversely-adjusted lighting state back to the remote mobile terminal M by the communication module 6 for display.
As shown in fig. 2 to fig. 6, application scenarios of each unit and module in the smart home monitoring apparatus in the embodiment of the present invention are further described:
the main control unit 1 adopts a raspberry pie based on an ARM framework, and generally adopts a Linux system on a Broadcom BCM2835 chip as a core, wherein the system on the chip uses an instruction set framework (ARM framework) different from a common desktop computer and a common notebook computer, and simultaneously, the system also has a unique processor design process. One of the advantages of the ARM chip is that its structure is simple compared to a common high-power desktop processor chip, and has a lower power consumption, which ensures that it generates less heat when processing relatively difficult tasks.
The camera 2 is a raspberry official camera-CSI camera, which is composed of a five-million-pixel sensor and a fixed focal lens positioned above the five-million-pixel sensor, and is connected with a raspberry image processor in series to work, so that high-resolution videos can be shot, and meanwhile, videos can be recorded smoothly without overloading or occupying too much memory of the raspberry main processor. Compared with the traditional network camera, the CSI camera has the great advantages of small size, 25mm of the longest edge, 3 g of weight, low power consumption, no increase of the burden of a raspberry battery or power supply, capability of shooting images of up to five million pixels and recording full-high-definition resolution video of 30 frames per second. The CSI camera, like the raspberry pi, is also on a bare circuit board, so care must be taken in use to avoid damaging its components, especially the plastic lens on the camera sensor. The CSI camera is directly connected with the CSI connector of the raspberry group through the flexible flat cable, the flexible flat cable is a flat and semi-rigid bendable cable, the flexible flat cable is quite firm under general conditions, reliable work can be guaranteed even if the flexible flat cable is used every day, but if the flexible flat cable is folded, the flexible flat cable is easy to damage, and therefore when the flexible flat cable is inserted or the camera is moved, care needs to be taken to ensure that the flexible flat cable is not folded. When the CSI camera is picked up, one end of the flexible flat cable is embedded into the CSI camera, the other end of the flexible flat cable is blue, silver contacts are arranged on the other end of the flexible flat cable, and the contacts are connected with contacts on a CSI connector of the raspberry pie, so that communication between the CSI camera and the raspberry pie is achieved. The CSI camera can be used for shooting static pictures in the local area network, displaying dynamic real-time pictures in the local area network and realizing access to an external network through an internal network, but due to the reason of expense, only a free server is used, the broadband is insufficient, the phenomenon that the external network is blocked when accessing and displaying the dynamic real-time pictures is caused, and the dynamic real-time picture display function of the external network cannot be realized at present.
As shown in fig. 2, the human infrared detection module 3 employs an HC-SR501 human infrared sensor, and in order to improve sensitivity and prevent the infrared rays sensed by the radiation exposure from being interfered by other small animals and environmental factors, a special fresnel filter is usually covered on the human infrared detection module. The Fresnel filter is manufactured according to the Fresnel principle, has the function of focusing and enhancing the infrared rays of a human body, and refracts (or reflects) the infrared rays radiated outwards by the human body onto the human body infrared sensor, so that the sensitivity of the human body infrared sensor is greatly improved. HC-SR501 human body infrared sensor total 3 pins, one pin is connected with power supply 5V, one pin is grounded, another pin is used for connecting GPIO 28 pin of raspberry group, when human body infrared sensor detects someone, output the high level, otherwise output the low level. Besides the 3 pins, the HC-SR501 human infrared sensor also has pins with different functions, such as a knob for adjusting delay time, a knob for adjusting sensing distance and a pin for adjusting detection mode. When the human body infrared sensor detects a person, the time delay adjusting knob can be rotated clockwise or counterclockwise to prolong or reduce the high-level output time, and the adjustable time range is 5 seconds to 5 minutes. Furthermore, the detection distance of the human body infrared sensor can be reduced or increased by rotating the induction distance adjusting knob clockwise or anticlockwise, and the adjustable distance range is 3 meters to 7 meters. The detection mode of the human body infrared sensor is divided into a single detection mode (unrepeatable triggering) and a continuous detection mode (repeatable triggering), when the human body infrared sensor detects that people continuously exist, after the high level is output, if the high level is automatically restored to the low level after delaying for a period of time, the single detection mode is adopted, if the sensor keeps the high level all the time, the low level is restored after delaying until the people leave, the continuous detection mode is adopted, the pins are adjusted by means of the jumper of the detection mode through the selection of the two detection modes, 3 pins are totally adopted, the single detection mode is selected when the jumper cap is inserted into the two pins on the upper surface, the continuous detection mode is selected when the jumper cap is inserted into the two pins on the lower surface, and the continuous detection mode is generally considered.
As shown in fig. 3, the core component of the temperature and humidity detection module 4 is a DHT11 temperature and humidity sensor, the DHT11 digital temperature and humidity sensor is a composite sensor, and it uses temperature and humidity sensing technology to detect the temperature and humidity of the monitored environment, and uses digital module acquisition technology to acquire the digital quantity of the detected temperature and humidity, and at the same time, in order to improve the reliability of the detected data, the digital signal output by the digital module has been automatically calibrated.
The DHT11 temperature and humidity sensor has the advantages that the DHT11 temperature and humidity sensor can be applied to various severe places such as medical treatment, meteorological stations and the like. The DHT11 digital temperature and humidity sensor can measure temperatures in the range between 0 and 50 ℃ and humidity in the range between 20-90% RH with an accuracy of ± 2 ℃ for temperature measurements and ± 5% RH for humidity measurements, with a resolution of 1 ℃ in terms of temperature and 1% RH in terms of humidity. When the circuit is connected, because the temperature and humidity detection module 4 is existing, and the inside of the module already contains the DHT11 temperature and humidity sensor chip and the peripheral circuit, only the temperature and humidity detection module 4 needs to be connected with the raspberry group.
The temperature and humidity detection module 4 has 3 pins, wherein the pin 1 is connected with a working voltage 5V, the pin 3 is grounded, and the pin 2 is connected with a GPIO 7 of the raspberry pi. It should be noted that after the temperature and humidity detection module is connected to the operating voltage, it is waited for 1s to cross the unstable state, and no command needs to be sent during this period.
The communication time sequence of the raspberry group and the DHT11 temperature and humidity sensor is as follows:
① triggering stage of DHT11 temperature and humidity sensor the triggering signal of DHT11 temperature and humidity sensor starting working is sent by the raspberry pi, firstly, the raspberry pi is in IO port output mode, and after the high level of 18ms is pulled down, the pulling up is resumed.
② preparation phase of DHT11 temperature and humidity sensor after the triggering of the DHT11 temperature and humidity sensor is completed, the IO port of the raspberry pi is pulled down for 80us, and then pulled up for 80us, at this time, the DHT11 is in preparation phase for transmitting data.
③ data transmission phase of DHT11 temperature and humidity sensor DHT11 temperature and humidity sensor transmits data to raspberry for a total of 5 bytes, namely 40 bits, here, data bit "0" of each bit is represented by 50us low plus 28us high, and "1" is represented by 50us low plus 70us high.
It should be noted that the first 4 bits of the 5 data transmitted by the DHT11 temperature and humidity sensor represent temperature and humidity, and the last 1 bit is a check bit. Data (0) and data (1) represent integer bits and decimal bits of humidity, data (2) and data (3) represent integer bits and decimal bits of temperature, data (4) is a check bit, data (4) is data (0) + data (1) + data (2) + data (3), and if the data (0) and the data (4) are not equal, an error is caused in the data transmission process, and retransmission is required.
As shown in fig. 4, the lighting control module 5 is formed by connecting an LED inductive LED and a 1K resistor (for current limiting) in series, and one end of the LED inductive LED is connected to the power supply 5V and the other end is connected to the GPIO27 of the raspberry pi of the main control unit 1 in a low level driving manner.
As shown in fig. 5, the alarm module 7 is composed of a buzzer and a light emitting diode, a red flashing light emitting diode is adopted in the module, the working process of the flashing light emitting diode is very simple, the light emitting can be realized only by adding 5V direct current working voltage at two ends of a pin, no external circuit element is needed, the operation is simple and convenient, the red color is striking, and the alarm function is realized.
The buzzer is powered by direct current voltage, is an electrical element capable of converting electric energy into sound signals, has an alarm function, and is applied to various fields. The buzzer is divided into an active buzzer (also called self-excitation buzzer) and a passive buzzer (also called other excitation buzzer) according to a driving mode, wherein the source is not a power supply but an oscillation source, a sound signal of the active buzzer is generated by a direct current power supply under the action of a resonance device through an amplification sampling circuit of an oscillation system, the internal part of the active buzzer is provided with the oscillation source, the active buzzer can continuously make a sound as long as a rated power supply is connected, the sound signal of the passive buzzer is generated by a square wave signal through the conversion of the resonance device, the internal part of the passive buzzer does not contain the oscillation source, if the direct current signal is connected to the passive buzzer, the active buzzer must be driven by 2 k-5 k square waves, and the sound can be made by connecting an audio output circuit [7 ]. The active buzzer is provided with a plurality of oscillating circuits, so the price is more expensive than that of a passive buzzer, but the program control is convenient, so the active buzzer is adopted in the sound-light alarm module.
As the working current of the buzzer is generally higher, if the power is directly supplied through an I/O port of the raspberry pie, the buzzer cannot sound or the sound is weak, so that the power is directly supplied through a power supply, as shown in the following figures 3-6, one end of the sound-light alarm module is connected with a power supply of 5V, and the other end of the sound-light alarm module is connected with a GPIO 29 of the raspberry pie, so that enough energy is available for driving the buzzer to work normally.
As shown in fig. 6, the display module 8 employs a 0.96 inch OLED display screen. The 0.96-inch OLED display screen is totally provided with 8 pins, one pin is connected with a power supply 3.3V, one pin is grounded, and the other six pins are respectively connected with GPIO 0, GPIO 1, GPIO2, GPIO 3, GPIO 4 and GPIO 5 of the raspberry pie.
The embodiment of the invention has the following beneficial effects:
1. according to the intelligent home monitoring device, the human body infrared detection module is used for sensing the staying time of the external person, the temperature and humidity detection module is used for collecting the temperature and humidity of the surrounding environment, and the light control module is used for identifying the on-off state of light, and the intelligent home monitoring device can also intelligently judge that the external person stays for a long time or has overhigh temperature, automatically alarm and send alarm information to a remote mobile terminal, so that multifunctional remote monitoring is realized;
2. the intelligent home monitoring device provided by the invention is also interacted with the remote mobile terminal, receives a remote instruction (such as a remote photographing instruction, a remote light control instruction or a remote temperature and humidity display instruction) fed back by the remote mobile terminal, forms a corresponding operation, and further pushes the result of the corresponding operation to the remote mobile terminal for displaying, so that remote intelligent control is realized.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.