项目编号:mcuclub-jj-042
设计简介:
项目名:防火防盗
单片机:STC89C52
功能简介:
1、通过火焰传感器检测是否发生明火,如果发生,通过继电器控制水泵灭火,并声光报警
2、通过MQ-2检测烟雾浓度,如果烟雾值大于设置的最大值,通过继电器控制风扇通风,并声光报警
3、通过MQ-5检测当前可燃气体浓度,如果气体浓度大于设置最大值,通过继电器控制风扇通风,并声光报警
4、通过DS18B20检测温度值,如果温度值大于设置的最大值,通过继电器控制风扇通风,并声光报警
5、通过人体人体热释电模块监测监控区域是否有人,当有人,并且布防时,则声光警报
6、通过按键可以设置各阈值、手动控制水泵、风扇、切换模式、布防撤防
7、通过显示屏显示数据
扩展功能:当检测到明火时,通过GSM发送“发生火灾”短信;当烟雾值大于设置的最大值时,通过GSM发送“烟雾过高”短信;
当气体浓度大于设置最大值时,通过GSM发送“可燃气体泄露”短信;当温度值大于设置的最大值时,通过GSM发送“温度过高”短信;
当布防时,检测到有人,通过GSM发送“有人闯入”短信
总字数:18887
摘 要
近年来,随着网络通信技术、电子技术和计算机技术的迅猛发展,以及社会经济的飞速发展和人民生活水平的日益提高,人们对其住宅的要求也越来越高,大家不仅希望居室温馨、舒适,而且对其安全性、智能化方面也提出了更高的要求。现代电子信息技术和通讯技术的飞速发展已经为智能化安全住宅的研究提供了强有力的技术支持。目前我国主要的的防盗方式是以安装防盗门、防盗锁为主,但是这类设备主要是以增加盗贼入室的难度来达到防盗目的。这种单纯的机械装置,在较长时间无人在场的情况下,防盗效果往往不尽如人意,而且影响房屋美观,在防火逃生方面上给人们带来了难
本文是以STM32F103C8T6单片机和GSM通信模块为核心的家庭智能防火防盗报警系统,它是一种操作方便、运行可靠的智能型无线报警系统,利用传感器和现有的GSM网络,以短信息的形式实现防火、防盗、远程控制等家庭所要求的安全监控和报警功能。采用红外、火焰、温度、可燃气体、温度等传感器实时监测家庭安全情况,如有异常系统会及时发送短信通知主人;通过单片机控制固态继电器,检测到火灾控制水泵工作,检测到气体大于设置的最大值控制通风风扇打开,布防检测到人长时间停留进行声光报警提醒。此系统使得家庭主人及时的了解家里的各种信息,使家庭安全得到更大的保证。
现在,手机已经成为生活必需品。通过引入 GSM 短信模块,家中出现异常时可以自动发送短息报警以及通过短信来自动控制家用电器的使用,为人们的生活带来极大的便利性和时效性。
Abstract
In recent years, with the rapid development of network communication technology, electronic technology, and computer technology, as well as the rapid development of social economy and the increasing improvement of people’s living standards, people’s requirements for their homes have become increasingly high. People not only hope for warm and comfortable living rooms, but also put forward higher requirements for their safety and intelligence. The rapid development of modern electronic information technology and communication technology has provided strong technical support for the research of intelligent and secure housing. At present, the main anti-theft method in China is to install anti-theft doors and locks, but this type of equipment is mainly used to increase the difficulty of burglars entering the house to achieve anti-theft purposes. This simple mechanical device, when left unattended for a long time, often has unsatisfactory anti-theft effects and affects the aesthetics of the house, making it difficult for people to escape from fire
This article is a home intelligent fire and anti-theft alarm system based on the STM32F103C8T6 microcontroller and GSM communication module. It is a convenient and reliable intelligent wireless alarm system that utilizes sensors and existing GSM network to achieve safety monitoring and alarm functions required by families such as fire prevention, anti-theft, and remote control in the form of short messages. Using infrared, flame, temperature, combustible gas, temperature and other sensors to monitor the safety situation of the home in real time. If there are any abnormalities, the system will promptly send text messages to notify the owner; By controlling the solid-state relay through a microcontroller, it is detected that a fire is controlling the operation of the water pump, the gas is detected to be greater than the set maximum value to control the ventilation fan to turn on, and the deployment detects that a person has been staying for a long time for sound and light alarm reminders. This system enables family owners to timely understand various information at home, ensuring greater safety for the family.
Nowadays, mobile phones have become a necessity in daily life. By introducing the GSM SMS module, when there is an abnormality in the home, it can automatically send a SMS alarm and control the use of household appliances through SMS, bringing great convenience and timeliness to people’s lives.
Keywords: microcontroller; Fire and theft prevention; Audible and visual alarm; GSM SMS sending
目 录
1 绪 论 1
2 系统主题设计 5
3 硬件设计 12
4 系统程序设计 21
5 实物的制作与调试 27
6 结 论 39
参考文献 40
致 谢 41
附录 42