项目编号:mcuclub-dz-300
设计简介:
项目名:水质监测(实物)
项目编号:mcuclub-dz-299
单片机类型:STM32F103C8T6
具体功能:
1、通过防水式DS18B20检测水温,当检测值不在设置的范围内,进行防水式加热,并声光报警
2、通过PH检测模块检测PH值,当检测值不在设置的范围内,进行加水中和,并声光报警
3、通过浑浊度传感器检测浑浊度,当检测值不在设置的范围内,进行换水(两个水泵,一个抽水一个加水),并声光报警
4、通过按键可设置各阈值
5、通过OLED显示屏显示数据
6、通过WIFI模块将测量数据发送到手机端,手机端可以设置阈值,并可以控制加热、加水、换水
总字数:17072
摘 要
随着我国经济条件与科学技术的发展,人们努力采取相关措施提高生活环境和居住环境,但如今我国国内的相关系统还不够完善,研究仍然处于初级阶段,监测系统的造价极高,而且准确性有待提升。因此,本文提出新型居住环境监测系统的构建策略,希望能够改善人们的居住环境。
本文设计一款基于STM32单片机的居住环境监测系统。采用传感器对家居环境的温度、烟雾浓度、是否有陌生人等相关参数进行实时监测,如果监测到相关参数处于异常状况时,进行声光报警提醒用户,并将监测到的实时数据发送到显示屏和手机端进行显示,该举措可以有效防止家中发生中暑、火灾和盗窃等意外情况。
实物测试表明,该系统可以较好的进行数据采集、数据控制和声光报警,能够有效的保证居住环境参数的适宜性,所有,本系统具有一定的推广价值。
关键词:STM32单片机;传感器;居家环境监护;声光报警;显示屏
Abstract
With the development of China’s economic conditions and science and technology, people try to take relevant measures to improve the living environment and living environment, but now the relevant system in China is not perfect, the research is still in the initial stage, the monitoring system is extremely high cost, and the accuracy needs to be improved. Therefore, this paper puts forward the construction strategy of a new residential environment monitoring system, hoping to improve people’s living environment.
This paper designs a residential environment monitoring system based on STM32 single chip computer. The use of sensors on the home environment temperature, smoke concentration, whether there are strangers and other related parameters for real-time monitoring, if the monitoring of relevant parameters in abnormal conditions, sound and light alarm to remind the user, and the monitoring of the real-time data sent to the display screen and mobile phone display, this measure can effectively prevent the occurrence of heat stroke, fire and theft and other accidents at home.
Physical test shows that the system can better data acquisition, data control and sound and light alarm, can effectively ensure the suitability of living environment parameters, so the system has a certain promotion value.
Key words: STM32 MCU; Sensor; Home environment monitoring; Sound and light alarm; Display screen
目 录
1 绪 论
1.1 研究背景及其研究意义
1.2 国内外研究现状和发展趋势
1.2.1 国内外研究现状
1.2.2 智能家居系统的发展趋势
1.3 本文研究目标和组织结构
2 系统方案设计
2.1 整体方案设计
2.2 主要器件选型选择
2.2.1主控模块方案选择
2.2.2 显示模块方案选择
2.2.3 温湿度检测模块方案选择
2.2.4 烟雾检测模块方案选择
3 硬件电路设计
3.1单片机最小系统
3.1.1 主控模块电路
3.1.2 晶振电路
3.1.3 复位电路
3.1.4 电源电路
3.1.5 下载电路
3.2 DS18B20温度检测模块电路
3.3 MQ-2烟雾检测模块电路设计
3.4 红外检测模块
3.5 显示模块电路设计
3.6 独立按键电路模块
3.7 声光报警模块
3.8 GSM通信模块
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 GSM模块子流程设计
4.5 OLED显示流程设计
5 实物调试
5.1 整体实物测试图
5.2 参数设置实物测试
5.3人体热释模块检测实物测试
5.3烟雾浓度检测实物测试
5.4温度检测实物测试
总结
致谢
参考文献
附录A
附录B
附录C