Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of smart home monitoring realized and remotely controlled
Device is not only able to achieve the long-range reception of monitoring data, moreover it is possible to realize long-distance intelligent control.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of smart home monitoring realized and remotely controlled
Device is matched with remote mobile terminal, including main control unit, and be connected with the main control unit camera, people
Body infrared detection module, fingerprint identification module, Temperature and Humidity module, lighting control module, communication module and alarm module;Wherein,
The human body infrared detection module is more than preset time threshold for incuding human body residence time in presumptive area
When, it generates trigger signal and is sent to the main control unit;
The Temperature and Humidity module, for acquiring the temperature and humidity of surrounding environment in real time, and will be collected in real time
Temperature and humidity are sent to the main control unit;
The lighting control module, the current state for the light to surrounding environment identify, and by identified lamp
The current state of light is sent to the main control unit, and further it is waiting receive the control instruction that the main control unit issues after,
The current state of identified light is reversely adjusted;Wherein, the current state is open state or closed state;
The main control unit, for receiving the trigger signal or judge institute that the human body infrared detection module is sent
After the temperature of the Temperature and Humidity module acquisition received is greater than preset temperature threshold, Xiang Suoshu alarm module issues alarm command
And warning message is sent to the remote mobile terminal by the communication module, and waiting receive is turned by the communication module
After the remote photo taking instruction that the remote mobile terminal of hair is fed back according to warning message, Xiang Suoshu camera issues unlatching and claps
The instruction taken the photograph, and image that further camera is opened and shot save and are pushed to the remote mobile terminal and show
Show;And/or
The remote lamp waiting for receiving the remote mobile terminal forwarded by the communication module and being fed back according to warning message
After photocontrol instruction, Xiang Suoshu lighting control module issues control instruction, and will further receive the signal light control mould
According to the control instruction, reversely light status adjusted is pushed to the remote mobile terminal and shows block;And/or
Waiting receive is shown by the long-range light status that the remote mobile terminal that the communication module forwards directly transmits and refers to
After order, the current state of the identified light of the lighting control module is pushed to the remote mobile terminal and is shown;And/or
It is waiting to receive the long-range temperature and humidity idsplay order directly transmitted by the remote mobile terminal that the communication module forwards
Afterwards, temperature and humidity that the Temperature and Humidity module acquires in real time the remote mobile terminal is pushed to show;
The alarm module is alarmed after receiving the alarm command that the main control unit issues;
The camera, after receiving the unlatching that the main control unit issues and the instruction shot, to the fate
The human body stopped in domain carries out image taking.
Wherein, further includes: the display module being connected with the main control unit;Wherein,
The display module, for showing the human body infrared detection module collected temperature and humidity in real time;And/or
Show the current state of the identified light of the lighting control module;And/or the figure that the display camera is opened and taken
Picture.
Wherein, the main control unit is formed by ARM chip and its peripheral circuit, and is preinstalled on the main control unit
(SuSE) Linux OS.
Wherein, the human body infrared detection module by model HC-SR501 infrared sensor of the human body and be covered in described
The luxuriant and rich with fragrance mud that optical filter of infrared sensor of the human body is formed.
Wherein, the Temperature and Humidity module uses the digital hygro sensor of model DHT11;Wherein, described
For the temperature measurement range of DHT11 digital hygro sensor between 0 and 50 DEG C, accuracy is ± 2 DEG C;Moisture measurement range
Between 20-90%RH, accuracy is ± 5%RH.
Wherein, the lighting control module is formed by LED induction type light emitting diode and current-limiting resistance.
Wherein, the alarm module is formed by light emitting diode and buzzer.
Wherein, the display module is OLED display screen.
Wherein, the remote mobile terminal is mobile phone or tablet computer.
Wherein, the remote mobile terminal gives the main control unit fed remote photographing instruction, long-range light by wechat
Control instruction or long-range temperature and humidity idsplay order.
The implementation of the embodiments of the present invention has the following beneficial effects:
1, smart home monitoring device of the invention, when not only incuding nonnative personnel's stop by human body infrared detection module
Between, Temperature and Humidity module acquisition surrounding environment temperature and humidity and lighting control module identification light open and-shut mode, moreover it is possible to
Intelligent distinguishing nonnative personnel stops or when the temperature is excessively high for a long time, automatic alarm and sends alarm signal to remote mobile terminal
Breath realizes multi-functional long-range monitoring;
2, smart home monitoring device of the invention, while also being interacted with remote mobile terminal, receive remote mobile
The teleinstruction (such as instruction of remote photo taking instruction, long-range signal light control or long-range temperature and humidity idsplay order) of terminal feedback is simultaneously formed
Corresponding operation, and the result of corresponding operating is further pushed to remote mobile terminal and is shown, realize long-distance intelligent control.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made into one below in conjunction with attached drawing
Step ground detailed description.
As shown in Figure 1, a kind of of proposition realizes the smart home monitoring device remotely controlled in the embodiment of the present invention,
It is matched with remote mobile terminal M, including main control unit 1, and the camera 2, the human body infrared that are connected with main control unit 1
Detection module 3, Temperature and Humidity module 4, lighting control module 5, communication module 6 and alarm module 7;Wherein,
Human body infrared detection module 3, for incude human body in presumptive area the residence time be more than preset time threshold when,
It generates trigger signal and is sent to main control unit 1;For example, someone rests on front door (fate (more than 2 minutes) for a long time
Domain), trigger signal will be generated;
Temperature and Humidity module 4, for acquiring the temperature and humidity of surrounding environment in real time, and will real-time collected temperature
And humidity is sent to main control unit 1;
Lighting control module 5, the current state for the light to surrounding environment identify, and by identified light
Current state is sent to main control unit 1, and further it is waiting receive the control instruction that main control unit 1 issues after, to identified lamp
The current state of light is reversely adjusted;Wherein, the current state is open state or closed state;
Main control unit 1, for receiving the trigger signal of the transmission of human body infrared detection module 3 or judging received
Temperature and Humidity module 4 acquire temperature be greater than preset temperature threshold (such as 40 DEG C) after, issue alarm command to alarm module 7
And by communication module 6 to remote mobile terminal M send warning message, and it is waiting receive forwarded by communication module 6 it is long-range
After the remote photo taking instruction that mobile terminal M is fed back according to warning message, the instruction for issuing unlatching to camera 2 and shooting,
And the image that further camera 2 is opened and shot saves and is pushed to remote mobile terminal M and shows;And/or
The long-range light waiting for receiving the remote mobile terminal M forwarded by communication module 6 and being fed back according to warning message
After control instruction, control instruction is issued to lighting control module 5, and will further receive lighting control module 5 according to this
Reversely light status adjusted is pushed to remote mobile terminal M and shows control instruction;And/or
The long-range light status idsplay order waiting for receiving the remote mobile terminal M forwarded by communication module 6 and directly transmitting
Afterwards, the current state of the identified light of lighting control module 5 remote mobile terminal M is pushed to show;And/or
It is waiting receive the long-range temperature and humidity idsplay order that the remote mobile terminal M forwarded by communication module 6 is directly transmitted after,
Temperature and humidity that Temperature and Humidity module 4 acquires in real time are pushed to remote mobile terminal M to show;
Alarm module 7 is alarmed after receiving the alarm command that main control unit 1 issues;
Camera 2, after receiving the unlatching that main control unit 1 issues and the instruction shot, to what is stopped in presumptive area
Human body carries out image taking.
It should be noted that communication module 6 is wireless communication module, including but not limited to 4G/5G, WIFI, zigbee
Deng.Main control unit 1 is formed by ARM chip and its peripheral circuit, and is preinstalled with (SuSE) Linux OS on main control unit 1.Human body is red
Outer detection module 3 is filtered by the infrared sensor of the human body of model HC-SR501 with the luxuriant and rich with fragrance mud that for being covered in infrared sensor of the human body
Piece is formed.Temperature and Humidity module 4 uses the digital hygro sensor of model DHT11;Wherein, DHT11 number temperature and humidity
For the temperature measurement range of sensor between 0 and 50 DEG C, accuracy is ± 2 DEG C;Moisture measurement range between 20-90%RH,
Accuracy is ± 5%RH.Lighting control module 5 is formed by LED induction type light emitting diode and current-limiting resistance.Alarm module 7 by
Light emitting diode and buzzer are formed.
Remote mobile terminal M be mobile phone or tablet computer, and by wechat to 1 fed remote photographing instruction of main control unit,
Long-range signal light control instruction or long-range temperature and humidity idsplay order.For example, remote mobile terminal M inputs photo in wechat, then instead
Present remote photo taking instruction;For another example, remote mobile terminal M inputs TAH in wechat, then fed remote temperature and humidity idsplay order;Again
Such as, remote mobile terminal M inputs lamp in wechat, then fed remote signal light control instructs;For another example, remote mobile terminal M
Lamp is inputted in wechat, then fed remote light idsplay order.
In the embodiment of the present invention, smart home monitoring device further include: the display module 8 being connected with main control unit 1;Its
In, display module 8, for showing human body infrared detection module 3 collected temperature and humidity in real time;And/or display lamp is light-operated
The current state of the identified light of molding block 4;And/or the image that display camera 2 is opened and taken.The display module 8 is
OLED display screen.
The working principle of smart home monitoring device in the embodiment of the present invention are as follows: real by human body infrared detection module 3
When incude human body residence time in presumptive area, once sense the human body residence time be more than preset time threshold when, will
It generates trigger signal and is sent to main control unit 1, main control unit 1 receives the triggering of the transmission of human body infrared detection module 3 at this time
After signal, immediately issue alarm command to alarm module 7, allow alarm module 7 carry out sound-light alarm, while also by warning message with
The mode of mail or short message is issued on the remote mobile terminal M (mobile phone or tablet computer) that user uses by communication module 6.
It after user timely receives warning message, can be sent by wechat mode remote photo taking instruction (photo), notify master control list
The instruction that member 1 issues unlatching to camera 2 and shoots allows camera 2 to carry out the physical trait for the personnel of stopping after accurately shooting,
It is forwarded back on the remote mobile terminal M that user uses and is shown again by communication module 6, user is allowed to pass through camera 2
Image to identify the identity of stop personnel in time, and the safety to ensure domestic environment is taken timely measure convenient for user.And/or
Acquire the temperature and humidity of surrounding environment in real time by Temperature and Humidity module 4, and will real-time collected temperature
And humidity is sent to main control unit 1, main control unit 1 judges the temperature that received Temperature and Humidity module 4 acquires at this time
After preset temperature threshold (such as 40 DEG C), alarm command immediately is issued to alarm module 7, alarm module 7 is allowed to carry out acousto-optic report
It is alert, while warning message is also issued into the remote mobile terminal M that user uses by communication module 6 in a manner of mail or short message
On, the safety to ensure domestic environment is taken timely measure convenient for user.Certainly, user can also pass through remote mobile terminal
M understands the temperature and humidity situation of domestic environment in real time, sends long-range temperature and humidity idsplay order (TAH), notice master by wechat mode
The temperature of the real-time acquisition surrounding environment of Temperature and Humidity module 4 and humidity are forwarded back to remote mobile by communication module 6 by control unit 1
It is shown on terminal M.And/or
It is identified by current state of the lighting control module 5 to the light of surrounding environment, and by identified light
Current state is sent to main control unit 1, and main control unit 1 receives user and shown by the long-range light that wechat mode is sent at this time
It instructs (lamp), the current state of the identified light of lighting control module 5 can be forwarded back to remote mobile terminal by communication module 6
It is shown on M, determines whether the light of domestic environment closes in time convenient for user.Certainly, the light of domestic environment is determined in user
When being always on state, user can be sent long-range light idsplay order (lamp off) by wechat mode, notice master
Control unit 1 is reversely adjusted the current state of the identified light of lighting control module 5, and will reversed light shape adjusted
State is forwarded back on remote mobile terminal M by communication module 6 and is shown.
As shown in Figures 2 to 6, answering to each unit in the smart home monitoring device in the embodiment of the present invention and module
It is described further with scene:
Main control unit 1 uses the raspberry pie based on ARM framework, generallys use on model Broadcom BCM2835 chip
Linux system as core, this system on chip has used a kind of finger different with common desktop computer, laptop
Collection framework-ARM framework is enabled, while it also has the design technology of oneself unique processor.One of the advantages of ARM chip, is just
Be it structure it is simple relative to the desktop processor chip of common high power consumption, possess lower power consumption, this guarantees it
When handling relatively difficult task, the heat of generation is also few.
Camera 2 uses official's camera-CSI camera of raspberry pie, it is by five megapixel sensors and position
Fixed focus lens in top are constituted, and the image processor tandem working with raspberry pie is ensuring to shoot high-resolution view
While frequency, it can also record a video glibly without making the primary processor of raspberry pie overload or occupy too many memory.Compared to biography
For the IP Camera of system, CSI camera has very big advantage, and small in size, longest side only has 25mm, and weight only has
3 grams, power consumption is few, not will increase the burden of raspberry pie battery or power supply supply, additionally it is possible to which shooting is up to five mega pixels
Image and the full HD resolution video for recording 30 frame per second.CSI camera is exposed as raspberry pie, and at one piece
On circuit board, so significant care is wanted when use, in order to avoid its component is damaged, the plastic lens being especially located in camera sensing device
Head.CSI camera is directly connected with the CSI connector of raspberry pie by soft arranging wire, and soft arranging wire is that the flat and semihard of one kind can
The cable of bending, soft arranging wire is quite solid under normal circumstances, can guarantee reliably to work daily use, still
If folding soft arranging wire to be easy to be damaged, so being careful to ensure when being inserted into soft arranging wire or dollying head
Soft arranging wire is not folded.Pick up CSI camera, it can be seen that one end of soft arranging wire has been embedded, and the other end is blue, is had
Contact on the CSI connector of argenteous contact, these contacts and raspberry pie is connected, to realize CSI camera and raspberry
Communication between group.The still photo in local area network can have both been shot using CSI camera, can also have been shown dynamic in local area network
State real-time pictures can also penetrate the access realized to outer net by Intranet, but due to funds, only use free
Server, broadband is insufficient, will cause when extranet access shows dynamic realtime picture and Caton occurs, so at present can't be real
The dynamic realtime menu display function of existing outer net.
As shown in Fig. 2, human body infrared detection module 3 uses HC-SR501 infrared sensor of the human body, this human body infrared is passed
Sensor avoids radiation from showing up interference of the infrared ray sensed by other toys and environmental factor to improve sensitivity,
Special luxuriant and rich with fragrance mud that optical filter would generally be covered above.Your optical filter of luxuriant and rich with fragrance mud is that have focusing according to made of Fresnel principle
Enhance human body infrared function, by human body on the infrared refraction (or reflection) to infrared sensor of the human body of external radiation, thus
Greatly improve the sensitivity of infrared sensor of the human body.HC-SR501 infrared sensor of the human body one shares 3 pins, and a pin connects
Power supply 5V, a pin ground connection, a pin in addition are used to connect 28 pin of GPIO of raspberry pie, work as human-body infrared sensing
When device detects someone, high level is exported, it is on the contrary then export low level.In addition to this 3 pins, HC-SR501 human body infrared
There are also the pins of some different function for sensor, such as adjust the knob of delay time, the knob for adjusting distance of reaction and adjusting
The stitch of detection pattern.When infrared sensor of the human body detects someone, can be prolonged by clockwise or rotational time counterclockwise
Slow adjusting knob extends or reduces the length of high level output time, and the time range for adjusting is 5 seconds to 5 minutes
Between.Furthermore human body infrared biography can be reduced or increased by clockwise or rotary inductive distance adjustment knob counterclockwise
The detecting distance of sensor, the distance range for adjusting are between 3 meters to 7 meters.The detection pattern of infrared sensor of the human body is divided into
Single detection pattern (not reproducible triggering) and continuous detection pattern (repeatable triggering), hold when infrared sensor of the human body detects
Continuous someone, after exporting high level, if delay a period of time high level reverts to low level automatically, for single detection pattern, if
Sensor is always maintained at high level, and just delayed recovery is then continuous detection pattern at low level after people leaves, both inspections
The selection of survey mode then will adjust stitch by detection pattern wire jumper, and one shares 3 stitch, and jumper cap is inserted in both the above needle
Single detection pattern is selected when foot, and continuous detection pattern, the generally company of being defaulted as are selected when jumper cap is inserted in following two stitch
Continuous detection pattern.
As shown in figure 3, the core component of Temperature and Humidity module 4 is DHT11 Temperature Humidity Sensor, DHT11 number is warm and humid
Spending sensor is a kind of compound sensor, it detects the temperature and humidity of monitoring environment using temperature and humidity sensing technology, is used
The digital quantity for the temperature and humidity that acquisition testing of digital module acquisition technique coming arrives, while in order to improve the reliability of detection data, it
The digital signal of output has been automatically calibrated.
The many merits of DHT11 Temperature Humidity Sensor make it that can not only be applied to domestic environment, additionally it is possible in medical treatment, gas
As the various harsh place applications such as station.The temperature range that DHT11 digital hygro sensor can measure 0 and 50 DEG C it
Between, the humidity range that can be measured is between 20-90%RH, measurement for temperature, and accuracy is ± 2 DEG C, for humidity
Measurement, accuracy is ± 5%RH, is 1 DEG C in terms of temperature for resolution ratio, is 1%RH in terms of humidity.In connection electricity
Lu Shi since Temperature and Humidity module 4 is existing, and has contained DHT11 Temperature Humidity Sensor chip inside module
And peripheral circuit, so only needing for Temperature and Humidity module 4 to connect with raspberry pie.
Temperature and Humidity module 4 shares 3 pins, and wherein pin 1 meets operating voltage 5V, and pin 3 is grounded, pin 2 with
The GPIO 7 of raspberry pie is connected.It should be noted that wait 1s to be used to after Temperature and Humidity module connects operating voltage
Unstable state is crossed, no need to send any instructions during this period.
Raspberry pie and the communication timing of DHT11 Temperature Humidity Sensor are as follows:
1. the triggering stage of DHT11 Temperature Humidity Sensor.The trigger signal that DHT11 Temperature Humidity Sensor is started to work is by setting
The certain kind of berries distributes out, and raspberry pie is allowed to be in I/O port output mode first, drags down by the high level of 18ms and then restores to draw high.
2. the preparation stage of DHT11 Temperature Humidity Sensor.After completing the triggering to DHT11 Temperature Humidity Sensor,
Next the I/O port of raspberry pie is dragged down into 80us, and then restores to draw high 80us again, at this point, DHT11 is in the standard of transmission data
The standby stage.
3. the data transfer phase of DHT11 Temperature Humidity Sensor.The data that DHT11 Temperature Humidity Sensor is transmitted to raspberry pie
It is total up to 5 bytes, that is, 40 bit.Here the data bit " 0 " of each bit adds 28us high level table with 50us low level
Show, " 1 " adds the high level of 70us to indicate with the low level of 50us.
It should be noted that preceding 4 expressions temperature and humidity in 5 data of DHT11 Temperature Humidity Sensor transmission, last 1
It is check bit.Wherein data (0) and data (1) indicates the integer-bit and decimal place of humidity, and data (2) and data (3) indicate temperature
The integer-bit and decimal place of degree, data (4) are check bit, data (4)=data (0)+data (1)+data (2)+data (3),
If unequal, illustrate that data transmission procedure is wrong, needs to retransmit.
As shown in figure 4, lighting control module 5 by a LED induction type light emitting diode and a 1K resistance (current limliting
Effect) it is connected in series, using low level driving method, termination power a 5V, the GPIO of another termination 1 raspberry pie of main control unit
27。
As shown in figure 5, buzzer and light emitting diode constitute alarm module 7, using red flashing in this module
Light emitting diode, the course of work very simple of blinking light emitting diode only pass through the DC operation at pin both ends plus 5V
Voltage can be realized luminous, be not necessarily to external any circuit element, easy to operate and red more eye-catching, and there is warning to make
With.
Buzzer uses DC-voltage supply, is a kind of electric elements that can convert electrical energy into sound signal, has
Warning function is applied in various fields.Buzzer is divided into active buzzer (also known as auto-excitation type buzzer) according to driving method
With passive buzzer (also known as separated exciting buzzer), the not instead of power supply that " source " here refers to shakes source, active buzzer
Amplification sample circuit of the voice signal by DC power supply Jing Guo oscillatory system generates under resonance device effect, internal included shake
Source is swung, as long as connecting rated power supply, active buzzer can continuously be made a sound, and the voice signal of passive buzzer is then
It is generated by square-wave signal by resonance device conversion, it is internal to be free of concussion source, if only access direct current signal can not make
It makes a sound, it is necessary to be driven with the square wave of 2k~5k, access audio output circuit can make a sound [7].Due to active
Contain multiple oscillating circuits inside buzzer, so can be more expensive than passive buzzer in price, but its process control is convenient, institute
With in sound and light alarm module using active buzzer.
Since the operating current of buzzer is generally bigger, if directly will lead to buzzing with the I/O confession electricity of raspberry pie
Device not sounding or microphonia, so directly using power supply power supply, shown in following Fig. 3-6, sound and light alarm module one terminates electricity
Source 5V, the GPIO 29 of another termination raspberry pie thus have enough energy driving buzzers to work normally.
As shown in fig. 6, OLED display screen of the display module 8 using 0.96 cun.0.96 cun of OLED display screen one shares 8
Pin, a pin meet power supply 3.3V, a pin ground connection, remaining six pin respectively with the GPIO of raspberry pie 0, GPIO 1,
GPIO 2, GPIO 3, GPIO 4, GPIO 5 are connected.
The implementation of the embodiments of the present invention has the following beneficial effects:
1, smart home monitoring device of the invention, when not only incuding nonnative personnel's stop by human body infrared detection module
Between, Temperature and Humidity module acquisition surrounding environment temperature and humidity and lighting control module identification light open and-shut mode, moreover it is possible to
Intelligent distinguishing nonnative personnel stops or when the temperature is excessively high for a long time, automatic alarm and sends alarm signal to remote mobile terminal
Breath realizes multi-functional long-range monitoring;
2, smart home monitoring device of the invention, while also being interacted with remote mobile terminal, receive remote mobile
The teleinstruction (such as instruction of remote photo taking instruction, long-range signal light control or long-range temperature and humidity idsplay order) of terminal feedback is simultaneously formed
Corresponding operation, and the result of corresponding operating is further pushed to remote mobile terminal and is shown, realize long-distance intelligent control.
Above disclosed is only a preferred embodiment of the present invention, cannot limit the power of the present invention with this certainly
Sharp range, therefore equivalent changes made in accordance with the claims of the present invention, are still within the scope of the present invention.