CN107067639A - A kind of household safe monitoring system based on STM32 - Google Patents
A kind of household safe monitoring system based on STM32 Download PDFInfo
- Publication number
- CN107067639A CN107067639A CN201710429904.XA CN201710429904A CN107067639A CN 107067639 A CN107067639 A CN 107067639A CN 201710429904 A CN201710429904 A CN 201710429904A CN 107067639 A CN107067639 A CN 107067639A
- Authority
- CN
- China
- Prior art keywords
- stm32
- microprocessor
- sensor
- combustible gas
- power supply
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 32
- 238000000034 method Methods 0.000 claims abstract description 20
- 238000001514 detection method Methods 0.000 claims abstract description 11
- 239000000779 smoke Substances 0.000 claims description 16
- 230000005856 abnormality Effects 0.000 claims description 6
- 230000008569 process Effects 0.000 abstract description 7
- 238000005259 measurement Methods 0.000 abstract description 5
- 238000010892 electric spark Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 abstract 1
- 239000007789 gas Substances 0.000 description 22
- 238000004880 explosion Methods 0.000 description 4
- VNWKTOKETHGBQD-UHFFFAOYSA-N methane Chemical compound C VNWKTOKETHGBQD-UHFFFAOYSA-N 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000003345 natural gas Substances 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B19/00—Alarms responsive to two or more different undesired or abnormal conditions, e.g. burglary and fire, abnormal temperature and abnormal rate of flow
- G08B19/005—Alarms responsive to two or more different undesired or abnormal conditions, e.g. burglary and fire, abnormal temperature and abnormal rate of flow combined burglary and fire alarm systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Alarm Systems (AREA)
- Emergency Alarm Devices (AREA)
Abstract
Description
技术领域technical field
本发明属于传感器和控制技术领域,尤其涉及一种基于STM32的家庭安全监测方法。The invention belongs to the technical field of sensors and control, and in particular relates to an STM32-based family safety monitoring method.
背景技术Background technique
随着我国经济的高速发展,人们的生活水平渐渐提高,人们使用天然气、甲烷等能源越来越多,泄漏事故频发;不规范使用电器引起家庭火灾,家中无人时发生被盗事件等家庭安全事故在我们的生活中屡见不鲜,而现在家庭中主要应用的简单的烟雾检测发声报警或者家中没有火灾、可燃气体、防盗装置。家里有人但在睡觉或者娱乐的时候,很少会注意到小范围起火、可燃气体泄漏等安全问题,以致这些问题不能得到及时的处理;另外当家中无人的时候,家中起火、可燃气体泄漏、或者有盗贼进入等情况出现时,家庭人员不知晓情况而不能得到及时报警或及时赶回家处理,这些安全问题不能得到及时有效处理,都很有可能造成严重的人身、财产损失。With the rapid development of my country's economy, people's living standards are gradually improving, people use more and more energy sources such as natural gas and methane, and leakage accidents occur frequently; irregular use of electrical appliances causes family fires, and family thefts occur when there is no one at home. Safety accidents are not uncommon in our lives, but now the simple smoke detection and sound alarms that are mainly used in the home or there are no fire, flammable gas, or anti-theft devices in the home. There are people at home but when they are sleeping or entertaining, they seldom notice safety issues such as small-scale fires and flammable gas leakage, so that these problems cannot be dealt with in a timely manner; Or when situations such as thieves enter occur, the family members do not know the situation and cannot be reported to the police in time or rushed home in time to deal with them. These safety issues cannot be handled in time and effectively, which may cause serious personal and property losses.
综上所述,现有技术存在的问题是:现在家庭中的报警装置只是单纯的报警,人员不在家时不能第一时间知晓和迅速做出处理;安全问题不能得到及时有效处理,可能造成严重的人身、财产损失。To sum up, the existing problems in the prior art are: the alarm devices in the family are only simple alarms, and when the personnel are not at home, they cannot be known at the first time and dealt with quickly; safety issues cannot be dealt with in a timely and effective manner, which may cause serious problems. personal and property damage.
发明内容Contents of the invention
针对现有技术存在的问题,本发明提供了一种基于STM32的家庭安全监测方法。Aiming at the problems existing in the prior art, the present invention provides a family safety monitoring method based on STM32.
本发明是这样实现的,一种基于STM32的家庭安全监测方法,所述基于STM32的家庭安全监测方法在检测可燃气体泄漏,发声报警并短信通知的同时,通过单片机控制继电器切断家中的电源。The present invention is achieved in this way, a family safety monitoring method based on STM32, said STM32-based family safety monitoring method detects combustible gas leakage, sounds an alarm and notifies by short message, and cuts off the power supply at home through a single-chip microcomputer control relay.
本发明的另一目的在于提供一种所述基于STM32的家庭安全监测方法的基于STM32的家庭安全监测系统,所述基于STM32的家庭安全监测系统包括:Another object of the present invention is to provide a family safety monitoring system based on STM32 of the family safety monitoring method based on STM32, the family safety monitoring system based on STM32 includes:
用于实现通过烟雾传感器、可燃气体传感器、红外传感器对家中火灾检测、可燃气体泄漏检测并且有紧急情况时蜂鸣器发声报警并通过GSM模块短信通知家人,另外检测到可燃气体时能通过控制继电器切断家庭中电源的STM32微处理器;It is used to realize fire detection in the home and combustible gas leakage detection through smoke sensor, combustible gas sensor and infrared sensor, and when there is an emergency, the buzzer will sound an alarm and notify the family through SMS through the GSM module. In addition, when combustible gas is detected, it can pass through the control relay An STM32 microprocessor that cuts power in the home;
与STM32微处理器相连,用于监测燃气泄漏、烟雾、人体红外的传感器监测单元;Connected with the STM32 microprocessor, it is used to monitor gas leakage, smoke, human body infrared sensor monitoring unit;
与STM32微处理器相连,用于异常时的及时断电保护的反馈控制单元;Connected with the STM32 microprocessor, it is used as a feedback control unit for timely power-off protection in case of abnormality;
与STM32微处理器相连,用于异常时发送信息给户主的GSM短信提醒单元;Connected with the STM32 microprocessor, it is used to send information to the GSM SMS reminder unit of the head of the household in case of abnormality;
与STM32微处理器相连,包含LM7805,LM7812线性电源,用于给STM32微处理器和GSM短信提醒单元以及传感器监测单元供电的多路供电单元。Connected with STM32 microprocessor, including LM7805, LM7812 linear power supply, multi-channel power supply unit for powering STM32 microprocessor, GSM SMS reminder unit and sensor monitoring unit.
进一步,所述基于STM32的家庭安全监测系统包括:Further, the STM32-based home security monitoring system includes:
微处理器;microprocessor;
所述微处理器与烟雾传感器、红外传感器、可燃气体传感器和继电器有线连接;The microprocessor is wired with smoke sensor, infrared sensor, combustible gas sensor and relay;
所述烟雾传感器、红外传感器、可燃气体传感器与GSM模块有线连接。The smoke sensor, the infrared sensor, and the combustible gas sensor are connected with the GSM module by wire.
进一步,所述GSM模块包括:电源电路、SIM卡、IGT电路、ZIF连接器、TC35模块;Further, the GSM module includes: a power circuit, a SIM card, an IGT circuit, a ZIF connector, and a TC35 module;
ZIF连接器与微处理器、SIM卡、IGT电路连接;IGT电路与微处理器和电源电路连接,TC35模块与ZIF连接器连接。The ZIF connector is connected with the microprocessor, the SIM card, and the IGT circuit; the IGT circuit is connected with the microprocessor and the power supply circuit, and the TC35 module is connected with the ZIF connector.
本发明的优点及积极效果为:能够及时报警家庭中的安全状况,使得各种安全状况能够得到及时有效的处理。在检测可燃气体泄漏,发声报警并短信通知的同时,通断单片机控制继电器切断家中的电源,以免开灯过程中产生电火花而引起火灾或爆炸。当有大量烟雾时,将信息发给消防部门,以便第一时间做出决断。当主人不在家时,有人进入,红外检测到,将信息发送给公安部门,公安部门可迅速捉拿盗贼。做到自动进行安全状况的初步处理。通过按键可以切换测量档位,分为有人和无人两种情况,传感器做出相应的反应。The advantages and positive effects of the present invention are: it can timely alarm the safety situation in the family, so that various safety situations can be dealt with in time and effectively. While detecting the leakage of combustible gas, sounding the alarm and notifying by SMS, the single-chip microcomputer controls the relay to cut off the power supply in the home, so as to avoid fire or explosion caused by electric sparks in the process of turning on the lights. When there is a lot of smoke, send the information to the fire department so that a decision can be made in the first place. When the owner is not at home, if someone enters, the infrared detection will send the information to the public security department, and the public security department can quickly catch the thief. Automate the initial processing of the security situation. The measurement gear can be switched by pressing the button, which is divided into two situations: manned and unmanned, and the sensor responds accordingly.
附图说明Description of drawings
图1是本发明实施例提供的基于STM32的家庭安全监测方法流程图。Fig. 1 is a flow chart of the STM32-based home security monitoring method provided by the embodiment of the present invention.
图2是本发明实施例提供的基于STM32的家庭安全监测系统结构示意图。Fig. 2 is a schematic structural diagram of an STM32-based home security monitoring system provided by an embodiment of the present invention.
图3是本发明实施例提供的GSM模块加工示意图。Fig. 3 is a schematic diagram of processing the GSM module provided by the embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
下面结合附图对本发明的应用原理作详细的描述。The application principle of the present invention will be described in detail below in conjunction with the accompanying drawings.
如图1所示,本发明实施例提供的基于STM32的家庭安全监测方法包括以下步骤:As shown in Figure 1, the STM32-based family safety monitoring method provided by the embodiment of the present invention includes the following steps:
本发明实施例提供的基于STM32的家庭安全监测方法用软件综合处理各种传感器的数据;可以实现通过烟雾传感器、可燃气体传感器、红外传感器对家中火灾检测、可燃气体泄漏检测并且有紧急情况时蜂鸣器发声报警并通过GSM模块短信通知家人,另外检测到可燃气体时能通过控制继电器切断家庭中的电源,以防开关在通断过程中产生电火花引起火灾或爆炸,通过红外传感器每隔8s时间间隔检测一次,如果有人进入家中便可实时检测到,通过GSM模块短信通知家庭人员,实现防盗等功能。The STM32-based family safety monitoring method provided by the embodiment of the present invention uses software to comprehensively process the data of various sensors; The buzzer will sound an alarm and notify the family through the SMS of the GSM module. In addition, when combustible gas is detected, the power supply in the home can be cut off through the control relay to prevent the switch from generating electric sparks during the on-off process and causing fire or explosion. It detects once at a time interval, and if someone enters the home, it can be detected in real time, and the family members will be notified by SMS through the GSM module to realize anti-theft and other functions.
本发明实施例提供的基于STM32的家庭安全监测系统包括:The STM32-based home safety monitoring system provided by the embodiment of the present invention includes:
STM32微处理器,用于实现通过烟雾传感器、可燃气体传感器、红外传感器对家中火灾检测、可燃气体泄漏检测并且有紧急情况时蜂鸣器发声报警并通过GSM模块短信通知家人,另外检测到可燃气体时能通过控制继电器切断家庭中的电源;STM32 microprocessor is used to realize the detection of home fire and combustible gas leakage through smoke sensor, combustible gas sensor and infrared sensor, and the buzzer will sound an alarm when there is an emergency, and notify the family through SMS through GSM module, and detect combustible gas The power supply in the home can be cut off by controlling the relay;
传感器监测单元,与STM32微处理器相连,用于监测燃气泄漏、烟雾、人体红外;Sensor monitoring unit, connected with STM32 microprocessor, used to monitor gas leakage, smoke, human body infrared;
与STM32微处理器相连,反馈控制单元,用于异常时的及时断电保护;Connected with the STM32 microprocessor, the feedback control unit is used for timely power-off protection in case of abnormality;
与STM32微处理器相连,GSM短信提醒单元,用于异常时发送信息给户主;Connected with the STM32 microprocessor, the GSM SMS reminder unit is used to send information to the head of the household when there is an abnormality;
与STM32微处理器相连,多路供电单元,包含LM7805,LM7812线性电源,用于给STM32微处理器和GSM短信提醒单元以及传感器监测单元供电。Connected with STM32 microprocessor, multi-channel power supply unit, including LM7805, LM7812 linear power supply, is used to supply power to STM32 microprocessor, GSM SMS reminder unit and sensor monitoring unit.
如图2所示,本发明实施例提供的基于STM32的家庭安全监测系统包括:As shown in Figure 2, the STM32-based home security monitoring system provided by the embodiment of the present invention includes:
微处理器、烟雾传感器、红外传感器、可燃气体传感器、GSM模块和继电器。Microprocessor, smoke sensor, infrared sensor, combustible gas sensor, GSM module and relay.
微处理器与烟雾传感器、红外传感器、可燃气体传感器和继电器有线连接;烟雾传感器、红外传感器、可燃气体传感器与GSM模块有线连接。The microprocessor is wired to the smoke sensor, infrared sensor, combustible gas sensor and relay; the smoke sensor, infrared sensor, combustible gas sensor is wired to the GSM module.
如图3所示,GSM模块包括:电源电路、SIM卡、IGT电路、ZIF连接器、TC35模块。As shown in Figure 3, the GSM module includes: a power circuit, a SIM card, an IGT circuit, a ZIF connector, and a TC35 module.
ZIF连接器与微处理器、SIM卡、IGT电路连接;IGT电路与微处理器和电源电路连接,TC35模块与ZIF连接器连接。The ZIF connector is connected with the microprocessor, the SIM card, and the IGT circuit; the IGT circuit is connected with the microprocessor and the power supply circuit, and the TC35 module is connected with the ZIF connector.
本发明中微处理器采用的是微控制器是STM32F103C8T6,其工作频率为72MHZ,运行速率快,计数精准,它的定时器资源极其丰富,多达11个,同时具3个12位ADC,完全可以实现精准运算。可以实现通过烟雾传感器、可燃气体传感器、红外传感器对家中火灾检测、可燃气体泄漏检测并且有紧急情况时蜂鸣器发声报警并通过GSM模块短信通知家人,另外检测到可燃气体时能通过控制继电器切断家庭中的电源,以防开关在通断过程中产生电火花引起火灾或爆炸,通过红外传感器每隔8s时间间隔检测一次,如果有人进入家中便可实时检测到,通过GSM模块短信通知家庭人员,实现防盗等功能。What microprocessor adopted in the present invention is that microcontroller is STM32F103C8T6, and its working frequency is 72MHZ, and running speed is fast, and counting is accurate, and its timer resource is extremely rich, reaches 11, has 3 12-bit ADCs simultaneously, completely Accurate calculations can be achieved. It can realize fire detection in the home and combustible gas leakage detection through smoke sensor, combustible gas sensor and infrared sensor. In case of emergency, the buzzer will sound an alarm and notify the family members through GSM module SMS. In addition, when combustible gas is detected, it can be cut off through the control relay The power supply in the home is used to prevent fire or explosion caused by electric sparks during the on-off process of the switch. The infrared sensor detects it every 8s. If someone enters the home, it can be detected in real time, and the family members will be notified by SMS through the GSM module. Realize anti-theft and other functions.
本发明能够及时报警家庭中的安全状况,使得各种安全状况能够得到及时有效的处理;在检测可燃气体泄漏,发声报警并短信通知的同时,通断单片机控制继电器切断家中的电源,以免开灯过程中产生电火花而引起火灾或爆炸。做到自动进行安全状况的初步处理。通过按键可以切换测量档位,并伴有档位指示灯亮灭。The invention can timely alarm the safety situation in the family, so that various safety situations can be dealt with in a timely and effective manner; while detecting the leakage of combustible gas, sounding an alarm and notifying by short message, the single-chip microcomputer controls the relay to cut off the power supply in the home, so as not to turn on the light Sparks are generated during the process and cause fire or explosion. Automate the initial processing of the security situation. The measurement gear can be switched by pressing the button, accompanied by the gear indicator light on and off.
本发明的工作原理:Working principle of the present invention:
本发明将传感器的应用与GSM短信提醒相结合,解决了市场上传感器在无人的情况下的监测问题;传感器触发,蜂鸣器报警,继电器断电保护,GSM发送短信提醒,通过按键切换为有人和无人模式,准确的做出判断和处理。整个测频系统是基于STM32搭建的,包含传感器监测单元,反馈断电单元,GSM模块单元,多路直流供电单元。在实际的家庭应用中,只需按键即可实现测量档位的切换,操作较为简单,简化了传统仪器的繁琐的操作过程,实用性强。The present invention combines the application of the sensor with the GSM short message reminder, which solves the monitoring problem of the sensor in the market without people; the sensor is triggered, the buzzer alarms, the relay is powered off for protection, and GSM sends a short message reminder, and the button is switched to Manned and unmanned mode, accurate judgment and processing. The entire frequency measurement system is built based on STM32, including sensor monitoring unit, feedback power-off unit, GSM module unit, and multi-channel DC power supply unit. In the actual home application, only need to press the button to realize the switching of the measurement gear, the operation is relatively simple, simplifies the tedious operation process of the traditional instrument, and has strong practicability.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710429904.XA CN107067639A (en) | 2017-06-02 | 2017-06-02 | A kind of household safe monitoring system based on STM32 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710429904.XA CN107067639A (en) | 2017-06-02 | 2017-06-02 | A kind of household safe monitoring system based on STM32 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107067639A true CN107067639A (en) | 2017-08-18 |
Family
ID=59616449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710429904.XA Pending CN107067639A (en) | 2017-06-02 | 2017-06-02 | A kind of household safe monitoring system based on STM32 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107067639A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110400441A (en) * | 2019-08-21 | 2019-11-01 | 贵州源景燃智慧科技有限公司 | Domestic safety monitoring system and its method for early warning |
CN112540549A (en) * | 2020-12-02 | 2021-03-23 | 吉林建筑大学 | Student dormitory electricity utilization monitoring method and device |
CN113178044A (en) * | 2021-04-23 | 2021-07-27 | 天津电子信息职业技术学院 | Intelligent safety system based on human body detection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4033711A (en) * | 1976-02-25 | 1977-07-05 | Metrodata, Inc. | Spark ignition gas flow control system |
CN102722960A (en) * | 2012-07-11 | 2012-10-10 | 天津职业技术师范大学 | Intelligent home security alarm system |
CN202632482U (en) * | 2012-04-09 | 2012-12-26 | 上海理工大学 | Intelligent household combustion gas leakage processing apparatus |
CN202940397U (en) * | 2012-11-26 | 2013-05-15 | 宁波奥博尔电器有限公司 | Kitchen safety socket |
-
2017
- 2017-06-02 CN CN201710429904.XA patent/CN107067639A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4033711A (en) * | 1976-02-25 | 1977-07-05 | Metrodata, Inc. | Spark ignition gas flow control system |
CN202632482U (en) * | 2012-04-09 | 2012-12-26 | 上海理工大学 | Intelligent household combustion gas leakage processing apparatus |
CN102722960A (en) * | 2012-07-11 | 2012-10-10 | 天津职业技术师范大学 | Intelligent home security alarm system |
CN202940397U (en) * | 2012-11-26 | 2013-05-15 | 宁波奥博尔电器有限公司 | Kitchen safety socket |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110400441A (en) * | 2019-08-21 | 2019-11-01 | 贵州源景燃智慧科技有限公司 | Domestic safety monitoring system and its method for early warning |
CN112540549A (en) * | 2020-12-02 | 2021-03-23 | 吉林建筑大学 | Student dormitory electricity utilization monitoring method and device |
CN113178044A (en) * | 2021-04-23 | 2021-07-27 | 天津电子信息职业技术学院 | Intelligent safety system based on human body detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104392585B (en) | A kind of combustion gas interlink alarm system and method thereof | |
CN103794036A (en) | Wireless multipoint intelligent alarm system and control method thereof | |
CN107067639A (en) | A kind of household safe monitoring system based on STM32 | |
CN203260164U (en) | Fuel gas alarm | |
CN107726240A (en) | A kind of intelligent lamp with detection indoor harmful gas function | |
CN204332001U (en) | A high-voltage power supply near-electricity protection device | |
CN204693540U (en) | Intelligent flue gas tapping equipment | |
TW201342312A (en) | The smart kitchen monitoring system | |
CN207352741U (en) | Remote household fireproof antitheft alarming system based on gsm communication module | |
CN205788632U (en) | A kind of Domestic two unusual condition is reported to the police device of getting rid of the danger | |
CN205281719U (en) | A fire prevention burglar alarm for intelligence building | |
CN202119121U (en) | Toxic gas detecting, alarming and controlling system of gas water heater | |
CN201382512Y (en) | Over-standard-concentration coal gas exhaust system | |
CN205384699U (en) | Human sensing alarm | |
CN202598616U (en) | Safety monitoring alarm device of gas oven | |
CN203276497U (en) | Gas leakage alarm device | |
CN205626817U (en) | Novel regional response of building list is put out a fire device | |
CN103996271A (en) | City district combustion gas security protection monitoring system | |
CN202939757U (en) | Power-transformer theftproof system | |
CN204390381U (en) | Storehouse security alarm | |
CN202837282U (en) | GSM (Global System for Mobile Communications)-based combustible gas concentration monitor | |
CN201388898Y (en) | Dry heating preventing alarm electric kettle | |
CN205942296U (en) | Household intelligent management and control system | |
CN113112743A (en) | GSM-based fireproof and antitheft alarm system | |
CN102509424A (en) | Gas cooker monitoring and warning system and realization method |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170818 |