设计简介:
项目名:空气质量(天然气或煤气)
单片机类型:STC89C52
具体功能:
1、通过MQ-5检测天然气或煤气值,超过设置最大值进行声光报警,并开启风扇和净化器
2、通过按键设置上限值,可以手动控制风扇和净化器、切换模式
3、通过显示屏显示数据
扩展功能:通过蓝牙模块将测量数据发送到手机端,并可以控制风扇和净化器、切换模式
总字数:12110
摘要:
天然气作为一种新型能源,被广泛应用于居家做饭、取暖等日常生活中,天然气的广泛使用,不仅给人们的生活带来便利,还有效的降低能源的消耗,但是,在使用天然气的过程中,天然气泄露严重威胁了人们的生命安全,并造成财产损失,为了有效降低天然气泄露导致的生命财产损失,本文基于单片机和传感器技术,采用51单片机设计一款基于天然气泄露报警系统,通过MQ-5对天然气进行实时检测,将检测的值显示在显示屏上,检测到当前煤气浓度大于设置的最大值,进行声光报警,并自动打开风扇和净化器,此外还可以将检测的数据通过蓝牙传输到用户的手机上,用户可以通过手机控制通风和净化器的工作,从而高效,稳定,便捷,智能的对天然气泄漏进行监测和报警。
关键词:无线传感器网络;天然气泄漏监控;智能监控;自动控制
Design and implementation of gas leakage alarm system based on 51 single chip microcomputer
Abstract:
As a new type of energy, natural gas is widely used in daily life such as home cooking and heating. The widespread use of natural gas not only brings convenience to people’s life, but also effectively reduces energy consumption. However, in the process of using natural gas, natural gas leakage seriously threatens people’s life safety and causes property losses. In order to effectively reduce the loss of life and property caused by natural gas leakage, based on the single chip microcomputer and sensor technology, this paper uses 51 single chip microcomputer to design a natural gas leakage alarm system based on the real-time detection of natural gas through MQ-5, the detected value is displayed on the display screen, the current gas concentration is detected to be greater than the maximum value set, sound and light alarm. In addition, the detected data can be transmitted to the user’s mobile phone through Bluetooth, and the user can control the ventilation and purifier work through the mobile phone, so as to efficiently, stably, conveniently and intelligently monitor and alarm the natural gas leakage.
Key words: wireless sensor network; Gas leakage monitoring; Intelligent monitoring; Automatic control
目 录
1 绪论 1
2系统方案设计 4
3 硬件电路设计 7
4 系统程序设计 12
5 实物测试 18
总结与展望 22
参考文献 23
致谢 24
附录 25