案例,spss,数据分析

基于单片机的火灾报警器


全文字数:10000字左右  原创时间:<=2022年

【内容摘要】

基于单片机的火灾报警器 随着高科技的发展和社会的进步,电器设备成了人们生活的必需品,它的使用方便了人们的生活,同时也带来了许多安全隐患。火灾报警器的出现,可以起到在火灾发生初期对人们的提醒作用,使人们的生命和财产得到保护。 本课题设计的烟雾报警器以单片机为控制核心,利用温度传感和烟雾传感采集火灾发生时现场的温度值和烟雾浓度,一旦这两个值超过设定的界限即实现报警。系统主要由89C51单片机、DS18B20温度传感器、MQ-2烟雾检测器、声光报警器等组成。课题主要完成了系统的硬件电路搭建和软件程序编写,并根据设计方案完成了实物模型的制作和调试。为了使采集到的数据准确可靠,采用了多点测量的方式进行数据采集。经过测试能够满足基本功能。 本课题设计的火灾报警器,结构简单,性能稳定,成本低,有望推广应用到家庭。 关键词:烟雾;温度;报警器;传感器;单片机 Abstract With the High-tech Development and social progress, electrical equipment has become a necessity of people's life, its use has facilitated people's life, but also brought many security risks. The appearance of fire alarm can play the role of reminding people in the early stage of fire, and make people's life and property protected. The smoke alarm designed in this paper is based on the single-chip microcomputer, and uses the temperature and smoke sensors to collect the temperature and smoke concentration at the scene of a fire. The system is mainly composed of 89C51 single chip microcomputer, DS18B20 temperature sensor, MQ-2 smoke detector, sound and light alarm and so on. The main task is to complete the system hardware circuit and software programming, and according to the design of the completion of the physical model and debugging. In order to make the collected data accurate and reliable, the multi-point measurement is used to collect the data. It's been tested to meet the basic requirements. The design of the subject of fire alarm, simple structure, stable performance, low cost, is expected to be extended to the family. Key words: smoke; Temperature; Alarm; The sensor; Single chip microcomputer 目 录 1绪论 1 1.1 课题的背景 1 1.2 课题的意义 1 1.3 火灾报警器的现状 1 1.4设计目标 1 1.5 设计内容 2 2 系统总体方案设计 2 2.1 整体方案设计 2 2.2 方案选择和论证 3 2.2.1 单片机的选择 3 2.2.2 显示方案的选择 3 2.2.3其他元器件的选择 3 3 系统硬件设计 3 3.1 最小系统模块 3 3.1.1 STC89C51简介 3 3.2.2 最小系统电路 4 3.3 液晶显示电路 5 3.3.1 1602液晶简介 5 3.3.2 液晶显示模块电路 5 3.3.3 液晶引脚说明 6 3.4烟雾检测模块 6 3.4.1烟雾传感器的选型 6 3.4.2 MQ-2型烟雾传感器的工作原理 7 3.4.3烟雾检测模块电路 7 3.5 DS18B20传感器电路 8 3.5.1 DS18B20简介 8 3.5.2 DS18B20模块电路图 9 3.6 按键输入模块 9 3.7 报警模块 9 3.7.1 蜂鸣器的介绍 10 3.7.2 蜂鸣器报警电路 10 3.7.3 发光二极管 10 3.7.4 报警模块电路 11 4 软件设计 11 4.1 程序语言及开发环境 11 4.2 程序流程图设计 11 4.2.1 总体程序流程图设计 11 4.2.2 液晶程序设计 12 4.2.3液晶程序 12 4.2.4 模数转换程序设计 13 4.2.5 温度传感器程序设计 13 5 系统调试 14 5.1 元器件的选择与测量 14 5.2 元件的焊接与组装 15 5.3 电路的调试 15 5.3.1 调试方法 15 5.3.2 调试步骤 15 5.3.3 调试结果 16 6 结 论 16 附 录 18 附录一 原理图 18 附录二 实物图 19 附录三 仿真图 20 附录三 仿真图 21 附录四PCB图 22 附录五 部分程序源代码 23 参考文献 27

 

*若需了解更多与协助请咨询↓→[电脑QQ][手机QQ]【数据协助】