CN110262276A - Smart home system and its control method based on raspberry pie - Google Patents

Smart home system and its control method based on raspberry pie Download PDF

Info

Publication number
CN110262276A
CN110262276A CN201910679640.2A CN201910679640A CN110262276A CN 110262276 A CN110262276 A CN 110262276A CN 201910679640 A CN201910679640 A CN 201910679640A CN 110262276 A CN110262276 A CN 110262276A
Authority
CN
China
Prior art keywords
user
module
raspberry pie
voice
control
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.)
Granted
Application number
CN201910679640.2A
Other languages
Chinese (zh)
Other versions
CN110262276B (en
Inventor
王俊之
王彦
孙毅
廖婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of South China
Original Assignee
University of South China
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 University of South China filed Critical University of South China
Priority to CN201910679640.2A priority Critical patent/CN110262276B/en
Publication of CN110262276A publication Critical patent/CN110262276A/en
Application granted granted Critical
Publication of CN110262276B publication Critical patent/CN110262276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Smart home system and its control method based on raspberry pie, the house system include indicating lamp module, voice module, indoor environment acquisition module, safety monitoring module, household terminal, speaker module, user terminal, cloud, ZigBee coordinator and raspberry pie.Indicating lamp module, voice module, safety monitoring module, speaker module, user terminal, cloud and ZigBee coordinator are connect with raspberry pie;ZigBee coordinator is connect with indoor environment acquisition module and household terminal.The operating mode of situation control system is logined by detection network state and user, using the accuracy of mailbox and wechat common guarantee accessing system user when long-range control, the intelligent control and user interaction to house system are realized by raspberry pie and ZigBee coordinator jointly.The present invention realizes the real time monitoring to house system, improves privacy, compatibility and the stability of system, ensure that the house security of user, reduces the cost of system, has preferable market prospects.

Description

Smart home system and its control method based on raspberry pie
Technical field
The present invention relates to Intelligent housing field, more particularly to a kind of smart home system based on raspberry pie and its Control method.
Background technique
With the rapid development of social progress and intellectual product, more and more intellectual products are applied to people's life Household field, realize people's remotely monitoring to the control of household electrical appliance and house security.However existing smart home control It makes generally existing following problem: (1) lacking specification and unified professional standard, the system of different manufacturers research and development can not be simultaneous Hold, user's range of choice is limited to, and use cost is high;(2) behaviour of the smart home product in installation, debugging and use process Make the difficulty increase that means are excessively complicated, and multiple functional comprehensive system is even more so, and user uses, is especially not easy to the age The operation of biggish kinsfolk;(3) to the security reliability of the privacy of kinsfolk and equipment when system is remotely controlled There are biggish risks;(4) on the market the system stability of most products depend on network stability, work as network interruption When, system can be in paralyzed state.
Thus how to realize that the compatibility of smart home product, convenient user's operation, privacy is good and stable performance is mesh Preceding urgent need to resolve.
Summary of the invention
A kind of smart home system based on raspberry pie is provided the purpose of the present invention is overcoming the above-mentioned insufficient of the prior art System and control method, the smart home system can carry out offline voice control, online voice control and remote according to network state The switching of process control Three models, the long-range control of system is carried out by the double verification of mailbox and wechat, and raspberry pie passes through net Network and USB port are attached with user terminal and ZigBee coordinator respectively, and ZigBee coordinator is communicated with household terminal and gone forward side by side Row control, improves privacy, compatibility and the stability of smart home system.
The technical scheme is that the smart home system based on raspberry pie, including indicating lamp module, voice module, Indoor environment acquisition module, safety monitoring module, household terminal, speaker module, user terminal, cloud, ZigBee coordinator and Raspberry pie.
The indicating lamp module is made of multiple color lamps, is used to indicate the control model of system.
The voice module is made of microphone array, for acquiring the voice data of user.
The indoor environment acquisition module includes gas sensor and Temperature Humidity Sensor, for acquiring in domestic environment Fuel gas parameter and temperature and humidity parameter.
The safety monitoring module includes human body sensor and camera, is respectively used to the human body entered in domestic environment Incuded and shot photo.
The household terminal includes electric light, heater, exhaust fan and air-conditioning.
The speaker module includes speaker, for broadcast voice prompting user's operation step and play raspberry pie according to The associated internet resource that family instruction obtains.
The user terminal includes the mobile phone, computer or IPAD for being equipped with wechat and mailbox software, for passing through installation Wechat and mailbox software carry out the login of system and the sending of control instruction.
The cloud includes Baidu's speech recognition and Internet resources.
The ZigBee coordinator is connect by USB port with raspberry pie, and ZigBee coordinator is wireless from organizing by ZigBee Network is connect with indoor environment acquisition module and household terminal respectively, for storing the environment ginseng of indoor environment acquisition module acquisition Number calls for raspberry pie, receives control instruction and send control instruction to household terminal that raspberry pie is sent.
The indicating lamp module, voice module, safety monitoring module, speaker module, user terminal and cloud are and raspberry Group's connection;Wherein indicating lamp module, voice module, safety monitoring module pass through conducting wire respectively and connect with raspberry pie, speaker module It is connect by Audio Data Line with raspberry pie, user terminal and cloud pass through network and connect with raspberry pie.
The control method of the smart home system based on raspberry pie, includes the following steps:
A, user's Initialize installation: user wakes up keyword and control household terminal shape according to the hobby of oneself training snowboy The instruction set of state;And kinsfolk's list storehouse with all kinsfolk's mailbox numbers is stored in advance and establishes packet in wechat Wechat group containing all kinsfolk's WeChat IDs and group entitled " smart home family group ".
B, whether raspberry pie detects its network connection normal.
C, if network connection is abnormal, system enters offline voice control mode, all color lamps of control instructions lamp module In pink colour;Voice module receives the voice that user issues, and raspberry pie calls the snowboy good through user's precondition, works as user Voice in exist and wake up system when waking up keyword, then judge whether to have in user speech that there are user's preconditions is good Instruction in instruction set, the corresponding control program of snowboy starting, is controlled by state of the raspberry pie to household terminal if having System.
D, if network connection is normal, raspberry pie starting mailbox detects thread: detecting whether to receive instruction mail, if receiving finger Mail is enabled, further judges sender whether in pre-stored kinsfolk's list storehouse and whether theme is " to login and be System ", if sender in family members list library and if mail matter topics be " accessing system ", system enters long-range control mould Formula: closing mailbox and detect thread, and all color lamps of control instructions lamp module are in yellow, sends the two dimensional code of accessing system to user Mailbox, user scan the two dimensional code accessing system by wechat, in the wechat group pre-established entitled " smart home family group " Kinsfolk voice or word message are sent in the wechat group, system is controlled.
User is by sending the voice comprising " exiting " in " smart home family group " wechat group or text information exits Distance control mode, and restart mailbox detection thread.
If E, network connection is normal, raspberry pie does not receive instruction mail, the sender of the instruction mail received stays out front yard In member column Table storehouse or mail matter topics are not " accessing systems ", then system enters online voice control mode: control instructions lamp mould For all color lamps of block in green, voice module receives the voice that user issues, and raspberry pie calls Baidu's speech recognition pair in cloud The instruction for the control household SOT state of termination that the voice of user is identified, and be will identify that is sent to ZigBee coordinator to control The state of household terminal processed;If the control instruction of household terminal is not present in the voice of user, raspberry pie is according to the need of user It asks and cloud Internet resources is called to interact with user, and interaction result is played by speaker module.
Wherein, in step D, the state that the control of system includes safety monitoring module is controlled in user's distance control mode The acquisition of acquisition, indoor environment acquisition module information with information, the information of control and the acquisition of the household SOT state of termination use Family terminal shows, specifically: raspberry pie calls the kinsfolk in Baidu's speech recognition identification " smart home family group " to send Voice or word message, safety monitoring module, indoor environment are obtained or controlled according to the instruction in voice or text information The state of acquisition module and household terminal, and the status display that will acquire is to " smart home family group " wechat of user terminal In group.
The further technical solution of the present invention is: the smart home system based on raspberry pie further includes critical rescue module, Critical rescue module includes SIM800C and capacitance touch button pen, SIM800C and capacitance touch button pen and ZigBee coordinator Wireless network connection is organized certainly by ZigBee.
The smart home system based on raspberry pie, control method, include the following steps:
A, user's Initialize installation: user wakes up keyword, the control household SOT state of termination according to the hobby of oneself training snowboy Instruction set and triggering SIM800C help command;And kinsfolk's column with all kinsfolk's mailbox numbers are stored in advance Table storehouse establishes the wechat group comprising all kinsfolk's WeChat IDs and group entitled " smart home family group " and pre- in wechat The phone of family members when burst emergency situation occurs for first storage;
B, whether raspberry pie detects its network connection normal;
C, if network connection is abnormal, system enters offline voice control mode, and all color lamps of control instructions lamp module are in powder Color;Voice module receives the voice that user issues, and raspberry pie calls the snowboy good through user's precondition, when the language of user Exist in sound and wake up system when waking up keyword, then judges the control for whether having good there are user's precondition in user speech Instruction in the instruction set of the household SOT state of termination, snowboy starting control program is by raspberry pie to the shape of household terminal if having State is controlled;And judge the help command for triggering SIM800C for whether having good there are user's precondition in user speech, if In the presence of triggering SIM800C help command then raspberry pie control ZigBee coordinator triggering SIM800C dial the family being previously stored The phone of category;
D, if network connection is normal, raspberry pie starting mailbox detects thread: detecting whether to receive instruction mail, if receiving instruction postal Part, further judge sender whether in pre-stored kinsfolk's list storehouse and whether theme is " accessing system ", If sender in family members list library and if mail matter topics be " accessing system ", system enters distance control mode: closing Mailbox detection thread is closed, all color lamps of control instructions lamp module are in yellow, send the two dimensional code of accessing system to subscriber mailbox, User scans the two dimensional code accessing system by wechat, the family in the wechat group pre-established entitled " smart home family group " Member sends voice or word message in the wechat group, controls system;
User is by sending the voice comprising " exiting " in " smart home family group " wechat group or text information exits remotely Control model, and restart mailbox detection thread;
If E, network connection is normal, raspberry pie does not receive instruction mail, the sender of the instruction mail received stays out front yard member In list storehouse or mail matter topics are not " accessing systems ", then system enters online voice control mode: control instructions lamp module For all color lamps in green, voice module receives the voice that user issues, and raspberry pie calls Baidu's speech recognition in cloud to user The voice instruction of the control household SOT state of termination that is identified, and will identify that be sent to ZigBee coordinator to control house The state of terminal is occupied, or the help command for the triggering SIM800C that will identify that is sent to ZigBee coordinator triggering SIM800C groups Make a call the family members' being previously stored;If there is no the control instruction of household terminal and triggering SIM800C's in the voice of user Help command, then raspberry pie calls cloud Internet resources to interact with user according to the demand of user, and will interact result It is played by speaker module.
Wherein, in step C to step E, if ZigBee coordinator receives the button information of capacitance touch button pen transmission, Then trigger the phone that SIM800C dials the family members set in advance.
Compared with the prior art, the invention has the following features:
1, the present invention realizes the switching of offline voice control mode, online voice control mode and distance control mode, raspberry Group and indoor environment acquisition module, household terminal and critical rescue module etc. pass through the unicast communication modes of ZigBee, have The features such as small power consumption at low cost, and make when network is abnormal, user still is able to reduce by voice control household terminal Dependence of the house system to network.
2, the present invention realizes long-range control in such a way that the current maximum wechat of APP user volume is combined with mailbox, has There is the features such as easy to operate, good compatibility, the cost of smart home popularization is greatly reduced, and in accessing system, by setting The mode for setting kinsfolk's list storehouse and wechat smart home group carries out double verification to the user of control system, improves household The safety of system is not easy to be controlled by non-family members;Also ensure user in routine use wechat and when mailbox, house system It will not be by false triggering.
3, the present invention calls cloud to carry out the acquisition of Baidu's speech recognition and Internet resources using raspberry pie, enhances house It occupies the scope of application of system and using function, passes through the entertainment for interacting the system of improving between user and house system.
4, the critical rescue module that the present invention is arranged enables to old man or child when emergency situation occurs, and passes through voice Or capacitive buttons trigger and dial family members' phone, the safety under double shield old man or child's emergency situation.
Detailed construction of the invention is further described below in conjunction with the drawings and specific embodiments.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one smart home system of the embodiment of the present invention;
Fig. 2 is the flow chart of one intelligent home system control method of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of two smart home system of the embodiment of the present invention.
Specific embodiment
Embodiment one, as shown in Figs. 1-2, the smart home system based on raspberry pie, including indicating lamp module 1, voice mould Block 2, indoor environment acquisition module 3, safety monitoring module 4, household terminal 5, speaker module 6, user terminal 7, cloud 8, ZigBee coordinator 9 and raspberry pie 10.
The indicating lamp module 1 is made of 12 color lamps, is used to indicate the control model of system, the model of the color lamp APA102。
The voice module 2 is made of microphone array, for acquiring the voice data of user, the model of the microphone For MEMS silicon microphone.
The indoor environment acquisition module 3 includes gas sensor and Temperature Humidity Sensor, for acquiring in domestic environment Fuel gas parameter and temperature and humidity parameter and collected environmental parameter is sent to ZigBee coordinator 9, the gas passes Sensor is MQ-2 smoke sensor device, and Temperature Humidity Sensor is DHT11 Temperature Humidity Sensor.
The safety monitoring module 4 include human body sensor and camera, for enter domestic environment in human body into Row incudes and shoots photo, and the photo of shooting is sent to raspberry pie 10;Or the instruction of the transmission of raspberry pie 10 is received to human body The state of sensor and camera is controlled, and the model of the human body sensor and camera is respectively HC-SR501 human body sense Inductive sensing device, PiCamera camera.
The household terminal 5 includes electric light, heater, exhaust fan and air-conditioning, can also according to actual needs include more Household electrical appliance, such as TV, water heater etc..User can open or close electric light according to light intensity, be joined according to room temperature Number opens or closes heater, also according to indoor combustable gas concentration opens or closes exhaust fan, according to using the hot water time to mention Front opening or closing water heater etc..The household terminal 5 carries out phase intercommunication by unicast networking mode and ZigBee coordinator 9 Letter.
The speaker module 6 includes speaker, for broadcasting voice prompting user's operation step and broadcasting raspberry pie 10 The associated internet resource obtained according to user instruction.
The user terminal 7 includes being equipped with mobile phone, computer or IPAD of wechat and mailbox software etc., for passing through installation Wechat and mailbox software carry out system login and control instruction sending.
The cloud 8 includes Baidu's speech recognition and Internet resources, passes through network connection with raspberry pie 10.
The ZigBee coordinator 9 is connect by USB port with raspberry pie 10, and ZigBee coordinator 9 and indoor environment acquire Module 3 and household terminal 5 organize wireless network connection by ZigBee certainly.ZigBee coordinator 9 is adopted for storing indoor environment Collecting the environmental parameter that module 3 acquires calls for raspberry pie 10, receives the control instruction of the transmission of raspberry pie 10 and transmission control to refer to It enables to household terminal 5.
The indicating lamp module 1, voice module 2, safety monitoring module 4, speaker module 6, user terminal 7 and cloud 8 are equal It is connect with raspberry pie 10.Wherein indicating lamp module 1, voice module 2, safety monitoring module 4 pass through conducting wire and raspberry pie 10 respectively Connection, speaker module 6 are connect by Audio Data Line with raspberry pie 10, and user terminal 7 and cloud 8 pass through network and raspberry pie 10 connections.
Raspberry pie 10 according to the control model of the management information system of its network state and user terminal 7 that are presently in, The working condition of control instructions lamp module 1, and speech-controlled information, safety monitoring module 4 that voice module 1 is sent are received respectively The speech recognition of the log-on message and speech-controlled information, cloud 8 of the user that the monitoring information of transmission, user terminal 7 are sent is believed The parameter information that breath and internet content and ZigBee coordinator 9 store.
Raspberry pie 10 sends cloud 8 for the speech-controlled information of user and identifies control instruction, will according to control instruction The internet content obtained from cloud 8 is played by speaker module 6 or sends ZigBee coordinator for the control instruction of identification 9, safety monitoring module 4 and user terminal 7, and household terminal 5, safety monitoring module 4 and user terminal 7 are controlled or joined Several displays.
The control method of the smart home system based on raspberry pie of above-described embodiment one, includes the following steps:
A, user's Initialize installation: user wakes up keyword and control 5 shape of household terminal according to the hobby of oneself training snowboy The instruction set of state.For example, being said as keyword is waken up when microphone array of the user to voice module 2 using " Javrs " System is waken up when in voice including " Javrs ", and training includes but is not limited to open electric light, close electric light, open heater, close Close the instruction set that heater etc. controls 5 state of household terminal.The mailbox number with all kinsfolks is stored in advance Kinsfolk's list storehouse and established in wechat comprising all kinsfolk's WeChat IDs and group it is entitled " smart home family group " Wechat group.
B, whether raspberry pie 10 detects its network connection normal;
C, if network connection is abnormal, system enters offline voice control mode, and 12 color lamps of control instructions lamp module 1 are in powder Color, voice module 2 receive the voice that user issues, and raspberry pie 10 calls the snowboy good through user's precondition, when user's Exist in voice and wake up system when waking up keyword, then judges the finger for whether having good there are user's precondition in user speech The instruction concentrated is enabled, the corresponding control program of snowboy starting if having is carried out by state of the raspberry pie 10 to household terminal 5 Control.
D, if network connection is normal, raspberry pie 10 starts mailbox and detects thread: the library poplib being called to detect whether to receive finger Mail is enabled, if receiving instruction mail, further judges whether sender is in pre-stored kinsfolk's list storehouse and main Topic whether be " accessing system ", if sender in family members list library and if mail matter topics be " accessing system ", system Into distance control mode: closing mailbox and detect thread, 12 color lamps of control instructions lamp module 1 are in yellow, call smtplib Library sends the two dimensional code of accessing system to subscriber mailbox, and user is scanned the two dimensional code accessing system by wechat, pre-established Kinsfolk in wechat group entitled " smart home family group " sends voice or word message in the wechat group, to system into Row control.
It include the state control of safety monitoring module 4 and obtaining for information to the control of system under user's distance control mode It takes, the user terminal 7 of the information of the acquisition of 3 information of indoor environment acquisition module, control and the acquisition of 5 state of household terminal is shown Show.Specifically: the voice or text that raspberry pie 10 calls the kinsfolk in the identification of the library itchat " smart home family group " to send Word message obtains according to the instruction in voice or text information or controls safety monitoring module 4, indoor environment acquisition module 3 And the state of household terminal 5, and the status display that will acquire is into " smart home family group " wechat group of user terminal 7.
For example, raspberry pie 10 sends a command to safety monitoring module 4 when there is " clapping a photo " in the message of user Camera, control camera shoot a photo, and send the photo of shooting to " the smart home family group " of user terminal 7 It is shown in wechat group.When there is " starting monitoring " in the message of user, if the human body sensor of safety monitoring module 4 When having sensed that people or object is passed through, which is sent to raspberry pie 10, camera shooting is controlled by raspberry pie 10 Photo, and send the photo of shooting in " smart home family group " wechat group of user terminal 7 and show.User can also By sending the text that there is " closing monitoring " or voice messaging to stop raspberry pie 10 to human sensing inductive sensing device signal Identification, if having people or object again at this time by human body sensor, camera is just without taking pictures.
When there is " temperature and humidity " or " gas " instruction in the message of user, raspberry pie 10 calls indoor environment acquisition module 3 are sent to temperature and humidity parameter or gas parameter in ZigBee coordinator 9, and temperature and humidity parameter or gas parameter are shown to use In the wechat group of " the smart home family group " of family terminal 7;Whether user starts household end according to the collected parameter sending The instruction at end 5 issues " opening heater " instruction when indoor temperature is lower, and raspberry pie 10 sends the instruction to ZigBee coordinator 9 sends instructions to the heater of household terminal 5 by ZigBee coordinator 9 to control heater start-up operation Improve room temperature.
User is by sending the voice comprising " exiting " in " smart home family group " wechat group or text information exits Distance control mode, and restart mailbox detection thread.
If E, network connection is normal, raspberry pie 10 do not receive instruction mail, the sender of instruction mail that receives not In kinsfolk's list storehouse or mail matter topics are not " accessing systems ", then system enters online voice control mode: control instructions For 12 color lamps of lamp module 1 in green, voice module 2 receives the voice that user issues, and raspberry pie 10 calls Baidu's language in cloud 8 The instruction for 5 state of control household terminal that sound identification identifies the voice of user, and will identify that is sent to ZigBee association Device 9 is adjusted to control the state of household terminal 5.If the control instruction of household terminal 5, raspberry pie are not present in the voice of user 10 call the Internet resources in cloud 8 to interact with user according to the demand of user, and interaction result is passed through speaker module 6 It plays.If system calls cloud 8 to search comprising " song " or " laugh at such as comprising " song " or " joke " etc. in the voice of user's sending The content of words " etc., is played out the content found by speaker module 6, and restarts mailbox detection thread.
Embodiment two, as shown in figure 3, embodiment two and the difference of embodiment one are: the intelligence based on raspberry pie House system, further includes critical rescue module 11, and critical rescue module includes SIM800C and capacitance touch button pen, SIM800C Wireless network connection is organized by ZigBee certainly with capacitance touch button pen and ZigBee coordinator 9.
The control method of smart home system described in embodiment two based on raspberry pie and the difference of embodiment one are: Step A further includes user in user's Initialize installation according to the help command of the hobby training triggering SIM800C of oneself and in advance The phone of family members when burst emergency situation occurs for storage.
When old man or child are in alone generation burst emergency situation, if the position where it is in voice module 2 In identification range, raspberry pie 10, which is called, judges old man or child through the good snowboy of user's precondition or Baidu's speech recognition When there is the help command of triggering SIM800C in the voice of sending, ZigBee coordinator is sent by the instruction for controlling SIM800C 9, and the phone that SIM800C dials the family members set in advance is triggered by ZigBee coordinator 9.If the position where it is in language When except the identification range of sound module 2, old man or child, will by pressing the button on portable capacitance touch button pen Button information is sent to ZigBee coordinator 9, and triggers SIM800C by ZigBee coordinator 9 and dial the family members set in advance Phone, safety when guaranteeing that old man or child are in alone.

Claims (6)

1. the smart home system based on raspberry pie, it is characterized in that: including indicating lamp module, voice module, indoor environment acquisition Module, safety monitoring module, household terminal, speaker module, user terminal, cloud, ZigBee coordinator and raspberry pie;
The indicating lamp module is made of multiple color lamps, is used to indicate the control model of system;
The voice module is made of microphone array, for acquiring the voice data of user;
The indoor environment acquisition module includes gas sensor and Temperature Humidity Sensor, flammable in domestic environment for acquiring Gas parameter and temperature and humidity parameter;
The safety monitoring module includes human body sensor and camera, is respectively used to carry out the human body entered in domestic environment Induction and shooting photo;
The household terminal includes electric light, heater, exhaust fan and air-conditioning;
The speaker module includes speaker;
The user terminal includes the mobile phone, computer or IPAD for being equipped with wechat and mailbox software, for the wechat by installation The login of system and the sending of control instruction are carried out with mailbox software;
The cloud includes Baidu's speech recognition and Internet resources;
The ZigBee coordinator is connect by USB port with raspberry pie, and ZigBee coordinator organizes wireless network by ZigBee certainly It is connect respectively with indoor environment acquisition module and household terminal, the environmental parameter for storing the acquisition of indoor environment acquisition module supplies Raspberry pie is called, receives control instruction and send control instruction to household terminal that raspberry pie is sent;
The indicating lamp module, voice module, safety monitoring module, speaker module, user terminal and cloud connect with raspberry pie It connects;Wherein indicating lamp module, voice module, safety monitoring module pass through conducting wire respectively and connect with raspberry pie, and speaker module passes through Audio Data Line is connect with raspberry pie, and user terminal and cloud pass through network and connect with raspberry pie.
2. as described in claim 1 based on the smart home system of raspberry pie, it is characterized in that: further include critical rescue module, Critical rescue module includes SIM800C and capacitance touch button pen, SIM800C and capacitance touch button pen and ZigBee coordinator Wireless network connection is organized certainly by ZigBee.
3. the control method of the smart home system based on raspberry pie as described in claim 1, includes the following steps:
A, user's Initialize installation: user wakes up keyword and control household terminal shape according to the hobby of oneself training snowboy The instruction set of state;And kinsfolk's list storehouse with all kinsfolk's mailbox numbers is stored in advance and establishes packet in wechat Wechat group containing all kinsfolk's WeChat IDs and group entitled " smart home family group ";
B, whether raspberry pie detects its network connection normal;
C, if network connection is abnormal, system enters offline voice control mode, and all color lamps of control instructions lamp module are in powder Color;Voice module receives the voice that user issues, and raspberry pie calls the snowboy good through user's precondition, when the language of user Exist in sound and wake up system when waking up keyword, then judges the instruction for whether having good there are user's precondition in user speech The instruction of concentration, the snowboy starting control program if having control the state of household terminal according to instruction by raspberry pie System;
D, if network connection is normal, raspberry pie starting mailbox detects thread: detecting whether to receive instruction mail, if receiving instruction postal Part, further judge sender whether in pre-stored kinsfolk's list storehouse and whether theme is " accessing system ", If sender in family members list library and if mail matter topics be " accessing system ", system enters distance control mode: closing Mailbox detection thread is closed, all color lamps of control instructions lamp module are in yellow, send the two dimensional code of accessing system to subscriber mailbox, User scans the two dimensional code accessing system by wechat, the family in the wechat group pre-established entitled " smart home family group " Member sends voice or word message in the wechat group, controls system;
User is by sending the voice comprising " exiting " in " smart home family group " wechat group or text information exits remotely Control model, and restart mailbox detection thread;
If E, network connection is normal, raspberry pie does not receive instruction mail, the sender of the instruction mail received stays out front yard member In list storehouse or mail matter topics are not " accessing systems ", then system enters online voice control mode: control instructions lamp module For all color lamps in green, voice module receives the voice that user issues, and raspberry pie calls Baidu's speech recognition in cloud to user The voice instruction of the control household SOT state of termination that is identified, and will identify that be sent to ZigBee coordinator to control house Occupy the state of terminal;If the control instruction of household terminal is not present in the voice of user, raspberry pie is adjusted according to the demand of user It is interacted with cloud Internet resources with user, and interaction result is played by speaker module.
4. the control method of the smart home system based on raspberry pie as claimed in claim 3, it is characterized in that:
It include the state control and information of safety monitoring module to the control of system in step D, under user's distance control mode It obtains, the user terminal of the information of the acquisition of indoor environment acquisition module information, control and the acquisition of the household SOT state of termination is shown Show, specifically: voice that raspberry pie calls the kinsfolk in Baidu's speech recognition identification " smart home family group " to send or Word message obtains according to the instruction in voice or text information or controls safety monitoring module, indoor environment acquisition module And the state of household terminal, and the status display that will acquire is into " smart home family group " wechat group of user terminal.
5. the control method of the smart home system based on raspberry pie as claimed in claim 2, includes the following steps:
A, user's Initialize installation: user wakes up keyword, the control household SOT state of termination according to the hobby of oneself training snowboy Instruction set and triggering SIM800C help command;And kinsfolk's column with all kinsfolk's mailbox numbers are stored in advance Table storehouse establishes the wechat group comprising all kinsfolk's WeChat IDs and group entitled " smart home family group " and pre- in wechat The phone of family members when burst emergency situation occurs for first storage;
B, whether raspberry pie detects its network connection normal;
C, if network connection is abnormal, system enters offline voice control mode, and all color lamps of control instructions lamp module are in powder Color;Voice module receives the voice that user issues, and raspberry pie calls the snowboy good through user's precondition, when the language of user Exist in sound and wake up system when waking up keyword, then judges the control for whether having good there are user's precondition in user speech Instruction in the instruction set of the household SOT state of termination, snowboy starting control program is by raspberry pie to the shape of household terminal if having State is controlled;And judge the help command for triggering SIM800C for whether having good there are user's precondition in user speech, if In the presence of triggering SIM800C help command then raspberry pie control ZigBee coordinator triggering SIM800C dial the family being previously stored The phone of category;
D, if network connection is normal, raspberry pie starting mailbox detects thread: detecting whether to receive instruction mail, if receiving instruction postal Part, further judge sender whether in pre-stored kinsfolk's list storehouse and whether theme is " accessing system ", If sender in family members list library and if mail matter topics be " accessing system ", system enters distance control mode: closing Mailbox detection thread is closed, all color lamps of control instructions lamp module are in yellow, send the two dimensional code of accessing system to subscriber mailbox, User scans the two dimensional code accessing system by wechat, the family in the wechat group pre-established entitled " smart home family group " Member sends voice or word message in the wechat group, controls system;
User is by sending the voice comprising " exiting " in " smart home family group " wechat group or text information exits remotely Control model, and restart mailbox detection thread;
If E, network connection is normal, raspberry pie does not receive instruction mail, the sender of the instruction mail received stays out front yard member In list storehouse or mail matter topics are not " accessing systems ", then system enters online voice control mode: control instructions lamp module For all color lamps in green, voice module receives the voice that user issues, and raspberry pie calls Baidu's speech recognition in cloud to user The voice instruction of the control household SOT state of termination that is identified, and will identify that be sent to ZigBee coordinator to control house The state of terminal is occupied, or the help command for the triggering SIM800C that will identify that is sent to ZigBee coordinator triggering SIM800C groups Make a call the family members' being previously stored;If there is no the control instruction of household terminal and triggering SIM800C's in the voice of user Help command, then raspberry pie calls cloud Internet resources to interact with user according to the demand of user, and will interact result It is played by speaker module.
6. the control method of the smart home system based on raspberry pie as claimed in claim 5, it is characterized in that: step C is to step In rapid E, if ZigBee coordinator receives the button information of capacitance touch button pen transmission, triggers SIM800C and dial in advance The phone of the family members set.
CN201910679640.2A 2019-07-26 2019-07-26 Intelligent home system based on raspberry group and control method thereof Active CN110262276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910679640.2A CN110262276B (en) 2019-07-26 2019-07-26 Intelligent home system based on raspberry group and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910679640.2A CN110262276B (en) 2019-07-26 2019-07-26 Intelligent home system based on raspberry group and control method thereof

Publications (2)

Publication Number Publication Date
CN110262276A true CN110262276A (en) 2019-09-20
CN110262276B CN110262276B (en) 2023-12-19

Family

ID=67928336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910679640.2A Active CN110262276B (en) 2019-07-26 2019-07-26 Intelligent home system based on raspberry group and control method thereof

Country Status (1)

Country Link
CN (1) CN110262276B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112158486A (en) * 2020-08-28 2021-01-01 山东科技大学 Intelligent garbage classification device and classification method
CN113329000A (en) * 2021-05-17 2021-08-31 山东大学 Privacy protection and safety monitoring integrated system based on smart home environment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104049601A (en) * 2014-03-19 2014-09-17 杨明 Intelligent life centralized management integrated method, device and platform
WO2017008322A1 (en) * 2015-07-10 2017-01-19 西安交通大学 Smart home energy management method based on social networking behavior detection
CN106789459A (en) * 2016-12-07 2017-05-31 中国人民解放军理工大学 A kind of smart machine control device and control method based on raspberry group
CN108958053A (en) * 2018-07-20 2018-12-07 杭州电子科技大学 Wechat long-distance monitoring method based on raspberry pie
CN109509470A (en) * 2018-12-11 2019-03-22 平安科技(深圳)有限公司 Voice interactive method, device, computer readable storage medium and terminal device
CN210109580U (en) * 2019-07-26 2020-02-21 南华大学 Intelligent home system based on raspberry group

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104049601A (en) * 2014-03-19 2014-09-17 杨明 Intelligent life centralized management integrated method, device and platform
WO2017008322A1 (en) * 2015-07-10 2017-01-19 西安交通大学 Smart home energy management method based on social networking behavior detection
CN106789459A (en) * 2016-12-07 2017-05-31 中国人民解放军理工大学 A kind of smart machine control device and control method based on raspberry group
CN108958053A (en) * 2018-07-20 2018-12-07 杭州电子科技大学 Wechat long-distance monitoring method based on raspberry pie
CN109509470A (en) * 2018-12-11 2019-03-22 平安科技(深圳)有限公司 Voice interactive method, device, computer readable storage medium and terminal device
CN210109580U (en) * 2019-07-26 2020-02-21 南华大学 Intelligent home system based on raspberry group

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王俊之;王彦;孙毅: "基于语音交互的智能家居系统", 《南华大学学报(自然科学版)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112158486A (en) * 2020-08-28 2021-01-01 山东科技大学 Intelligent garbage classification device and classification method
CN113329000A (en) * 2021-05-17 2021-08-31 山东大学 Privacy protection and safety monitoring integrated system based on smart home environment

Also Published As

Publication number Publication date
CN110262276B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
EP3535753B1 (en) Focus session at a voice interface device
KR102114003B1 (en) LED design language for visual affordance of voice user interfaces
CN108900502B (en) Communication method and system based on household intelligent interconnection
CN108604447B (en) Information processing unit, information processing method and program
CN105049923B (en) Wake up the method and device of electronic equipment
CN108831448A (en) The method, apparatus and storage medium of voice control smart machine
CN105517277B (en) Lighting apparatus control method and device
CN106249614A (en) Intelligent terminal, intelligent domestic system, audio recognition method and ordering method
CN108520746A (en) The method, apparatus and storage medium of voice control smart machine
CN110262330A (en) A kind of smart home environment monitoring system and method based on Arduino
CN110535732A (en) A kind of apparatus control method, device, electronic equipment and storage medium
CN105957328A (en) Old people chaperonage robot
CN104580699A (en) Method and device for acoustically controlling intelligent terminal in standby state
CN108693784A (en) Management method, device, terminal device and the storage medium of home equipment
CN106547216B (en) The method and device of intelligent scene trigger condition is set
CN110262276A (en) Smart home system and its control method based on raspberry pie
CN109963194A (en) Video progress based on recognition of face intelligently follows playback method and system
CN208369610U (en) Intelligent home gateway
KR20180091798A (en) Public device and method for providing service in response to voice command, and public device for providing moving character in response to voice command
CN206057845U (en) Intelligent terminal, intelligent domestic system
CN206411473U (en) Comprehensive detachable intelligent home control system
CN209640683U (en) A kind of automatic speech recognition smart home system
CN105589622B (en) Chat method and device based on barrage
CN110197661A (en) One kind having both passive response and active voice interactive control equipment
CN210109580U (en) Intelligent home system based on raspberry group

Legal Events

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